mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-14 19:23:28 +08:00
chore: update readme
This commit is contained in:
@ -17,19 +17,19 @@ Not ready yet? Read documentation for older versions [here →](https://github.c
|
|||||||
### npm & ESM
|
### npm & ESM
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ npm install echarts vue-echarts
|
$ npm install --save 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:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm i -D @vue/composition-api
|
npm i --save @vue/composition-api
|
||||||
```
|
```
|
||||||
|
|
||||||
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 also need `@nuxtjs/composition-api`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm i -D @nuxtjs/composition-api
|
npm i --save @nuxtjs/composition-api
|
||||||
```
|
```
|
||||||
|
|
||||||
And then add `'@nuxtjs/composition-api/module'` in the `buildModules` option in your `nuxt.config.js`.
|
And then add `'@nuxtjs/composition-api/module'` in the `buildModules` option in your `nuxt.config.js`.
|
||||||
|
@ -17,19 +17,19 @@
|
|||||||
### npm & ESM
|
### npm & ESM
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ npm install echarts vue-echarts
|
$ npm install --save echarts vue-echarts
|
||||||
```
|
```
|
||||||
|
|
||||||
要在 _Vue 2_(<2.7.0)下使用 `vue-echarts`,需要确保 `@vue/composition-api` 已经安装:
|
要在 _Vue 2_(<2.7.0)下使用 `vue-echarts`,需要确保 `@vue/composition-api` 已经安装:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm i -D @vue/composition-api
|
npm i --save @vue/composition-api
|
||||||
```
|
```
|
||||||
|
|
||||||
如果你在使用基于 _Vue 2_ 的 _NuxtJS_,那么还需要安装 `@nuxtjs/composition-api`:
|
如果你在使用基于 _Vue 2_ 的 _NuxtJS_,那么还需要安装 `@nuxtjs/composition-api`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm i -D @nuxtjs/composition-api
|
npm i --save @nuxtjs/composition-api
|
||||||
```
|
```
|
||||||
|
|
||||||
然后在 `nuxt.config.js` 的 `buildModules` 选项中添加 `'@nuxtjs/composition-api/module'`。
|
然后在 `nuxt.config.js` 的 `buildModules` 选项中添加 `'@nuxtjs/composition-api/module'`。
|
||||||
|
Reference in New Issue
Block a user