From d9722d133bee346606af609b50bb1a63f0849ad9 Mon Sep 17 00:00:00 2001 From: Justineo Date: Wed, 11 Aug 2021 12:08:09 +0800 Subject: [PATCH] chore: refine issue form and readme --- .github/ISSUE_TEMPLATE/bug-report.en-US.yml | 2 +- .github/ISSUE_TEMPLATE/bug-report.zh-Hans.yml | 2 +- README.md | 18 +++++++++++++----- README.zh-Hans.md | 18 +++++++++++++----- 4 files changed, 28 insertions(+), 12 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.en-US.yml b/.github/ISSUE_TEMPLATE/bug-report.en-US.yml index 2bcac02..962ff23 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.en-US.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.en-US.yml @@ -40,6 +40,6 @@ body: id: repro attributes: label: Reproduction - description: "A link to a boiled-down reproduction (a minimal but runnable demo with unnecessary dependencies pruned). Please paste the link to your CodeSandbox demo below: ([Vue 3 template](https://codesandbox.io/s/charming-night-2y6m6?file=/src/App.vue) / [Vue 2 template](https://codesandbox.io/s/suspicious-glitter-mk66j?file=/src/App.vue))" + description: "A link to a boiled-down reproduction (a minimal but runnable demo with unnecessary dependencies pruned). If the issue isn't reproducible within an online playground, please create a GitHub repo to reflect the problem. Please paste the link to your CodeSandbox demo or GitHub repo below: ([Vue 3 template](https://codesandbox.io/s/charming-night-2y6m6?file=/src/App.vue) / [Vue 2 template](https://codesandbox.io/s/suspicious-glitter-mk66j?file=/src/App.vue))" validations: required: true diff --git a/.github/ISSUE_TEMPLATE/bug-report.zh-Hans.yml b/.github/ISSUE_TEMPLATE/bug-report.zh-Hans.yml index e2e2447..b93556d 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.zh-Hans.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.zh-Hans.yml @@ -40,6 +40,6 @@ body: id: repro attributes: label: 问题复现 - description: "请提供一个精炼的问题复现(去除无关依赖的最小化可运行 demo)。 Plea请在下方贴入在 CodeSandbox 上 demo 的链接:([Vue 3 模板](https://codesandbox.io/s/charming-night-2y6m6?file=/src/App.vue) / [Vue 2 模板](https://codesandbox.io/s/suspicious-glitter-mk66j?file=/src/App.vue))" + description: "请提供一个精炼的问题复现(去除无关依赖的最小化可运行 demo)。如果在线环境无法复现,可以创建对应的 GitHub repo 来提供复现环境。请在下方贴入在 CodeSandbox 上 demo 的链接或 GitHub repo 链接:([Vue 3 模板](https://codesandbox.io/s/charming-night-2y6m6?file=/src/App.vue) / [Vue 2 模板](https://codesandbox.io/s/suspicious-glitter-mk66j?file=/src/App.vue))" validations: required: true diff --git a/README.md b/README.md index af943cf..1378a10 100644 --- a/README.md +++ b/README.md @@ -20,13 +20,21 @@ Not ready yet? Read documentation for older versions [here →](https://github.c $ npm install echarts vue-echarts ``` -To make `vue-echarts` work for Vue 2, you need to have `@vue/composition-api` installed: +To make `vue-echarts` work for *Vue 2*, you need to have `@vue/composition-api` installed: ```sh npm i -D @vue/composition-api ``` -
+If you are using *NuxtJS* on top of *Vue 2*, you'll also need `@nuxtjs/composition-api`: + +```sh +npm i -D @nuxtjs/composition-api +``` + +And then add `'@nuxtjs/composition-api/module'` in the `buildModules` option in your `nuxt.config.js`. + +
Vue 3 ```js @@ -108,7 +116,7 @@ import "echarts"; #### SFC example -
+
Vue 3 ```vue @@ -299,7 +307,7 @@ export default { Drop `