diff --git a/CHANGELOG.md b/CHANGELOG.md index c89558b..aa10c9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.6.6 + +* Fixed types for Vue < 2.7. + ## 6.6.5 * Fixed type for `option` regressed in v6.6.2. diff --git a/README.md b/README.md index 298bec2..967bfcd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
Vue.js (v2/v3) component for Apache ECharts (v5).
+Vue.js (v2/v3) component for Apache ECharts™ (v5).
@@ -23,17 +23,18 @@ Not ready yet? Read documentation for older versions [here →](https://github.c ### npm & ESM -```bash -npm install echarts vue-echarts +```sh +npm i echarts vue-echarts ``` -To make `vue-echarts` work for _Vue 2_ (<2.7.0), you need to have `@vue/composition-api` installed: +To make `vue-echarts` work for _Vue 2_ (<2.7.0), you need to have `@vue/composition-api` installed (`@vue/runtime-core` for TypeScript support): ```sh npm i @vue/composition-api +npm i @vue/runtime-core # for TypeScript support ``` -If you are using _NuxtJS_ on top of _Vue 2_, you'll also need `@nuxtjs/composition-api`: +If you are using _NuxtJS_ on top of _Vue 2_, you'll need `@nuxtjs/composition-api`: ```sh npm i @nuxtjs/composition-api @@ -475,7 +476,7 @@ The following breaking changes are introduced in `vue-echarts@6`: ### Vue 2 support -- If you are using version prior to `vue@2.7.0`, `@vue/composition-api` is required to be installed to use Vue-ECharts with Vue 2. +- If you are using version prior to `vue@2.7.0`, `@vue/composition-api` is required to be installed to use Vue-ECharts with Vue 2 (and also `@vue/runtime-core` for TypeScript support). ### Props @@ -500,7 +501,7 @@ The following breaking changes are introduced in `vue-echarts@6`: ## Local development -```bash +```sh pnpm i pnpm serve ``` diff --git a/README.zh-Hans.md b/README.zh-Hans.md index b131020..10c53db 100644 --- a/README.zh-Hans.md +++ b/README.zh-Hans.md @@ -1,6 +1,6 @@Apache ECharts (v5) 的 Vue.js (v2/v3) 组件。
+Apache ECharts™ (v5) 的 Vue.js (v2/v3) 组件。
@@ -23,17 +23,18 @@ ### npm & ESM -```bash -npm install echarts vue-echarts +```sh +npm i echarts vue-echarts ``` -要在 _Vue 2_(<2.7.0)下使用 `vue-echarts`,需要确保 `@vue/composition-api` 已经安装: +要在 _Vue 2_(<2.7.0)下使用 `vue-echarts`,需要确保 `@vue/composition-api` 已经安装(TypeScript 支持还需要 `@vue/runtime-core`): ```sh npm i @vue/composition-api +npm i @vue/runtime-core # TypeScript 支持 ``` -如果你在使用基于 _Vue 2_ 的 _NuxtJS_,那么还需要安装 `@nuxtjs/composition-api`: +如果你在使用基于 _Vue 2_ 的 _NuxtJS_,则需要安装 `@nuxtjs/composition-api`: ```sh npm i @nuxtjs/composition-api @@ -475,7 +476,7 @@ import { THEME_KEY } from 'vue-echarts' ### Vue 2 支持 -- 要在 `vue@2.7.0` 之前的版本中使用 Vue-ECharts,必须安装 `@vue/composition-api`。 +- 要在 `vue@2.7.0` 之前的版本中使用 Vue-ECharts,必须安装 `@vue/composition-api`(还需要安装 `@vue/runtime-core` 来支持 TypeScript)。 ### Prop @@ -500,7 +501,7 @@ import { THEME_KEY } from 'vue-echarts' ## 本地开发 -```bash +```sh pnpm i pnpm serve ``` diff --git a/package.json b/package.json index 2eb7439..dc74507 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-echarts", - "version": "6.6.5", + "version": "6.6.6", "description": "Vue.js component for Apache ECharts.", "author": "GU Yiling