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 +1 -1
- package/src/index.es.js +26 -14
- package/src/index.umd.js +2 -2
- package/src/webUtils/ECharts/index.d.ts +4 -3
- package/src/webUtils/ECharts/trendChartUtils.d.ts +3 -2
- package/src/webUtils/ECharts/useBaseEChartViewUtil.d.ts +73 -0
- /package/src/webUtils/ECharts/{BaseEChart.vue.d.ts → BaseEChartView.vue.d.ts} +0 -0
package/package.json
CHANGED
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
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
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: "
|
|
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
|
-
|
|
4013
|
+
BaseEChartView: _sfc_main$n,
|
|
4005
4014
|
CN_TEXT_FONT_FAMILY,
|
|
4006
4015
|
EN_TEXT_FONT_FAMILY,
|
|
4007
4016
|
NUMBER_FONT_FAMILY,
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
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,
|