Skip to content

Commit 89be965

Browse files
committed
chore: allowJs for demo
1 parent 54ac383 commit 89be965

File tree

3 files changed

+58
-30
lines changed

3 files changed

+58
-30
lines changed

src/demo/Demo.vue

Lines changed: 52 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
<template>
22
<main>
33
<!-- <v-chart
4-
class="echarts" id="logo" :option="logo" :init-options="initOptions" autoresize /> -->
5-
<h1><a href="https://github.com/ecomfe/vue-echarts">Vue-ECharts</a></h1>
4+
class="echarts" id="logo" :option="logo" :init-options="initOptions" autoresize />-->
5+
<h1>
6+
<a href="https://github.com/ecomfe/vue-echarts">Vue-ECharts</a>
7+
</h1>
68
<p class="desc">
7-
Vue.js component for Apache ECharts. (<a
8-
href="https://github.com/ecomfe/vue-echarts#readme"
9-
>docs</a
10-
>)
9+
Vue.js component for Apache ECharts. (
10+
<a href="https://github.com/ecomfe/vue-echarts#readme">docs</a>)
1111
</p>
1212

1313
<h2 id="bar">
14-
<a href="#bar"
15-
>Bar chart <small>(with async data &amp; custom theme)</small></a
16-
>
14+
<a href="#bar">
15+
Bar chart
16+
<small>(with async data &amp; custom theme)</small>
17+
</a>
1718
<button
1819
:class="{
1920
round: true,
@@ -37,19 +38,26 @@
3738
@click="handleClick"
3839
/>
3940
</figure>
40-
<p v-if="seconds <= 0"><small>Loaded.</small></p>
41+
<p v-if="seconds <= 0">
42+
<small>Loaded.</small>
43+
</p>
4144
<p v-else>
42-
<small
43-
>Data coming in <b>{{ seconds }}</b> second{{
44-
seconds > 1 ? "s" : ""
45-
}}...</small
46-
>
45+
<small>
46+
Data coming in
47+
<b>{{ seconds }}</b>
48+
second{{ seconds > 1 ? "s" : "" }}...
49+
</small>
50+
</p>
51+
<p>
52+
<button @click="refresh" :disabled="seconds > 0">Refresh</button>
4753
</p>
48-
<p><button @click="refresh" :disabled="seconds > 0">Refresh</button></p>
4954
</section>
5055

5156
<h2 id="pie">
52-
<a href="#pie">Pie chart <small>(with action dispatch)</small></a>
57+
<a href="#pie">
58+
Pie chart
59+
<small>(with action dispatch)</small>
60+
</a>
5361
<button
5462
:class="{
5563
round: true,
@@ -71,7 +79,10 @@
7179
</section>
7280

7381
<h2 id="polar">
74-
<a href="#polar">Polar plot <small>(with built-in theme)</small></a>
82+
<a href="#polar">
83+
Polar plot
84+
<small>(with built-in theme)</small>
85+
</a>
7586
<button
7687
:class="{
7788
round: true,
@@ -100,7 +111,10 @@
100111
</section>
101112

102113
<h2 id="scatter">
103-
<a href="#scatter">Scatter plot <small>(with gradient)</small></a>
114+
<a href="#scatter">
115+
Scatter plot
116+
<small>(with gradient)</small>
117+
</a>
104118
<button
105119
:class="{
106120
round: true,
@@ -117,7 +131,10 @@
117131
</section>
118132

119133
<h2 id="map">
120-
<a href="#map">Map <small>(with GeoJSON &amp; image converter)</small></a>
134+
<a href="#map">
135+
Map
136+
<small>(with GeoJSON &amp; image converter)</small>
137+
</a>
121138
<button
122139
:class="{
123140
round: true,
@@ -136,7 +153,9 @@
136153
autoresize
137154
/>
138155
</figure>
139-
<p><button @click="convert">Convert to image</button></p>
156+
<p>
157+
<button @click="convert">Convert to image</button>
158+
</p>
140159
</section>
141160

142161
<!-- <h2 id="radar">
@@ -166,7 +185,7 @@
166185
<input id="async" type="checkbox" v-model="asyncCount" />
167186
<label for="async">Async</label>
168187
</p>
169-
</section> -->
188+
</section>-->
170189

171190
<h2 id="connect">
172191
<a href="#connect">Connectable charts</a>
@@ -219,12 +238,14 @@
219238
</h2>
220239
<section v-if="expand.flight">
221240
<p>
222-
<small
223-
>You may use <code>manual-update</code> prop for performance critical
224-
use cases.</small
225-
>
241+
<small>
242+
You may use
243+
<code>manual-update</code> prop for performance critical use cases.
244+
</small>
245+
</p>
246+
<p>
247+
<button :disabled="flightLoaded" @click="loadFlights">Load</button>
226248
</p>
227-
<p><button :disabled="flightLoaded" @click="loadFlights">Load</button></p>
228249
<figure style="background-color: #003">
229250
<v-chart
230251
ref="flight"
@@ -238,10 +259,11 @@
238259
</section>
239260

240261
<footer>
241-
<a href="//github.com/Justineo">@Justineo</a>|<a
242-
href="//github.com/ecomfe/vue-echarts/blob/master/LICENSE"
262+
<a href="//github.com/Justineo">@Justineo</a>|
263+
<a href="//github.com/ecomfe/vue-echarts/blob/master/LICENSE"
243264
>MIT License</a
244-
>|<a href="//github.com/ecomfe/vue-echarts">View on GitHub</a>
265+
>|
266+
<a href="//github.com/ecomfe/vue-echarts">View on GitHub</a>
245267
</footer>
246268

247269
<aside :class="{ modal: true, open }" @click="open = false">

src/demo/jsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files": [
3+
"./Demo.vue"
4+
],
5+
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"allowJs": true,
23
"compilerOptions": {
34
"target": "ES5",
45
"module": "ESNext",

0 commit comments

Comments
 (0)