mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-11-06 13:09:50 +08:00
chore: refine demo
This commit is contained in:
@ -69,7 +69,7 @@ function refresh() {
|
||||
second{{ seconds > 1 ? "s" : "" }}...
|
||||
</small>
|
||||
</p>
|
||||
<p>
|
||||
<p class="actions">
|
||||
<button @click="refresh" :disabled="seconds > 0">Refresh</button>
|
||||
</p>
|
||||
</template>
|
||||
|
||||
@ -45,7 +45,7 @@ watch(
|
||||
<v-chart :option="c2" group="radiance" autoresize />
|
||||
</template>
|
||||
<template #extra>
|
||||
<p>
|
||||
<p class="actions">
|
||||
<label>
|
||||
<input type="checkbox" v-model="connected" />
|
||||
Connected
|
||||
|
||||
@ -51,7 +51,7 @@ function convert() {
|
||||
style="background-color: #404a59"
|
||||
/>
|
||||
<template #extra>
|
||||
<p>
|
||||
<p class="actions">
|
||||
<button @click="convert">Convert to image</button>
|
||||
</p>
|
||||
<aside class="modal" :class="{ open }" @click="open = false">
|
||||
|
||||
@ -105,7 +105,7 @@ function load() {
|
||||
You may use the <code>manual-update</code> prop for performance critical
|
||||
use cases.
|
||||
</p>
|
||||
<p>
|
||||
<p class="actions">
|
||||
<button :disabled="loaded" @click="load">Load</button>
|
||||
</p>
|
||||
</template>
|
||||
|
||||
@ -33,7 +33,7 @@ const theme = shallowRef("dark");
|
||||
:style="theme === 'dark' ? 'background-color: #100c2a' : ''"
|
||||
/>
|
||||
<template #extra>
|
||||
<p>
|
||||
<p class="actions">
|
||||
Theme
|
||||
<select v-model="theme">
|
||||
<option :value="null">Default</option>
|
||||
|
||||
@ -22,7 +22,7 @@ const metricIndex = shallowRef(0);
|
||||
<v-example id="radar" title="Radar chart" desc="(with Pinia integration)">
|
||||
<v-chart :option="getRadarData(metricIndex)" autoresize />
|
||||
<template #extra>
|
||||
<p>
|
||||
<p class="actions">
|
||||
<select v-model="metricIndex">
|
||||
<option
|
||||
v-for="(metric, index) in metrics"
|
||||
|
||||
Reference in New Issue
Block a user