@shjjs/visual-ui 1.0.33 → 1.0.34
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/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/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 +359 -373
- package/es/widgets.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as a, ref as t, createElementBlock as P, openBlock as V } from "vue";
|
|
2
2
|
import { nanoid as b } from "nanoid";
|
|
3
|
-
import { SHJParseEvent as n } from "
|
|
3
|
+
import { SHJParseEvent as n } from "@zerov/core";
|
|
4
4
|
const h = ["poster", "autoplay", "controls", "loop", "muted", "src"], O = a({ name: "zv-media-video" }), R = /* @__PURE__ */ a({
|
|
5
5
|
...O,
|
|
6
6
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5f2c33af"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { defineComponent as v, watch as D, ref as a, createElementBlock as w, openBlock as T, unref as u, onMounted as z, nextTick as B } from "vue";
|
|
2
2
|
import { nanoid as H } from "nanoid";
|
|
3
3
|
import { cloneDeep as J, isEqual as L } from "lodash";
|
|
4
|
-
import { SHJDatasourceV2 as R } from "
|
|
5
|
-
|
|
6
|
-
const S = ["poster", "autoplay", "controls", "loop", "muted", "src"], q = v({ name: "zv-media-video-dynamic" }), G = /* @__PURE__ */ v({
|
|
4
|
+
import { SHJParseEvent as n, SHJDatasourceV2 as R } from "@zerov/core";
|
|
5
|
+
const S = ["poster", "autoplay", "controls", "loop", "muted", "src"], q = v({ name: "zv-media-video-dynamic" }), F = /* @__PURE__ */ v({
|
|
7
6
|
...q,
|
|
8
7
|
props: {
|
|
9
8
|
basicOption: {},
|
|
@@ -93,5 +92,5 @@ const S = ["poster", "autoplay", "controls", "loop", "muted", "src"], q = v({ na
|
|
|
93
92
|
}
|
|
94
93
|
});
|
|
95
94
|
export {
|
|
96
|
-
|
|
95
|
+
F as default
|
|
97
96
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d5ab7890"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -2,15 +2,14 @@ import { defineComponent as M, watch as u, createElementBlock as X, openBlock as
|
|
|
2
2
|
import le from "@amap/amap-jsapi-loader";
|
|
3
3
|
import ne from "axios";
|
|
4
4
|
import { nanoid as ce } from "nanoid";
|
|
5
|
-
import { SHJDatasourceV2 as ie } from "
|
|
6
|
-
|
|
7
|
-
const de = (p) => (oe("data-v-1a9e6290"), p = p(), re(), p), ue = /* @__PURE__ */ de(() => /* @__PURE__ */ se("div", {
|
|
5
|
+
import { SHJParseEvent as y, SHJDatasourceV2 as ie } from "@zerov/core";
|
|
6
|
+
const de = (m) => (oe("data-v-d5ab7890"), m = m(), re(), m), ue = /* @__PURE__ */ de(() => /* @__PURE__ */ se("div", {
|
|
8
7
|
id: "zerov-amap-2d",
|
|
9
8
|
class: "zerov-amap-container"
|
|
10
9
|
}, null, -1)), ye = [
|
|
11
10
|
ue
|
|
12
|
-
],
|
|
13
|
-
...
|
|
11
|
+
], pe = M({ name: "zv-scene-amap2d" }), he = /* @__PURE__ */ M({
|
|
12
|
+
...pe,
|
|
14
13
|
props: {
|
|
15
14
|
basicOption: {},
|
|
16
15
|
sources: {},
|
|
@@ -26,8 +25,8 @@ const de = (p) => (oe("data-v-1a9e6290"), p = p(), re(), p), ue = /* @__PURE__ *
|
|
|
26
25
|
"amap2d-scene-dragging",
|
|
27
26
|
"amap2d-scene-dragend"
|
|
28
27
|
],
|
|
29
|
-
setup(
|
|
30
|
-
const o =
|
|
28
|
+
setup(m, { expose: I, emit: A }) {
|
|
29
|
+
const o = m, p = A;
|
|
31
30
|
y.parseEvents(o.useEvents, "on-page-loaded", null);
|
|
32
31
|
const B = () => {
|
|
33
32
|
const r = E(), c = E(), C = g(!1), v = g(), b = g(), h = g(), d = g(), S = (a) => {
|
|
@@ -93,18 +92,18 @@ const de = (p) => (oe("data-v-1a9e6290"), p = p(), re(), p), ue = /* @__PURE__ *
|
|
|
93
92
|
}
|
|
94
93
|
}), r.value.addControl(b.value), x(e), r.value.on("complete", () => {
|
|
95
94
|
setTimeout(() => {
|
|
96
|
-
C.value = !0,
|
|
95
|
+
C.value = !0, p("amap2d-scene-success"), y.parseEvents(o.useEvents, "amap2d-scene-success", null);
|
|
97
96
|
}, 666);
|
|
98
97
|
}), r.value.on("zoomstart", () => {
|
|
99
|
-
|
|
98
|
+
p("amap2d-scene-zoomstart"), y.parseEvents(o.useEvents, "amap2d-scene-zoomstart", null);
|
|
100
99
|
}), r.value.on("zoomend", () => {
|
|
101
|
-
|
|
100
|
+
p("amap2d-scene-zoomend"), y.parseEvents(o.useEvents, "amap2d-scene-zoomend", null);
|
|
102
101
|
}), r.value.on("click", (t) => {
|
|
103
|
-
|
|
102
|
+
p("amap2d-scene-mapclick", t.lnglat), y.parseEvents(o.useEvents, "amap2d-scene-mapclick", t.lnglat);
|
|
104
103
|
}), r.value.on("dragstart", (t) => {
|
|
105
|
-
|
|
104
|
+
p("amap2d-scene-dragstart", t.lnglat), y.parseEvents(o.useEvents, "amap2d-scene-dragstart", t.lnglat);
|
|
106
105
|
}), r.value.on("dragend", (t) => {
|
|
107
|
-
|
|
106
|
+
p("amap2d-scene-dragend", t.lnglat), y.parseEvents(o.useEvents, "amap2d-scene-dragend", t.lnglat);
|
|
108
107
|
});
|
|
109
108
|
}).catch((e) => {
|
|
110
109
|
});
|
|
@@ -439,5 +438,5 @@ const de = (p) => (oe("data-v-1a9e6290"), p = p(), re(), p), ue = /* @__PURE__ *
|
|
|
439
438
|
}
|
|
440
439
|
});
|
|
441
440
|
export {
|
|
442
|
-
|
|
441
|
+
he as default
|
|
443
442
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-74479e7a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -3,14 +3,13 @@ import ce from "@amap/amap-jsapi-loader";
|
|
|
3
3
|
import de from "axios";
|
|
4
4
|
import { nanoid as ue } from "nanoid";
|
|
5
5
|
import { debounce as w } from "lodash";
|
|
6
|
-
import { SHJDatasourceV2 as ye } from "
|
|
7
|
-
|
|
8
|
-
const ge = (p) => (oe("data-v-9ab6fad4"), p = p(), ie(), p), me = /* @__PURE__ */ ge(() => /* @__PURE__ */ ne("div", {
|
|
6
|
+
import { SHJParseEvent as y, SHJDatasourceV2 as ye } from "@zerov/core";
|
|
7
|
+
const ge = (p) => (oe("data-v-74479e7a"), p = p(), ie(), p), me = /* @__PURE__ */ ge(() => /* @__PURE__ */ ne("div", {
|
|
9
8
|
id: "zerov-amap-3d",
|
|
10
9
|
class: "zerov-amap-container"
|
|
11
10
|
}, null, -1)), fe = [
|
|
12
11
|
me
|
|
13
|
-
], ve = I({ name: "zv-scene-amap3d" }),
|
|
12
|
+
], ve = I({ name: "zv-scene-amap3d" }), xe = /* @__PURE__ */ I({
|
|
14
13
|
...ve,
|
|
15
14
|
props: {
|
|
16
15
|
basicOption: {},
|
|
@@ -565,5 +564,5 @@ const ge = (p) => (oe("data-v-9ab6fad4"), p = p(), ie(), p), me = /* @__PURE__ *
|
|
|
565
564
|
}
|
|
566
565
|
});
|
|
567
566
|
export {
|
|
568
|
-
|
|
567
|
+
xe as default
|
|
569
568
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-82d51995"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as r, createElementBlock as u, openBlock as l, normalizeStyle as p } from "vue";
|
|
2
|
-
import { SHJParseEvent as d } from "
|
|
2
|
+
import { SHJParseEvent as d } from "@zerov/core";
|
|
3
3
|
const i = r({ name: "zv-scene-default" }), k = /* @__PURE__ */ r({
|
|
4
4
|
...i,
|
|
5
5
|
props: {
|
|
@@ -2,7 +2,7 @@ import o from "./index.vue2.mjs";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ff3dd11b"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { defineComponent as P, ref as
|
|
1
|
+
import { defineComponent as P, ref as y, onMounted as Q, onBeforeUnmount as X, computed as Y, watch as h, createElementBlock as d, openBlock as p, normalizeClass as L, createCommentVNode as E, normalizeStyle as m, Fragment as R, renderList as T, createElementVNode as I, toDisplayString as w, unref as Z } from "vue";
|
|
2
2
|
import { cloneDeep as v, isEqual as k } from "lodash";
|
|
3
3
|
import $ from "gsap";
|
|
4
4
|
import { useFps as x } from "@vueuse/core";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { SHJParseEvent as i, SHJDatasourceV2 as ee } from "@zerov/core";
|
|
6
|
+
import { World as te } from "./map3d/map.mjs";
|
|
7
|
+
import { initWatch as ae } from "./watch.mjs";
|
|
7
8
|
import "three";
|
|
8
9
|
import "d3-geo";
|
|
9
10
|
import "three/examples/jsm/controls/OrbitControls";
|
|
10
11
|
import "three/examples/jsm/loaders/GLTFLoader";
|
|
11
12
|
import "three/examples/jsm/loaders/DRACOLoader.js";
|
|
12
|
-
import { createHistory as
|
|
13
|
+
import { createHistory as oe } from "./map3d/mini3d/utils/CreateHistory.mjs";
|
|
13
14
|
import "three/examples/jsm/libs/lil-gui.module.min";
|
|
14
15
|
import "three/examples/jsm/utils/BufferGeometryUtils";
|
|
15
16
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
16
|
-
import { SHJDatasourceV2 as oe } from "../../commons/plugins/datasource/index.mjs";
|
|
17
17
|
import { autoInstallFont as H, jsonToCssStyle as O } from "../../commons/utils/json2css.mjs";
|
|
18
|
-
import { SHJParseEvent as i } from "../../commons/plugins/event/index.mjs";
|
|
19
18
|
const le = { class: "value" }, ne = ["onClick"], re = {
|
|
20
19
|
key: 3,
|
|
21
20
|
class: "fps"
|
|
22
|
-
}, ie = P({ name: "zv-scene-map3d" }),
|
|
21
|
+
}, ie = P({ name: "zv-scene-map3d" }), Ce = /* @__PURE__ */ P({
|
|
23
22
|
...ie,
|
|
24
23
|
props: {
|
|
25
24
|
basicOption: {},
|
|
@@ -43,8 +42,8 @@ const le = { class: "value" }, ne = ["onClick"], re = {
|
|
|
43
42
|
setup(V, { expose: N, emit: j }) {
|
|
44
43
|
const o = V, s = j;
|
|
45
44
|
i.parseEvents(o.useEvents, "on-page-loaded", null);
|
|
46
|
-
const l =
|
|
47
|
-
l.value.cleanAllBar(), l.value.cleanAllScatter(), l.value.cleanAllFlyLine(), l.value.createAllRegionalLevel(), o.sources && o.sources.length > 0 &&
|
|
45
|
+
const l = y(), C = y(!1), B = y(!1), S = "zerov-map3d-scene", A = "zerov-map3d-scene-wrap", n = new oe(), g = y(!1), b = (e = !0) => {
|
|
46
|
+
l.value.cleanAllBar(), l.value.cleanAllScatter(), l.value.cleanAllFlyLine(), l.value.createAllRegionalLevel(), o.sources && o.sources.length > 0 && ee.parse({
|
|
48
47
|
tId: o.uuid,
|
|
49
48
|
sources: o.sources,
|
|
50
49
|
callback: (a) => {
|
|
@@ -60,7 +59,7 @@ const le = { class: "value" }, ne = ["onClick"], re = {
|
|
|
60
59
|
document.getElementById(S) && document.getElementById(A).removeChild(document.getElementById(S));
|
|
61
60
|
const e = document.createElement("canvas");
|
|
62
61
|
e.id = S, e.className = "zerov-map-3d", e.style.width = "100%", e.style.height = "100%", document.getElementById(A).appendChild(e);
|
|
63
|
-
}, f = (e) => (C.value = !1, B.value = !1, l.value && (l.value.destroy(), l.value = null), D(), new
|
|
62
|
+
}, f = (e) => (C.value = !1, B.value = !1, l.value && (l.value.destroy(), l.value = null), D(), new te(document.getElementById(S), { geoProjectionCenter: [108.55, 36.32] }, e, {
|
|
64
63
|
onAreaMouseover: (t) => {
|
|
65
64
|
s("on-area-mouseover", t), i.parseEvents(o.useEvents, "on-area-mouseover", t);
|
|
66
65
|
},
|
|
@@ -92,7 +91,7 @@ const le = { class: "value" }, ne = ["onClick"], re = {
|
|
|
92
91
|
}));
|
|
93
92
|
Q(() => {
|
|
94
93
|
setTimeout(() => {
|
|
95
|
-
l.value = f(o.basicOption), n.push(o.basicOption.scene.defaultMapAdcode),
|
|
94
|
+
l.value = f(o.basicOption), n.push(o.basicOption.scene.defaultMapAdcode), ae(o, l, f, b, J);
|
|
96
95
|
}, 0), window.addEventListener("resize", () => {
|
|
97
96
|
l.value = f(o.basicOption);
|
|
98
97
|
});
|
|
@@ -130,7 +129,7 @@ const le = { class: "value" }, ne = ["onClick"], re = {
|
|
|
130
129
|
// 更新相机位置
|
|
131
130
|
setCameraPosition: (e, a, t) => U(e, a, t)
|
|
132
131
|
});
|
|
133
|
-
const _ = x(), W =
|
|
132
|
+
const _ = x(), W = y(), q = (e) => {
|
|
134
133
|
if (W.value && e) {
|
|
135
134
|
H(o.basicOption.backButtonCss.fontFamily);
|
|
136
135
|
const a = `url(${e.backgroundImage})`;
|
|
@@ -142,7 +141,7 @@ const le = { class: "value" }, ne = ["onClick"], re = {
|
|
|
142
141
|
};
|
|
143
142
|
}
|
|
144
143
|
return {};
|
|
145
|
-
}, c =
|
|
144
|
+
}, c = y(v(o.basicOption.widgets)), r = Y(() => {
|
|
146
145
|
try {
|
|
147
146
|
const e = c.value.filter((a) => a.type === "regionalLevel");
|
|
148
147
|
return e.length > 0 ? (H(e[0].labelStyle.fontFamily), e[0].isHide ? null : e[0]) : null;
|
|
@@ -226,13 +225,13 @@ const le = { class: "value" }, ne = ["onClick"], re = {
|
|
|
226
225
|
ref_key: "buttonRef",
|
|
227
226
|
ref: W,
|
|
228
227
|
class: "return-btn",
|
|
229
|
-
style:
|
|
228
|
+
style: m(q(e.basicOption.backButtonCss)),
|
|
230
229
|
onClick: F
|
|
231
230
|
}, " 返回上一级 ", 4)) : E("", !0),
|
|
232
231
|
r.value ? (p(), d("div", {
|
|
233
232
|
key: 1,
|
|
234
233
|
class: "regional-level",
|
|
235
|
-
style:
|
|
234
|
+
style: m({
|
|
236
235
|
left: r.value.labelStyle.left + "%",
|
|
237
236
|
top: r.value.labelStyle.top + "%",
|
|
238
237
|
flexDirection: r.value.labelStyle.direction,
|
|
@@ -252,7 +251,7 @@ const le = { class: "value" }, ne = ["onClick"], re = {
|
|
|
252
251
|
}, [
|
|
253
252
|
I("div", {
|
|
254
253
|
class: "color",
|
|
255
|
-
style:
|
|
254
|
+
style: m({ backgroundColor: t.color })
|
|
256
255
|
}, null, 4),
|
|
257
256
|
I("span", le, w(t.label), 1)
|
|
258
257
|
]))), 128))
|
|
@@ -260,7 +259,7 @@ const le = { class: "value" }, ne = ["onClick"], re = {
|
|
|
260
259
|
e.basicOption.widgets.length > 0 && e.basicOption.widgetControlStyle && e.basicOption.widgetControlStyle.show ? (p(), d("div", {
|
|
261
260
|
key: 2,
|
|
262
261
|
class: "widget-control",
|
|
263
|
-
style:
|
|
262
|
+
style: m({
|
|
264
263
|
left: e.basicOption.widgetControlStyle.left + "%",
|
|
265
264
|
top: e.basicOption.widgetControlStyle.top + "%",
|
|
266
265
|
flexDirection: e.basicOption.widgetControlStyle.direction,
|
|
@@ -273,7 +272,7 @@ const le = { class: "value" }, ne = ["onClick"], re = {
|
|
|
273
272
|
class: L(["control-button", {
|
|
274
273
|
active: c.value.every((t) => !t.isHide)
|
|
275
274
|
}]),
|
|
276
|
-
style:
|
|
275
|
+
style: m(z(e.basicOption.widgetControlStyle)),
|
|
277
276
|
onClick: K
|
|
278
277
|
}, w(c.value.every((t) => !t.isHide) ? "隐藏" : "显示") + "/全部 ", 7),
|
|
279
278
|
(p(!0), d(R, null, T(c.value, (t) => (p(), d("div", {
|
|
@@ -281,7 +280,7 @@ const le = { class: "value" }, ne = ["onClick"], re = {
|
|
|
281
280
|
class: L(["control-button", {
|
|
282
281
|
active: !t.isHide
|
|
283
282
|
}]),
|
|
284
|
-
style:
|
|
283
|
+
style: m(z(e.basicOption.widgetControlStyle)),
|
|
285
284
|
onClick: (u) => G(t)
|
|
286
285
|
}, w(t.name || "-"), 15, ne))), 128))
|
|
287
286
|
], 4)) : E("", !0),
|
|
@@ -290,5 +289,5 @@ const le = { class: "value" }, ne = ["onClick"], re = {
|
|
|
290
289
|
}
|
|
291
290
|
});
|
|
292
291
|
export {
|
|
293
|
-
|
|
292
|
+
Ce as default
|
|
294
293
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fcbb5f5c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createElementBlock as w, openBlock as d, createElementVNode as f, onMounted as u, onBeforeUnmount as p } from "vue";
|
|
2
|
-
import { SHJParseEvent as a } from "
|
|
2
|
+
import { SHJParseEvent as a } from "@zerov/core";
|
|
3
3
|
const k = { class: "iframe-webscoket" }, b = ["src"], _ = i({ name: "zv-scene-ue-iframe" }), N = /* @__PURE__ */ i({
|
|
4
4
|
..._,
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b7ec661f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as r, createElementBlock as p, openBlock as d, onMounted as v } from "vue";
|
|
2
|
-
import { SHJParseEvent as o } from "
|
|
2
|
+
import { SHJParseEvent as o } from "@zerov/core";
|
|
3
3
|
const h = { class: "shj-for-ue" }, f = r({ name: "zv-scene-ue-shj" }), _ = /* @__PURE__ */ r({
|
|
4
4
|
...f,
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dd0558d9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as a, createElementBlock as m, openBlock as u, ref as l, onMounted as d, onBeforeUnmount as p } from "vue";
|
|
2
|
-
import { SHJParseEvent as s } from "
|
|
2
|
+
import { SHJParseEvent as s } from "@zerov/core";
|
|
3
3
|
const y = ["src"], w = a({ name: "zv-scene-unity-iframe" }), v = /* @__PURE__ */ a({
|
|
4
4
|
...w,
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1d1acc43"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as a, createElementBlock as m, openBlock as f, ref as l, onMounted as d, onBeforeUnmount as p } from "vue";
|
|
2
|
-
import { SHJParseEvent as s } from "
|
|
2
|
+
import { SHJParseEvent as s } from "@zerov/core";
|
|
3
3
|
const y = ["src"], w = a({ name: "zv-scene-unity-webgl" }), v = /* @__PURE__ */ a({
|
|
4
4
|
...w,
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d4de077d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -9,8 +9,8 @@ import Se from "./resources/zv-refresh.svg.mjs";
|
|
|
9
9
|
import C from "hls.js";
|
|
10
10
|
import { isArray as Ve, debounce as be, cloneDeep as B } from "lodash";
|
|
11
11
|
import { useRoute as he } from "vue-router";
|
|
12
|
-
import { SHJParseEvent as S } from "
|
|
13
|
-
const d = (V) => (ue("data-v-
|
|
12
|
+
import { SHJParseEvent as S } from "@zerov/core";
|
|
13
|
+
const d = (V) => (ue("data-v-d4de077d"), V = V(), de(), V), _e = { class: "vr-scene-wrap" }, ye = {
|
|
14
14
|
id: "panorama",
|
|
15
15
|
class: "vr-scene"
|
|
16
16
|
}, ge = {
|
|
@@ -70,7 +70,7 @@ const d = (V) => (ue("data-v-07328472"), V = V(), de(), V), _e = { class: "vr-sc
|
|
|
70
70
|
], Ye = { class: "scene-list" }, Ue = ["onClick"], $e = ["src"], Fe = { class: "label" }, Ze = ["autoplay", "loop", "volume"], Ke = ["src"], qe = {
|
|
71
71
|
key: 3,
|
|
72
72
|
class: "mouse-tip"
|
|
73
|
-
}, Qe = /* @__PURE__ */ re('<div class="icon-wrap" data-v-
|
|
73
|
+
}, Qe = /* @__PURE__ */ re('<div class="icon-wrap" data-v-d4de077d><div class="left" data-v-d4de077d><i class="iconfont zv-drop-down" data-v-d4de077d></i></div><i class="iconfont zv-mouse" data-v-d4de077d></i><div class="right" data-v-d4de077d><i class="iconfont zv-drop-down" data-v-d4de077d></i></div></div><p class="title" data-v-d4de077d>左右拖动 更多精彩</p>', 2), Xe = [
|
|
74
74
|
Qe
|
|
75
75
|
], xe = N({ name: "zv-scene-vr" }), wo = /* @__PURE__ */ N({
|
|
76
76
|
...xe,
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { defineComponent as k, ref as f, onMounted as M, createBlock as O, openBlock as p, unref as n, withCtx as C, createElementVNode as i, createElementBlock as w, Fragment as D, renderList as $, normalizeStyle as l, createVNode as g } from "vue";
|
|
2
2
|
import { Vue3SeamlessScroll as B } from "vue3-seamless-scroll";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { SHJParseEvent as d } from "../../../commons/plugins/event/index.mjs";
|
|
3
|
+
import { SHJDatasourceV2 as N, SHJParseEvent as d } from "@zerov/core";
|
|
4
|
+
import { useListWatch as R } from "./hooks/useListWatch.mjs";
|
|
6
5
|
import { Utils as r } from "../../../commons/utils/utils.mjs";
|
|
7
6
|
import b from "../../../commons/components/text.vue.mjs";
|
|
8
|
-
const H = { class: "list-wrap flex flex-direction-column gap-10px margin-top-10px" }, J = ["onClick", "onMouseenter", "onMouseout"], L = ["src"], U = k({ name: "shj-list" }),
|
|
7
|
+
const H = { class: "list-wrap flex flex-direction-column gap-10px margin-top-10px" }, J = ["onClick", "onMouseenter", "onMouseout"], L = ["src"], U = k({ name: "shj-list" }), _ = /* @__PURE__ */ k({
|
|
9
8
|
...U,
|
|
10
9
|
props: {
|
|
11
10
|
option: {},
|
|
@@ -14,9 +13,9 @@ const H = { class: "list-wrap flex flex-direction-column gap-10px margin-top-10p
|
|
|
14
13
|
uuid: {}
|
|
15
14
|
},
|
|
16
15
|
emits: ["on-click-row", "on-mouseenter-row", "on-mouseout-row"],
|
|
17
|
-
setup(
|
|
18
|
-
const s =
|
|
19
|
-
|
|
16
|
+
setup(y, { expose: x, emit: j }) {
|
|
17
|
+
const s = y, m = j, h = f(s.option.scroll.start), c = f([]), a = () => {
|
|
18
|
+
N.parse({
|
|
20
19
|
tId: s.uuid,
|
|
21
20
|
sources: s.sources,
|
|
22
21
|
callback: ({ data: e }) => {
|
|
@@ -37,7 +36,7 @@ const H = { class: "list-wrap flex flex-direction-column gap-10px margin-top-10p
|
|
|
37
36
|
const t = { row: e, rowIndex: o };
|
|
38
37
|
m("on-mouseout-row", t), d.parseEvents(s.useEvents, "on-mouseout-row", t);
|
|
39
38
|
};
|
|
40
|
-
return M(() => a()),
|
|
39
|
+
return M(() => a()), R(s, a), x({
|
|
41
40
|
refresh: () => a(),
|
|
42
41
|
refreshView: () => {
|
|
43
42
|
},
|
|
@@ -71,9 +70,9 @@ const H = { class: "list-wrap flex flex-direction-column gap-10px margin-top-10p
|
|
|
71
70
|
style: l(n(r).json2cssObject(e.option.css.item.thumbnail))
|
|
72
71
|
}, [
|
|
73
72
|
i("img", {
|
|
73
|
+
referrerpolicy: "no-referrer",
|
|
74
74
|
class: "width-100 height-100 object-fit-cover",
|
|
75
|
-
src: t.thumbnail
|
|
76
|
-
alt: ""
|
|
75
|
+
src: t.thumbnail
|
|
77
76
|
}, null, 8, L)
|
|
78
77
|
], 4),
|
|
79
78
|
i("div", {
|
|
@@ -107,5 +106,5 @@ const H = { class: "list-wrap flex flex-direction-column gap-10px margin-top-10p
|
|
|
107
106
|
}
|
|
108
107
|
});
|
|
109
108
|
export {
|
|
110
|
-
|
|
109
|
+
_ as default
|
|
111
110
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1b3cd1ae"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as H, ref as D, computed as z, watchEffect as E, createElementBlock as h, openBlock as w, Fragment as F, createCommentVNode as m, normalizeStyle as S, toDisplayString as O } from "vue";
|
|
2
|
-
import { SHJParseEvent as T } from "
|
|
2
|
+
import { SHJParseEvent as T } from "@zerov/core";
|
|
3
3
|
import { autoInstallFont as A, jsonToCssStyle as j } from "../../commons/utils/json2css.mjs";
|
|
4
4
|
const _ = ["ztitle"], $ = ["ztitle"], N = ["ztitle"], q = H({ name: "zv-text-count-down" }), J = /* @__PURE__ */ H({
|
|
5
5
|
...q,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-86e09e2b"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -3,10 +3,9 @@ import { cloneDeep as m, isEqual as v } from "lodash";
|
|
|
3
3
|
import z from "vue-countup-v3";
|
|
4
4
|
import { Odometer as A } from "odometer_countup";
|
|
5
5
|
import { nanoid as h } from "nanoid";
|
|
6
|
-
import { SHJDatasourceV2 as B } from "
|
|
6
|
+
import { SHJDatasourceV2 as B, SHJParseEvent as x } from "@zerov/core";
|
|
7
7
|
import { autoInstallFont as N, jsonToCssStyle as H } from "../../commons/utils/json2css.mjs";
|
|
8
|
-
|
|
9
|
-
const J = y({ name: "zv-text-over-number" }), X = /* @__PURE__ */ y({
|
|
8
|
+
const J = y({ name: "zv-text-over-number" }), W = /* @__PURE__ */ y({
|
|
10
9
|
...J,
|
|
11
10
|
props: {
|
|
12
11
|
basicOption: {},
|
|
@@ -16,13 +15,13 @@ const J = y({ name: "zv-text-over-number" }), X = /* @__PURE__ */ y({
|
|
|
16
15
|
},
|
|
17
16
|
setup(U, { expose: S }) {
|
|
18
17
|
const n = U, d = s(n.basicOption.countUp.startVal), g = (t) => {
|
|
19
|
-
const
|
|
18
|
+
const a = s(h()), l = s(0), c = s(), r = s(), p = () => {
|
|
20
19
|
B.parse({
|
|
21
20
|
tId: n.uuid,
|
|
22
21
|
sources: n.sources,
|
|
23
22
|
callback: ({ data: e }) => {
|
|
24
23
|
try {
|
|
25
|
-
x.parseEvents(n.useEvents, "dataListener", e),
|
|
24
|
+
x.parseEvents(n.useEvents, "dataListener", e), a.value = h(), l.value = Number(e[0].data[0].value), c.value = {
|
|
26
25
|
startVal: d.value,
|
|
27
26
|
separator: t.countUp.separator,
|
|
28
27
|
decimal: t.countUp.decimal,
|
|
@@ -33,7 +32,7 @@ const J = y({ name: "zv-text-over-number" }), X = /* @__PURE__ */ y({
|
|
|
33
32
|
}, t.countUp.isOdometer && (c.value.plugin = new A({
|
|
34
33
|
duration: t.countUp.duration,
|
|
35
34
|
lastDigitDelay: 0
|
|
36
|
-
})), d.value = l.value, t.isImitate ? C() :
|
|
35
|
+
})), d.value = l.value, t.isImitate ? C() : r.value && clearInterval(r.value);
|
|
37
36
|
} catch {
|
|
38
37
|
x.parseEvents(n.useEvents, "dataListener", null);
|
|
39
38
|
}
|
|
@@ -52,18 +51,18 @@ const J = y({ name: "zv-text-over-number" }), X = /* @__PURE__ */ y({
|
|
|
52
51
|
};
|
|
53
52
|
}, b = () => {
|
|
54
53
|
}, C = () => {
|
|
55
|
-
|
|
54
|
+
r.value && clearInterval(r.value);
|
|
56
55
|
const e = t.countUp.isOdometer ? Math.floor(Math.random() * 6) + 5 : Math.floor(Math.random() * 4) + 3;
|
|
57
|
-
|
|
56
|
+
r.value = setInterval(() => {
|
|
58
57
|
d.value = l.value, c.value.startVal = d.value;
|
|
59
58
|
const o = Number((Math.random() * 10).toFixed(t.countUp.decimalPlaces));
|
|
60
59
|
o > 3 ? l.value += o : l.value -= o;
|
|
61
60
|
}, e * 1e3);
|
|
62
61
|
};
|
|
63
62
|
return P(() => T(() => p())), $(() => {
|
|
64
|
-
|
|
63
|
+
r.value && clearInterval(r.value);
|
|
65
64
|
}), {
|
|
66
|
-
key:
|
|
65
|
+
key: a,
|
|
67
66
|
init: p,
|
|
68
67
|
options: c,
|
|
69
68
|
endValue: l,
|
|
@@ -78,15 +77,15 @@ const J = y({ name: "zv-text-over-number" }), X = /* @__PURE__ */ y({
|
|
|
78
77
|
onFinished: V,
|
|
79
78
|
rendererDomStyle: F
|
|
80
79
|
} = g(n.basicOption);
|
|
81
|
-
return f(() => m(n.basicOption), (t,
|
|
82
|
-
v(t,
|
|
83
|
-
}, { deep: !0 }), f(() => m(n.sources), (t,
|
|
84
|
-
v(t,
|
|
80
|
+
return f(() => m(n.basicOption), (t, a) => {
|
|
81
|
+
v(t, a) || i();
|
|
82
|
+
}, { deep: !0 }), f(() => m(n.sources), (t, a) => {
|
|
83
|
+
v(t, a) || i();
|
|
85
84
|
}, { deep: !0 }), S({
|
|
86
85
|
refresh: () => i(),
|
|
87
86
|
refreshView: () => i(),
|
|
88
87
|
refreshData: () => i()
|
|
89
|
-
}), (t,
|
|
88
|
+
}), (t, a) => (j(), M(u(z), {
|
|
90
89
|
key: u(w),
|
|
91
90
|
class: "zerov-widget-over-number",
|
|
92
91
|
"end-val": u(D),
|
|
@@ -99,5 +98,5 @@ const J = y({ name: "zv-text-over-number" }), X = /* @__PURE__ */ y({
|
|
|
99
98
|
}
|
|
100
99
|
});
|
|
101
100
|
export {
|
|
102
|
-
|
|
101
|
+
W as default
|
|
103
102
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-19a6fb40"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as p, watch as T, createElementBlock as w, openBlock as _, unref as l, normalizeStyle as E, toDisplayString as b, ref as c, onMounted as z, onBeforeUnmount as j } from "vue";
|
|
2
|
-
import { cloneDeep as C, isEqual as I } from "lodash";
|
|
3
2
|
import i from "dayjs";
|
|
3
|
+
import { cloneDeep as C, isEqual as I } from "lodash";
|
|
4
|
+
import { SHJParseEvent as f } from "@zerov/core";
|
|
4
5
|
import "dayjs/locale/zh-cn";
|
|
5
6
|
import { autoInstallFont as k, jsonToCssStyle as D } from "../../commons/utils/json2css.mjs";
|
|
6
|
-
import { SHJParseEvent as f } from "../../commons/plugins/event/index.mjs";
|
|
7
7
|
const O = ["ztitle"], R = p({ name: "zv-text-real-time" }), J = /* @__PURE__ */ p({
|
|
8
8
|
...R,
|
|
9
9
|
props: {
|