vg-print 1.1.506 → 1.1.508

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -144,6 +144,26 @@ setHttpClient(axios)
144
144
 
145
145
  如果只使用 `data-sources` 外部传入数据,不需要安装 axios;未传外部数据源且未注入 axios 时,请求型“数据源”入口会自动提示依赖缺失,不会影响设计器其他功能。
146
146
 
147
+ ### 可选依赖:ECharts 图表
148
+
149
+ - 本库默认不内置 ECharts,以减少默认安装体积。
150
+ - 仅当你需要折线图、柱状图、饼图、漏斗图、仪表盘、雷达图或散点图时,才需要安装并注入:
151
+
152
+ ```bash
153
+ npm i echarts
154
+ ```
155
+
156
+ 在项目入口(如 `main.ts`)注入:
157
+
158
+ ```js
159
+ import * as echarts from 'echarts'
160
+ import { setEcharts } from 'vg-print'
161
+
162
+ setEcharts(echarts)
163
+ ```
164
+
165
+ 未安装或未注入 ECharts 时,图表元素仍可拖入设计器,但会显示依赖提示,不影响其他元素使用。
166
+
147
167
  ### 可选插件:条码/二维码(@vg-print/plugin-bwip-js)
148
168
 
149
169
  - 本库默认不内置 `bwip-js`,以减少默认安装体积。