Skip to content

Commit 20858a6

Browse files
committed
chore: bring logo back for demo site
1 parent 6304a1b commit 20858a6

File tree

4 files changed

+58
-21
lines changed

4 files changed

+58
-21
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"comment-mark": "^1.0.0",
4242
"core-js": "^3.23.0",
4343
"echarts": "^5.3.2",
44+
"echarts-liquidfill": "^3.1.0",
4445
"eslint": "^7.20.0",
4546
"eslint-plugin-prettier": "^3.3.1",
4647
"eslint-plugin-vue": "^8.7.1",
@@ -50,6 +51,7 @@
5051
"postcss-nested": "^5.0.5",
5152
"prettier": "^2.6.2",
5253
"qs": "^6.10.5",
54+
"raw-loader": "^4.0.2",
5355
"resize-detector": "^0.3.0",
5456
"rimraf": "^3.0.2",
5557
"rollup": "^2.72.1",

pnpm-lock.yaml

Lines changed: 39 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/demo/Demo.vue

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<template>
22
<main>
3-
<!-- <v-chart
4-
class="echarts" id="logo" :option="logo" :init-options="initOptions" autoresize />-->
3+
<v-chart
4+
class="echarts"
5+
id="logo"
6+
:option="logo"
7+
:init-options="initOptions"
8+
autoresize
9+
/>
510
<h1>
611
<a href="https://github.com/ecomfe/vue-echarts">Vue-ECharts</a>
712
</h1>
@@ -328,8 +333,8 @@ import {
328333
DataZoomComponent
329334
} from "echarts/components";
330335
import { CanvasRenderer, SVGRenderer } from "echarts/renderers";
331-
// import "echarts-liquidfill";
332-
// import logo from "./data/logo";
336+
import "echarts-liquidfill";
337+
import logo from "./data/logo";
333338
import getBar from "./data/bar";
334339
import pie from "./data/pie";
335340
import polar from "./data/polar";
@@ -383,6 +388,7 @@ export default {
383388
const options = qs.parse(location.search, { ignoreQueryPrefix: true });
384389
return {
385390
options,
391+
logo,
386392
bar: getBar(),
387393
pie,
388394
polar,
@@ -719,7 +725,6 @@ select {
719725
font: inherit;
720726
padding: 0 0.5em;
721727
transition: opacity 0.3s;
722-
-webkit-appearance: none;
723728
transition: all 0.2s;
724729
725730
&:focus {
@@ -890,10 +895,6 @@ figure {
890895
font-size: 0.8em;
891896
}
892897
893-
select {
894-
-webkit-appearance: none;
895-
}
896-
897898
input[type="checkbox"] {
898899
display: none;
899900

vue.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,12 @@ module.exports = {
1414
},
1515
chainWebpack: config => {
1616
config.entry("app").clear().add("./src/demo/main.ts");
17+
18+
config.module
19+
.rule("svg")
20+
.clear()
21+
.test(/\.svg$/)
22+
.use("raw-loader")
23+
.loader("raw-loader");
1724
}
1825
};

0 commit comments

Comments
 (0)