@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,10 +1,194 @@
|
|
|
1
|
-
import { defineComponent as x, ref as
|
|
1
|
+
import { defineComponent as x, ref as n, onMounted as O, createElementBlock as e, openBlock as s, normalizeStyle as a, unref as c, createCommentVNode as k, Fragment as w, renderList as D, withModifiers as L, normalizeClass as V, createVNode as B, nextTick as N } from "vue";
|
|
2
2
|
import { useResizeObserver as T } from "@vueuse/core";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { useTabsWatch as W } from "./hooks/useTabsWatch.mjs";
|
|
4
|
+
import "../../text-text-basic/index.mjs";
|
|
5
|
+
import "../../text-table-basic/index.mjs";
|
|
6
|
+
import "../../chart-other-gauge/index.mjs";
|
|
7
|
+
import "../../chart-other-gauge-stage/index.mjs";
|
|
8
|
+
import "../../chart-other-gauge-grade/index.mjs";
|
|
9
|
+
import "../../chart-other-word-cloud/index.mjs";
|
|
10
|
+
import "../../chart-other-liquidfill/index.mjs";
|
|
11
|
+
import "../../chart-other-funnel/index.mjs";
|
|
12
|
+
import "../../chart-other-force/index.mjs";
|
|
13
|
+
import "../../chart-other-radar/index.mjs";
|
|
14
|
+
import "../../chart-other-funnel-split/index.mjs";
|
|
15
|
+
import "../../chart-other-funnel-contrast/index.mjs";
|
|
16
|
+
import "../../chart-other-candlestick-basic/index.mjs";
|
|
17
|
+
import "../../chart-other-candlestick-shanghai/index.mjs";
|
|
18
|
+
import "../../chart-other-candlestick-demo/index.mjs";
|
|
19
|
+
import "../../chart-other-heatmap/index.mjs";
|
|
20
|
+
import "../../chart-other-force2/index.mjs";
|
|
21
|
+
import "../../chart-other-graph-basic/index.mjs";
|
|
22
|
+
import "../../chart-other-graph-basic2/index.mjs";
|
|
23
|
+
import "../../chart-other-graph-calendar/index.mjs";
|
|
24
|
+
import "../../chart-other-tree-line/index.mjs";
|
|
25
|
+
import "../../chart-other-treemap-basic/index.mjs";
|
|
26
|
+
import "../../chart-other-sunburst-basic/index.mjs";
|
|
27
|
+
import "../../chart-other-sunburst-basic2/index.mjs";
|
|
28
|
+
import "../../chart-other-sunburst-basic3/index.mjs";
|
|
29
|
+
import "../../chart-other-sunburst-basic4/index.mjs";
|
|
30
|
+
import "../../chart-other-sunburst-book/index.mjs";
|
|
31
|
+
import "../../chart-other-sunburst-radius/index.mjs";
|
|
32
|
+
import "../../chart-other-sunburst-flavors/index.mjs";
|
|
33
|
+
import "../../chart-other-parallel-basic/index.mjs";
|
|
34
|
+
import "../../chart-other-parallel-mul/index.mjs";
|
|
35
|
+
import "../../chart-other-circular-graph/index.mjs";
|
|
36
|
+
import "../../map-earth-basic/index.mjs";
|
|
37
|
+
import "../../map-earth-cool-tech/index.mjs";
|
|
38
|
+
import "../../map-earth-particle/index.mjs";
|
|
39
|
+
import "../../map-earth-hacker/index.mjs";
|
|
40
|
+
import "../../map-earth-fly-line/index.mjs";
|
|
41
|
+
import "../../chart-other-grid-percentage/index.mjs";
|
|
42
|
+
import "../../chart-other-radar-stack/index.mjs";
|
|
43
|
+
import "../../chart-other-funnel2/index.mjs";
|
|
44
|
+
import "../../chart-other-label-gauge/index.mjs";
|
|
45
|
+
import "../../chart-other-theme-river/index.mjs";
|
|
46
|
+
import "../../chart-other-tree/index.mjs";
|
|
47
|
+
import "../../chart-other-treemap/index.mjs";
|
|
48
|
+
import "../../commons-product-model/index.mjs";
|
|
49
|
+
import "../../commons-vr-photo/index.mjs";
|
|
50
|
+
import "../../commons-vr-video/index.mjs";
|
|
51
|
+
import "../../commons-three-loader/index.mjs";
|
|
52
|
+
import "../../commons-three-loader3/index.mjs";
|
|
53
|
+
import "../../commons-loop-iterator/index.mjs";
|
|
54
|
+
import "../../commons-gaussian-splatting-view/index.mjs";
|
|
55
|
+
import "../../commons-babylon/index.mjs";
|
|
56
|
+
import "../../commons-svg/index.mjs";
|
|
57
|
+
import "../../commons-weather/index.mjs";
|
|
58
|
+
import "../../commons-weather-dynamic/index.mjs";
|
|
59
|
+
import "../../media-wavesurfer/index.mjs";
|
|
60
|
+
import "../../interaction-tabs/index.mjs";
|
|
61
|
+
import "../../interaction-tabs2/index.mjs";
|
|
62
|
+
import "../../interaction-button/index.mjs";
|
|
63
|
+
import "../../interaction-button-image/index.mjs";
|
|
64
|
+
import "../../interaction-select/index.mjs";
|
|
65
|
+
import "../../interaction-input/index.mjs";
|
|
66
|
+
import "../../interaction-radio/index.mjs";
|
|
67
|
+
import "../../interaction-slider/index.mjs";
|
|
68
|
+
import "../../interaction-switch/index.mjs";
|
|
69
|
+
import "../../interaction-data-picker/index.mjs";
|
|
70
|
+
import "../../interaction-button-refresh/index.mjs";
|
|
71
|
+
import "../../media-image/index.mjs";
|
|
72
|
+
import "../../text-title/index.mjs";
|
|
73
|
+
import "../../commons-qrcode/index.mjs";
|
|
74
|
+
import "../../media-video/index.mjs";
|
|
75
|
+
import "../../media-audio/index.mjs";
|
|
76
|
+
import "../../text-real-time/index.mjs";
|
|
77
|
+
import "../../media-carousel/index.mjs";
|
|
78
|
+
import "../../media-carousel-slides/index.mjs";
|
|
79
|
+
import "../../media-iframe-carousel/index.mjs";
|
|
80
|
+
import "../../media-iframe/index.mjs";
|
|
81
|
+
import "../../media-m3u8/index.mjs";
|
|
82
|
+
import "../../media-m3u8-dynamic/index.mjs";
|
|
83
|
+
import "../../media-audio-dynamic/index.mjs";
|
|
84
|
+
import "../../media-video-dynamic/index.mjs";
|
|
85
|
+
import "../../media-image-dynamic/index.mjs";
|
|
86
|
+
import "../../media-iframe-dynamic/index.mjs";
|
|
87
|
+
import "../../media-flv/index.mjs";
|
|
88
|
+
import "../../commons-echarts/index.mjs";
|
|
89
|
+
import "../../text-over-number/index.mjs";
|
|
90
|
+
import "../../text-table-scroll/index.mjs";
|
|
91
|
+
import "../../text-carousel/index.mjs";
|
|
92
|
+
import "../../text-row-scroll/index.mjs";
|
|
93
|
+
import "../../text-text-dynamic/index.mjs";
|
|
94
|
+
import "../../text-count-down/index.mjs";
|
|
95
|
+
import "../../graphical-circle/index.mjs";
|
|
96
|
+
import "../../graphical-diamond/index.mjs";
|
|
97
|
+
import "../../graphical-hexagon/index.mjs";
|
|
98
|
+
import "../../graphical-isosceles-triangle/index.mjs";
|
|
99
|
+
import "../../graphical-pentagon/index.mjs";
|
|
100
|
+
import "../../graphical-rect/index.mjs";
|
|
101
|
+
import "../../graphical-right-triangle/index.mjs";
|
|
102
|
+
import "../../scene-map3d/index.mjs";
|
|
103
|
+
import "../../scene-amap2d/index.mjs";
|
|
104
|
+
import "../../scene-amap3d/index.mjs";
|
|
105
|
+
import "../../scene-vr/index.mjs";
|
|
106
|
+
import "../../scene-unity-iframe/index.mjs";
|
|
107
|
+
import "../../scene-unity-webgl/index.mjs";
|
|
108
|
+
import "../../scene-ue-iframe/index.mjs";
|
|
109
|
+
import "../../scene-ue-shj/index.mjs";
|
|
110
|
+
import "../../scene-default/index.mjs";
|
|
111
|
+
import "./index.mjs";
|
|
112
|
+
import "../tabs-icon/index.mjs";
|
|
113
|
+
import "../button/index.mjs";
|
|
114
|
+
import "../date-picker/src/date-picker/index.mjs";
|
|
115
|
+
import "../date-picker/src/date-picker-range/index.mjs";
|
|
116
|
+
import "../../text/list/index.mjs";
|
|
117
|
+
import "../../chart/src/bar/basic/index.mjs";
|
|
118
|
+
import "../../chart/src/bar/animation/index.mjs";
|
|
119
|
+
import "../../chart/src/bar/contrast/index.mjs";
|
|
120
|
+
import "../../chart/src/bar/contrast2/index.mjs";
|
|
121
|
+
import "../../chart/src/bar/contrast3/index.mjs";
|
|
122
|
+
import "../../chart/src/bar/gradient-column-chart/index.mjs";
|
|
123
|
+
import "../../chart/src/bar/horizontal/index.mjs";
|
|
124
|
+
import "../../chart/src/bar/horizontal-stack/index.mjs";
|
|
125
|
+
import "../../chart/src/bar/line-bar/index.mjs";
|
|
126
|
+
import "../../chart/src/bar/line-bar2/index.mjs";
|
|
127
|
+
import "../../chart/src/bar/loop/index.mjs";
|
|
128
|
+
import "../../chart/src/bar/mini/index.mjs";
|
|
129
|
+
import "../../chart/src/bar/polar/index.mjs";
|
|
130
|
+
import "../../chart/src/bar/polar-stack/index.mjs";
|
|
131
|
+
import "../../chart/src/bar/polar2/index.mjs";
|
|
132
|
+
import "../../chart/src/bar/radius-circle/index.mjs";
|
|
133
|
+
import "../../chart/src/bar/rank/index.mjs";
|
|
134
|
+
import "../../chart/src/bar/segmented-progress/index.mjs";
|
|
135
|
+
import "../../chart/src/bar/spire/index.mjs";
|
|
136
|
+
import "../../chart/src/bar/stack/index.mjs";
|
|
137
|
+
import "../../chart/src/bar/stack-line/index.mjs";
|
|
138
|
+
import "../../chart/src/bar/stack2/index.mjs";
|
|
139
|
+
import "../../chart/src/bar/stack3/index.mjs";
|
|
140
|
+
import "../../chart/src/bar/staggered/index.mjs";
|
|
141
|
+
import "../../chart/src/bar/three/index.mjs";
|
|
142
|
+
import "../../chart/src/bar/waterfall/index.mjs";
|
|
143
|
+
import "../../chart/src/bar/zebra/index.mjs";
|
|
144
|
+
import "../../chart/src/line/area-gradient/index.mjs";
|
|
145
|
+
import "../../chart/src/line/area-highlight/index.mjs";
|
|
146
|
+
import "../../chart/src/line/area-highlight2/index.mjs";
|
|
147
|
+
import "../../chart/src/line/basic/index.mjs";
|
|
148
|
+
import "../../chart/src/line/bump/index.mjs";
|
|
149
|
+
import "../../chart/src/line/dashed/index.mjs";
|
|
150
|
+
import "../../chart/src/line/ladder/index.mjs";
|
|
151
|
+
import "../../chart/src/line/logarithm/index.mjs";
|
|
152
|
+
import "../../chart/src/line/multix/index.mjs";
|
|
153
|
+
import "../../chart/src/line/polar-double/index.mjs";
|
|
154
|
+
import "../../chart/src/line/rain-flow/index.mjs";
|
|
155
|
+
import "../../chart/src/line/scale/index.mjs";
|
|
156
|
+
import "../../chart/src/line/smooth/index.mjs";
|
|
157
|
+
import "../../chart/src/line/smooth-area/index.mjs";
|
|
158
|
+
import "../../chart/src/line/stack/index.mjs";
|
|
159
|
+
import "../../chart/src/line/stack-area/index.mjs";
|
|
160
|
+
import "../../chart/src/line/temp/index.mjs";
|
|
161
|
+
import "../../chart/src/line/vertical/index.mjs";
|
|
162
|
+
import "../../chart/src/map/basic/index.mjs";
|
|
163
|
+
import "../../chart/src/map/bmap-basic/index.mjs";
|
|
164
|
+
import "../../chart/src/map/bmap-heatmap/index.mjs";
|
|
165
|
+
import "../../chart/src/map/bmap-rich/index.mjs";
|
|
166
|
+
import "../../chart/src/map/customize/index.mjs";
|
|
167
|
+
import "../../chart/src/map/lines/index.mjs";
|
|
168
|
+
import "../../chart/src/map/scatter/index.mjs";
|
|
169
|
+
import "../../chart/src/pie/3d/index.mjs";
|
|
170
|
+
import "../../chart/src/pie/basic/index.mjs";
|
|
171
|
+
import "../../chart/src/pie/basic2/index.mjs";
|
|
172
|
+
import "../../chart/src/pie/customized/index.mjs";
|
|
173
|
+
import "../../chart/src/pie/index/index.mjs";
|
|
174
|
+
import "../../chart/src/pie/interval/index.mjs";
|
|
175
|
+
import "../../chart/src/pie/legend-scroll/index.mjs";
|
|
176
|
+
import "../../chart/src/pie/radius/index.mjs";
|
|
177
|
+
import "../../chart/src/pie/rose/index.mjs";
|
|
178
|
+
import "../../chart/src/pie/round/index.mjs";
|
|
179
|
+
import "../../chart/src/pie/sunburst/index.mjs";
|
|
180
|
+
import "../../chart/src/scatter/basic/index.mjs";
|
|
181
|
+
import "../../chart/src/scatter/basic2/index.mjs";
|
|
182
|
+
import "../../chart/src/scatter/bubble/index.mjs";
|
|
183
|
+
import "../../chart/src/scatter/ripples/index.mjs";
|
|
184
|
+
/* empty css */
|
|
185
|
+
/* empty css */
|
|
186
|
+
import { SHJDatasourceV2 as H } from "../../../plugins/datasource/index.mjs";
|
|
187
|
+
import { SHJParseEvent as g } from "../../../plugins/event/index.mjs";
|
|
188
|
+
import "lodash";
|
|
189
|
+
import { Utils as u } from "../../../commons/utils/utils.mjs";
|
|
6
190
|
import I from "../../../commons/components/text.vue.mjs";
|
|
7
|
-
const J = ["onClick"], M = x({ name: "shj-tabs" }),
|
|
191
|
+
const J = ["onClick"], M = x({ name: "shj-tabs" }), bi = /* @__PURE__ */ x({
|
|
8
192
|
...M,
|
|
9
193
|
props: {
|
|
10
194
|
option: {},
|
|
@@ -14,74 +198,74 @@ const J = ["onClick"], M = x({ name: "shj-tabs" }), G = /* @__PURE__ */ x({
|
|
|
14
198
|
},
|
|
15
199
|
emits: ["on-change"],
|
|
16
200
|
setup(y, { expose: _, emit: C }) {
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
tId:
|
|
20
|
-
sources:
|
|
21
|
-
callback: ({ data:
|
|
22
|
-
if (!
|
|
23
|
-
|
|
201
|
+
const t = y, f = C, i = n([]), r = n(t.option.value), l = () => {
|
|
202
|
+
H.parse({
|
|
203
|
+
tId: t.uuid,
|
|
204
|
+
sources: t.sources,
|
|
205
|
+
callback: ({ data: o }) => {
|
|
206
|
+
if (!o) {
|
|
207
|
+
i.value = [];
|
|
24
208
|
return;
|
|
25
209
|
}
|
|
26
|
-
|
|
210
|
+
i.value = o[0].data, t.option.isDefaultSelect && (r.value = t.option.value, !r.value && i.value.length > 0 && (r.value = i.value[0].value), f("on-change", i.value[0]), g.parseEvents(t.useEvents, "on-change", i.value[0])), d();
|
|
27
211
|
}
|
|
28
212
|
});
|
|
29
213
|
};
|
|
30
|
-
O(() =>
|
|
31
|
-
const j = (
|
|
32
|
-
|
|
214
|
+
O(() => l());
|
|
215
|
+
const j = (o) => {
|
|
216
|
+
o.value !== r.value && (f("on-change", o), g.parseEvents(t.useEvents, "on-change", o)), r.value = o.value;
|
|
33
217
|
};
|
|
34
|
-
|
|
35
|
-
refresh: () =>
|
|
218
|
+
W(t, l, r, i), _({
|
|
219
|
+
refresh: () => l(),
|
|
36
220
|
refreshView: () => {
|
|
37
221
|
},
|
|
38
222
|
// 刷新视图 无需刷新
|
|
39
|
-
refreshData: () =>
|
|
223
|
+
refreshData: () => l()
|
|
40
224
|
});
|
|
41
|
-
const
|
|
225
|
+
const p = n(null), h = 150, v = n(!1), d = () => {
|
|
42
226
|
N(() => {
|
|
43
|
-
if (
|
|
44
|
-
const { scrollWidth:
|
|
45
|
-
|
|
227
|
+
if (p.value) {
|
|
228
|
+
const { scrollWidth: o, clientWidth: b } = p.value;
|
|
229
|
+
v.value = o > b;
|
|
46
230
|
}
|
|
47
231
|
});
|
|
48
232
|
}, S = () => {
|
|
49
|
-
|
|
233
|
+
p.value && (p.value.scrollLeft -= h);
|
|
50
234
|
}, E = () => {
|
|
51
|
-
|
|
235
|
+
p.value && (p.value.scrollLeft += h);
|
|
52
236
|
};
|
|
53
|
-
return T(
|
|
237
|
+
return T(p, (o) => d()), (o, b) => (s(), e("div", {
|
|
54
238
|
ref_key: "tabsContainer",
|
|
55
|
-
ref:
|
|
239
|
+
ref: p,
|
|
56
240
|
class: "height-100 flex overflow-hidden scroll-behavior-smooth",
|
|
57
|
-
style:
|
|
241
|
+
style: a(c(u).json2cssObject(t.option.css.tab))
|
|
58
242
|
}, [
|
|
59
|
-
|
|
243
|
+
v.value ? (s(), e("button", {
|
|
60
244
|
key: 0,
|
|
61
245
|
class: "flex-none cursor-pointer position-absolute translate-center-left-active-scale-095 top-50 background-size-cover",
|
|
62
|
-
style:
|
|
246
|
+
style: a(c(u).json2cssObject(t.option.css.nav.left)),
|
|
63
247
|
onClick: S
|
|
64
248
|
}, null, 4)) : k("", !0),
|
|
65
|
-
(
|
|
249
|
+
(s(!0), e(w, null, D(i.value, (m, z) => (s(), e("div", {
|
|
66
250
|
key: z,
|
|
67
|
-
class: V(["flex flex-none cursor-pointer transition-color-background-color background-size-cover", { selected:
|
|
68
|
-
style:
|
|
69
|
-
onClick: L((R) => j(
|
|
251
|
+
class: V(["flex flex-none cursor-pointer transition-color-background-color background-size-cover", { selected: m.value === r.value }]),
|
|
252
|
+
style: a(c(u).json2cssObject(m.value === r.value ? t.option.css.item.selected : t.option.css.item)),
|
|
253
|
+
onClick: L((R) => j(m), ["stop"])
|
|
70
254
|
}, [
|
|
71
255
|
B(I, {
|
|
72
|
-
"text-style":
|
|
73
|
-
text:
|
|
256
|
+
"text-style": m.value === r.value ? t.option.css.item.selected.textStyle : t.option.css.item.textStyle,
|
|
257
|
+
text: m.label
|
|
74
258
|
}, null, 8, ["text-style", "text"])
|
|
75
259
|
], 14, J))), 128)),
|
|
76
|
-
|
|
260
|
+
v.value ? (s(), e("button", {
|
|
77
261
|
key: 1,
|
|
78
262
|
class: "flex-none cursor-pointer position-absolute translate-center-right-active-scale-095 top-50 background-size-cover",
|
|
79
|
-
style:
|
|
263
|
+
style: a(c(u).json2cssObject(t.option.css.nav.right)),
|
|
80
264
|
onClick: E
|
|
81
265
|
}, null, 4)) : k("", !0)
|
|
82
266
|
], 4));
|
|
83
267
|
}
|
|
84
268
|
});
|
|
85
269
|
export {
|
|
86
|
-
|
|
270
|
+
bi as default
|
|
87
271
|
};
|
|
@@ -1,10 +1,194 @@
|
|
|
1
|
-
import { defineComponent as x, ref as
|
|
1
|
+
import { defineComponent as x, ref as u, onMounted as O, createElementBlock as m, openBlock as s, normalizeStyle as l, unref as n, createCommentVNode as g, Fragment as V, renderList as w, withModifiers as D, normalizeClass as I, createElementVNode as L, createVNode as N, nextTick as B } from "vue";
|
|
2
2
|
import { useResizeObserver as T } from "@vueuse/core";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { useTabsWatch as W } from "./hooks/useTabsWatch.mjs";
|
|
4
|
+
import "../../text-text-basic/index.mjs";
|
|
5
|
+
import "../../text-table-basic/index.mjs";
|
|
6
|
+
import "../../chart-other-gauge/index.mjs";
|
|
7
|
+
import "../../chart-other-gauge-stage/index.mjs";
|
|
8
|
+
import "../../chart-other-gauge-grade/index.mjs";
|
|
9
|
+
import "../../chart-other-word-cloud/index.mjs";
|
|
10
|
+
import "../../chart-other-liquidfill/index.mjs";
|
|
11
|
+
import "../../chart-other-funnel/index.mjs";
|
|
12
|
+
import "../../chart-other-force/index.mjs";
|
|
13
|
+
import "../../chart-other-radar/index.mjs";
|
|
14
|
+
import "../../chart-other-funnel-split/index.mjs";
|
|
15
|
+
import "../../chart-other-funnel-contrast/index.mjs";
|
|
16
|
+
import "../../chart-other-candlestick-basic/index.mjs";
|
|
17
|
+
import "../../chart-other-candlestick-shanghai/index.mjs";
|
|
18
|
+
import "../../chart-other-candlestick-demo/index.mjs";
|
|
19
|
+
import "../../chart-other-heatmap/index.mjs";
|
|
20
|
+
import "../../chart-other-force2/index.mjs";
|
|
21
|
+
import "../../chart-other-graph-basic/index.mjs";
|
|
22
|
+
import "../../chart-other-graph-basic2/index.mjs";
|
|
23
|
+
import "../../chart-other-graph-calendar/index.mjs";
|
|
24
|
+
import "../../chart-other-tree-line/index.mjs";
|
|
25
|
+
import "../../chart-other-treemap-basic/index.mjs";
|
|
26
|
+
import "../../chart-other-sunburst-basic/index.mjs";
|
|
27
|
+
import "../../chart-other-sunburst-basic2/index.mjs";
|
|
28
|
+
import "../../chart-other-sunburst-basic3/index.mjs";
|
|
29
|
+
import "../../chart-other-sunburst-basic4/index.mjs";
|
|
30
|
+
import "../../chart-other-sunburst-book/index.mjs";
|
|
31
|
+
import "../../chart-other-sunburst-radius/index.mjs";
|
|
32
|
+
import "../../chart-other-sunburst-flavors/index.mjs";
|
|
33
|
+
import "../../chart-other-parallel-basic/index.mjs";
|
|
34
|
+
import "../../chart-other-parallel-mul/index.mjs";
|
|
35
|
+
import "../../chart-other-circular-graph/index.mjs";
|
|
36
|
+
import "../../map-earth-basic/index.mjs";
|
|
37
|
+
import "../../map-earth-cool-tech/index.mjs";
|
|
38
|
+
import "../../map-earth-particle/index.mjs";
|
|
39
|
+
import "../../map-earth-hacker/index.mjs";
|
|
40
|
+
import "../../map-earth-fly-line/index.mjs";
|
|
41
|
+
import "../../chart-other-grid-percentage/index.mjs";
|
|
42
|
+
import "../../chart-other-radar-stack/index.mjs";
|
|
43
|
+
import "../../chart-other-funnel2/index.mjs";
|
|
44
|
+
import "../../chart-other-label-gauge/index.mjs";
|
|
45
|
+
import "../../chart-other-theme-river/index.mjs";
|
|
46
|
+
import "../../chart-other-tree/index.mjs";
|
|
47
|
+
import "../../chart-other-treemap/index.mjs";
|
|
48
|
+
import "../../commons-product-model/index.mjs";
|
|
49
|
+
import "../../commons-vr-photo/index.mjs";
|
|
50
|
+
import "../../commons-vr-video/index.mjs";
|
|
51
|
+
import "../../commons-three-loader/index.mjs";
|
|
52
|
+
import "../../commons-three-loader3/index.mjs";
|
|
53
|
+
import "../../commons-loop-iterator/index.mjs";
|
|
54
|
+
import "../../commons-gaussian-splatting-view/index.mjs";
|
|
55
|
+
import "../../commons-babylon/index.mjs";
|
|
56
|
+
import "../../commons-svg/index.mjs";
|
|
57
|
+
import "../../commons-weather/index.mjs";
|
|
58
|
+
import "../../commons-weather-dynamic/index.mjs";
|
|
59
|
+
import "../../media-wavesurfer/index.mjs";
|
|
60
|
+
import "../../interaction-tabs/index.mjs";
|
|
61
|
+
import "../../interaction-tabs2/index.mjs";
|
|
62
|
+
import "../../interaction-button/index.mjs";
|
|
63
|
+
import "../../interaction-button-image/index.mjs";
|
|
64
|
+
import "../../interaction-select/index.mjs";
|
|
65
|
+
import "../../interaction-input/index.mjs";
|
|
66
|
+
import "../../interaction-radio/index.mjs";
|
|
67
|
+
import "../../interaction-slider/index.mjs";
|
|
68
|
+
import "../../interaction-switch/index.mjs";
|
|
69
|
+
import "../../interaction-data-picker/index.mjs";
|
|
70
|
+
import "../../interaction-button-refresh/index.mjs";
|
|
71
|
+
import "../../media-image/index.mjs";
|
|
72
|
+
import "../../text-title/index.mjs";
|
|
73
|
+
import "../../commons-qrcode/index.mjs";
|
|
74
|
+
import "../../media-video/index.mjs";
|
|
75
|
+
import "../../media-audio/index.mjs";
|
|
76
|
+
import "../../text-real-time/index.mjs";
|
|
77
|
+
import "../../media-carousel/index.mjs";
|
|
78
|
+
import "../../media-carousel-slides/index.mjs";
|
|
79
|
+
import "../../media-iframe-carousel/index.mjs";
|
|
80
|
+
import "../../media-iframe/index.mjs";
|
|
81
|
+
import "../../media-m3u8/index.mjs";
|
|
82
|
+
import "../../media-m3u8-dynamic/index.mjs";
|
|
83
|
+
import "../../media-audio-dynamic/index.mjs";
|
|
84
|
+
import "../../media-video-dynamic/index.mjs";
|
|
85
|
+
import "../../media-image-dynamic/index.mjs";
|
|
86
|
+
import "../../media-iframe-dynamic/index.mjs";
|
|
87
|
+
import "../../media-flv/index.mjs";
|
|
88
|
+
import "../../commons-echarts/index.mjs";
|
|
89
|
+
import "../../text-over-number/index.mjs";
|
|
90
|
+
import "../../text-table-scroll/index.mjs";
|
|
91
|
+
import "../../text-carousel/index.mjs";
|
|
92
|
+
import "../../text-row-scroll/index.mjs";
|
|
93
|
+
import "../../text-text-dynamic/index.mjs";
|
|
94
|
+
import "../../text-count-down/index.mjs";
|
|
95
|
+
import "../../graphical-circle/index.mjs";
|
|
96
|
+
import "../../graphical-diamond/index.mjs";
|
|
97
|
+
import "../../graphical-hexagon/index.mjs";
|
|
98
|
+
import "../../graphical-isosceles-triangle/index.mjs";
|
|
99
|
+
import "../../graphical-pentagon/index.mjs";
|
|
100
|
+
import "../../graphical-rect/index.mjs";
|
|
101
|
+
import "../../graphical-right-triangle/index.mjs";
|
|
102
|
+
import "../../scene-map3d/index.mjs";
|
|
103
|
+
import "../../scene-amap2d/index.mjs";
|
|
104
|
+
import "../../scene-amap3d/index.mjs";
|
|
105
|
+
import "../../scene-vr/index.mjs";
|
|
106
|
+
import "../../scene-unity-iframe/index.mjs";
|
|
107
|
+
import "../../scene-unity-webgl/index.mjs";
|
|
108
|
+
import "../../scene-ue-iframe/index.mjs";
|
|
109
|
+
import "../../scene-ue-shj/index.mjs";
|
|
110
|
+
import "../../scene-default/index.mjs";
|
|
111
|
+
import "../tabs/index.mjs";
|
|
112
|
+
import "./index.mjs";
|
|
113
|
+
import "../button/index.mjs";
|
|
114
|
+
import "../date-picker/src/date-picker/index.mjs";
|
|
115
|
+
import "../date-picker/src/date-picker-range/index.mjs";
|
|
116
|
+
import "../../text/list/index.mjs";
|
|
117
|
+
import "../../chart/src/bar/basic/index.mjs";
|
|
118
|
+
import "../../chart/src/bar/animation/index.mjs";
|
|
119
|
+
import "../../chart/src/bar/contrast/index.mjs";
|
|
120
|
+
import "../../chart/src/bar/contrast2/index.mjs";
|
|
121
|
+
import "../../chart/src/bar/contrast3/index.mjs";
|
|
122
|
+
import "../../chart/src/bar/gradient-column-chart/index.mjs";
|
|
123
|
+
import "../../chart/src/bar/horizontal/index.mjs";
|
|
124
|
+
import "../../chart/src/bar/horizontal-stack/index.mjs";
|
|
125
|
+
import "../../chart/src/bar/line-bar/index.mjs";
|
|
126
|
+
import "../../chart/src/bar/line-bar2/index.mjs";
|
|
127
|
+
import "../../chart/src/bar/loop/index.mjs";
|
|
128
|
+
import "../../chart/src/bar/mini/index.mjs";
|
|
129
|
+
import "../../chart/src/bar/polar/index.mjs";
|
|
130
|
+
import "../../chart/src/bar/polar-stack/index.mjs";
|
|
131
|
+
import "../../chart/src/bar/polar2/index.mjs";
|
|
132
|
+
import "../../chart/src/bar/radius-circle/index.mjs";
|
|
133
|
+
import "../../chart/src/bar/rank/index.mjs";
|
|
134
|
+
import "../../chart/src/bar/segmented-progress/index.mjs";
|
|
135
|
+
import "../../chart/src/bar/spire/index.mjs";
|
|
136
|
+
import "../../chart/src/bar/stack/index.mjs";
|
|
137
|
+
import "../../chart/src/bar/stack-line/index.mjs";
|
|
138
|
+
import "../../chart/src/bar/stack2/index.mjs";
|
|
139
|
+
import "../../chart/src/bar/stack3/index.mjs";
|
|
140
|
+
import "../../chart/src/bar/staggered/index.mjs";
|
|
141
|
+
import "../../chart/src/bar/three/index.mjs";
|
|
142
|
+
import "../../chart/src/bar/waterfall/index.mjs";
|
|
143
|
+
import "../../chart/src/bar/zebra/index.mjs";
|
|
144
|
+
import "../../chart/src/line/area-gradient/index.mjs";
|
|
145
|
+
import "../../chart/src/line/area-highlight/index.mjs";
|
|
146
|
+
import "../../chart/src/line/area-highlight2/index.mjs";
|
|
147
|
+
import "../../chart/src/line/basic/index.mjs";
|
|
148
|
+
import "../../chart/src/line/bump/index.mjs";
|
|
149
|
+
import "../../chart/src/line/dashed/index.mjs";
|
|
150
|
+
import "../../chart/src/line/ladder/index.mjs";
|
|
151
|
+
import "../../chart/src/line/logarithm/index.mjs";
|
|
152
|
+
import "../../chart/src/line/multix/index.mjs";
|
|
153
|
+
import "../../chart/src/line/polar-double/index.mjs";
|
|
154
|
+
import "../../chart/src/line/rain-flow/index.mjs";
|
|
155
|
+
import "../../chart/src/line/scale/index.mjs";
|
|
156
|
+
import "../../chart/src/line/smooth/index.mjs";
|
|
157
|
+
import "../../chart/src/line/smooth-area/index.mjs";
|
|
158
|
+
import "../../chart/src/line/stack/index.mjs";
|
|
159
|
+
import "../../chart/src/line/stack-area/index.mjs";
|
|
160
|
+
import "../../chart/src/line/temp/index.mjs";
|
|
161
|
+
import "../../chart/src/line/vertical/index.mjs";
|
|
162
|
+
import "../../chart/src/map/basic/index.mjs";
|
|
163
|
+
import "../../chart/src/map/bmap-basic/index.mjs";
|
|
164
|
+
import "../../chart/src/map/bmap-heatmap/index.mjs";
|
|
165
|
+
import "../../chart/src/map/bmap-rich/index.mjs";
|
|
166
|
+
import "../../chart/src/map/customize/index.mjs";
|
|
167
|
+
import "../../chart/src/map/lines/index.mjs";
|
|
168
|
+
import "../../chart/src/map/scatter/index.mjs";
|
|
169
|
+
import "../../chart/src/pie/3d/index.mjs";
|
|
170
|
+
import "../../chart/src/pie/basic/index.mjs";
|
|
171
|
+
import "../../chart/src/pie/basic2/index.mjs";
|
|
172
|
+
import "../../chart/src/pie/customized/index.mjs";
|
|
173
|
+
import "../../chart/src/pie/index/index.mjs";
|
|
174
|
+
import "../../chart/src/pie/interval/index.mjs";
|
|
175
|
+
import "../../chart/src/pie/legend-scroll/index.mjs";
|
|
176
|
+
import "../../chart/src/pie/radius/index.mjs";
|
|
177
|
+
import "../../chart/src/pie/rose/index.mjs";
|
|
178
|
+
import "../../chart/src/pie/round/index.mjs";
|
|
179
|
+
import "../../chart/src/pie/sunburst/index.mjs";
|
|
180
|
+
import "../../chart/src/scatter/basic/index.mjs";
|
|
181
|
+
import "../../chart/src/scatter/basic2/index.mjs";
|
|
182
|
+
import "../../chart/src/scatter/bubble/index.mjs";
|
|
183
|
+
import "../../chart/src/scatter/ripples/index.mjs";
|
|
184
|
+
/* empty css */
|
|
185
|
+
/* empty css */
|
|
186
|
+
import { SHJDatasourceV2 as H } from "../../../plugins/datasource/index.mjs";
|
|
187
|
+
import { SHJParseEvent as k } from "../../../plugins/event/index.mjs";
|
|
188
|
+
import "lodash";
|
|
189
|
+
import { Utils as a } from "../../../commons/utils/utils.mjs";
|
|
6
190
|
import J from "../../../commons/components/text.vue.mjs";
|
|
7
|
-
const M = ["onClick"], R = ["src"], $ = x({ name: "shj-tabs-icon" }),
|
|
191
|
+
const M = ["onClick"], R = ["src"], $ = x({ name: "shj-tabs-icon" }), ki = /* @__PURE__ */ x({
|
|
8
192
|
...$,
|
|
9
193
|
props: {
|
|
10
194
|
option: {},
|
|
@@ -14,79 +198,79 @@ const M = ["onClick"], R = ["src"], $ = x({ name: "shj-tabs-icon" }), Q = /* @__
|
|
|
14
198
|
},
|
|
15
199
|
emits: ["on-change"],
|
|
16
200
|
setup(_, { expose: y, emit: j }) {
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
tId:
|
|
20
|
-
sources:
|
|
21
|
-
callback: ({ data:
|
|
22
|
-
if (!
|
|
23
|
-
|
|
201
|
+
const t = _, f = j, p = u([]), o = u(t.option.value), c = () => {
|
|
202
|
+
H.parse({
|
|
203
|
+
tId: t.uuid,
|
|
204
|
+
sources: t.sources,
|
|
205
|
+
callback: ({ data: r }) => {
|
|
206
|
+
if (!r) {
|
|
207
|
+
p.value = [];
|
|
24
208
|
return;
|
|
25
209
|
}
|
|
26
|
-
|
|
210
|
+
p.value = r[0].data, t.option.isDefaultSelect && (o.value = t.option.value, !o.value && p.value.length > 0 && (o.value = p.value[0].value), f("on-change", p.value[0]), k.parseEvents(t.useEvents, "on-change", p.value[0])), h();
|
|
27
211
|
}
|
|
28
212
|
});
|
|
29
213
|
};
|
|
30
|
-
O(() =>
|
|
31
|
-
const C = (
|
|
32
|
-
|
|
214
|
+
O(() => c());
|
|
215
|
+
const C = (r) => {
|
|
216
|
+
r.value !== o.value && (f("on-change", r), k.parseEvents(t.useEvents, "on-change", r)), o.value = r.value;
|
|
33
217
|
};
|
|
34
|
-
|
|
35
|
-
refresh: () =>
|
|
218
|
+
W(t, c, o, p), y({
|
|
219
|
+
refresh: () => c(),
|
|
36
220
|
refreshView: () => {
|
|
37
221
|
},
|
|
38
222
|
// 刷新视图 无需刷新
|
|
39
|
-
refreshData: () =>
|
|
223
|
+
refreshData: () => c()
|
|
40
224
|
});
|
|
41
|
-
const
|
|
225
|
+
const e = u(null), d = 150, v = u(!1), h = () => {
|
|
42
226
|
B(() => {
|
|
43
|
-
if (
|
|
44
|
-
const { scrollWidth:
|
|
45
|
-
|
|
227
|
+
if (e.value) {
|
|
228
|
+
const { scrollWidth: r, clientWidth: b } = e.value;
|
|
229
|
+
v.value = r > b;
|
|
46
230
|
}
|
|
47
231
|
});
|
|
48
232
|
}, S = () => {
|
|
49
|
-
|
|
233
|
+
e.value && (e.value.scrollLeft -= d);
|
|
50
234
|
}, E = () => {
|
|
51
|
-
|
|
235
|
+
e.value && (e.value.scrollLeft += d);
|
|
52
236
|
};
|
|
53
|
-
return T(
|
|
237
|
+
return T(e, (r) => h()), (r, b) => (s(), m("div", {
|
|
54
238
|
ref_key: "tabsContainer",
|
|
55
|
-
ref:
|
|
239
|
+
ref: e,
|
|
56
240
|
class: "height-100 flex overflow-hidden scroll-behavior-smooth",
|
|
57
|
-
style:
|
|
241
|
+
style: l(n(a).json2cssObject(t.option.css.tab))
|
|
58
242
|
}, [
|
|
59
|
-
|
|
243
|
+
v.value ? (s(), m("button", {
|
|
60
244
|
key: 0,
|
|
61
245
|
class: "flex-none cursor-pointer position-absolute translate-center-left-active-scale-095 top-50 background-size-cover",
|
|
62
|
-
style:
|
|
246
|
+
style: l(n(a).json2cssObject(t.option.css.nav.left)),
|
|
63
247
|
onClick: S
|
|
64
248
|
}, null, 4)) : g("", !0),
|
|
65
|
-
(
|
|
249
|
+
(s(!0), m(V, null, w(p.value, (i, z) => (s(), m("div", {
|
|
66
250
|
key: z,
|
|
67
|
-
class: I(["flex flex-none position-relative cursor-pointer transition-color-background-color background-size-cover", { selected:
|
|
68
|
-
style:
|
|
69
|
-
onClick: D((F) => C(
|
|
251
|
+
class: I(["flex flex-none position-relative cursor-pointer transition-color-background-color background-size-cover", { selected: i.value === o.value }]),
|
|
252
|
+
style: l(n(a).json2cssObject(i.value === o.value ? t.option.css.item.selected : t.option.css.item)),
|
|
253
|
+
onClick: D((F) => C(i), ["stop"])
|
|
70
254
|
}, [
|
|
71
255
|
L("img", {
|
|
72
256
|
class: "img-drag-none img-30",
|
|
73
|
-
style:
|
|
74
|
-
src:
|
|
257
|
+
style: l(n(a).json2cssObject(i.value === o.value ? t.option.css.item.selected.img : t.option.css.item.img)),
|
|
258
|
+
src: i.value === o.value ? i.selectedImg : i.defaultImg
|
|
75
259
|
}, null, 12, R),
|
|
76
260
|
N(J, {
|
|
77
|
-
"text-style":
|
|
78
|
-
text:
|
|
261
|
+
"text-style": i.value === o.value ? t.option.css.item.selected.textStyle : t.option.css.item.textStyle,
|
|
262
|
+
text: i.label
|
|
79
263
|
}, null, 8, ["text-style", "text"])
|
|
80
264
|
], 14, M))), 128)),
|
|
81
|
-
|
|
265
|
+
v.value ? (s(), m("button", {
|
|
82
266
|
key: 1,
|
|
83
267
|
class: "flex-none cursor-pointer position-absolute translate-center-right-active-scale-095 top-50 background-size-cover",
|
|
84
|
-
style:
|
|
268
|
+
style: l(n(a).json2cssObject(t.option.css.nav.right)),
|
|
85
269
|
onClick: E
|
|
86
270
|
}, null, 4)) : g("", !0)
|
|
87
271
|
], 4));
|
|
88
272
|
}
|
|
89
273
|
});
|
|
90
274
|
export {
|
|
91
|
-
|
|
275
|
+
ki as default
|
|
92
276
|
};
|
|
@@ -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-6fb89ed3"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|