@shjjs/visual-ui 1.0.33 → 1.0.35
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/es/commons/core/useChart.mjs +1 -1
- package/es/commons/plugins/datasource/index.d.ts +73 -73
- package/es/commons/plugins/datasource/index.mjs +214 -214
- package/es/commons/plugins/datasource/sources/api.d.ts +1 -1
- package/es/commons/plugins/datasource/sources/api.mjs +32 -32
- package/es/commons/plugins/datasource/sources/static.d.ts +1 -1
- package/es/commons/plugins/datasource/sources/static.mjs +17 -17
- package/es/commons/plugins/datasource/sources/storage.d.ts +1 -1
- package/es/commons/plugins/datasource/sources/storage.mjs +28 -28
- package/es/commons/plugins/datasource/sources/url.d.ts +1 -1
- package/es/commons/plugins/datasource/sources/url.mjs +17 -17
- package/es/commons/plugins/datasource/sources/variable.d.ts +1 -1
- package/es/commons/plugins/datasource/sources/variable.mjs +17 -17
- package/es/commons/plugins/datasource/sources/ws.d.ts +32 -32
- package/es/commons/plugins/datasource/sources/ws.mjs +139 -139
- package/es/commons/plugins/datasource/utils/axios.d.ts +70 -70
- package/es/commons/plugins/datasource/utils/axios.mjs +134 -134
- package/es/commons/plugins/datasource/utils/request.d.ts +3 -3
- package/es/commons/plugins/datasource/utils/request.mjs +5 -5
- package/es/commons/plugins/datasource/utils/utils.d.ts +115 -115
- package/es/commons/plugins/datasource/utils/utils.mjs +229 -229
- package/es/commons/plugins/datasource/utils/wsManager.d.ts +16 -16
- package/es/commons/plugins/datasource/utils/wsManager.mjs +78 -78
- package/es/commons/plugins/event/actions/fullScreenAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/fullScreenAction.mjs +8 -8
- package/es/commons/plugins/event/actions/invokeAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/invokeAction.mjs +11 -11
- package/es/commons/plugins/event/actions/linkAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/linkAction.mjs +8 -8
- package/es/commons/plugins/event/actions/moveAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/moveAction.mjs +15 -15
- package/es/commons/plugins/event/actions/refreshVariableAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/refreshVariableAction.mjs +18 -18
- package/es/commons/plugins/event/actions/rotateAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/rotateAction.mjs +19 -19
- package/es/commons/plugins/event/actions/scaleAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/scaleAction.mjs +24 -24
- package/es/commons/plugins/event/actions/sendApiAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/sendApiAction.mjs +16 -16
- package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.mjs +31 -31
- package/es/commons/plugins/event/actions/ueShjExecMethodAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/ueShjExecMethodAction.mjs +31 -31
- package/es/commons/plugins/event/actions/unityIframeExecMethodAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/unityIframeExecMethodAction.mjs +28 -28
- package/es/commons/plugins/event/actions/unityWebglExecMethodAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/unityWebglExecMethodAction.mjs +28 -28
- package/es/commons/plugins/event/actions/updatePageAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/updatePageAction.mjs +6 -6
- package/es/commons/plugins/event/actions/updateVariableAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/updateVariableAction.mjs +25 -25
- package/es/commons/plugins/event/actions/updateWidgetAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/updateWidgetAction.mjs +14 -14
- package/es/commons/plugins/event/actions/vrSceneMethodAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/vrSceneMethodAction.mjs +12 -12
- package/es/commons/plugins/event/index.d.ts +206 -206
- package/es/commons/plugins/event/index.mjs +161 -161
- package/es/commons/plugins/event/utils/utils.d.ts +22 -22
- package/es/commons/plugins/event/utils/utils.mjs +50 -50
- package/es/commons/utils/componentRefs.d.ts +28 -28
- package/es/commons/utils/componentRefs.mjs +37 -37
- package/es/commons/utils/getNextElement.d.ts +7 -7
- package/es/commons/utils/getNextElement.mjs +12 -12
- package/es/components/chart/commons/components/common-chart/index.vue.mjs +10 -11
- package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +6 -7
- package/es/components/chart/commons/hooks/useChart.mjs +1 -1
- package/es/components/chart-other-candlestick-basic/index.vue.mjs +7 -8
- package/es/components/chart-other-candlestick-demo/index.vue.mjs +16 -17
- package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +14 -15
- package/es/components/chart-other-circular-graph/index.vue.mjs +16 -17
- package/es/components/chart-other-force/index.vue.mjs +19 -20
- package/es/components/chart-other-force2/index.vue.mjs +19 -20
- package/es/components/chart-other-funnel/index.vue.mjs +16 -17
- package/es/components/chart-other-funnel-contrast/index.vue.mjs +16 -17
- package/es/components/chart-other-funnel-split/index.vue.mjs +16 -17
- package/es/components/chart-other-funnel2/index.vue.mjs +16 -17
- package/es/components/chart-other-gauge/index.vue.mjs +21 -22
- package/es/components/chart-other-gauge-grade/index.vue.mjs +20 -21
- package/es/components/chart-other-gauge-stage/index.vue.mjs +21 -22
- package/es/components/chart-other-graph-basic/index.vue.mjs +8 -9
- package/es/components/chart-other-graph-basic2/index.vue.mjs +8 -9
- package/es/components/chart-other-graph-calendar/index.vue.mjs +7 -8
- package/es/components/chart-other-grid-percentage/index.vue.mjs +3 -4
- package/es/components/chart-other-heatmap/index.vue.mjs +19 -20
- package/es/components/chart-other-label-gauge/index.vue.mjs +9 -10
- package/es/components/chart-other-liquidfill/index.vue.mjs +11 -12
- package/es/components/chart-other-parallel-basic/index.vue.mjs +15 -16
- package/es/components/chart-other-parallel-mul/index.vue.mjs +6 -7
- package/es/components/chart-other-radar/index.vue.mjs +20 -21
- package/es/components/chart-other-radar-stack/index.vue.mjs +6 -7
- package/es/components/chart-other-sunburst-basic/index.vue.mjs +12 -13
- package/es/components/chart-other-sunburst-basic2/index.vue.mjs +12 -13
- package/es/components/chart-other-sunburst-basic3/index.vue.mjs +12 -13
- package/es/components/chart-other-sunburst-basic4/index.vue.mjs +12 -13
- package/es/components/chart-other-sunburst-book/index.vue.mjs +7 -8
- package/es/components/chart-other-sunburst-flavors/index.vue.mjs +16 -17
- package/es/components/chart-other-sunburst-radius/index.vue.mjs +18 -19
- package/es/components/chart-other-theme-river/index.vue.mjs +3 -4
- package/es/components/chart-other-tree/index.vue.mjs +8 -9
- package/es/components/chart-other-tree-line/index.vue.mjs +7 -8
- package/es/components/chart-other-treemap/index.vue.mjs +9 -10
- package/es/components/chart-other-treemap-basic/index.vue.mjs +14 -15
- package/es/components/chart-other-word-cloud/index.vue.mjs +11 -12
- package/es/components/commons-echarts/compileAndRunEcharts.mjs +8 -9
- package/es/components/commons-loop-iterator/index.vue.mjs +2 -2
- package/es/components/commons-loop-iterator/index.vue2.mjs +3 -4
- package/es/components/commons-product-model/index.vue.mjs +2 -2
- package/es/components/commons-product-model/index.vue2.mjs +1 -1
- package/es/components/commons-three-loader/index.vue.mjs +1 -1
- package/es/components/commons-three-loader/index.vue2.mjs +1 -1
- package/es/components/commons-three-loader3/index.vue.mjs +1 -1
- package/es/components/commons-three-loader3/index.vue2.mjs +1 -1
- package/es/components/commons-weather/index.vue.mjs +2 -2
- package/es/components/commons-weather/index.vue2.mjs +1 -1
- package/es/components/commons-weather-dynamic/index.vue.mjs +1 -1
- package/es/components/commons-weather-dynamic/index.vue2.mjs +3 -4
- package/es/components/index.d.ts +111 -111
- package/es/components/index.mjs +360 -360
- package/es/components/interaction/button/index.vue.mjs +2 -2
- package/es/components/interaction/button/index.vue2.mjs +65 -65
- package/es/components/interaction/date-picker/components/common-date-picker/index.vue.mjs +2 -2
- package/es/components/interaction/date-picker/components/common-date-picker/index.vue2.mjs +64 -65
- package/es/components/interaction/date-picker/src/date-picker/index.d.ts +211 -211
- package/es/components/interaction/date-picker/src/date-picker/index.vue.d.ts +211 -211
- package/es/components/interaction/date-picker/src/date-picker-range/index.d.ts +211 -211
- package/es/components/interaction/date-picker/src/date-picker-range/index.vue.d.ts +211 -211
- package/es/components/interaction/tabs/index.vue.mjs +11 -12
- package/es/components/interaction/tabs-icon/index.vue.mjs +6 -7
- package/es/components/interaction-input/index.vue.mjs +1 -1
- package/es/components/interaction-input/index.vue2.mjs +3 -4
- package/es/components/interaction-select/index.vue.mjs +1 -1
- package/es/components/interaction-select/index.vue2.mjs +6 -7
- package/es/components/interaction-slider/index.vue.mjs +2 -2
- package/es/components/interaction-slider/index.vue2.mjs +34 -35
- package/es/components/interaction-switch/index.vue.mjs +2 -2
- package/es/components/interaction-switch/index.vue2.mjs +20 -20
- package/es/components/interaction-tabs/index.vue.mjs +2 -2
- package/es/components/interaction-tabs/index.vue2.mjs +1 -1
- package/es/components/interaction-tabs2/index.vue.mjs +2 -2
- package/es/components/interaction-tabs2/index.vue2.mjs +1 -1
- package/es/components/map-earth-basic/index.vue.d.ts +0 -2
- package/es/components/map-earth-basic/index.vue.mjs +14 -15
- package/es/components/map-earth-cool-tech/index.vue.mjs +14 -15
- package/es/components/map-earth-fly-line/index.vue.d.ts +0 -4
- package/es/components/map-earth-fly-line/index.vue.mjs +8 -9
- package/es/components/map-earth-hacker/index.vue.d.ts +2 -4
- package/es/components/map-earth-hacker/index.vue.mjs +19 -20
- package/es/components/map-earth-particle/index.vue.d.ts +0 -4
- package/es/components/map-earth-particle/index.vue.mjs +14 -15
- package/es/components/media-audio/index.vue.mjs +2 -2
- package/es/components/media-audio/index.vue2.mjs +5 -5
- package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
- package/es/components/media-audio-dynamic/index.vue2.mjs +4 -5
- package/es/components/media-flv/index.vue.mjs +1 -1
- package/es/components/media-iframe/index.vue.mjs +2 -2
- package/es/components/media-iframe/index.vue2.mjs +1 -1
- package/es/components/media-image-dynamic/index.vue.mjs +2 -2
- package/es/components/media-image-dynamic/index.vue2.mjs +6 -7
- package/es/components/media-m3u8/index.vue.mjs +1 -1
- package/es/components/media-m3u8-dynamic/index.vue.mjs +3 -4
- package/es/components/media-video/index.vue.mjs +2 -2
- package/es/components/media-video/index.vue2.mjs +1 -1
- package/es/components/media-video-dynamic/index.vue.mjs +2 -2
- package/es/components/media-video-dynamic/index.vue2.mjs +3 -4
- package/es/components/scene-amap2d/index.vue.mjs +1 -1
- package/es/components/scene-amap2d/index.vue2.mjs +13 -14
- package/es/components/scene-amap3d/index.vue.mjs +2 -2
- package/es/components/scene-amap3d/index.vue2.mjs +4 -5
- package/es/components/scene-default/index.vue.mjs +2 -2
- package/es/components/scene-default/index.vue2.mjs +1 -1
- package/es/components/scene-map3d/index.vue.mjs +2 -2
- package/es/components/scene-map3d/index.vue2.mjs +19 -20
- package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
- package/es/components/scene-ue-iframe/index.vue2.mjs +1 -1
- package/es/components/scene-ue-shj/index.vue.mjs +2 -2
- package/es/components/scene-ue-shj/index.vue2.mjs +1 -1
- package/es/components/scene-unity-iframe/index.vue.mjs +2 -2
- package/es/components/scene-unity-iframe/index.vue2.mjs +1 -1
- package/es/components/scene-unity-webgl/index.vue.mjs +1 -1
- package/es/components/scene-unity-webgl/index.vue2.mjs +1 -1
- package/es/components/scene-vr/index.vue.mjs +2 -2
- package/es/components/scene-vr/index.vue2.mjs +3 -3
- package/es/components/text/list/index.vue.mjs +10 -11
- package/es/components/text-count-down/index.vue.mjs +1 -1
- package/es/components/text-count-down/index.vue2.mjs +1 -1
- package/es/components/text-over-number/index.vue.mjs +1 -1
- package/es/components/text-over-number/index.vue2.mjs +15 -16
- package/es/components/text-real-time/index.vue.mjs +1 -1
- package/es/components/text-real-time/index.vue2.mjs +2 -2
- package/es/components/text-row-scroll/index.vue.mjs +2 -2
- package/es/components/text-row-scroll/index.vue2.mjs +30 -31
- package/es/components/text-table-basic/index.vue.mjs +1 -1
- package/es/components/text-table-basic/index.vue2.mjs +43 -44
- package/es/components/text-table-scroll/index.vue.mjs +2 -2
- package/es/components/text-table-scroll/index.vue2.mjs +58 -59
- package/es/components/text-text-dynamic/index.vue.mjs +1 -1
- package/es/components/text-text-dynamic/index.vue2.mjs +16 -17
- package/es/env.d.ts +0 -1
- package/es/index.d.ts +0 -7
- package/es/index.mjs +370 -384
- package/es/widgets.css +1 -1
- package/package.json +2 -2
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as h, createElementBlock as f, openBlock as v, createElementVNode as D, unref as E } from "vue";
|
|
2
2
|
import { cloneDeep as s } from "lodash";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { SHJDatasourceV2 as _, SHJParseEvent as c } from "@zerov/core";
|
|
4
|
+
import { useCommonChart as S } from "./hooks/useCommonChart.mjs";
|
|
5
5
|
import { useChart as k } from "../../hooks/useChart.mjs";
|
|
6
6
|
import { parseDataset as x } from "../../../../../commons/utils/parseDataset.mjs";
|
|
7
7
|
import { parseScatterData as y } from "../../../../../commons/utils/parseScatterData.mjs";
|
|
8
8
|
import { parseOtherData as B } from "../../../../../commons/utils/parseOtherData.mjs";
|
|
9
9
|
import { cloneSeries as C } from "../../../../../commons/utils/cloneSeries.mjs";
|
|
10
|
-
|
|
11
|
-
const L = { class: "zerov-widget" }, O = ["id"], F = /* @__PURE__ */ f({
|
|
10
|
+
const L = { class: "zerov-widget" }, O = ["id"], z = /* @__PURE__ */ h({
|
|
12
11
|
__name: "index",
|
|
13
12
|
props: {
|
|
14
13
|
option: {},
|
|
@@ -29,8 +28,8 @@ const L = { class: "zerov-widget" }, O = ["id"], F = /* @__PURE__ */ f({
|
|
|
29
28
|
"chart-mouseout",
|
|
30
29
|
"chart-contextmenu"
|
|
31
30
|
],
|
|
32
|
-
setup(
|
|
33
|
-
const e =
|
|
31
|
+
setup(u, { expose: m, emit: p }) {
|
|
32
|
+
const e = u, o = p, {
|
|
34
33
|
id: l,
|
|
35
34
|
setOption: a,
|
|
36
35
|
chart: d,
|
|
@@ -40,7 +39,7 @@ const L = { class: "zerov-widget" }, O = ["id"], F = /* @__PURE__ */ f({
|
|
|
40
39
|
basicOption: s(e.option),
|
|
41
40
|
useEvents: s(e.useEvents),
|
|
42
41
|
customRenderData: (t) => {
|
|
43
|
-
t = s(t),
|
|
42
|
+
t = s(t), _.parse({
|
|
44
43
|
tId: e.uuid,
|
|
45
44
|
sources: e.sources,
|
|
46
45
|
callback: ({ data: r }) => {
|
|
@@ -62,7 +61,7 @@ const L = { class: "zerov-widget" }, O = ["id"], F = /* @__PURE__ */ f({
|
|
|
62
61
|
},
|
|
63
62
|
emits: o
|
|
64
63
|
});
|
|
65
|
-
return
|
|
64
|
+
return S(e, i, n), m({
|
|
66
65
|
getEchartsInstance: () => d.value,
|
|
67
66
|
refresh: () => {
|
|
68
67
|
i(e.option), n(e.option);
|
|
@@ -73,7 +72,7 @@ const L = { class: "zerov-widget" }, O = ["id"], F = /* @__PURE__ */ f({
|
|
|
73
72
|
refreshData: () => {
|
|
74
73
|
i(e.option);
|
|
75
74
|
}
|
|
76
|
-
}), (t, r) => (v(),
|
|
75
|
+
}), (t, r) => (v(), f("div", L, [
|
|
77
76
|
D("div", {
|
|
78
77
|
id: E(l),
|
|
79
78
|
class: "widget"
|
|
@@ -82,5 +81,5 @@ const L = { class: "zerov-widget" }, O = ["id"], F = /* @__PURE__ */ f({
|
|
|
82
81
|
}
|
|
83
82
|
});
|
|
84
83
|
export {
|
|
85
|
-
|
|
84
|
+
z as default
|
|
86
85
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { defineComponent as v, createElementBlock as E, openBlock as _, createElementVNode as k, unref as x } from "vue";
|
|
2
2
|
import { cloneDeep as c } from "lodash";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { SHJDatasourceV2 as C, SHJParseEvent as d } from "@zerov/core";
|
|
4
|
+
import { useCommonChart as D } from "./hooks/useCommonChart.mjs";
|
|
5
5
|
import { useChart as L } from "../../hooks/useChart.mjs";
|
|
6
|
-
|
|
7
|
-
const w = { class: "zerov-widget" }, b = ["id"], J = /* @__PURE__ */ v({
|
|
6
|
+
const w = { class: "zerov-widget" }, b = ["id"], H = /* @__PURE__ */ v({
|
|
8
7
|
__name: "index",
|
|
9
8
|
props: {
|
|
10
9
|
option: {},
|
|
@@ -24,7 +23,7 @@ const w = { class: "zerov-widget" }, b = ["id"], J = /* @__PURE__ */ v({
|
|
|
24
23
|
basicOption: c(e.option),
|
|
25
24
|
useEvents: c(e.useEvents),
|
|
26
25
|
customRenderData: (t) => {
|
|
27
|
-
t = c(t),
|
|
26
|
+
t = c(t), C.parse({
|
|
28
27
|
tId: e.uuid,
|
|
29
28
|
sources: e.sources,
|
|
30
29
|
callback: (r) => {
|
|
@@ -40,7 +39,7 @@ const w = { class: "zerov-widget" }, b = ["id"], J = /* @__PURE__ */ v({
|
|
|
40
39
|
},
|
|
41
40
|
emits: s
|
|
42
41
|
});
|
|
43
|
-
return
|
|
42
|
+
return D(e, o, a), m({
|
|
44
43
|
getEchartsInstance: () => l.value,
|
|
45
44
|
refresh: () => {
|
|
46
45
|
o(e.option), a(e.option);
|
|
@@ -60,5 +59,5 @@ const w = { class: "zerov-widget" }, b = ["id"], J = /* @__PURE__ */ v({
|
|
|
60
59
|
}
|
|
61
60
|
});
|
|
62
61
|
export {
|
|
63
|
-
|
|
62
|
+
H as default
|
|
64
63
|
};
|
|
@@ -4,9 +4,9 @@ import { debounce as M, cloneDeep as L, isArray as n } from "lodash";
|
|
|
4
4
|
import T from "is-electron";
|
|
5
5
|
import * as h from "echarts";
|
|
6
6
|
import { nanoid as x } from "nanoid";
|
|
7
|
+
import { SHJParseEvent as m } from "@zerov/core";
|
|
7
8
|
import "echarts-wordcloud";
|
|
8
9
|
import "echarts-liquidfill";
|
|
9
|
-
import { SHJParseEvent as m } from "../../../../commons/plugins/event/index.mjs";
|
|
10
10
|
import { HoverLoop as Z } from "../utils/hoverLoop.mjs";
|
|
11
11
|
const z = (l) => {
|
|
12
12
|
const e = [];
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { defineComponent as u, watch as i, createElementBlock as v, openBlock as b, createElementVNode as E, unref as _ } from "vue";
|
|
2
2
|
import { cloneDeep as r, isEqual as O } from "lodash";
|
|
3
|
-
import { SHJDatasourceV2 as g } from "
|
|
3
|
+
import { SHJDatasourceV2 as g, SHJParseEvent as n } from "@zerov/core";
|
|
4
4
|
import { useChart as k } from "../../commons/core/useChart.mjs";
|
|
5
5
|
import { parseDataset as D } from "../../commons/utils/parseDataset.mjs";
|
|
6
6
|
import { cloneSeries as w } from "../../commons/utils/cloneSeries.mjs";
|
|
7
|
-
|
|
8
|
-
const x = { class: "zerov-widget" }, C = ["id"], S = u({ name: "zv-chart-other-candlestick-basic" }), y = /* @__PURE__ */ u({
|
|
7
|
+
const x = { class: "zerov-widget" }, C = ["id"], S = u({ name: "zv-chart-other-candlestick-basic" }), q = /* @__PURE__ */ u({
|
|
9
8
|
...S,
|
|
10
9
|
props: {
|
|
11
10
|
basicOption: {},
|
|
@@ -21,8 +20,8 @@ const x = { class: "zerov-widget" }, C = ["id"], S = u({ name: "zv-chart-other-c
|
|
|
21
20
|
"chart-mouseout",
|
|
22
21
|
"chart-contextmenu"
|
|
23
22
|
],
|
|
24
|
-
setup(
|
|
25
|
-
const e =
|
|
23
|
+
setup(p, { expose: d, emit: l }) {
|
|
24
|
+
const e = p, m = l, {
|
|
26
25
|
id: h,
|
|
27
26
|
setOption: o,
|
|
28
27
|
chart: f,
|
|
@@ -44,7 +43,7 @@ const x = { class: "zerov-widget" }, C = ["id"], S = u({ name: "zv-chart-other-c
|
|
|
44
43
|
}
|
|
45
44
|
});
|
|
46
45
|
},
|
|
47
|
-
emit:
|
|
46
|
+
emit: m
|
|
48
47
|
});
|
|
49
48
|
return i(() => e.sources, () => {
|
|
50
49
|
e.sources && e.sources.length > 0 && a(e.basicOption);
|
|
@@ -54,7 +53,7 @@ const x = { class: "zerov-widget" }, C = ["id"], S = u({ name: "zv-chart-other-c
|
|
|
54
53
|
O(s, t) || c(s);
|
|
55
54
|
}, {
|
|
56
55
|
deep: !0
|
|
57
|
-
}),
|
|
56
|
+
}), d({
|
|
58
57
|
getEchartsInstance: () => f.value,
|
|
59
58
|
refresh: () => {
|
|
60
59
|
e.sources && e.sources.length > 0 && c(e.basicOption), a(e.basicOption);
|
|
@@ -74,5 +73,5 @@ const x = { class: "zerov-widget" }, C = ["id"], S = u({ name: "zv-chart-other-c
|
|
|
74
73
|
}
|
|
75
74
|
});
|
|
76
75
|
export {
|
|
77
|
-
|
|
76
|
+
q as default
|
|
78
77
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { defineComponent as u, watch as n, createElementBlock as v, openBlock as E, createElementVNode as _, unref as b } from "vue";
|
|
2
2
|
import { cloneDeep as r, isEqual as O } from "lodash";
|
|
3
|
-
import g from "
|
|
4
|
-
import
|
|
3
|
+
import { SHJDatasourceV2 as g, SHJParseEvent as i } from "@zerov/core";
|
|
4
|
+
import k from "./default-option.json.mjs";
|
|
5
5
|
import { useChart as w } from "../../commons/core/useChart.mjs";
|
|
6
|
-
|
|
7
|
-
const D = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-candlestick-demo" }), S = /* @__PURE__ */ u({
|
|
6
|
+
const D = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-candlestick-demo" }), L = /* @__PURE__ */ u({
|
|
8
7
|
...C,
|
|
9
8
|
props: {
|
|
10
9
|
basicOption: {},
|
|
@@ -20,49 +19,49 @@ const D = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-c
|
|
|
20
19
|
"chart-mouseout",
|
|
21
20
|
"chart-contextmenu"
|
|
22
21
|
],
|
|
23
|
-
setup(p, { expose: d, emit:
|
|
24
|
-
const e = p,
|
|
22
|
+
setup(p, { expose: d, emit: l }) {
|
|
23
|
+
const e = p, m = l, {
|
|
25
24
|
id: h,
|
|
26
25
|
setOption: a,
|
|
27
26
|
chart: f,
|
|
28
|
-
renderChart:
|
|
29
|
-
renderData:
|
|
27
|
+
renderChart: c,
|
|
28
|
+
renderData: o
|
|
30
29
|
} = w({
|
|
31
30
|
basicOption: r(e.basicOption),
|
|
32
31
|
useEvents: r(e.useEvents),
|
|
33
32
|
customRenderData: (t) => {
|
|
34
|
-
t = r(t),
|
|
33
|
+
t = r(t), g.parse({
|
|
35
34
|
tId: e.uuid,
|
|
36
35
|
sources: e.sources,
|
|
37
36
|
callback: ({ data: s }) => {
|
|
38
37
|
try {
|
|
39
|
-
i.parseEvents(e.useEvents, "dataListener", s), a(
|
|
38
|
+
i.parseEvents(e.useEvents, "dataListener", s), a(k);
|
|
40
39
|
} catch {
|
|
41
40
|
i.parseEvents(e.useEvents, "dataListener", null), a(t);
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
44
|
},
|
|
46
|
-
emit:
|
|
45
|
+
emit: m
|
|
47
46
|
});
|
|
48
47
|
return n(() => e.sources, () => {
|
|
49
|
-
e.sources && e.sources.length > 0 &&
|
|
48
|
+
e.sources && e.sources.length > 0 && o(e.basicOption);
|
|
50
49
|
}, {
|
|
51
50
|
deep: !0
|
|
52
51
|
}), n(() => r(e.basicOption), (t, s) => {
|
|
53
|
-
O(t, s) ||
|
|
52
|
+
O(t, s) || c(t);
|
|
54
53
|
}, {
|
|
55
54
|
deep: !0
|
|
56
55
|
}), d({
|
|
57
56
|
getEchartsInstance: () => f.value,
|
|
58
57
|
refresh: () => {
|
|
59
|
-
e.sources && e.sources.length > 0 &&
|
|
58
|
+
e.sources && e.sources.length > 0 && c(e.basicOption), o(e.basicOption);
|
|
60
59
|
},
|
|
61
60
|
refreshView: () => {
|
|
62
|
-
e.sources && e.sources.length > 0 &&
|
|
61
|
+
e.sources && e.sources.length > 0 && c(e.basicOption);
|
|
63
62
|
},
|
|
64
63
|
refreshData: () => {
|
|
65
|
-
|
|
64
|
+
o(e.basicOption);
|
|
66
65
|
}
|
|
67
66
|
}), (t, s) => (E(), v("div", D, [
|
|
68
67
|
_("div", {
|
|
@@ -73,5 +72,5 @@ const D = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-c
|
|
|
73
72
|
}
|
|
74
73
|
});
|
|
75
74
|
export {
|
|
76
|
-
|
|
75
|
+
L as default
|
|
77
76
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { defineComponent as u, watch as n, createElementBlock as v, openBlock as E, createElementVNode as _, unref as b } from "vue";
|
|
2
2
|
import { cloneDeep as r, isEqual as O } from "lodash";
|
|
3
|
-
import { SHJDatasourceV2 as g } from "
|
|
3
|
+
import { SHJDatasourceV2 as g, SHJParseEvent as i } from "@zerov/core";
|
|
4
4
|
import { useChart as k } from "../../commons/core/useChart.mjs";
|
|
5
5
|
import { parseOtherData as D } from "../../commons/utils/parseOtherData.mjs";
|
|
6
|
-
|
|
7
|
-
const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-candlestick-shanghai" }), S = /* @__PURE__ */ u({
|
|
6
|
+
const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-candlestick-shanghai" }), L = /* @__PURE__ */ u({
|
|
8
7
|
...C,
|
|
9
8
|
props: {
|
|
10
9
|
basicOption: {},
|
|
@@ -21,12 +20,12 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-c
|
|
|
21
20
|
"chart-contextmenu"
|
|
22
21
|
],
|
|
23
22
|
setup(p, { expose: h, emit: d }) {
|
|
24
|
-
const e = p,
|
|
25
|
-
id:
|
|
26
|
-
setOption:
|
|
23
|
+
const e = p, l = d, {
|
|
24
|
+
id: m,
|
|
25
|
+
setOption: o,
|
|
27
26
|
chart: f,
|
|
28
27
|
renderChart: c,
|
|
29
|
-
renderData:
|
|
28
|
+
renderData: a
|
|
30
29
|
} = k({
|
|
31
30
|
basicOption: r(e.basicOption),
|
|
32
31
|
useEvents: r(e.useEvents),
|
|
@@ -36,17 +35,17 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-c
|
|
|
36
35
|
sources: e.sources,
|
|
37
36
|
callback: ({ data: s }) => {
|
|
38
37
|
try {
|
|
39
|
-
i.parseEvents(e.useEvents, "dataListener", s),
|
|
38
|
+
i.parseEvents(e.useEvents, "dataListener", s), o(D(r(s), t));
|
|
40
39
|
} catch {
|
|
41
|
-
i.parseEvents(e.useEvents, "dataListener", null),
|
|
40
|
+
i.parseEvents(e.useEvents, "dataListener", null), o(t);
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
44
|
},
|
|
46
|
-
emit:
|
|
45
|
+
emit: l
|
|
47
46
|
});
|
|
48
47
|
return n(() => e.sources, () => {
|
|
49
|
-
e.sources && e.sources.length > 0 &&
|
|
48
|
+
e.sources && e.sources.length > 0 && a(e.basicOption);
|
|
50
49
|
}, {
|
|
51
50
|
deep: !0
|
|
52
51
|
}), n(() => r(e.basicOption), (t, s) => {
|
|
@@ -56,22 +55,22 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-c
|
|
|
56
55
|
}), h({
|
|
57
56
|
getEchartsInstance: () => f.value,
|
|
58
57
|
refresh: () => {
|
|
59
|
-
e.sources && e.sources.length > 0 && c(e.basicOption),
|
|
58
|
+
e.sources && e.sources.length > 0 && c(e.basicOption), a(e.basicOption);
|
|
60
59
|
},
|
|
61
60
|
refreshView: () => {
|
|
62
61
|
e.sources && e.sources.length > 0 && c(e.basicOption);
|
|
63
62
|
},
|
|
64
63
|
refreshData: () => {
|
|
65
|
-
|
|
64
|
+
a(e.basicOption);
|
|
66
65
|
}
|
|
67
66
|
}), (t, s) => (E(), v("div", w, [
|
|
68
67
|
_("div", {
|
|
69
|
-
id: b(
|
|
68
|
+
id: b(m),
|
|
70
69
|
class: "widget"
|
|
71
70
|
}, null, 8, x)
|
|
72
71
|
]));
|
|
73
72
|
}
|
|
74
73
|
});
|
|
75
74
|
export {
|
|
76
|
-
|
|
75
|
+
L as default
|
|
77
76
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { defineComponent as u, watch as i, createElementBlock as v, openBlock as b, createElementVNode as E, unref as O } from "vue";
|
|
2
2
|
import { cloneDeep as r, isEqual as _ } from "lodash";
|
|
3
|
-
import { SHJDatasourceV2 as g } from "
|
|
3
|
+
import { SHJDatasourceV2 as g, SHJParseEvent as n } from "@zerov/core";
|
|
4
4
|
import { useChart as D } from "../../commons/core/useChart.mjs";
|
|
5
5
|
import { parseOtherData as k } from "../../commons/utils/parseOtherData.mjs";
|
|
6
|
-
|
|
7
|
-
const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-circular-graph" }), S = /* @__PURE__ */ u({
|
|
6
|
+
const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-circular-graph" }), L = /* @__PURE__ */ u({
|
|
8
7
|
...C,
|
|
9
8
|
props: {
|
|
10
9
|
basicOption: {},
|
|
@@ -20,13 +19,13 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-c
|
|
|
20
19
|
"chart-mouseout",
|
|
21
20
|
"chart-contextmenu"
|
|
22
21
|
],
|
|
23
|
-
setup(p, { expose:
|
|
24
|
-
const e = p,
|
|
25
|
-
id:
|
|
26
|
-
setOption:
|
|
22
|
+
setup(p, { expose: d, emit: h }) {
|
|
23
|
+
const e = p, l = h, {
|
|
24
|
+
id: m,
|
|
25
|
+
setOption: o,
|
|
27
26
|
chart: f,
|
|
28
27
|
renderChart: c,
|
|
29
|
-
renderData:
|
|
28
|
+
renderData: a
|
|
30
29
|
} = D({
|
|
31
30
|
basicOption: r(e.basicOption),
|
|
32
31
|
useEvents: r(e.useEvents),
|
|
@@ -36,42 +35,42 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-c
|
|
|
36
35
|
sources: e.sources,
|
|
37
36
|
callback: ({ data: s }) => {
|
|
38
37
|
try {
|
|
39
|
-
n.parseEvents(e.useEvents, "dataListener", s),
|
|
38
|
+
n.parseEvents(e.useEvents, "dataListener", s), o(k(s, e.basicOption));
|
|
40
39
|
} catch {
|
|
41
|
-
n.parseEvents(e.useEvents, "dataListener", null),
|
|
40
|
+
n.parseEvents(e.useEvents, "dataListener", null), o(t);
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
44
|
},
|
|
46
|
-
emit:
|
|
45
|
+
emit: l
|
|
47
46
|
});
|
|
48
47
|
return i(() => e.sources, () => {
|
|
49
|
-
|
|
48
|
+
a(e.basicOption);
|
|
50
49
|
}, {
|
|
51
50
|
deep: !0
|
|
52
51
|
}), i(() => r(e.basicOption), (t, s) => {
|
|
53
52
|
_(t, s) || c(t);
|
|
54
53
|
}, {
|
|
55
54
|
deep: !0
|
|
56
|
-
}),
|
|
55
|
+
}), d({
|
|
57
56
|
getEchartsInstance: () => f.value,
|
|
58
57
|
refresh: () => {
|
|
59
|
-
e.sources && e.sources.length > 0 && c(e.basicOption),
|
|
58
|
+
e.sources && e.sources.length > 0 && c(e.basicOption), a(e.basicOption);
|
|
60
59
|
},
|
|
61
60
|
refreshView: () => {
|
|
62
61
|
e.sources && e.sources.length > 0 && c(e.basicOption);
|
|
63
62
|
},
|
|
64
63
|
refreshData: () => {
|
|
65
|
-
|
|
64
|
+
a(e.basicOption);
|
|
66
65
|
}
|
|
67
66
|
}), (t, s) => (b(), v("div", w, [
|
|
68
67
|
E("div", {
|
|
69
|
-
id: O(
|
|
68
|
+
id: O(m),
|
|
70
69
|
class: "widget"
|
|
71
70
|
}, null, 8, x)
|
|
72
71
|
]));
|
|
73
72
|
}
|
|
74
73
|
});
|
|
75
74
|
export {
|
|
76
|
-
|
|
75
|
+
L as default
|
|
77
76
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent as u, watch as
|
|
1
|
+
import { defineComponent as u, watch as n, createElementBlock as v, openBlock as b, createElementVNode as E, unref as O } from "vue";
|
|
2
2
|
import { cloneDeep as r, isEqual as _ } from "lodash";
|
|
3
|
-
import { SHJDatasourceV2 as D } from "
|
|
3
|
+
import { SHJDatasourceV2 as D, SHJParseEvent as i } from "@zerov/core";
|
|
4
4
|
import { useChart as g } from "../../commons/core/useChart.mjs";
|
|
5
5
|
import { parseOtherData as k } from "../../commons/utils/parseOtherData.mjs";
|
|
6
|
-
|
|
7
|
-
const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-force" }), S = /* @__PURE__ */ u({
|
|
6
|
+
const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-force" }), L = /* @__PURE__ */ u({
|
|
8
7
|
...C,
|
|
9
8
|
props: {
|
|
10
9
|
basicOption: {},
|
|
@@ -20,13 +19,13 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-f
|
|
|
20
19
|
"chart-mouseout",
|
|
21
20
|
"chart-contextmenu"
|
|
22
21
|
],
|
|
23
|
-
setup(p, { expose:
|
|
24
|
-
const e = p,
|
|
22
|
+
setup(p, { expose: d, emit: h }) {
|
|
23
|
+
const e = p, m = h, {
|
|
25
24
|
id: l,
|
|
26
25
|
setOption: a,
|
|
27
26
|
chart: f,
|
|
28
|
-
renderChart:
|
|
29
|
-
renderData:
|
|
27
|
+
renderChart: c,
|
|
28
|
+
renderData: o
|
|
30
29
|
} = g({
|
|
31
30
|
basicOption: r(e.basicOption),
|
|
32
31
|
useEvents: r(e.useEvents),
|
|
@@ -36,33 +35,33 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-f
|
|
|
36
35
|
sources: e.sources,
|
|
37
36
|
callback: ({ data: s }) => {
|
|
38
37
|
try {
|
|
39
|
-
|
|
38
|
+
i.parseEvents(e.useEvents, "dataListener", s), a(k(s, e.basicOption));
|
|
40
39
|
} catch {
|
|
41
|
-
|
|
40
|
+
i.parseEvents(e.useEvents, "dataListener", null), a(t);
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
44
|
},
|
|
46
|
-
emit:
|
|
45
|
+
emit: m
|
|
47
46
|
});
|
|
48
|
-
return
|
|
49
|
-
|
|
47
|
+
return n(() => e.sources, () => {
|
|
48
|
+
o(e.basicOption);
|
|
50
49
|
}, {
|
|
51
50
|
deep: !0
|
|
52
|
-
}),
|
|
53
|
-
_(t, s) ||
|
|
51
|
+
}), n(() => r(e.basicOption), (t, s) => {
|
|
52
|
+
_(t, s) || c(t);
|
|
54
53
|
}, {
|
|
55
54
|
deep: !0
|
|
56
|
-
}),
|
|
55
|
+
}), d({
|
|
57
56
|
getEchartsInstance: () => f.value,
|
|
58
57
|
refresh: () => {
|
|
59
|
-
e.sources && e.sources.length > 0 &&
|
|
58
|
+
e.sources && e.sources.length > 0 && c(e.basicOption), o(e.basicOption);
|
|
60
59
|
},
|
|
61
60
|
refreshView: () => {
|
|
62
|
-
e.sources && e.sources.length > 0 &&
|
|
61
|
+
e.sources && e.sources.length > 0 && c(e.basicOption);
|
|
63
62
|
},
|
|
64
63
|
refreshData: () => {
|
|
65
|
-
|
|
64
|
+
o(e.basicOption);
|
|
66
65
|
}
|
|
67
66
|
}), (t, s) => (b(), v("div", w, [
|
|
68
67
|
E("div", {
|
|
@@ -73,5 +72,5 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-f
|
|
|
73
72
|
}
|
|
74
73
|
});
|
|
75
74
|
export {
|
|
76
|
-
|
|
75
|
+
L as default
|
|
77
76
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent as u, watch as
|
|
1
|
+
import { defineComponent as u, watch as n, createElementBlock as v, openBlock as b, createElementVNode as E, unref as O } from "vue";
|
|
2
2
|
import { cloneDeep as r, isEqual as _ } from "lodash";
|
|
3
|
-
import { SHJDatasourceV2 as D } from "
|
|
3
|
+
import { SHJDatasourceV2 as D, SHJParseEvent as i } from "@zerov/core";
|
|
4
4
|
import { useChart as g } from "../../commons/core/useChart.mjs";
|
|
5
5
|
import { parseOtherData as k } from "../../commons/utils/parseOtherData.mjs";
|
|
6
|
-
|
|
7
|
-
const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-force2" }), S = /* @__PURE__ */ u({
|
|
6
|
+
const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-force2" }), L = /* @__PURE__ */ u({
|
|
8
7
|
...C,
|
|
9
8
|
props: {
|
|
10
9
|
basicOption: {},
|
|
@@ -20,13 +19,13 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-f
|
|
|
20
19
|
"chart-mouseout",
|
|
21
20
|
"chart-contextmenu"
|
|
22
21
|
],
|
|
23
|
-
setup(p, { expose:
|
|
24
|
-
const e = p,
|
|
22
|
+
setup(p, { expose: d, emit: h }) {
|
|
23
|
+
const e = p, m = h, {
|
|
25
24
|
id: l,
|
|
26
25
|
setOption: a,
|
|
27
26
|
chart: f,
|
|
28
|
-
renderChart:
|
|
29
|
-
renderData:
|
|
27
|
+
renderChart: c,
|
|
28
|
+
renderData: o
|
|
30
29
|
} = g({
|
|
31
30
|
basicOption: r(e.basicOption),
|
|
32
31
|
useEvents: r(e.useEvents),
|
|
@@ -36,33 +35,33 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-f
|
|
|
36
35
|
sources: e.sources,
|
|
37
36
|
callback: ({ data: s }) => {
|
|
38
37
|
try {
|
|
39
|
-
|
|
38
|
+
i.parseEvents(e.useEvents, "dataListener", s), a(k(s, e.basicOption));
|
|
40
39
|
} catch {
|
|
41
|
-
|
|
40
|
+
i.parseEvents(e.useEvents, "dataListener", null), a(t);
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
44
|
},
|
|
46
|
-
emit:
|
|
45
|
+
emit: m
|
|
47
46
|
});
|
|
48
|
-
return
|
|
49
|
-
|
|
47
|
+
return n(() => e.sources, () => {
|
|
48
|
+
o(e.basicOption);
|
|
50
49
|
}, {
|
|
51
50
|
deep: !0
|
|
52
|
-
}),
|
|
53
|
-
_(t, s) ||
|
|
51
|
+
}), n(() => r(e.basicOption), (t, s) => {
|
|
52
|
+
_(t, s) || c(t);
|
|
54
53
|
}, {
|
|
55
54
|
deep: !0
|
|
56
|
-
}),
|
|
55
|
+
}), d({
|
|
57
56
|
getEchartsInstance: () => f.value,
|
|
58
57
|
refresh: () => {
|
|
59
|
-
e.sources && e.sources.length > 0 &&
|
|
58
|
+
e.sources && e.sources.length > 0 && c(e.basicOption), o(e.basicOption);
|
|
60
59
|
},
|
|
61
60
|
refreshView: () => {
|
|
62
|
-
e.sources && e.sources.length > 0 &&
|
|
61
|
+
e.sources && e.sources.length > 0 && c(e.basicOption);
|
|
63
62
|
},
|
|
64
63
|
refreshData: () => {
|
|
65
|
-
|
|
64
|
+
o(e.basicOption);
|
|
66
65
|
}
|
|
67
66
|
}), (t, s) => (b(), v("div", w, [
|
|
68
67
|
E("div", {
|
|
@@ -73,5 +72,5 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-f
|
|
|
73
72
|
}
|
|
74
73
|
});
|
|
75
74
|
export {
|
|
76
|
-
|
|
75
|
+
L as default
|
|
77
76
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { defineComponent as u, watch as n, createElementBlock as v, openBlock as b, createElementVNode as E, unref as O } from "vue";
|
|
2
2
|
import { cloneDeep as r, isEqual as _ } from "lodash";
|
|
3
|
-
import { SHJDatasourceV2 as D } from "
|
|
3
|
+
import { SHJDatasourceV2 as D, SHJParseEvent as i } from "@zerov/core";
|
|
4
4
|
import { useChart as g } from "../../commons/core/useChart.mjs";
|
|
5
5
|
import { parseOtherData as k } from "../../commons/utils/parseOtherData.mjs";
|
|
6
|
-
|
|
7
|
-
const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-funnel" }), S = /* @__PURE__ */ u({
|
|
6
|
+
const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-funnel" }), L = /* @__PURE__ */ u({
|
|
8
7
|
...C,
|
|
9
8
|
props: {
|
|
10
9
|
basicOption: {},
|
|
@@ -20,13 +19,13 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-f
|
|
|
20
19
|
"chart-mouseout",
|
|
21
20
|
"chart-contextmenu"
|
|
22
21
|
],
|
|
23
|
-
setup(p, { expose:
|
|
24
|
-
const e = p,
|
|
25
|
-
id:
|
|
22
|
+
setup(p, { expose: d, emit: h }) {
|
|
23
|
+
const e = p, l = h, {
|
|
24
|
+
id: m,
|
|
26
25
|
setOption: a,
|
|
27
26
|
chart: f,
|
|
28
|
-
renderChart:
|
|
29
|
-
renderData:
|
|
27
|
+
renderChart: c,
|
|
28
|
+
renderData: o
|
|
30
29
|
} = g({
|
|
31
30
|
basicOption: r(e.basicOption),
|
|
32
31
|
useEvents: r(e.useEvents),
|
|
@@ -43,35 +42,35 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-f
|
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
44
|
},
|
|
46
|
-
emit:
|
|
45
|
+
emit: l
|
|
47
46
|
});
|
|
48
47
|
return n(() => e.sources, () => {
|
|
49
|
-
|
|
48
|
+
o(e.basicOption);
|
|
50
49
|
}, {
|
|
51
50
|
deep: !0
|
|
52
51
|
}), n(() => r(e.basicOption), (t, s) => {
|
|
53
|
-
_(t, s) ||
|
|
52
|
+
_(t, s) || c(t);
|
|
54
53
|
}, {
|
|
55
54
|
deep: !0
|
|
56
|
-
}),
|
|
55
|
+
}), d({
|
|
57
56
|
getEchartsInstance: () => f.value,
|
|
58
57
|
refresh: () => {
|
|
59
|
-
e.sources && e.sources.length > 0 &&
|
|
58
|
+
e.sources && e.sources.length > 0 && c(e.basicOption), o(e.basicOption);
|
|
60
59
|
},
|
|
61
60
|
refreshView: () => {
|
|
62
|
-
e.sources && e.sources.length > 0 &&
|
|
61
|
+
e.sources && e.sources.length > 0 && c(e.basicOption);
|
|
63
62
|
},
|
|
64
63
|
refreshData: () => {
|
|
65
|
-
|
|
64
|
+
o(e.basicOption);
|
|
66
65
|
}
|
|
67
66
|
}), (t, s) => (b(), v("div", w, [
|
|
68
67
|
E("div", {
|
|
69
|
-
id: O(
|
|
68
|
+
id: O(m),
|
|
70
69
|
class: "widget"
|
|
71
70
|
}, null, 8, x)
|
|
72
71
|
]));
|
|
73
72
|
}
|
|
74
73
|
});
|
|
75
74
|
export {
|
|
76
|
-
|
|
75
|
+
L as default
|
|
77
76
|
};
|