zzz-pc-view 0.0.88 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zzz-pc-view",
3
- "version": "0.0.88",
3
+ "version": "0.0.89",
4
4
  "main": "src/index.umd.js",
5
5
  "module": "src/index.es.js",
6
6
  "types": "src/index.d.ts",
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
- chartInstance.setOption(props.renderParam.chartOption);
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
- if (props.renderParam.chartOption) {
3969
- setChartOption();
3970
- }
3971
+ setChartOption();
3971
3972
  };
3972
3973
  const destroy = () => {
3973
3974
  if (!chartInstance) {