@shjjs/visual-ui 1.0.36 → 1.0.37
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/earth/main.vue.d.ts +2 -2
- package/es/commons/core/useChart.mjs +257 -73
- package/es/components/chart/commons/components/common-chart/index.vue.mjs +213 -30
- package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +210 -27
- package/es/components/chart/commons/hooks/useChart.mjs +261 -77
- package/es/components/chart/src/map/bmap-basic/index.vue.d.ts +8 -8
- package/es/components/chart/src/map/bmap-heatmap/index.vue.d.ts +6 -2
- package/es/components/chart-other-candlestick-basic/index.vue.mjs +212 -29
- package/es/components/chart-other-candlestick-demo/index.vue.mjs +213 -30
- package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +214 -31
- package/es/components/chart-other-circular-graph/index.vue.mjs +214 -31
- package/es/components/chart-other-force/index.vue.mjs +212 -29
- package/es/components/chart-other-force2/index.vue.mjs +212 -29
- package/es/components/chart-other-funnel/index.vue.mjs +214 -31
- package/es/components/chart-other-funnel-contrast/index.vue.mjs +214 -31
- package/es/components/chart-other-funnel-split/index.vue.mjs +214 -31
- package/es/components/chart-other-funnel2/index.vue.mjs +214 -31
- package/es/components/chart-other-gauge/index.vue.mjs +214 -31
- package/es/components/chart-other-gauge-grade/index.vue.mjs +214 -31
- package/es/components/chart-other-gauge-stage/index.vue.mjs +214 -31
- package/es/components/chart-other-graph-basic/index.vue.mjs +214 -31
- package/es/components/chart-other-graph-basic2/index.vue.mjs +214 -31
- package/es/components/chart-other-graph-calendar/index.vue.mjs +214 -31
- package/es/components/chart-other-grid-percentage/index.vue.mjs +218 -35
- package/es/components/chart-other-heatmap/index.vue.mjs +212 -29
- package/es/components/chart-other-label-gauge/index.vue.mjs +216 -33
- package/es/components/chart-other-liquidfill/index.vue.mjs +214 -31
- package/es/components/chart-other-parallel-basic/index.vue.mjs +214 -31
- package/es/components/chart-other-parallel-mul/index.vue.mjs +211 -28
- package/es/components/chart-other-radar/index.vue.mjs +224 -41
- package/es/components/chart-other-radar-stack/index.vue.mjs +211 -28
- package/es/components/chart-other-sunburst-basic/index.vue.mjs +212 -29
- package/es/components/chart-other-sunburst-basic2/index.vue.mjs +212 -29
- package/es/components/chart-other-sunburst-basic3/index.vue.mjs +212 -29
- package/es/components/chart-other-sunburst-basic4/index.vue.mjs +212 -29
- package/es/components/chart-other-sunburst-book/index.vue.mjs +212 -29
- package/es/components/chart-other-sunburst-flavors/index.vue.mjs +214 -31
- package/es/components/chart-other-sunburst-radius/index.vue.mjs +212 -29
- package/es/components/chart-other-theme-river/index.vue.mjs +216 -33
- package/es/components/chart-other-tree/index.vue.mjs +214 -31
- package/es/components/chart-other-tree-line/index.vue.mjs +214 -31
- package/es/components/chart-other-treemap/index.vue.mjs +214 -31
- package/es/components/chart-other-treemap-basic/index.vue.mjs +214 -31
- package/es/components/chart-other-word-cloud/index.vue.mjs +216 -33
- package/es/components/commons-echarts/compileAndRunEcharts.mjs +219 -35
- package/es/components/commons-loop-iterator/index.vue.mjs +1 -1
- package/es/components/commons-loop-iterator/index.vue2.mjs +218 -35
- package/es/components/commons-product-model/index.vue.mjs +2 -2
- package/es/components/commons-product-model/index.vue2.mjs +246 -62
- package/es/components/commons-three-loader/index.vue.mjs +2 -2
- package/es/components/commons-three-loader/index.vue2.mjs +257 -73
- package/es/components/commons-three-loader3/index.vue.mjs +2 -2
- package/es/components/commons-three-loader3/index.vue2.mjs +301 -117
- package/es/components/commons-weather/index.vue.mjs +1 -1
- package/es/components/commons-weather/index.vue2.mjs +233 -48
- package/es/components/commons-weather-dynamic/index.vue.mjs +2 -2
- package/es/components/commons-weather-dynamic/index.vue2.mjs +236 -52
- package/es/components/interaction/button/index.vue.mjs +2 -2
- package/es/components/interaction/button/index.vue2.mjs +252 -68
- package/es/components/interaction/date-picker/components/common-date-picker/index.vue.mjs +1 -1
- package/es/components/interaction/date-picker/components/common-date-picker/index.vue2.mjs +324 -140
- package/es/components/interaction/tabs/index.vue.mjs +223 -39
- package/es/components/interaction/tabs-icon/index.vue.mjs +225 -41
- package/es/components/interaction-input/index.vue.mjs +1 -1
- package/es/components/interaction-input/index.vue2.mjs +244 -61
- package/es/components/interaction-select/index.vue.mjs +1 -1
- package/es/components/interaction-select/index.vue2.mjs +269 -86
- package/es/components/interaction-slider/index.vue.mjs +2 -2
- package/es/components/interaction-slider/index.vue2.mjs +248 -65
- package/es/components/interaction-switch/index.vue.mjs +1 -1
- package/es/components/interaction-switch/index.vue2.mjs +217 -33
- package/es/components/interaction-tabs/index.vue.mjs +1 -1
- package/es/components/interaction-tabs/index.vue2.mjs +221 -37
- package/es/components/interaction-tabs2/index.vue.mjs +2 -2
- package/es/components/interaction-tabs2/index.vue2.mjs +219 -35
- package/es/components/map-earth-basic/index.d.ts +2 -2
- package/es/components/map-earth-basic/index.vue.d.ts +2 -2
- package/es/components/map-earth-basic/index.vue.mjs +286 -103
- package/es/components/map-earth-cool-tech/index.d.ts +2 -2
- package/es/components/map-earth-cool-tech/index.vue.d.ts +4 -6
- package/es/components/map-earth-cool-tech/index.vue.mjs +286 -103
- package/es/components/map-earth-fly-line/index.d.ts +2 -2
- package/es/components/map-earth-fly-line/index.vue.d.ts +2 -2
- package/es/components/map-earth-fly-line/index.vue.mjs +286 -103
- package/es/components/map-earth-hacker/index.d.ts +2 -2
- package/es/components/map-earth-hacker/index.vue.d.ts +2 -2
- package/es/components/map-earth-hacker/index.vue.mjs +286 -103
- package/es/components/map-earth-particle/index.d.ts +2 -2
- package/es/components/map-earth-particle/index.vue.d.ts +2 -2
- package/es/components/map-earth-particle/index.vue.mjs +286 -103
- package/es/components/media-audio/index.vue.mjs +2 -2
- package/es/components/media-audio/index.vue2.mjs +220 -36
- package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
- package/es/components/media-audio-dynamic/index.vue2.mjs +226 -43
- package/es/components/media-flv/index.vue.mjs +219 -35
- package/es/components/media-iframe/index.vue.mjs +2 -2
- package/es/components/media-iframe/index.vue2.mjs +199 -15
- package/es/components/media-iframe-dynamic/index.vue.mjs +2 -2
- package/es/components/media-iframe-dynamic/index.vue2.mjs +219 -36
- package/es/components/media-image-dynamic/index.vue.mjs +1 -1
- package/es/components/media-image-dynamic/index.vue2.mjs +207 -24
- package/es/components/media-m3u8/index.vue.mjs +221 -37
- package/es/components/media-m3u8-dynamic/index.vue.mjs +228 -45
- package/es/components/media-video/index.vue.mjs +1 -1
- package/es/components/media-video/index.vue2.mjs +216 -31
- package/es/components/media-video-dynamic/index.vue.mjs +1 -1
- package/es/components/media-video-dynamic/index.vue2.mjs +223 -40
- package/es/components/scene-amap2d/index.vue.mjs +2 -2
- package/es/components/scene-amap2d/index.vue2.mjs +376 -192
- package/es/components/scene-amap3d/index.vue.mjs +2 -2
- package/es/components/scene-amap3d/index.vue2.mjs +414 -231
- package/es/components/scene-default/index.vue.mjs +2 -2
- package/es/components/scene-default/index.vue2.mjs +201 -16
- package/es/components/scene-map3d/index.vue.mjs +2 -2
- package/es/components/scene-map3d/index.vue2.mjs +289 -106
- package/es/components/scene-ue-iframe/index.vue.mjs +1 -1
- package/es/components/scene-ue-iframe/index.vue2.mjs +212 -27
- package/es/components/scene-ue-shj/index.vue.mjs +2 -2
- package/es/components/scene-ue-shj/index.vue2.mjs +200 -15
- package/es/components/scene-unity-iframe/index.vue.mjs +1 -1
- package/es/components/scene-unity-iframe/index.vue2.mjs +204 -19
- package/es/components/scene-unity-webgl/index.vue.mjs +2 -2
- package/es/components/scene-unity-webgl/index.vue2.mjs +204 -19
- package/es/components/scene-vr/index.vue.mjs +2 -2
- package/es/components/scene-vr/index.vue2.mjs +307 -123
- package/es/components/text/list/index.vue.mjs +240 -56
- package/es/components/text-count-down/index.vue.mjs +2 -2
- package/es/components/text-count-down/index.vue2.mjs +245 -60
- package/es/components/text-over-number/index.vue.mjs +2 -2
- package/es/components/text-over-number/index.vue2.mjs +243 -60
- package/es/components/text-real-time/index.vue.mjs +1 -1
- package/es/components/text-real-time/index.vue2.mjs +212 -28
- package/es/components/text-row-scroll/index.vue.mjs +2 -2
- package/es/components/text-row-scroll/index.vue2.mjs +289 -106
- package/es/components/text-table-basic/index.vue.mjs +2 -2
- package/es/components/text-table-basic/index.vue2.mjs +286 -103
- package/es/components/text-table-scroll/index.vue.mjs +1 -1
- package/es/components/text-table-scroll/index.vue2.mjs +291 -108
- package/es/components/text-text-dynamic/index.vue.mjs +2 -2
- package/es/components/text-text-dynamic/index.vue2.mjs +218 -35
- package/es/index.d.ts +1 -0
- package/es/index.mjs +375 -361
- package/es/plugins/datasource/index.mjs +217 -0
- package/es/plugins/datasource/sources/api.mjs +32 -0
- package/es/plugins/datasource/sources/static.mjs +17 -0
- package/es/plugins/datasource/sources/storage.mjs +28 -0
- package/es/plugins/datasource/sources/url.mjs +17 -0
- package/es/plugins/datasource/sources/variable.mjs +17 -0
- package/es/plugins/datasource/sources/ws.mjs +139 -0
- package/es/plugins/datasource/utils/axios.mjs +134 -0
- package/es/plugins/datasource/utils/request.mjs +5 -0
- package/es/plugins/datasource/utils/utils.mjs +229 -0
- package/es/plugins/datasource/utils/wsManager.mjs +78 -0
- package/es/plugins/event/actions/fullScreenAction.mjs +8 -0
- package/es/plugins/event/actions/invokeAction.mjs +11 -0
- package/es/plugins/event/actions/linkAction.mjs +8 -0
- package/es/plugins/event/actions/moveAction.mjs +15 -0
- package/es/plugins/event/actions/refreshVariableAction.mjs +18 -0
- package/es/plugins/event/actions/rotateAction.mjs +19 -0
- package/es/plugins/event/actions/scaleAction.mjs +24 -0
- package/es/plugins/event/actions/sendApiAction.mjs +16 -0
- package/es/plugins/event/actions/ueCommonsWebscoketAction.mjs +31 -0
- package/es/plugins/event/actions/ueShjExecMethodAction.mjs +31 -0
- package/es/plugins/event/actions/unityIframeExecMethodAction.mjs +28 -0
- package/es/plugins/event/actions/unityWebglExecMethodAction.mjs +28 -0
- package/es/plugins/event/actions/updatePageAction.mjs +6 -0
- package/es/plugins/event/actions/updateVariableAction.mjs +25 -0
- package/es/plugins/event/actions/updateWidgetAction.mjs +14 -0
- package/es/plugins/event/actions/vrSceneMethodAction.mjs +12 -0
- package/es/plugins/event/index.mjs +161 -0
- package/es/plugins/event/utils/utils.mjs +50 -0
- package/es/plugins/utils/componentRefs.mjs +37 -0
- package/es/plugins/utils/getNextElement.mjs +12 -0
- package/es/widgets.css +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,194 @@
|
|
|
1
|
-
import { defineComponent as y, ref as
|
|
2
|
-
import { cloneDeep as
|
|
1
|
+
import { defineComponent as y, ref as l, watch as c, createBlock as M, openBlock as j, unref as n, normalizeStyle as _, onMounted as P, nextTick as T, onBeforeUnmount as $ } from "vue";
|
|
2
|
+
import { cloneDeep as f, 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
|
|
6
|
+
import "../text-text-basic/index.mjs";
|
|
7
|
+
import "../text-table-basic/index.mjs";
|
|
8
|
+
import "../chart-other-gauge/index.mjs";
|
|
9
|
+
import "../chart-other-gauge-stage/index.mjs";
|
|
10
|
+
import "../chart-other-gauge-grade/index.mjs";
|
|
11
|
+
import "../chart-other-word-cloud/index.mjs";
|
|
12
|
+
import "../chart-other-liquidfill/index.mjs";
|
|
13
|
+
import "../chart-other-funnel/index.mjs";
|
|
14
|
+
import "../chart-other-force/index.mjs";
|
|
15
|
+
import "../chart-other-radar/index.mjs";
|
|
16
|
+
import "../chart-other-funnel-split/index.mjs";
|
|
17
|
+
import "../chart-other-funnel-contrast/index.mjs";
|
|
18
|
+
import "../chart-other-candlestick-basic/index.mjs";
|
|
19
|
+
import "../chart-other-candlestick-shanghai/index.mjs";
|
|
20
|
+
import "../chart-other-candlestick-demo/index.mjs";
|
|
21
|
+
import "../chart-other-heatmap/index.mjs";
|
|
22
|
+
import "../chart-other-force2/index.mjs";
|
|
23
|
+
import "../chart-other-graph-basic/index.mjs";
|
|
24
|
+
import "../chart-other-graph-basic2/index.mjs";
|
|
25
|
+
import "../chart-other-graph-calendar/index.mjs";
|
|
26
|
+
import "../chart-other-tree-line/index.mjs";
|
|
27
|
+
import "../chart-other-treemap-basic/index.mjs";
|
|
28
|
+
import "../chart-other-sunburst-basic/index.mjs";
|
|
29
|
+
import "../chart-other-sunburst-basic2/index.mjs";
|
|
30
|
+
import "../chart-other-sunburst-basic3/index.mjs";
|
|
31
|
+
import "../chart-other-sunburst-basic4/index.mjs";
|
|
32
|
+
import "../chart-other-sunburst-book/index.mjs";
|
|
33
|
+
import "../chart-other-sunburst-radius/index.mjs";
|
|
34
|
+
import "../chart-other-sunburst-flavors/index.mjs";
|
|
35
|
+
import "../chart-other-parallel-basic/index.mjs";
|
|
36
|
+
import "../chart-other-parallel-mul/index.mjs";
|
|
37
|
+
import "../chart-other-circular-graph/index.mjs";
|
|
38
|
+
import "../map-earth-basic/index.mjs";
|
|
39
|
+
import "../map-earth-cool-tech/index.mjs";
|
|
40
|
+
import "../map-earth-particle/index.mjs";
|
|
41
|
+
import "../map-earth-hacker/index.mjs";
|
|
42
|
+
import "../map-earth-fly-line/index.mjs";
|
|
43
|
+
import "../chart-other-grid-percentage/index.mjs";
|
|
44
|
+
import "../chart-other-radar-stack/index.mjs";
|
|
45
|
+
import "../chart-other-funnel2/index.mjs";
|
|
46
|
+
import "../chart-other-label-gauge/index.mjs";
|
|
47
|
+
import "../chart-other-theme-river/index.mjs";
|
|
48
|
+
import "../chart-other-tree/index.mjs";
|
|
49
|
+
import "../chart-other-treemap/index.mjs";
|
|
50
|
+
import "../commons-product-model/index.mjs";
|
|
51
|
+
import "../commons-vr-photo/index.mjs";
|
|
52
|
+
import "../commons-vr-video/index.mjs";
|
|
53
|
+
import "../commons-three-loader/index.mjs";
|
|
54
|
+
import "../commons-three-loader3/index.mjs";
|
|
55
|
+
import "../commons-loop-iterator/index.mjs";
|
|
56
|
+
import "../commons-gaussian-splatting-view/index.mjs";
|
|
57
|
+
import "../commons-babylon/index.mjs";
|
|
58
|
+
import "../commons-svg/index.mjs";
|
|
59
|
+
import "../commons-weather/index.mjs";
|
|
60
|
+
import "../commons-weather-dynamic/index.mjs";
|
|
61
|
+
import "../media-wavesurfer/index.mjs";
|
|
62
|
+
import "../interaction-tabs/index.mjs";
|
|
63
|
+
import "../interaction-tabs2/index.mjs";
|
|
64
|
+
import "../interaction-button/index.mjs";
|
|
65
|
+
import "../interaction-button-image/index.mjs";
|
|
66
|
+
import "../interaction-select/index.mjs";
|
|
67
|
+
import "../interaction-input/index.mjs";
|
|
68
|
+
import "../interaction-radio/index.mjs";
|
|
69
|
+
import "../interaction-slider/index.mjs";
|
|
70
|
+
import "../interaction-switch/index.mjs";
|
|
71
|
+
import "../interaction-data-picker/index.mjs";
|
|
72
|
+
import "../interaction-button-refresh/index.mjs";
|
|
73
|
+
import "../media-image/index.mjs";
|
|
74
|
+
import "../text-title/index.mjs";
|
|
75
|
+
import "../commons-qrcode/index.mjs";
|
|
76
|
+
import "../media-video/index.mjs";
|
|
77
|
+
import "../media-audio/index.mjs";
|
|
78
|
+
import "../text-real-time/index.mjs";
|
|
79
|
+
import "../media-carousel/index.mjs";
|
|
80
|
+
import "../media-carousel-slides/index.mjs";
|
|
81
|
+
import "../media-iframe-carousel/index.mjs";
|
|
82
|
+
import "../media-iframe/index.mjs";
|
|
83
|
+
import "../media-m3u8/index.mjs";
|
|
84
|
+
import "../media-m3u8-dynamic/index.mjs";
|
|
85
|
+
import "../media-audio-dynamic/index.mjs";
|
|
86
|
+
import "../media-video-dynamic/index.mjs";
|
|
87
|
+
import "../media-image-dynamic/index.mjs";
|
|
88
|
+
import "../media-iframe-dynamic/index.mjs";
|
|
89
|
+
import "../media-flv/index.mjs";
|
|
90
|
+
import "../commons-echarts/index.mjs";
|
|
91
|
+
import "./index.mjs";
|
|
92
|
+
import "../text-table-scroll/index.mjs";
|
|
93
|
+
import "../text-carousel/index.mjs";
|
|
94
|
+
import "../text-row-scroll/index.mjs";
|
|
95
|
+
import "../text-text-dynamic/index.mjs";
|
|
96
|
+
import "../text-count-down/index.mjs";
|
|
97
|
+
import "../graphical-circle/index.mjs";
|
|
98
|
+
import "../graphical-diamond/index.mjs";
|
|
99
|
+
import "../graphical-hexagon/index.mjs";
|
|
100
|
+
import "../graphical-isosceles-triangle/index.mjs";
|
|
101
|
+
import "../graphical-pentagon/index.mjs";
|
|
102
|
+
import "../graphical-rect/index.mjs";
|
|
103
|
+
import "../graphical-right-triangle/index.mjs";
|
|
104
|
+
import "../scene-map3d/index.mjs";
|
|
105
|
+
import "../scene-amap2d/index.mjs";
|
|
106
|
+
import "../scene-amap3d/index.mjs";
|
|
107
|
+
import "../scene-vr/index.mjs";
|
|
108
|
+
import "../scene-unity-iframe/index.mjs";
|
|
109
|
+
import "../scene-unity-webgl/index.mjs";
|
|
110
|
+
import "../scene-ue-iframe/index.mjs";
|
|
111
|
+
import "../scene-ue-shj/index.mjs";
|
|
112
|
+
import "../scene-default/index.mjs";
|
|
113
|
+
import "../interaction/tabs/index.mjs";
|
|
114
|
+
import "../interaction/tabs-icon/index.mjs";
|
|
115
|
+
import "../interaction/button/index.mjs";
|
|
116
|
+
import "../interaction/date-picker/src/date-picker/index.mjs";
|
|
117
|
+
import "../interaction/date-picker/src/date-picker-range/index.mjs";
|
|
118
|
+
import "../text/list/index.mjs";
|
|
119
|
+
import "../chart/src/bar/basic/index.mjs";
|
|
120
|
+
import "../chart/src/bar/animation/index.mjs";
|
|
121
|
+
import "../chart/src/bar/contrast/index.mjs";
|
|
122
|
+
import "../chart/src/bar/contrast2/index.mjs";
|
|
123
|
+
import "../chart/src/bar/contrast3/index.mjs";
|
|
124
|
+
import "../chart/src/bar/gradient-column-chart/index.mjs";
|
|
125
|
+
import "../chart/src/bar/horizontal/index.mjs";
|
|
126
|
+
import "../chart/src/bar/horizontal-stack/index.mjs";
|
|
127
|
+
import "../chart/src/bar/line-bar/index.mjs";
|
|
128
|
+
import "../chart/src/bar/line-bar2/index.mjs";
|
|
129
|
+
import "../chart/src/bar/loop/index.mjs";
|
|
130
|
+
import "../chart/src/bar/mini/index.mjs";
|
|
131
|
+
import "../chart/src/bar/polar/index.mjs";
|
|
132
|
+
import "../chart/src/bar/polar-stack/index.mjs";
|
|
133
|
+
import "../chart/src/bar/polar2/index.mjs";
|
|
134
|
+
import "../chart/src/bar/radius-circle/index.mjs";
|
|
135
|
+
import "../chart/src/bar/rank/index.mjs";
|
|
136
|
+
import "../chart/src/bar/segmented-progress/index.mjs";
|
|
137
|
+
import "../chart/src/bar/spire/index.mjs";
|
|
138
|
+
import "../chart/src/bar/stack/index.mjs";
|
|
139
|
+
import "../chart/src/bar/stack-line/index.mjs";
|
|
140
|
+
import "../chart/src/bar/stack2/index.mjs";
|
|
141
|
+
import "../chart/src/bar/stack3/index.mjs";
|
|
142
|
+
import "../chart/src/bar/staggered/index.mjs";
|
|
143
|
+
import "../chart/src/bar/three/index.mjs";
|
|
144
|
+
import "../chart/src/bar/waterfall/index.mjs";
|
|
145
|
+
import "../chart/src/bar/zebra/index.mjs";
|
|
146
|
+
import "../chart/src/line/area-gradient/index.mjs";
|
|
147
|
+
import "../chart/src/line/area-highlight/index.mjs";
|
|
148
|
+
import "../chart/src/line/area-highlight2/index.mjs";
|
|
149
|
+
import "../chart/src/line/basic/index.mjs";
|
|
150
|
+
import "../chart/src/line/bump/index.mjs";
|
|
151
|
+
import "../chart/src/line/dashed/index.mjs";
|
|
152
|
+
import "../chart/src/line/ladder/index.mjs";
|
|
153
|
+
import "../chart/src/line/logarithm/index.mjs";
|
|
154
|
+
import "../chart/src/line/multix/index.mjs";
|
|
155
|
+
import "../chart/src/line/polar-double/index.mjs";
|
|
156
|
+
import "../chart/src/line/rain-flow/index.mjs";
|
|
157
|
+
import "../chart/src/line/scale/index.mjs";
|
|
158
|
+
import "../chart/src/line/smooth/index.mjs";
|
|
159
|
+
import "../chart/src/line/smooth-area/index.mjs";
|
|
160
|
+
import "../chart/src/line/stack/index.mjs";
|
|
161
|
+
import "../chart/src/line/stack-area/index.mjs";
|
|
162
|
+
import "../chart/src/line/temp/index.mjs";
|
|
163
|
+
import "../chart/src/line/vertical/index.mjs";
|
|
164
|
+
import "../chart/src/map/basic/index.mjs";
|
|
165
|
+
import "../chart/src/map/bmap-basic/index.mjs";
|
|
166
|
+
import "../chart/src/map/bmap-heatmap/index.mjs";
|
|
167
|
+
import "../chart/src/map/bmap-rich/index.mjs";
|
|
168
|
+
import "../chart/src/map/customize/index.mjs";
|
|
169
|
+
import "../chart/src/map/lines/index.mjs";
|
|
170
|
+
import "../chart/src/map/scatter/index.mjs";
|
|
171
|
+
import "../chart/src/pie/3d/index.mjs";
|
|
172
|
+
import "../chart/src/pie/basic/index.mjs";
|
|
173
|
+
import "../chart/src/pie/basic2/index.mjs";
|
|
174
|
+
import "../chart/src/pie/customized/index.mjs";
|
|
175
|
+
import "../chart/src/pie/index/index.mjs";
|
|
176
|
+
import "../chart/src/pie/interval/index.mjs";
|
|
177
|
+
import "../chart/src/pie/legend-scroll/index.mjs";
|
|
178
|
+
import "../chart/src/pie/radius/index.mjs";
|
|
179
|
+
import "../chart/src/pie/rose/index.mjs";
|
|
180
|
+
import "../chart/src/pie/round/index.mjs";
|
|
181
|
+
import "../chart/src/pie/sunburst/index.mjs";
|
|
182
|
+
import "../chart/src/scatter/basic/index.mjs";
|
|
183
|
+
import "../chart/src/scatter/basic2/index.mjs";
|
|
184
|
+
import "../chart/src/scatter/bubble/index.mjs";
|
|
185
|
+
import "../chart/src/scatter/ripples/index.mjs";
|
|
186
|
+
/* empty css */
|
|
187
|
+
/* empty css */
|
|
188
|
+
import { SHJDatasourceV2 as B } from "../../plugins/datasource/index.mjs";
|
|
189
|
+
import { SHJParseEvent as x } from "../../plugins/event/index.mjs";
|
|
7
190
|
import { autoInstallFont as N, jsonToCssStyle as H } from "../../commons/utils/json2css.mjs";
|
|
8
|
-
const J = y({ name: "zv-text-over-number" }),
|
|
191
|
+
const J = y({ name: "zv-text-over-number" }), yi = /* @__PURE__ */ y({
|
|
9
192
|
...J,
|
|
10
193
|
props: {
|
|
11
194
|
basicOption: {},
|
|
@@ -14,89 +197,89 @@ const J = y({ name: "zv-text-over-number" }), W = /* @__PURE__ */ y({
|
|
|
14
197
|
uuid: {}
|
|
15
198
|
},
|
|
16
199
|
setup(U, { expose: S }) {
|
|
17
|
-
const
|
|
18
|
-
const
|
|
200
|
+
const i = U, u = l(i.basicOption.countUp.startVal), g = (o) => {
|
|
201
|
+
const p = l(h()), e = l(0), s = l(), m = l(), d = () => {
|
|
19
202
|
B.parse({
|
|
20
|
-
tId:
|
|
21
|
-
sources:
|
|
22
|
-
callback: ({ data:
|
|
203
|
+
tId: i.uuid,
|
|
204
|
+
sources: i.sources,
|
|
205
|
+
callback: ({ data: t }) => {
|
|
23
206
|
try {
|
|
24
|
-
x.parseEvents(
|
|
25
|
-
startVal:
|
|
26
|
-
separator:
|
|
27
|
-
decimal:
|
|
28
|
-
decimalPlaces:
|
|
29
|
-
duration:
|
|
30
|
-
prefix:
|
|
31
|
-
suffix:
|
|
32
|
-
},
|
|
33
|
-
duration:
|
|
207
|
+
x.parseEvents(i.useEvents, "dataListener", t), p.value = h(), e.value = Number(t[0].data[0].value), s.value = {
|
|
208
|
+
startVal: u.value,
|
|
209
|
+
separator: o.countUp.separator,
|
|
210
|
+
decimal: o.countUp.decimal,
|
|
211
|
+
decimalPlaces: o.countUp.decimalPlaces,
|
|
212
|
+
duration: o.countUp.duration,
|
|
213
|
+
prefix: o.countUp.prefix,
|
|
214
|
+
suffix: o.countUp.suffix
|
|
215
|
+
}, o.countUp.isOdometer && (s.value.plugin = new A({
|
|
216
|
+
duration: o.countUp.duration,
|
|
34
217
|
lastDigitDelay: 0
|
|
35
|
-
})),
|
|
218
|
+
})), u.value = e.value, o.isImitate ? C() : m.value && clearInterval(m.value);
|
|
36
219
|
} catch {
|
|
37
|
-
x.parseEvents(
|
|
220
|
+
x.parseEvents(i.useEvents, "dataListener", null);
|
|
38
221
|
}
|
|
39
222
|
}
|
|
40
223
|
});
|
|
41
|
-
}, I = (
|
|
42
|
-
N(
|
|
43
|
-
const
|
|
44
|
-
|
|
224
|
+
}, I = (t) => {
|
|
225
|
+
N(t.fontFamily);
|
|
226
|
+
const r = {};
|
|
227
|
+
t.color && t.color.includes("linear-gradient") && (r.backgroundImage = t.color, r["-webkit-background-clip"] = "text", r.color = "transparent");
|
|
45
228
|
const E = {};
|
|
46
|
-
return
|
|
47
|
-
...H(
|
|
48
|
-
...
|
|
229
|
+
return t.textAlign === "left" && (t.justifyContent = "flex-start"), t.textAlign === "center" && (t.justifyContent = "center"), t.textAlign === "right" && (t.justifyContent = "flex-end"), {
|
|
230
|
+
...H(t),
|
|
231
|
+
...r,
|
|
49
232
|
...E,
|
|
50
|
-
...
|
|
233
|
+
...t.textShadow.show ? { textShadow: `${t.textShadow.x}px ${t.textShadow.y}px ${t.textShadow.value}px ${t.textShadow.color}` } : {}
|
|
51
234
|
};
|
|
52
235
|
}, b = () => {
|
|
53
236
|
}, C = () => {
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
},
|
|
237
|
+
m.value && clearInterval(m.value);
|
|
238
|
+
const t = o.countUp.isOdometer ? Math.floor(Math.random() * 6) + 5 : Math.floor(Math.random() * 4) + 3;
|
|
239
|
+
m.value = setInterval(() => {
|
|
240
|
+
u.value = e.value, s.value.startVal = u.value;
|
|
241
|
+
const r = Number((Math.random() * 10).toFixed(o.countUp.decimalPlaces));
|
|
242
|
+
r > 3 ? e.value += r : e.value -= r;
|
|
243
|
+
}, t * 1e3);
|
|
61
244
|
};
|
|
62
|
-
return P(() => T(() =>
|
|
63
|
-
|
|
245
|
+
return P(() => T(() => d())), $(() => {
|
|
246
|
+
m.value && clearInterval(m.value);
|
|
64
247
|
}), {
|
|
65
|
-
key:
|
|
66
|
-
init:
|
|
67
|
-
options:
|
|
68
|
-
endValue:
|
|
248
|
+
key: p,
|
|
249
|
+
init: d,
|
|
250
|
+
options: s,
|
|
251
|
+
endValue: e,
|
|
69
252
|
onFinished: b,
|
|
70
253
|
rendererDomStyle: I
|
|
71
254
|
};
|
|
72
255
|
}, {
|
|
73
256
|
key: w,
|
|
74
|
-
init:
|
|
257
|
+
init: a,
|
|
75
258
|
options: k,
|
|
76
259
|
endValue: D,
|
|
77
260
|
onFinished: V,
|
|
78
261
|
rendererDomStyle: F
|
|
79
|
-
} = g(
|
|
80
|
-
return
|
|
81
|
-
v(
|
|
82
|
-
}, { deep: !0 }),
|
|
83
|
-
v(
|
|
262
|
+
} = g(i.basicOption);
|
|
263
|
+
return c(() => f(i.basicOption), (o, p) => {
|
|
264
|
+
v(o, p) || a();
|
|
265
|
+
}, { deep: !0 }), c(() => f(i.sources), (o, p) => {
|
|
266
|
+
v(o, p) || a();
|
|
84
267
|
}, { deep: !0 }), S({
|
|
85
|
-
refresh: () =>
|
|
86
|
-
refreshView: () =>
|
|
87
|
-
refreshData: () =>
|
|
88
|
-
}), (
|
|
89
|
-
key:
|
|
268
|
+
refresh: () => a(),
|
|
269
|
+
refreshView: () => a(),
|
|
270
|
+
refreshData: () => a()
|
|
271
|
+
}), (o, p) => (j(), M(n(z), {
|
|
272
|
+
key: n(w),
|
|
90
273
|
class: "zerov-widget-over-number",
|
|
91
|
-
"end-val":
|
|
92
|
-
options:
|
|
93
|
-
loop:
|
|
94
|
-
delay:
|
|
95
|
-
style: _(
|
|
96
|
-
onFinished:
|
|
274
|
+
"end-val": n(D),
|
|
275
|
+
options: n(k),
|
|
276
|
+
loop: o.basicOption.countUp.loop,
|
|
277
|
+
delay: o.basicOption.countUp.delay,
|
|
278
|
+
style: _(n(F)(o.basicOption.css)),
|
|
279
|
+
onFinished: n(V)
|
|
97
280
|
}, null, 8, ["end-val", "options", "loop", "delay", "style", "onFinished"]));
|
|
98
281
|
}
|
|
99
282
|
});
|
|
100
283
|
export {
|
|
101
|
-
|
|
284
|
+
yi as default
|
|
102
285
|
};
|
|
@@ -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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ecf40b7b"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,194 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as f, watch as T, createElementBlock as w, openBlock as _, unref as e, normalizeStyle as E, toDisplayString as b, ref as u, onMounted as z, onBeforeUnmount as j } from "vue";
|
|
2
|
+
import n from "dayjs";
|
|
3
3
|
import { cloneDeep as C, isEqual as I } from "lodash";
|
|
4
|
-
import { SHJParseEvent as f } from "@shjjs/visual-core";
|
|
5
4
|
import "dayjs/locale/zh-cn";
|
|
6
5
|
import { autoInstallFont as k, jsonToCssStyle as D } from "../../commons/utils/json2css.mjs";
|
|
7
|
-
|
|
6
|
+
import "../text-text-basic/index.mjs";
|
|
7
|
+
import "../text-table-basic/index.mjs";
|
|
8
|
+
import "../chart-other-gauge/index.mjs";
|
|
9
|
+
import "../chart-other-gauge-stage/index.mjs";
|
|
10
|
+
import "../chart-other-gauge-grade/index.mjs";
|
|
11
|
+
import "../chart-other-word-cloud/index.mjs";
|
|
12
|
+
import "../chart-other-liquidfill/index.mjs";
|
|
13
|
+
import "../chart-other-funnel/index.mjs";
|
|
14
|
+
import "../chart-other-force/index.mjs";
|
|
15
|
+
import "../chart-other-radar/index.mjs";
|
|
16
|
+
import "../chart-other-funnel-split/index.mjs";
|
|
17
|
+
import "../chart-other-funnel-contrast/index.mjs";
|
|
18
|
+
import "../chart-other-candlestick-basic/index.mjs";
|
|
19
|
+
import "../chart-other-candlestick-shanghai/index.mjs";
|
|
20
|
+
import "../chart-other-candlestick-demo/index.mjs";
|
|
21
|
+
import "../chart-other-heatmap/index.mjs";
|
|
22
|
+
import "../chart-other-force2/index.mjs";
|
|
23
|
+
import "../chart-other-graph-basic/index.mjs";
|
|
24
|
+
import "../chart-other-graph-basic2/index.mjs";
|
|
25
|
+
import "../chart-other-graph-calendar/index.mjs";
|
|
26
|
+
import "../chart-other-tree-line/index.mjs";
|
|
27
|
+
import "../chart-other-treemap-basic/index.mjs";
|
|
28
|
+
import "../chart-other-sunburst-basic/index.mjs";
|
|
29
|
+
import "../chart-other-sunburst-basic2/index.mjs";
|
|
30
|
+
import "../chart-other-sunburst-basic3/index.mjs";
|
|
31
|
+
import "../chart-other-sunburst-basic4/index.mjs";
|
|
32
|
+
import "../chart-other-sunburst-book/index.mjs";
|
|
33
|
+
import "../chart-other-sunburst-radius/index.mjs";
|
|
34
|
+
import "../chart-other-sunburst-flavors/index.mjs";
|
|
35
|
+
import "../chart-other-parallel-basic/index.mjs";
|
|
36
|
+
import "../chart-other-parallel-mul/index.mjs";
|
|
37
|
+
import "../chart-other-circular-graph/index.mjs";
|
|
38
|
+
import "../map-earth-basic/index.mjs";
|
|
39
|
+
import "../map-earth-cool-tech/index.mjs";
|
|
40
|
+
import "../map-earth-particle/index.mjs";
|
|
41
|
+
import "../map-earth-hacker/index.mjs";
|
|
42
|
+
import "../map-earth-fly-line/index.mjs";
|
|
43
|
+
import "../chart-other-grid-percentage/index.mjs";
|
|
44
|
+
import "../chart-other-radar-stack/index.mjs";
|
|
45
|
+
import "../chart-other-funnel2/index.mjs";
|
|
46
|
+
import "../chart-other-label-gauge/index.mjs";
|
|
47
|
+
import "../chart-other-theme-river/index.mjs";
|
|
48
|
+
import "../chart-other-tree/index.mjs";
|
|
49
|
+
import "../chart-other-treemap/index.mjs";
|
|
50
|
+
import "../commons-product-model/index.mjs";
|
|
51
|
+
import "../commons-vr-photo/index.mjs";
|
|
52
|
+
import "../commons-vr-video/index.mjs";
|
|
53
|
+
import "../commons-three-loader/index.mjs";
|
|
54
|
+
import "../commons-three-loader3/index.mjs";
|
|
55
|
+
import "../commons-loop-iterator/index.mjs";
|
|
56
|
+
import "../commons-gaussian-splatting-view/index.mjs";
|
|
57
|
+
import "../commons-babylon/index.mjs";
|
|
58
|
+
import "../commons-svg/index.mjs";
|
|
59
|
+
import "../commons-weather/index.mjs";
|
|
60
|
+
import "../commons-weather-dynamic/index.mjs";
|
|
61
|
+
import "../media-wavesurfer/index.mjs";
|
|
62
|
+
import "../interaction-tabs/index.mjs";
|
|
63
|
+
import "../interaction-tabs2/index.mjs";
|
|
64
|
+
import "../interaction-button/index.mjs";
|
|
65
|
+
import "../interaction-button-image/index.mjs";
|
|
66
|
+
import "../interaction-select/index.mjs";
|
|
67
|
+
import "../interaction-input/index.mjs";
|
|
68
|
+
import "../interaction-radio/index.mjs";
|
|
69
|
+
import "../interaction-slider/index.mjs";
|
|
70
|
+
import "../interaction-switch/index.mjs";
|
|
71
|
+
import "../interaction-data-picker/index.mjs";
|
|
72
|
+
import "../interaction-button-refresh/index.mjs";
|
|
73
|
+
import "../media-image/index.mjs";
|
|
74
|
+
import "../text-title/index.mjs";
|
|
75
|
+
import "../commons-qrcode/index.mjs";
|
|
76
|
+
import "../media-video/index.mjs";
|
|
77
|
+
import "../media-audio/index.mjs";
|
|
78
|
+
import "./index.mjs";
|
|
79
|
+
import "../media-carousel/index.mjs";
|
|
80
|
+
import "../media-carousel-slides/index.mjs";
|
|
81
|
+
import "../media-iframe-carousel/index.mjs";
|
|
82
|
+
import "../media-iframe/index.mjs";
|
|
83
|
+
import "../media-m3u8/index.mjs";
|
|
84
|
+
import "../media-m3u8-dynamic/index.mjs";
|
|
85
|
+
import "../media-audio-dynamic/index.mjs";
|
|
86
|
+
import "../media-video-dynamic/index.mjs";
|
|
87
|
+
import "../media-image-dynamic/index.mjs";
|
|
88
|
+
import "../media-iframe-dynamic/index.mjs";
|
|
89
|
+
import "../media-flv/index.mjs";
|
|
90
|
+
import "../commons-echarts/index.mjs";
|
|
91
|
+
import "../text-over-number/index.mjs";
|
|
92
|
+
import "../text-table-scroll/index.mjs";
|
|
93
|
+
import "../text-carousel/index.mjs";
|
|
94
|
+
import "../text-row-scroll/index.mjs";
|
|
95
|
+
import "../text-text-dynamic/index.mjs";
|
|
96
|
+
import "../text-count-down/index.mjs";
|
|
97
|
+
import "../graphical-circle/index.mjs";
|
|
98
|
+
import "../graphical-diamond/index.mjs";
|
|
99
|
+
import "../graphical-hexagon/index.mjs";
|
|
100
|
+
import "../graphical-isosceles-triangle/index.mjs";
|
|
101
|
+
import "../graphical-pentagon/index.mjs";
|
|
102
|
+
import "../graphical-rect/index.mjs";
|
|
103
|
+
import "../graphical-right-triangle/index.mjs";
|
|
104
|
+
import "../scene-map3d/index.mjs";
|
|
105
|
+
import "../scene-amap2d/index.mjs";
|
|
106
|
+
import "../scene-amap3d/index.mjs";
|
|
107
|
+
import "../scene-vr/index.mjs";
|
|
108
|
+
import "../scene-unity-iframe/index.mjs";
|
|
109
|
+
import "../scene-unity-webgl/index.mjs";
|
|
110
|
+
import "../scene-ue-iframe/index.mjs";
|
|
111
|
+
import "../scene-ue-shj/index.mjs";
|
|
112
|
+
import "../scene-default/index.mjs";
|
|
113
|
+
import "../interaction/tabs/index.mjs";
|
|
114
|
+
import "../interaction/tabs-icon/index.mjs";
|
|
115
|
+
import "../interaction/button/index.mjs";
|
|
116
|
+
import "../interaction/date-picker/src/date-picker/index.mjs";
|
|
117
|
+
import "../interaction/date-picker/src/date-picker-range/index.mjs";
|
|
118
|
+
import "../text/list/index.mjs";
|
|
119
|
+
import "../chart/src/bar/basic/index.mjs";
|
|
120
|
+
import "../chart/src/bar/animation/index.mjs";
|
|
121
|
+
import "../chart/src/bar/contrast/index.mjs";
|
|
122
|
+
import "../chart/src/bar/contrast2/index.mjs";
|
|
123
|
+
import "../chart/src/bar/contrast3/index.mjs";
|
|
124
|
+
import "../chart/src/bar/gradient-column-chart/index.mjs";
|
|
125
|
+
import "../chart/src/bar/horizontal/index.mjs";
|
|
126
|
+
import "../chart/src/bar/horizontal-stack/index.mjs";
|
|
127
|
+
import "../chart/src/bar/line-bar/index.mjs";
|
|
128
|
+
import "../chart/src/bar/line-bar2/index.mjs";
|
|
129
|
+
import "../chart/src/bar/loop/index.mjs";
|
|
130
|
+
import "../chart/src/bar/mini/index.mjs";
|
|
131
|
+
import "../chart/src/bar/polar/index.mjs";
|
|
132
|
+
import "../chart/src/bar/polar-stack/index.mjs";
|
|
133
|
+
import "../chart/src/bar/polar2/index.mjs";
|
|
134
|
+
import "../chart/src/bar/radius-circle/index.mjs";
|
|
135
|
+
import "../chart/src/bar/rank/index.mjs";
|
|
136
|
+
import "../chart/src/bar/segmented-progress/index.mjs";
|
|
137
|
+
import "../chart/src/bar/spire/index.mjs";
|
|
138
|
+
import "../chart/src/bar/stack/index.mjs";
|
|
139
|
+
import "../chart/src/bar/stack-line/index.mjs";
|
|
140
|
+
import "../chart/src/bar/stack2/index.mjs";
|
|
141
|
+
import "../chart/src/bar/stack3/index.mjs";
|
|
142
|
+
import "../chart/src/bar/staggered/index.mjs";
|
|
143
|
+
import "../chart/src/bar/three/index.mjs";
|
|
144
|
+
import "../chart/src/bar/waterfall/index.mjs";
|
|
145
|
+
import "../chart/src/bar/zebra/index.mjs";
|
|
146
|
+
import "../chart/src/line/area-gradient/index.mjs";
|
|
147
|
+
import "../chart/src/line/area-highlight/index.mjs";
|
|
148
|
+
import "../chart/src/line/area-highlight2/index.mjs";
|
|
149
|
+
import "../chart/src/line/basic/index.mjs";
|
|
150
|
+
import "../chart/src/line/bump/index.mjs";
|
|
151
|
+
import "../chart/src/line/dashed/index.mjs";
|
|
152
|
+
import "../chart/src/line/ladder/index.mjs";
|
|
153
|
+
import "../chart/src/line/logarithm/index.mjs";
|
|
154
|
+
import "../chart/src/line/multix/index.mjs";
|
|
155
|
+
import "../chart/src/line/polar-double/index.mjs";
|
|
156
|
+
import "../chart/src/line/rain-flow/index.mjs";
|
|
157
|
+
import "../chart/src/line/scale/index.mjs";
|
|
158
|
+
import "../chart/src/line/smooth/index.mjs";
|
|
159
|
+
import "../chart/src/line/smooth-area/index.mjs";
|
|
160
|
+
import "../chart/src/line/stack/index.mjs";
|
|
161
|
+
import "../chart/src/line/stack-area/index.mjs";
|
|
162
|
+
import "../chart/src/line/temp/index.mjs";
|
|
163
|
+
import "../chart/src/line/vertical/index.mjs";
|
|
164
|
+
import "../chart/src/map/basic/index.mjs";
|
|
165
|
+
import "../chart/src/map/bmap-basic/index.mjs";
|
|
166
|
+
import "../chart/src/map/bmap-heatmap/index.mjs";
|
|
167
|
+
import "../chart/src/map/bmap-rich/index.mjs";
|
|
168
|
+
import "../chart/src/map/customize/index.mjs";
|
|
169
|
+
import "../chart/src/map/lines/index.mjs";
|
|
170
|
+
import "../chart/src/map/scatter/index.mjs";
|
|
171
|
+
import "../chart/src/pie/3d/index.mjs";
|
|
172
|
+
import "../chart/src/pie/basic/index.mjs";
|
|
173
|
+
import "../chart/src/pie/basic2/index.mjs";
|
|
174
|
+
import "../chart/src/pie/customized/index.mjs";
|
|
175
|
+
import "../chart/src/pie/index/index.mjs";
|
|
176
|
+
import "../chart/src/pie/interval/index.mjs";
|
|
177
|
+
import "../chart/src/pie/legend-scroll/index.mjs";
|
|
178
|
+
import "../chart/src/pie/radius/index.mjs";
|
|
179
|
+
import "../chart/src/pie/rose/index.mjs";
|
|
180
|
+
import "../chart/src/pie/round/index.mjs";
|
|
181
|
+
import "../chart/src/pie/sunburst/index.mjs";
|
|
182
|
+
import "../chart/src/scatter/basic/index.mjs";
|
|
183
|
+
import "../chart/src/scatter/basic2/index.mjs";
|
|
184
|
+
import "../chart/src/scatter/bubble/index.mjs";
|
|
185
|
+
import "../chart/src/scatter/ripples/index.mjs";
|
|
186
|
+
/* empty css */
|
|
187
|
+
/* empty css */
|
|
188
|
+
import "../../plugins/datasource/utils/request.mjs";
|
|
189
|
+
import "../../plugins/datasource/utils/wsManager.mjs";
|
|
190
|
+
import { SHJParseEvent as c } from "../../plugins/event/index.mjs";
|
|
191
|
+
const O = ["ztitle"], R = f({ name: "zv-text-real-time" }), li = /* @__PURE__ */ f({
|
|
8
192
|
...R,
|
|
9
193
|
props: {
|
|
10
194
|
basicOption: {},
|
|
@@ -15,42 +199,42 @@ const O = ["ztitle"], R = p({ name: "zv-text-real-time" }), J = /* @__PURE__ */
|
|
|
15
199
|
"on-change"
|
|
16
200
|
],
|
|
17
201
|
setup(s, { emit: d }) {
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
k(
|
|
21
|
-
const
|
|
22
|
-
|
|
202
|
+
const a = d, m = s, v = (r) => {
|
|
203
|
+
const o = u(), i = u(n().locale("zh-cn").format(r.format)), g = (t) => {
|
|
204
|
+
k(t.fontFamily);
|
|
205
|
+
const p = {};
|
|
206
|
+
t.color && t.color.includes("linear-gradient") && (p.backgroundImage = t.color, p["-webkit-background-clip"] = "text", p.color = "transparent");
|
|
23
207
|
const S = {};
|
|
24
|
-
return
|
|
25
|
-
...D(
|
|
26
|
-
...
|
|
208
|
+
return t.textAlign === "left" && (t.justifyContent = "flex-start"), t.textAlign === "center" && (t.justifyContent = "center"), t.textAlign === "right" && (t.justifyContent = "flex-end"), {
|
|
209
|
+
...D(t),
|
|
210
|
+
...p,
|
|
27
211
|
...S,
|
|
28
|
-
...
|
|
212
|
+
...t.textShadow.show ? { "--text-shadow": `${t.textShadow.x}px ${t.textShadow.y}px ${t.textShadow.value}px ${t.textShadow.color}` } : {}
|
|
29
213
|
};
|
|
30
|
-
}, y = (
|
|
31
|
-
|
|
32
|
-
|
|
214
|
+
}, y = (t) => {
|
|
215
|
+
o.value && clearInterval(o.value), o.value = setInterval(() => {
|
|
216
|
+
i.value = n().locale("zh-cn").format(t), a("on-change", i.value), c.parseEvents(m.useEvents, "on-change", i.value);
|
|
33
217
|
}, 1e3);
|
|
34
218
|
};
|
|
35
219
|
return z(() => {
|
|
36
|
-
|
|
37
|
-
|
|
220
|
+
o.value = setInterval(() => {
|
|
221
|
+
i.value = n().locale("zh-cn").format(r.format), a("on-change", i.value), c.parseEvents(m.useEvents, "on-change", i.value);
|
|
38
222
|
}, 1e3);
|
|
39
223
|
}), j(() => {
|
|
40
|
-
|
|
41
|
-
}), { updateRealTime: y, realTime:
|
|
42
|
-
}, { updateRealTime: h, realTime:
|
|
43
|
-
return T(() => C(
|
|
44
|
-
I(
|
|
224
|
+
o.value && clearInterval(o.value);
|
|
225
|
+
}), { updateRealTime: y, realTime: i, rendererDomStyle: g };
|
|
226
|
+
}, { updateRealTime: h, realTime: l, rendererDomStyle: x } = v(m.basicOption);
|
|
227
|
+
return T(() => C(m.basicOption.format), (r, o) => {
|
|
228
|
+
I(r, o) || h(r);
|
|
45
229
|
}, {
|
|
46
230
|
deep: !0
|
|
47
|
-
}), (
|
|
231
|
+
}), (r, o) => (_(), w("div", {
|
|
48
232
|
class: "real-time",
|
|
49
|
-
style: E(
|
|
50
|
-
ztitle: l
|
|
51
|
-
}, b(l
|
|
233
|
+
style: E(e(x)(r.basicOption.css)),
|
|
234
|
+
ztitle: e(l)
|
|
235
|
+
}, b(e(l)), 13, O));
|
|
52
236
|
}
|
|
53
237
|
});
|
|
54
238
|
export {
|
|
55
|
-
|
|
239
|
+
li as default
|
|
56
240
|
};
|
|
@@ -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-865d7c5f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|