zzz-pc-view 0.0.84 → 0.0.86

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.84",
3
+ "version": "0.0.86",
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
@@ -3518,11 +3518,6 @@ const getTrendChartOption = (param) => {
3518
3518
  setData(chartOption, newParam);
3519
3519
  return chartOption;
3520
3520
  };
3521
- const trendChartUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3522
- __proto__: null,
3523
- getTrendChartOption,
3524
- setLegend
3525
- }, Symbol.toStringTag, { value: "Module" }));
3526
3521
  const COLORS = [
3527
3522
  "#3ba272",
3528
3523
  // 绿色系颜色
@@ -3901,12 +3896,26 @@ const getRelatedChartOption = (param) => {
3901
3896
  setGrid(chartOption);
3902
3897
  return chartOption;
3903
3898
  };
3904
- const relatedChartUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3905
- __proto__: null,
3906
- getRelatedChartOption
3907
- }, Symbol.toStringTag, { value: "Module" }));
3899
+ const useBaseEChartViewUtil = (responseKey, eventHandler) => {
3900
+ const chartElRef = ref();
3901
+ const response2 = {
3902
+ [responseKey]: chartElRef
3903
+ };
3904
+ if (eventHandler) {
3905
+ const on = response2.on = {};
3906
+ const { ready } = eventHandler;
3907
+ if (typeof ready === "function") {
3908
+ on.ready = ready;
3909
+ }
3910
+ const { destroy } = eventHandler;
3911
+ if (typeof destroy === "function") {
3912
+ on.destroy = destroy;
3913
+ }
3914
+ }
3915
+ return response2;
3916
+ };
3908
3917
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
3909
- __name: "BaseEChart",
3918
+ __name: "BaseEChartView",
3910
3919
  props: {
3911
3920
  theme: {},
3912
3921
  renderParam: {},
@@ -4001,13 +4010,16 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
4001
4010
  });
4002
4011
  const index$b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4003
4012
  __proto__: null,
4004
- BaseEChart: _sfc_main$n,
4013
+ BaseEChartView: _sfc_main$n,
4005
4014
  CN_TEXT_FONT_FAMILY,
4006
4015
  EN_TEXT_FONT_FAMILY,
4007
4016
  NUMBER_FONT_FAMILY,
4008
- relatedChartUtils,
4009
- trendChartUtils,
4010
- useChartStyleConfig
4017
+ getRelatedChartOption,
4018
+ getTrendChartOption,
4019
+ setLegend,
4020
+ useBaseEChartViewUtil,
4021
+ useChartStyleConfig,
4022
+ yAxisFormatterMap
4011
4023
  }, Symbol.toStringTag, { value: "Module" }));
4012
4024
  const ZWebUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4013
4025
  __proto__: null,