Skip to content

Commit b843f80

Browse files
committed
chore: update readme
1 parent 66988fa commit b843f80

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
<p align="center"><a href="https://vue-echarts.dev/">View Demo →</a></p>
55
<p align="center"><a href="https:///pr.new/ecomfe/vue-echarts"><img alt="Open in Codeflow" src="https://developer.stackblitz.com/img/open_in_codeflow.svg" height="28"/></a><a href="https://codesandbox.io/p/github/ecomfe/vue-echarts"> <img alt="Edit in CodeSandbox" src="https://assets.codesandbox.io/github/button-edit-lime.svg" height="28"/></a></p>
66

7+
> [!IMPORTANT]
8+
> We have released an [import code generator](https://vue-echarts.dev/#codegen) that can generate precise import code by pasting the `option` code.
9+
>
10+
> [Try it →](https://vue-echarts.dev/#codegen)
11+
712
---
813

914
<h2>💡 Heads up 💡 <a href="./README.zh-Hans.md"><img src="https://img.shields.io/badge/%F0%9F%87%A8%F0%9F%87%B3-%E4%B8%AD%E6%96%87%E7%89%88-white?labelColor=white" alt="前往中文版" align="right" height="24"/></a></h2>
@@ -208,7 +213,10 @@ export default {
208213

209214
</details>
210215

211-
We encourage manually importing components and charts from ECharts for smaller bundle size. See all supported renderers/charts/components [here →](https://github.com/apache/echarts/blob/master/src/echarts.all.ts)
216+
> [!IMPORTANT]
217+
> We encourage manually importing components and charts from ECharts for smaller bundle size. We've built an [import code generator](https://vue-echarts.dev/#codegen) to help you with that. You can just paste in your `option` code and we'll generate the precise import code for you.
218+
>
219+
> [Try it →](https://vue-echarts.dev/#codegen)
212220
213221
But if you really want to import the whole ECharts bundle without having to import modules manually, just add this in your code:
214222

README.zh-Hans.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
<p align="center"><a href="https://vue-echarts.dev/">查看 Demo →</a></p>
55
<p align="center"><a href="https:///pr.new/ecomfe/vue-echarts"><img alt="Open in Codeflow" src="https://developer.stackblitz.com/img/open_in_codeflow.svg" height="28"/></a><a href="https://codesandbox.io/p/github/ecomfe/vue-echarts"> <img alt="Edit in CodeSandbox" src="https://assets.codesandbox.io/github/button-edit-lime.svg" height="28"/></a></p>
66

7+
8+
> [!IMPORTANT]
9+
> 我们新发布了一个[导入代码生成器](https://vue-echarts.dev/#codegen),只需要把`option` 代码粘贴进去,就可以得到精确的导入代码。
10+
>
11+
> [试一试 →](https://vue-echarts.dev/#codegen)
12+
713
---
814

915
## 💡 注意 💡
@@ -208,7 +214,10 @@ export default {
208214

209215
</details>
210216

211-
为了更小的打包体积,我们建议手动从 ECharts 引入单个图表和组件。请参考所有支持的渲染器/图表/组件。[前往 →](https://github.com/apache/echarts/blob/master/src/echarts.all.ts)
217+
> [!IMPORTANT]
218+
> 我们鼓励手动从 ECharts 中引入组件和图表,以减小打包体积。我们已经为此构建了一个[导入代码生成器](https://vue-echarts.dev/#codegen)。你只需要把`option` 代码粘贴进去,就可以得到精确的导入代码。
219+
>
220+
> [试一试 →](https://vue-echarts.dev/#codegen)
212221
213222
但如果你实在需要全量引入 ECharts 从而无需手动引入模块,只需要在代码中添加:
214223

0 commit comments

Comments
 (0)