diff --git a/README.md b/README.md
index a13a245..daf1156 100644
--- a/README.md
+++ b/README.md
@@ -281,10 +281,9 @@ Drop `
-
+
```
@@ -306,11 +305,10 @@ app.component('v-chart', VueECharts)
Vue 2
-
```html
-
+
```
@@ -425,6 +423,7 @@ import { INIT_OPTIONS_KEY } from 'vue-echarts'
- `dispatchAction` [→](https://echarts.apache.org/en/api.html#echartsInstance.dispatchAction)
- `convertToPixel` [→](https://echarts.apache.org/en/api.html#echartsInstance.convertToPixel)
- `convertFromPixel` [→](https://echarts.apache.org/en/api.html#echartsInstance.convertFromPixel)
+- `containPixel` [→](https://echarts.apache.org/en/api.html#echartsInstance.containPixel)
- `showLoading` [→](https://echarts.apache.org/en/api.html#echartsInstance.showLoading)
- `hideLoading` [→](https://echarts.apache.org/en/api.html#echartsInstance.hideLoading)
- `containPixel` [→](https://echarts.apache.org/en/api.html#echartsInstance.containPixel)
@@ -489,6 +488,8 @@ See supported events [here →](https://echarts.apache.org/en/api.html#events)
## Migration to v6
+> 💡 Please make sure to read the [migration guide](https://echarts.apache.org/en/tutorial.html#ECharts%205%20Upgrade%20Guide) for ECharts 5 as well.
+
The following breaking changes are introduced in `vue-echarts@6`:
### Vue 2 support
diff --git a/README.zh-Hans.md b/README.zh-Hans.md
index 70791cf..d664c88 100644
--- a/README.zh-Hans.md
+++ b/README.zh-Hans.md
@@ -279,10 +279,9 @@ export default {
Vue 3
-
```html
-
+
```
@@ -304,11 +303,10 @@ app.component('v-chart', VueECharts)
Vue 2
-
```html
-
+
```
@@ -423,6 +421,7 @@ import { INIT_OPTIONS_KEY } from 'vue-echarts'
- `dispatchAction` [→](https://echarts.apache.org/zh/api.html#echartsInstance.dispatchAction)
- `convertToPixel` [→](https://echarts.apache.org/zh/api.html#echartsInstance.convertToPixel)
- `convertFromPixel` [→](https://echarts.apache.org/zh/api.html#echartsInstance.convertFromPixel)
+- `containPixel` [→](https://echarts.apache.org/zh/api.html#echartsInstance.containPixel)
- `showLoading` [→](https://echarts.apache.org/zh/api.html#echartsInstance.showLoading)
- `hideLoading` [→](https://echarts.apache.org/zh/api.html#echartsInstance.hideLoading)
- `containPixel` [→](https://echarts.apache.org/zh/api.html#echartsInstance.containPixel)
@@ -487,6 +486,8 @@ Vue-ECharts 支持如下事件:
## 迁移到 v6
+> 💡 请确保同时查阅 ECharts 5 的[升级指南](https://echarts.apache.org/zh/tutorial.html#ECharts%205%20%E5%8D%87%E7%BA%A7%E6%8C%87%E5%8D%97)。
+
`vue-echarts@6` 引入了如下破坏性变更:
### Vue 2 支持
diff --git a/package-lock.json b/package-lock.json
index bdc2d50..d191029 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "vue-echarts",
- "version": "6.0.0-alpha.1",
+ "version": "6.0.0-alpha.5",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -4330,7 +4330,8 @@
"core-js": {
"version": "3.9.0",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.9.0.tgz",
- "integrity": "sha512-PyFBJaLq93FlyYdsndE5VaueA9K5cNB7CGzeCj191YYLhkQM0gdZR2SKihM70oF0wdqKSKClv/tEBOpoRmdOVQ=="
+ "integrity": "sha512-PyFBJaLq93FlyYdsndE5VaueA9K5cNB7CGzeCj191YYLhkQM0gdZR2SKihM70oF0wdqKSKClv/tEBOpoRmdOVQ==",
+ "dev": true
},
"core-js-compat": {
"version": "3.9.0",
@@ -11314,8 +11315,7 @@
"resize-detector": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/resize-detector/-/resize-detector-0.3.0.tgz",
- "integrity": "sha512-R/tCuvuOHQ8o2boRP6vgx8hXCCy87H1eY9V5imBYeVNyNVpuL9ciReSccLj2gDcax9+2weXy3bc8Vv+NRXeEvQ==",
- "dev": true
+ "integrity": "sha512-R/tCuvuOHQ8o2boRP6vgx8hXCCy87H1eY9V5imBYeVNyNVpuL9ciReSccLj2gDcax9+2weXy3bc8Vv+NRXeEvQ=="
},
"resolve": {
"version": "1.20.0",
@@ -13568,10 +13568,9 @@
}
},
"vue-demi": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.6.0.tgz",
- "integrity": "sha512-8GEJa0mHJpYJeGeq5fD1pJct2kfdl30PHfmL1NaJ97mgKPyKojlIRt/3inGBK4Y0ylCI6T5vOo3chwpqDOq/Hw==",
- "dev": true
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.6.1.tgz",
+ "integrity": "sha512-2DI0owOzgEDnEBoXpp0nTBquAWLZqVf/+AOJpPUnviT17unMELEPNy5BdSRnQEz+DA0STtqaz+MZtwhzlDHm5Q=="
},
"vue-eslint-parser": {
"version": "7.5.0",
diff --git a/package.json b/package.json
index cc9aebd..99b301e 100644
--- a/package.json
+++ b/package.json
@@ -19,9 +19,8 @@
"dist"
],
"dependencies": {
- "core-js": "^3.6.5",
"resize-detector": "^0.3.0",
- "vue-demi": "^0.6.0"
+ "vue-demi": "^0.6.1"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^11.1.1",
@@ -53,8 +52,7 @@
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.29.0",
"typescript": "^4.1.3",
- "vue": "^3.0.5",
- "vue-demi": "^0.6.0"
+ "vue": "^3.0.5"
},
"peerDependencies": {
"@vue/composition-api": "^1.0.0-rc.2",
diff --git a/scripts/readme.js b/scripts/readme.js
index 4c687e7..be5649f 100644
--- a/scripts/readme.js
+++ b/scripts/readme.js
@@ -10,7 +10,7 @@ const CDN_PREFIX = "https://cdn.jsdelivr.net/npm/";
const DEP_VERSIONS = {
"vue@3": "3.0.5",
"vue@2": "2.6.12",
- "vue-demi": "0.6.0",
+ "vue-demi": "0.6.1",
"@vue/composition-api": "1.0.0-rc.2",
echarts: "5.0.2",
[name]: version