Skip to content

Commit 503094d

Browse files
kingyue737Justineo
authored andcommitted
feat!: remove vue 2
1 parent d0357c8 commit 503094d

File tree

14 files changed

+352
-370
lines changed

14 files changed

+352
-370
lines changed

README.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Drop `<script>` inside your HTML file and access the component via `window.VueEC
212212

213213
<!-- vue3Scripts:start -->
214214
```html
215-
<script src="https://cdn.jsdelivr.net/npm/vue@3.4.33"></script>
215+
<script src="https://cdn.jsdelivr.net/npm/vue@3.5.13"></script>
216216
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
217217
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
218218
```
@@ -227,24 +227,6 @@ app.component('v-chart', VueECharts)
227227

228228
</details>
229229

230-
<details>
231-
<summary>Vue 2 <a href="https://stackblitz.com/edit/vue-echarts-vue-2-global?file=index.html">Demo →</a></summary>
232-
233-
<!-- vue2Scripts:start -->
234-
```html
235-
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
236-
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
237-
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
238-
```
239-
<!-- vue2Scripts:end -->
240-
241-
```js
242-
// register globally (or you can do it locally)
243-
Vue.component("v-chart", VueECharts);
244-
```
245-
246-
</details>
247-
248230
See more examples [here](https://github.com/ecomfe/vue-echarts/tree/main/src/demo).
249231

250232
### Props

README.zh-Hans.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ import "echarts";
212212

213213
<!-- vue3Scripts:start -->
214214
```html
215-
<script src="https://cdn.jsdelivr.net/npm/vue@3.4.33"></script>
215+
<script src="https://cdn.jsdelivr.net/npm/vue@3.5.13"></script>
216216
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
217217
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
218218
```
@@ -227,24 +227,6 @@ app.component('v-chart', VueECharts)
227227

228228
</details>
229229

230-
<details>
231-
<summary>Vue 2 <a href="https://stackblitz.com/edit/vue-echarts-vue-2-global?file=index.html">Demo →</a></summary>
232-
233-
<!-- vue2Scripts:start -->
234-
```html
235-
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
236-
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
237-
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
238-
```
239-
<!-- vue2Scripts:end -->
240-
241-
```js
242-
// 全局注册组件(也可以使用局部注册)
243-
Vue.component("v-chart", VueECharts);
244-
```
245-
246-
</details>
247-
248230
可以在[这里](https://github.com/ecomfe/vue-echarts/tree/main/src/demo)查看更多例子。
249231

250232
### Prop

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"scripts": {
99
"serve": "vue-cli-service serve",
1010
"build": "pnpm run docs && rimraf dist && pnpm run build:rollup",
11-
"build:rollup": "vue-demi-switch 3 && rollup -c rollup.config.js",
11+
"build:rollup": "rollup -c rollup.config.js",
1212
"lint": "vue-cli-service lint",
1313
"publint": "publint",
1414
"build:demo": "vue-cli-service build",
@@ -29,13 +29,10 @@
2929
"dist",
3030
"scripts/postinstall.js"
3131
],
32-
"dependencies": {
33-
"vue-demi": "^0.13.11"
34-
},
3532
"peerDependencies": {
3633
"@vue/runtime-core": "^3.0.0",
3734
"echarts": "^5.5.1",
38-
"vue": "^2.7.0 || ^3.1.1"
35+
"vue": "^3.1.1"
3936
},
4037
"peerDependenciesMeta": {
4138
"@vue/runtime-core": {
@@ -57,7 +54,7 @@
5754
"@vue/compiler-sfc": "^3.4.33",
5855
"@vue/eslint-config-prettier": "^9.0.0",
5956
"@vue/eslint-config-typescript": "^13.0.0",
60-
"@vueuse/core": "^10.11.0",
57+
"@vueuse/core": "^13.1.0",
6158
"comment-mark": "^1.1.1",
6259
"core-js": "^3.37.1",
6360
"echarts": "^5.5.1",
@@ -68,7 +65,7 @@
6865
"eslint-plugin-prettier": "^5.2.1",
6966
"eslint-plugin-vue": "^9.27.0",
7067
"highlight.js": "^11.10.0",
71-
"pinia": "^2.1.7",
68+
"pinia": "^3.0.2",
7269
"postcss": "^8.4.39",
7370
"postcss-loader": "^8.1.1",
7471
"postcss-nested": "^6.2.0",
@@ -83,8 +80,7 @@
8380
"rollup-plugin-import-css": "^3.5.1",
8481
"tslib": "^2.6.3",
8582
"typescript": "5.5.4",
86-
"vue": "^3.4.33",
87-
"vue2": "npm:vue@^2.7.16",
83+
"vue": "^3.5.13",
8884
"webpack": "^5.93.0"
8985
}
9086
}

0 commit comments

Comments
 (0)