zzz-pc-view 0.0.87 → 0.0.89
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/package.json +1 -1
- package/src/index.es.js +5 -4
- package/src/index.umd.js +1 -1
package/package.json
CHANGED
package/src/index.es.js
CHANGED
|
@@ -3960,14 +3960,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3960
3960
|
let chartInstance;
|
|
3961
3961
|
const setChartOption = () => {
|
|
3962
3962
|
chartInstance.resize();
|
|
3963
|
-
|
|
3963
|
+
const { chartOption } = props.renderParam;
|
|
3964
|
+
if (chartOption) {
|
|
3965
|
+
chartInstance.setOption(props.renderParam.chartOption);
|
|
3966
|
+
}
|
|
3964
3967
|
};
|
|
3965
3968
|
const init = () => {
|
|
3966
3969
|
chartInstance = ECharts.init(elRef.value, props.theme);
|
|
3967
3970
|
emit("ready", chartInstance);
|
|
3968
|
-
|
|
3969
|
-
setChartOption();
|
|
3970
|
-
}
|
|
3971
|
+
setChartOption();
|
|
3971
3972
|
};
|
|
3972
3973
|
const destroy = () => {
|
|
3973
3974
|
if (!chartInstance) {
|