chore: improve demo

This commit is contained in:
Justineo
2023-12-26 14:54:04 +08:00
parent cb95ece9c6
commit ce3ba29209
4 changed files with 61 additions and 15 deletions

View File

@ -324,10 +324,6 @@ input[type="number"] {
overflow: hidden; overflow: hidden;
background-color: #fff; background-color: #fff;
box-shadow: 0 0 45px rgba(0, 0, 0, 0.2); box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
h2 {
margin-top: 0;
}
} }
.options { .options {

View File

@ -56,12 +56,23 @@ watch(codeOpen, open => {
<a href="https://github.com/ecomfe/vue-echarts">Vue-ECharts</a> <a href="https://github.com/ecomfe/vue-echarts">Vue-ECharts</a>
</h1> </h1>
<p class="desc"> <p class="desc">
Vue.js component for Apache ECharts. (<a Vue.js component for Apache ECharts. (<a
href="https://github.com/ecomfe/vue-echarts#readme" href="https://github.com/ecomfe/vue-echarts#readme"
>docs</a >docs</a
>) >)
</p> </p>
<h2 class="sep">Examples</h2>
<p>
<small
>See
<a href="https://echarts.apache.org/examples/en/index.html"
>echarts.apache.org/examples</a
>
for all examples.</small
>
</p>
<bar-chart /> <bar-chart />
<pie-chart /> <pie-chart />
<polar-chart /> <polar-chart />
@ -132,6 +143,19 @@ body {
a { a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
box-shadow: 0 1px 0 0 #42b983;
transition: box-shadow 0.2s;
&:hover {
box-shadow: 0 2px 0 0 #42b983;
}
}
h1,
h2,
h3 {
color: #2c3e50;
font-weight: 400;
} }
h1 { h1 {
@ -139,13 +163,32 @@ h1 {
font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-family: Inter, "Helvetica Neue", Arial, sans-serif;
} }
h1,
h2 { h2 {
color: #2c3e50; margin-top: 1em;
font-weight: 400; margin-bottom: 1em;
} }
h2 { .sep {
margin-top: 6em;
margin-bottom: 1.8em;
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
font-size: 1.25em;
color: #7f8c8d;
opacity: 0.6;
&::before,
&::after {
content: "";
display: block;
width: 48px;
border-bottom: 1px dotted currentColor;
}
}
h3 {
margin-top: 2em; margin-top: 2em;
padding-top: 1em; padding-top: 1em;
font-size: 1.2em; font-size: 1.2em;
@ -208,15 +251,18 @@ footer {
a { a {
display: inline-block; display: inline-block;
margin: 0 5px; margin: 0 5px;
padding: 3px 0 6px;
color: #7f8c8d; color: #7f8c8d;
font-size: 2em; font-size: 2em;
text-decoration: none;
} }
}
h1,
h2,
h3 {
a,
a:hover { a:hover {
padding-bottom: 3px; text-decoration: none;
border-bottom: 3px solid #42b983; box-shadow: none;
} }
} }

View File

@ -25,6 +25,10 @@ export default {
return ""; return "";
} }
} }
},
itemStyle: {
shadowBlur: 12,
shadowColor: "rgba(0, 0, 0, 0.25)"
} }
} }
] ]

View File

@ -1,10 +1,10 @@
<template> <template>
<h2 :id="id"> <h3 :id="id">
<a :href="`#${id}`"> <a :href="`#${id}`">
{{ title }} {{ title }}
<small v-if="desc">{{ desc }}</small> <small v-if="desc">{{ desc }}</small>
</a> </a>
</h2> </h3>
<section> <section>
<figure class="fig hero" v-if="!split"> <figure class="fig hero" v-if="!split">
<slot /> <slot />