@shjjs/visual-ui 1.0.18 → 1.0.19
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 +59 -58
- package/es/commons/{core → plugins}/datasource/index.mjs +5 -5
- package/es/commons/plugins/datasource/utils/utils.d.ts +84 -0
- package/es/commons/plugins/datasource/utils/utils.mjs +156 -0
- package/es/commons/plugins/event/actions/fullScreenAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/fullScreenAction.mjs +8 -0
- package/es/commons/plugins/event/actions/invokeAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/invokeAction.mjs +10 -0
- package/es/commons/plugins/event/actions/linkAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/linkAction.mjs +7 -0
- package/es/commons/plugins/event/actions/moveAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/moveAction.mjs +15 -0
- package/es/commons/plugins/event/actions/pageAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/pageAction.mjs +14 -0
- package/es/commons/plugins/event/actions/rotateAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/rotateAction.mjs +19 -0
- package/es/commons/plugins/event/actions/scaleAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/scaleAction.mjs +24 -0
- package/es/commons/plugins/event/actions/sendApiAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/sendApiAction.mjs +16 -0
- package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.mjs +31 -0
- package/es/commons/plugins/event/actions/ueShjExecMethodAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/ueShjExecMethodAction.mjs +31 -0
- package/es/commons/plugins/event/actions/unityIframeExecMethodAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/unityIframeExecMethodAction.mjs +28 -0
- package/es/commons/plugins/event/actions/unityWebglExecMethodAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/unityWebglExecMethodAction.mjs +28 -0
- package/es/commons/plugins/event/actions/updatePageAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/updatePageAction.mjs +6 -0
- package/es/commons/plugins/event/actions/updateVariableAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/updateVariableAction.mjs +23 -0
- package/es/commons/plugins/event/actions/updateWidgetAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/updateWidgetAction.mjs +13 -0
- package/es/commons/plugins/event/actions/vrSceneMethodAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/vrSceneMethodAction.mjs +12 -0
- package/es/commons/plugins/event/index.d.ts +202 -0
- package/es/commons/plugins/event/index.mjs +150 -0
- package/es/commons/plugins/event/utils/utils.d.ts +22 -0
- package/es/commons/plugins/event/utils/utils.mjs +52 -0
- package/es/commons/utils/getNextElement.d.ts +7 -0
- package/es/commons/utils/getNextElement.mjs +12 -0
- package/es/components/chart-bar-animation/index.vue.mjs +24 -23
- package/es/components/chart-bar-basic/index.vue.mjs +24 -23
- package/es/components/chart-bar-contrast/index.vue.mjs +32 -31
- package/es/components/chart-bar-contrast2/index.vue.mjs +23 -22
- package/es/components/chart-bar-contrast3/index.vue.mjs +25 -24
- package/es/components/chart-bar-gradient-column-chart/index.vue.mjs +24 -23
- package/es/components/chart-bar-horizontal/index.vue.mjs +25 -24
- package/es/components/chart-bar-horizontal-stack/index.vue.mjs +25 -24
- package/es/components/chart-bar-line-bar/index.vue.mjs +23 -22
- package/es/components/chart-bar-line-bar2/index.vue.mjs +23 -22
- package/es/components/chart-bar-loop/index.vue.mjs +25 -24
- package/es/components/chart-bar-mini/index.vue.mjs +25 -24
- package/es/components/chart-bar-polar/index.vue.mjs +23 -22
- package/es/components/chart-bar-polar-stack/index.vue.mjs +23 -22
- package/es/components/chart-bar-polar2/index.vue.mjs +23 -22
- package/es/components/chart-bar-radius-circle/index.vue.mjs +23 -22
- package/es/components/chart-bar-rank/index.vue.mjs +25 -24
- package/es/components/chart-bar-segmented-progress/index.vue.mjs +27 -26
- package/es/components/chart-bar-spire/index.vue.mjs +30 -29
- package/es/components/chart-bar-stack/index.vue.mjs +24 -23
- package/es/components/chart-bar-stack-line/index.vue.mjs +23 -22
- package/es/components/chart-bar-stack2/index.vue.mjs +23 -22
- package/es/components/chart-bar-stack3/index.vue.mjs +23 -22
- package/es/components/chart-bar-staggered/index.vue.mjs +23 -22
- package/es/components/chart-bar-three/index.vue.mjs +21 -20
- package/es/components/chart-bar-waterfall/index.vue.mjs +30 -29
- package/es/components/chart-bar-zebra/index.vue.mjs +23 -22
- package/es/components/chart-line-area-gradient/index.vue.mjs +24 -23
- package/es/components/chart-line-area-highlight/index.vue.mjs +23 -22
- package/es/components/chart-line-area-highlight2/index.vue.mjs +23 -22
- package/es/components/chart-line-basic/index.vue.mjs +25 -24
- package/es/components/chart-line-bump/index.vue.mjs +30 -29
- package/es/components/chart-line-dashed/index.vue.mjs +24 -23
- package/es/components/chart-line-ladder/index.vue.mjs +24 -23
- package/es/components/chart-line-logarithm/index.vue.mjs +29 -28
- package/es/components/chart-line-multix/index.vue.mjs +29 -28
- package/es/components/chart-line-polar-double/index.vue.mjs +25 -24
- package/es/components/chart-line-rain-flow/index.vue.mjs +29 -28
- package/es/components/chart-line-scale/index.vue.mjs +24 -23
- package/es/components/chart-line-smooth/index.vue.mjs +24 -23
- package/es/components/chart-line-smooth-area/index.vue.mjs +29 -28
- package/es/components/chart-line-stack/index.vue.mjs +24 -23
- package/es/components/chart-line-stack-area/index.vue.mjs +24 -23
- package/es/components/chart-line-temp/index.vue.mjs +29 -28
- package/es/components/chart-line-vertical/index.vue.mjs +24 -23
- package/es/components/chart-map-basic/index.vue.mjs +29 -28
- package/es/components/chart-map-bmap-basic/index.vue.mjs +25 -24
- package/es/components/chart-map-bmap-heatmap/index.vue.mjs +24 -23
- package/es/components/chart-map-bmap-rich/index.vue.mjs +24 -23
- package/es/components/chart-map-customize/index.vue.mjs +23 -22
- package/es/components/chart-map-lines/index.vue.mjs +24 -23
- package/es/components/chart-map-scatter/index.vue.mjs +24 -23
- package/es/components/chart-other-candlestick-basic/index.vue.mjs +25 -24
- package/es/components/chart-other-candlestick-demo/index.vue.mjs +22 -21
- package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +22 -21
- package/es/components/chart-other-circular-graph/index.vue.mjs +20 -19
- package/es/components/chart-other-force/index.vue.mjs +22 -21
- package/es/components/chart-other-force2/index.vue.mjs +22 -21
- package/es/components/chart-other-funnel/index.vue.mjs +20 -19
- package/es/components/chart-other-funnel-contrast/index.vue.mjs +20 -19
- package/es/components/chart-other-funnel-split/index.vue.mjs +20 -19
- package/es/components/chart-other-funnel2/index.vue.mjs +20 -19
- package/es/components/chart-other-gauge/index.vue.mjs +20 -19
- package/es/components/chart-other-gauge-grade/index.vue.mjs +20 -19
- package/es/components/chart-other-gauge-stage/index.vue.mjs +20 -19
- package/es/components/chart-other-graph-basic/index.vue.mjs +21 -20
- package/es/components/chart-other-graph-basic2/index.vue.mjs +21 -20
- package/es/components/chart-other-graph-calendar/index.vue.mjs +21 -20
- package/es/components/chart-other-grid-percentage/index.vue.mjs +25 -24
- package/es/components/chart-other-heatmap/index.vue.mjs +23 -22
- package/es/components/chart-other-label-gauge/index.vue.mjs +30 -29
- package/es/components/chart-other-liquidfill/index.vue.mjs +22 -21
- package/es/components/chart-other-parallel-basic/index.vue.mjs +21 -20
- package/es/components/chart-other-parallel-mul/index.vue.mjs +30 -29
- package/es/components/chart-other-radar/index.vue.mjs +32 -31
- package/es/components/chart-other-radar-stack/index.vue.mjs +23 -22
- package/es/components/chart-other-sunburst-basic/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-basic2/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-basic3/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-basic4/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-book/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-flavors/index.vue.mjs +20 -19
- package/es/components/chart-other-sunburst-radius/index.vue.mjs +22 -21
- package/es/components/chart-other-theme-river/index.vue.mjs +25 -24
- package/es/components/chart-other-tree/index.vue.mjs +20 -19
- package/es/components/chart-other-tree-line/index.vue.mjs +21 -20
- package/es/components/chart-other-treemap/index.vue.mjs +19 -18
- package/es/components/chart-other-treemap-basic/index.vue.mjs +20 -19
- package/es/components/chart-other-word-cloud/index.vue.mjs +18 -17
- package/es/components/chart-pie-3d/index.vue.mjs +25 -24
- package/es/components/chart-pie-basic/index.vue.mjs +23 -22
- package/es/components/chart-pie-basic2/index.vue.mjs +23 -22
- package/es/components/chart-pie-customized/index.vue.mjs +28 -27
- package/es/components/chart-pie-index/index.vue.mjs +22 -21
- package/es/components/chart-pie-interval/index.vue.mjs +22 -21
- package/es/components/chart-pie-legend-scroll/index.vue.mjs +28 -27
- package/es/components/chart-pie-radius/index.vue.mjs +22 -21
- package/es/components/chart-pie-rose/index.vue.mjs +27 -26
- package/es/components/chart-pie-round/index.vue.mjs +27 -26
- package/es/components/chart-pie-semicircle/index.vue.mjs +23 -22
- package/es/components/chart-pie-sunburst/index.vue.mjs +23 -22
- package/es/components/chart-scatter-basic/index.vue.mjs +24 -23
- package/es/components/chart-scatter-basic2/index.vue.mjs +24 -23
- package/es/components/chart-scatter-bubble/index.vue.mjs +25 -24
- package/es/components/chart-scatter-ripples/index.vue.mjs +21 -20
- package/es/components/commons-echarts/compileAndRunEcharts.mjs +22 -21
- package/es/components/commons-loop-iterator/index.vue.mjs +2 -2
- package/es/components/commons-loop-iterator/index.vue2.mjs +39 -38
- package/es/components/commons-product-model/index.vue.mjs +1 -1
- package/es/components/commons-product-model/index.vue2.mjs +40 -39
- package/es/components/commons-three-loader/index.vue.mjs +2 -2
- package/es/components/commons-three-loader/index.vue2.mjs +6 -5
- package/es/components/commons-three-loader3/index.vue.mjs +2 -2
- package/es/components/commons-three-loader3/index.vue2.mjs +60 -59
- package/es/components/commons-weather/index.vue.mjs +2 -2
- package/es/components/commons-weather/index.vue2.mjs +45 -44
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +16 -14
- package/es/components/interaction-input/index.vue.mjs +1 -1
- package/es/components/interaction-input/index.vue2.mjs +56 -55
- package/es/components/interaction-select/index.vue.mjs +1 -1
- package/es/components/interaction-select/index.vue2.mjs +83 -82
- package/es/components/interaction-slider/index.vue.mjs +2 -2
- package/es/components/interaction-slider/index.vue2.mjs +45 -44
- package/es/components/interaction-switch/index.vue.mjs +2 -2
- package/es/components/interaction-switch/index.vue2.mjs +31 -30
- package/es/components/interaction-tabs/index.vue.mjs +2 -2
- package/es/components/interaction-tabs/index.vue2.mjs +31 -30
- package/es/components/interaction-tabs2/index.vue.mjs +2 -2
- package/es/components/interaction-tabs2/index.vue2.mjs +31 -30
- package/es/components/map-earth-basic/index.vue.d.ts +4 -4
- package/es/components/map-earth-basic/index.vue.mjs +30 -29
- package/es/components/map-earth-cool-tech/index.vue.d.ts +0 -2
- package/es/components/map-earth-cool-tech/index.vue.mjs +30 -29
- package/es/components/map-earth-fly-line/index.vue.d.ts +4 -2
- package/es/components/map-earth-fly-line/index.vue.mjs +34 -33
- package/es/components/map-earth-hacker/index.vue.d.ts +4 -2
- package/es/components/map-earth-hacker/index.vue.mjs +29 -28
- package/es/components/map-earth-particle/index.vue.d.ts +4 -2
- package/es/components/map-earth-particle/index.vue.mjs +30 -29
- package/es/components/media-audio/index.vue.mjs +1 -1
- package/es/components/media-audio/index.vue2.mjs +49 -48
- package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
- package/es/components/media-audio-dynamic/index.vue2.mjs +58 -57
- package/es/components/media-flv/index.vue.mjs +40 -39
- package/es/components/media-iframe/index.vue.mjs +2 -2
- package/es/components/media-iframe/index.vue2.mjs +14 -13
- package/es/components/media-image-dynamic/index.vue.mjs +2 -2
- package/es/components/media-image-dynamic/index.vue2.mjs +23 -22
- package/es/components/media-m3u8/index.vue.mjs +39 -38
- package/es/components/media-m3u8-dynamic/index.vue.mjs +54 -53
- package/es/components/media-video/index.vue.mjs +1 -1
- package/es/components/media-video/index.vue2.mjs +38 -37
- package/es/components/media-video-dynamic/index.vue.mjs +1 -1
- package/es/components/media-video-dynamic/index.vue2.mjs +49 -48
- package/es/components/scene-amap2d/index.vue.mjs +1 -1
- package/es/components/scene-amap2d/index.vue2.mjs +107 -104
- package/es/components/scene-amap3d/index.vue.mjs +2 -2
- package/es/components/scene-amap3d/index.vue2.mjs +95 -92
- package/es/components/scene-default/index.d.ts +39 -0
- package/es/components/scene-default/index.mjs +7 -0
- package/es/components/scene-default/index.vue.d.ts +40 -0
- package/es/components/scene-default/index.vue.mjs +7 -0
- package/es/components/scene-default/index.vue2.mjs +35 -0
- package/es/components/scene-map3d/index.d.ts +1 -1
- package/es/components/scene-map3d/index.vue.d.ts +1 -1
- package/es/components/scene-map3d/index.vue.mjs +2 -2
- package/es/components/scene-map3d/index.vue2.mjs +129 -126
- package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
- package/es/components/scene-ue-iframe/index.vue2.mjs +19 -18
- package/es/components/scene-ue-shj/index.vue.mjs +1 -1
- package/es/components/scene-ue-shj/index.vue2.mjs +14 -13
- package/es/components/scene-unity-iframe/index.vue.mjs +2 -2
- package/es/components/scene-unity-iframe/index.vue2.mjs +19 -16
- package/es/components/scene-unity-webgl/index.vue.mjs +1 -1
- package/es/components/scene-unity-webgl/index.vue2.mjs +16 -13
- package/es/components/scene-vr/index.vue.mjs +1 -1
- package/es/components/scene-vr/index.vue2.mjs +162 -159
- package/es/components/text-count-down/index.vue.mjs +1 -1
- package/es/components/text-count-down/index.vue2.mjs +34 -33
- package/es/components/text-over-number/index.vue.mjs +2 -2
- package/es/components/text-over-number/index.vue2.mjs +49 -48
- package/es/components/text-real-time/index.vue.mjs +2 -2
- package/es/components/text-real-time/index.vue2.mjs +26 -25
- package/es/components/text-row-scroll/index.vue.mjs +1 -1
- package/es/components/text-row-scroll/index.vue2.mjs +83 -82
- package/es/components/text-table-basic/index.vue.mjs +3 -3
- package/es/components/text-table-basic/index.vue2.mjs +97 -96
- package/es/components/text-table-scroll/index.vue.mjs +1 -1
- package/es/components/text-table-scroll/index.vue2.mjs +96 -95
- package/es/components/text-text-dynamic/index.vue.mjs +1 -1
- package/es/components/text-text-dynamic/index.vue2.mjs +29 -28
- package/es/env.d.ts +0 -2
- package/es/index.d.ts +3 -1
- package/es/index.mjs +351 -345
- package/es/widgets.css +1 -1
- package/lib/commons/core/useChart.js +1 -1
- package/lib/commons/{core → plugins}/datasource/index.js +1 -1
- package/lib/commons/plugins/datasource/utils/utils.js +1 -0
- package/lib/commons/plugins/event/actions/fullScreenAction.js +1 -0
- package/lib/commons/plugins/event/actions/invokeAction.js +1 -0
- package/lib/commons/plugins/event/actions/linkAction.js +1 -0
- package/lib/commons/plugins/event/actions/moveAction.js +1 -0
- package/lib/commons/plugins/event/actions/pageAction.js +1 -0
- package/lib/commons/plugins/event/actions/rotateAction.js +1 -0
- package/lib/commons/plugins/event/actions/scaleAction.js +1 -0
- package/lib/commons/plugins/event/actions/sendApiAction.js +1 -0
- package/lib/commons/plugins/event/actions/ueCommonsWebscoketAction.js +1 -0
- package/lib/commons/plugins/event/actions/ueShjExecMethodAction.js +1 -0
- package/lib/commons/plugins/event/actions/unityIframeExecMethodAction.js +1 -0
- package/lib/commons/plugins/event/actions/unityWebglExecMethodAction.js +1 -0
- package/lib/commons/plugins/event/actions/updatePageAction.js +1 -0
- package/lib/commons/plugins/event/actions/updateVariableAction.js +1 -0
- package/lib/commons/plugins/event/actions/updateWidgetAction.js +1 -0
- package/lib/commons/plugins/event/actions/vrSceneMethodAction.js +1 -0
- package/lib/commons/plugins/event/index.js +9 -0
- package/lib/commons/plugins/event/utils/utils.js +1 -0
- package/lib/commons/utils/getNextElement.js +1 -0
- package/lib/components/chart-bar-animation/index.vue.js +1 -1
- package/lib/components/chart-bar-basic/index.vue.js +1 -1
- package/lib/components/chart-bar-contrast/index.vue.js +1 -1
- package/lib/components/chart-bar-contrast2/index.vue.js +1 -1
- package/lib/components/chart-bar-contrast3/index.vue.js +1 -1
- package/lib/components/chart-bar-gradient-column-chart/index.vue.js +1 -1
- package/lib/components/chart-bar-horizontal/index.vue.js +1 -1
- package/lib/components/chart-bar-horizontal-stack/index.vue.js +1 -1
- package/lib/components/chart-bar-line-bar/index.vue.js +1 -1
- package/lib/components/chart-bar-line-bar2/index.vue.js +1 -1
- package/lib/components/chart-bar-loop/index.vue.js +1 -1
- package/lib/components/chart-bar-mini/index.vue.js +1 -1
- package/lib/components/chart-bar-polar/index.vue.js +1 -1
- package/lib/components/chart-bar-polar-stack/index.vue.js +1 -1
- package/lib/components/chart-bar-polar2/index.vue.js +1 -1
- package/lib/components/chart-bar-radius-circle/index.vue.js +1 -1
- package/lib/components/chart-bar-rank/index.vue.js +1 -1
- package/lib/components/chart-bar-segmented-progress/index.vue.js +1 -1
- package/lib/components/chart-bar-spire/index.vue.js +1 -1
- package/lib/components/chart-bar-stack/index.vue.js +1 -1
- package/lib/components/chart-bar-stack-line/index.vue.js +1 -1
- package/lib/components/chart-bar-stack2/index.vue.js +1 -1
- package/lib/components/chart-bar-stack3/index.vue.js +1 -1
- package/lib/components/chart-bar-staggered/index.vue.js +1 -1
- package/lib/components/chart-bar-three/index.vue.js +1 -1
- package/lib/components/chart-bar-waterfall/index.vue.js +1 -1
- package/lib/components/chart-bar-zebra/index.vue.js +1 -1
- package/lib/components/chart-line-area-gradient/index.vue.js +1 -1
- package/lib/components/chart-line-area-highlight/index.vue.js +1 -1
- package/lib/components/chart-line-area-highlight2/index.vue.js +1 -1
- package/lib/components/chart-line-basic/index.vue.js +1 -1
- package/lib/components/chart-line-bump/index.vue.js +1 -1
- package/lib/components/chart-line-dashed/index.vue.js +1 -1
- package/lib/components/chart-line-ladder/index.vue.js +1 -1
- package/lib/components/chart-line-logarithm/index.vue.js +1 -1
- package/lib/components/chart-line-multix/index.vue.js +1 -1
- package/lib/components/chart-line-polar-double/index.vue.js +1 -1
- package/lib/components/chart-line-rain-flow/index.vue.js +1 -1
- package/lib/components/chart-line-scale/index.vue.js +1 -1
- package/lib/components/chart-line-smooth/index.vue.js +1 -1
- package/lib/components/chart-line-smooth-area/index.vue.js +1 -1
- package/lib/components/chart-line-stack/index.vue.js +1 -1
- package/lib/components/chart-line-stack-area/index.vue.js +1 -1
- package/lib/components/chart-line-temp/index.vue.js +1 -1
- package/lib/components/chart-line-vertical/index.vue.js +1 -1
- package/lib/components/chart-map-basic/index.vue.js +1 -1
- package/lib/components/chart-map-bmap-basic/index.vue.js +1 -1
- package/lib/components/chart-map-bmap-heatmap/index.vue.js +1 -1
- package/lib/components/chart-map-bmap-rich/index.vue.js +1 -1
- package/lib/components/chart-map-customize/index.vue.js +1 -1
- package/lib/components/chart-map-lines/index.vue.js +1 -1
- package/lib/components/chart-map-scatter/index.vue.js +1 -1
- package/lib/components/chart-other-candlestick-basic/index.vue.js +1 -1
- package/lib/components/chart-other-candlestick-demo/index.vue.js +1 -1
- package/lib/components/chart-other-candlestick-shanghai/index.vue.js +1 -1
- package/lib/components/chart-other-circular-graph/index.vue.js +1 -1
- package/lib/components/chart-other-force/index.vue.js +1 -1
- package/lib/components/chart-other-force2/index.vue.js +1 -1
- package/lib/components/chart-other-funnel/index.vue.js +1 -1
- package/lib/components/chart-other-funnel-contrast/index.vue.js +1 -1
- package/lib/components/chart-other-funnel-split/index.vue.js +1 -1
- package/lib/components/chart-other-funnel2/index.vue.js +1 -1
- package/lib/components/chart-other-gauge/index.vue.js +1 -1
- package/lib/components/chart-other-gauge-grade/index.vue.js +1 -1
- package/lib/components/chart-other-gauge-stage/index.vue.js +1 -1
- package/lib/components/chart-other-graph-basic/index.vue.js +1 -1
- package/lib/components/chart-other-graph-basic2/index.vue.js +1 -1
- package/lib/components/chart-other-graph-calendar/index.vue.js +1 -1
- package/lib/components/chart-other-grid-percentage/index.vue.js +1 -1
- package/lib/components/chart-other-heatmap/index.vue.js +1 -1
- package/lib/components/chart-other-label-gauge/index.vue.js +1 -1
- package/lib/components/chart-other-liquidfill/index.vue.js +1 -1
- package/lib/components/chart-other-parallel-basic/index.vue.js +1 -1
- package/lib/components/chart-other-parallel-mul/index.vue.js +1 -1
- package/lib/components/chart-other-radar/index.vue.js +1 -1
- package/lib/components/chart-other-radar-stack/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic2/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic3/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic4/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-book/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-flavors/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-radius/index.vue.js +1 -1
- package/lib/components/chart-other-theme-river/index.vue.js +1 -1
- package/lib/components/chart-other-tree/index.vue.js +1 -1
- package/lib/components/chart-other-tree-line/index.vue.js +1 -1
- package/lib/components/chart-other-treemap/index.vue.js +1 -1
- package/lib/components/chart-other-treemap-basic/index.vue.js +1 -1
- package/lib/components/chart-other-word-cloud/index.vue.js +1 -1
- package/lib/components/chart-pie-3d/index.vue.js +1 -1
- package/lib/components/chart-pie-basic/index.vue.js +1 -1
- package/lib/components/chart-pie-basic2/index.vue.js +1 -1
- package/lib/components/chart-pie-customized/index.vue.js +1 -1
- package/lib/components/chart-pie-index/index.vue.js +1 -1
- package/lib/components/chart-pie-interval/index.vue.js +1 -1
- package/lib/components/chart-pie-legend-scroll/index.vue.js +1 -1
- package/lib/components/chart-pie-radius/index.vue.js +1 -1
- package/lib/components/chart-pie-rose/index.vue.js +1 -1
- package/lib/components/chart-pie-round/index.vue.js +1 -1
- package/lib/components/chart-pie-semicircle/index.vue.js +1 -1
- package/lib/components/chart-pie-sunburst/index.vue.js +1 -1
- package/lib/components/chart-scatter-basic/index.vue.js +1 -1
- package/lib/components/chart-scatter-basic2/index.vue.js +1 -1
- package/lib/components/chart-scatter-bubble/index.vue.js +1 -1
- package/lib/components/chart-scatter-ripples/index.vue.js +1 -1
- package/lib/components/commons-echarts/compileAndRunEcharts.js +6 -6
- package/lib/components/commons-loop-iterator/index.vue.js +1 -1
- package/lib/components/commons-loop-iterator/index.vue2.js +1 -1
- package/lib/components/commons-product-model/index.vue.js +1 -1
- package/lib/components/commons-product-model/index.vue2.js +1 -1
- package/lib/components/commons-three-loader/index.vue.js +1 -1
- package/lib/components/commons-three-loader/index.vue2.js +1 -1
- package/lib/components/commons-three-loader3/index.vue.js +1 -1
- package/lib/components/commons-three-loader3/index.vue2.js +1 -1
- package/lib/components/commons-weather/index.vue.js +1 -1
- package/lib/components/commons-weather/index.vue2.js +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/interaction-input/index.vue.js +1 -1
- package/lib/components/interaction-input/index.vue2.js +1 -1
- package/lib/components/interaction-select/index.vue.js +1 -1
- package/lib/components/interaction-select/index.vue2.js +1 -1
- package/lib/components/interaction-slider/index.vue.js +1 -1
- package/lib/components/interaction-slider/index.vue2.js +1 -1
- package/lib/components/interaction-switch/index.vue.js +1 -1
- package/lib/components/interaction-switch/index.vue2.js +1 -1
- package/lib/components/interaction-tabs/index.vue.js +1 -1
- package/lib/components/interaction-tabs/index.vue2.js +1 -1
- package/lib/components/interaction-tabs2/index.vue.js +1 -1
- package/lib/components/interaction-tabs2/index.vue2.js +1 -1
- package/lib/components/map-earth-basic/index.vue.js +1 -1
- package/lib/components/map-earth-cool-tech/index.vue.js +1 -1
- package/lib/components/map-earth-fly-line/index.vue.js +1 -1
- package/lib/components/map-earth-hacker/index.vue.js +1 -1
- package/lib/components/map-earth-particle/index.vue.js +1 -1
- package/lib/components/media-audio/index.vue.js +1 -1
- package/lib/components/media-audio/index.vue2.js +1 -1
- package/lib/components/media-audio-dynamic/index.vue.js +1 -1
- package/lib/components/media-audio-dynamic/index.vue2.js +1 -1
- package/lib/components/media-flv/index.vue.js +1 -1
- package/lib/components/media-iframe/index.vue.js +1 -1
- package/lib/components/media-iframe/index.vue2.js +1 -1
- package/lib/components/media-image-dynamic/index.vue.js +1 -1
- package/lib/components/media-image-dynamic/index.vue2.js +1 -1
- package/lib/components/media-m3u8/index.vue.js +1 -1
- package/lib/components/media-m3u8-dynamic/index.vue.js +1 -1
- package/lib/components/media-video/index.vue.js +1 -1
- package/lib/components/media-video/index.vue2.js +1 -1
- package/lib/components/media-video-dynamic/index.vue.js +1 -1
- package/lib/components/media-video-dynamic/index.vue2.js +1 -1
- package/lib/components/scene-amap2d/index.vue.js +1 -1
- package/lib/components/scene-amap2d/index.vue2.js +1 -1
- package/lib/components/scene-amap3d/index.vue.js +1 -1
- package/lib/components/scene-amap3d/index.vue2.js +4 -4
- package/lib/components/scene-default/index.js +1 -0
- package/lib/components/scene-default/index.vue.js +1 -0
- package/lib/components/scene-default/index.vue2.js +1 -0
- package/lib/components/scene-map3d/index.vue.js +1 -1
- package/lib/components/scene-map3d/index.vue2.js +1 -1
- package/lib/components/scene-ue-iframe/index.vue.js +1 -1
- package/lib/components/scene-ue-iframe/index.vue2.js +1 -1
- package/lib/components/scene-ue-shj/index.vue.js +1 -1
- package/lib/components/scene-ue-shj/index.vue2.js +1 -1
- package/lib/components/scene-unity-iframe/index.vue.js +1 -1
- package/lib/components/scene-unity-iframe/index.vue2.js +1 -1
- package/lib/components/scene-unity-webgl/index.vue.js +1 -1
- package/lib/components/scene-unity-webgl/index.vue2.js +1 -1
- package/lib/components/scene-vr/index.vue.js +1 -1
- package/lib/components/scene-vr/index.vue2.js +2 -2
- package/lib/components/text-count-down/index.vue.js +1 -1
- package/lib/components/text-count-down/index.vue2.js +1 -1
- package/lib/components/text-over-number/index.vue.js +1 -1
- package/lib/components/text-over-number/index.vue2.js +1 -1
- package/lib/components/text-real-time/index.vue.js +1 -1
- package/lib/components/text-real-time/index.vue2.js +1 -1
- package/lib/components/text-row-scroll/index.vue.js +1 -1
- package/lib/components/text-row-scroll/index.vue2.js +1 -1
- package/lib/components/text-table-basic/index.vue.js +1 -1
- package/lib/components/text-table-basic/index.vue2.js +1 -1
- package/lib/components/text-table-scroll/index.vue.js +1 -1
- package/lib/components/text-table-scroll/index.vue2.js +1 -1
- package/lib/components/text-text-dynamic/index.vue.js +1 -1
- package/lib/components/text-text-dynamic/index.vue2.js +1 -1
- package/lib/index.js +1 -1
- package/lib/widgets.css +1 -1
- package/package.json +1 -1
- package/es/commons/core/datasource/utils/utils.d.ts +0 -50
- package/es/commons/core/datasource/utils/utils.mjs +0 -123
- package/lib/commons/core/datasource/utils/utils.js +0 -1
- /package/es/commons/{core → plugins}/datasource/index.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/api.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/api.mjs +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/static.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/static.mjs +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/url.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/url.mjs +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/variable.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/variable.mjs +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/ws.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/ws.mjs +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/axios.d.ts +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/axios.mjs +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/request.d.ts +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/request.mjs +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/wsManager.d.ts +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/wsManager.mjs +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/api.js +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/static.js +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/url.js +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/variable.js +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/ws.js +0 -0
- /package/lib/commons/{core → plugins}/datasource/utils/axios.js +0 -0
- /package/lib/commons/{core → plugins}/datasource/utils/request.js +0 -0
- /package/lib/commons/{core → plugins}/datasource/utils/wsManager.js +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
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 "../../commons/plugins/event/index.mjs";
|
|
3
|
+
import { autoInstallFont as A, jsonToCssStyle as j } from "../../commons/utils/json2css.mjs";
|
|
4
|
+
const _ = ["ztitle"], $ = ["ztitle"], N = ["ztitle"], q = H({ name: "zv-text-count-down" }), J = /* @__PURE__ */ H({
|
|
5
|
+
...q,
|
|
5
6
|
props: {
|
|
6
7
|
basicOption: {},
|
|
7
8
|
useEvents: {}
|
|
@@ -10,8 +11,8 @@ const j = ["ztitle"], _ = ["ztitle"], $ = ["ztitle"], N = T({ name: "zv-text-cou
|
|
|
10
11
|
"on-end",
|
|
11
12
|
"on-start"
|
|
12
13
|
],
|
|
13
|
-
setup(
|
|
14
|
-
const g =
|
|
14
|
+
setup(C, { expose: Y, emit: k }) {
|
|
15
|
+
const g = k, x = window.requestAnimationFrame, n = C, d = D(0), o = D(0), a = z(() => ({
|
|
15
16
|
showMillisecond: n.basicOption.conf.format.includes("SSS"),
|
|
16
17
|
showYear: n.basicOption.conf.format.includes("Y"),
|
|
17
18
|
showMonth: n.basicOption.conf.format.includes("M"),
|
|
@@ -20,7 +21,7 @@ const j = ["ztitle"], _ = ["ztitle"], $ = ["ztitle"], N = T({ name: "zv-text-cou
|
|
|
20
21
|
showMinute: n.basicOption.conf.format.includes("m"),
|
|
21
22
|
showSecond: n.basicOption.conf.format.includes("s")
|
|
22
23
|
}));
|
|
23
|
-
function
|
|
24
|
+
function l(e) {
|
|
24
25
|
return e < 10 ? "0" + e : String(e);
|
|
25
26
|
}
|
|
26
27
|
function y(e) {
|
|
@@ -29,69 +30,69 @@ const j = ["ztitle"], _ = ["ztitle"], $ = ["ztitle"], N = T({ name: "zv-text-cou
|
|
|
29
30
|
let t = n.basicOption.conf.format, s = 0;
|
|
30
31
|
a.value.showMillisecond && (s = e % 1e3, t = t.replace("SSS", "0".repeat(3 - String(s).length) + s)), e = Math.floor(e / 1e3);
|
|
31
32
|
let r = 0;
|
|
32
|
-
a.value.showYear ? (r = Math.floor(e / (60 * 60 * 24 * 30 * 12)), t = t.includes("YY") ? t.replace("YY",
|
|
33
|
+
a.value.showYear ? (r = Math.floor(e / (60 * 60 * 24 * 30 * 12)), t = t.includes("YY") ? t.replace("YY", l(r)) : t.replace("Y", String(r))) : r = 0;
|
|
33
34
|
let c = 0;
|
|
34
|
-
a.value.showMonth ? (e = e - r * 60 * 60 * 24 * 30 * 12, c = Math.floor(e / (60 * 60 * 24 * 30)), t = t.includes("MM") ? t.replace("MM",
|
|
35
|
+
a.value.showMonth ? (e = e - r * 60 * 60 * 24 * 30 * 12, c = Math.floor(e / (60 * 60 * 24 * 30)), t = t.includes("MM") ? t.replace("MM", l(c)) : t.replace("M", String(c))) : c = 0;
|
|
35
36
|
let u = 0;
|
|
36
|
-
a.value.showDay ? (e = e - c * 60 * 60 * 24 * 30, u = Math.floor(e / (60 * 60 * 24)), t = t.includes("DD") ? t.replace("DD",
|
|
37
|
+
a.value.showDay ? (e = e - c * 60 * 60 * 24 * 30, u = Math.floor(e / (60 * 60 * 24)), t = t.includes("DD") ? t.replace("DD", l(u)) : t.replace("D", String(u))) : u = 0;
|
|
37
38
|
let f = 0;
|
|
38
|
-
a.value.showHour ? (e = e - u * 60 * 60 * 24, f = Math.floor(e / (60 * 60)), t = t.includes("HH") ? t.replace("HH",
|
|
39
|
+
a.value.showHour ? (e = e - u * 60 * 60 * 24, f = Math.floor(e / (60 * 60)), t = t.includes("HH") ? t.replace("HH", l(f)) : t.replace("H", String(f))) : f = 0;
|
|
39
40
|
let p = 0;
|
|
40
|
-
a.value.showMinute ? (e = e - f * 60 * 60, p = Math.floor(e / 60), t = t.includes("mm") ? t.replace("mm",
|
|
41
|
+
a.value.showMinute ? (e = e - f * 60 * 60, p = Math.floor(e / 60), t = t.includes("mm") ? t.replace("mm", l(p)) : t.replace("m", String(p))) : p = 0;
|
|
41
42
|
let b = 0;
|
|
42
|
-
return a.value.showSecond && (b = e - p * 60, t = t.includes("ss") ? t.replace("ss",
|
|
43
|
+
return a.value.showSecond && (b = e - p * 60, t = t.includes("ss") ? t.replace("ss", l(b)) : t.replace("s", String(b))), t;
|
|
43
44
|
}
|
|
44
45
|
function M() {
|
|
45
|
-
o.value !== null && (d.value > Date.now() ? (o.value = d.value - Date.now(), x(M)) : (o.value = 0, g("on-end"),
|
|
46
|
+
o.value !== null && (d.value > Date.now() ? (o.value = d.value - Date.now(), x(M)) : (o.value = 0, g("on-end"), T.parseEvents(n.useEvents, "end-count-down", null)));
|
|
46
47
|
}
|
|
47
|
-
const
|
|
48
|
-
g("on-start"),
|
|
48
|
+
const i = () => {
|
|
49
|
+
g("on-start"), T.parseEvents(n.useEvents, "on-start", null), o.value = 0, Number.isFinite(n.basicOption.conf.value) ? (n.basicOption.conf.future ? n.basicOption.conf.value >= Date.now() && (d.value = n.basicOption.conf.value) : n.basicOption.conf.value >= 0 && (d.value = n.basicOption.conf.value + Date.now()), x(M)) : o.value = null;
|
|
49
50
|
};
|
|
50
|
-
|
|
51
|
-
n.basicOption.conf.autoStart ?
|
|
51
|
+
E(() => {
|
|
52
|
+
n.basicOption.conf.autoStart ? i() : o.value = null;
|
|
52
53
|
});
|
|
53
54
|
const v = (e) => {
|
|
54
|
-
|
|
55
|
+
A(e.fontFamily);
|
|
55
56
|
const t = {};
|
|
56
57
|
e.color && e.color.includes("linear-gradient") && (t.backgroundImage = e.color, t["-webkit-background-clip"] = "text", t.color = "transparent");
|
|
57
58
|
const s = {};
|
|
58
59
|
return e.textAlign === "left" && (e.justifyContent = "flex-start"), e.textAlign === "center" && (e.justifyContent = "center"), e.textAlign === "right" && (e.justifyContent = "flex-end"), {
|
|
59
|
-
...
|
|
60
|
+
...j(e),
|
|
60
61
|
...t,
|
|
61
62
|
...s,
|
|
62
63
|
...e.textShadow.show ? { "--text-shadow": `${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}` } : {}
|
|
63
64
|
};
|
|
64
65
|
};
|
|
65
|
-
return
|
|
66
|
+
return Y({
|
|
66
67
|
// 开始倒计时
|
|
67
|
-
start: () =>
|
|
68
|
+
start: () => i(),
|
|
68
69
|
// 重新倒计时
|
|
69
|
-
startAgain: () =>
|
|
70
|
-
refresh: () =>
|
|
71
|
-
refreshView: () =>
|
|
72
|
-
refreshData: () =>
|
|
70
|
+
startAgain: () => i(),
|
|
71
|
+
refresh: () => i(),
|
|
72
|
+
refreshView: () => i(),
|
|
73
|
+
refreshData: () => i()
|
|
73
74
|
}), (e, t) => (w(), h(F, null, [
|
|
74
75
|
e.basicOption.conf.finishedText && o.value === 0 && o.value !== null ? (w(), h("span", {
|
|
75
76
|
key: 0,
|
|
76
77
|
class: "count-down",
|
|
77
|
-
style:
|
|
78
|
+
style: S(v(e.basicOption.css)),
|
|
78
79
|
ztitle: e.basicOption.conf.finishedText
|
|
79
|
-
}, O(e.basicOption.conf.finishedText), 13,
|
|
80
|
+
}, O(e.basicOption.conf.finishedText), 13, _)) : m("", !0),
|
|
80
81
|
e.basicOption.conf.defaultText && o.value === null ? (w(), h("span", {
|
|
81
82
|
key: 1,
|
|
82
83
|
class: "count-down",
|
|
83
|
-
style:
|
|
84
|
+
style: S(v(e.basicOption.css)),
|
|
84
85
|
ztitle: e.basicOption.conf.defaultText
|
|
85
|
-
}, O(e.basicOption.conf.defaultText), 13,
|
|
86
|
+
}, O(e.basicOption.conf.defaultText), 13, $)) : m("", !0),
|
|
86
87
|
Number.isFinite(o.value) && o.value > 0 ? (w(), h("span", {
|
|
87
88
|
key: 2,
|
|
88
89
|
class: "count-down",
|
|
89
|
-
style:
|
|
90
|
+
style: S(v(e.basicOption.css)),
|
|
90
91
|
ztitle: y(o.value)
|
|
91
|
-
}, O(y(o.value)), 13,
|
|
92
|
+
}, O(y(o.value)), 13, N)) : m("", !0)
|
|
92
93
|
], 64));
|
|
93
94
|
}
|
|
94
95
|
});
|
|
95
96
|
export {
|
|
96
|
-
|
|
97
|
+
J as default
|
|
97
98
|
};
|
|
@@ -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-b77ebdeb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, ref as s, watch as f, createBlock as M, openBlock as j, unref as u, normalizeStyle as _, onMounted as P, nextTick as T, onBeforeUnmount as $ } from "vue";
|
|
2
2
|
import { cloneDeep as m, isEqual as v } from "lodash";
|
|
3
|
-
import
|
|
4
|
-
import { Odometer as
|
|
3
|
+
import z from "vue-countup-v3";
|
|
4
|
+
import { Odometer as A } from "odometer_countup";
|
|
5
5
|
import { nanoid as h } from "nanoid";
|
|
6
|
-
import { SHJDatasourceV2 as
|
|
7
|
-
import { autoInstallFont as
|
|
8
|
-
|
|
6
|
+
import { SHJDatasourceV2 as B } from "../../commons/plugins/datasource/index.mjs";
|
|
7
|
+
import { autoInstallFont as N, jsonToCssStyle as H } from "../../commons/utils/json2css.mjs";
|
|
8
|
+
import { SHJParseEvent as x } from "../../commons/plugins/event/index.mjs";
|
|
9
|
+
const J = y({ name: "zv-text-over-number" }), X = /* @__PURE__ */ y({
|
|
9
10
|
...J,
|
|
10
11
|
props: {
|
|
11
12
|
basicOption: {},
|
|
@@ -13,15 +14,15 @@ const J = x({ name: "zv-text-over-number" }), R = /* @__PURE__ */ x({
|
|
|
13
14
|
useEvents: {},
|
|
14
15
|
uuid: {}
|
|
15
16
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const n =
|
|
18
|
-
const
|
|
19
|
-
|
|
17
|
+
setup(U, { expose: S }) {
|
|
18
|
+
const n = U, d = s(n.basicOption.countUp.startVal), g = (t) => {
|
|
19
|
+
const r = s(h()), l = s(0), c = s(), a = s(), p = () => {
|
|
20
|
+
B.parse({
|
|
20
21
|
tId: n.uuid,
|
|
21
22
|
sources: n.sources,
|
|
22
23
|
callback: ({ data: e }) => {
|
|
23
24
|
try {
|
|
24
|
-
|
|
25
|
+
x.parseEvents(n.useEvents, "dataListener", e), r.value = h(), l.value = Number(e[0].data[0].value), c.value = {
|
|
25
26
|
startVal: d.value,
|
|
26
27
|
separator: t.countUp.separator,
|
|
27
28
|
decimal: t.countUp.decimal,
|
|
@@ -29,74 +30,74 @@ const J = x({ name: "zv-text-over-number" }), R = /* @__PURE__ */ x({
|
|
|
29
30
|
duration: t.countUp.duration,
|
|
30
31
|
prefix: t.countUp.prefix,
|
|
31
32
|
suffix: t.countUp.suffix
|
|
32
|
-
}, t.countUp.isOdometer && (c.value.plugin = new
|
|
33
|
+
}, t.countUp.isOdometer && (c.value.plugin = new A({
|
|
33
34
|
duration: t.countUp.duration,
|
|
34
35
|
lastDigitDelay: 0
|
|
35
|
-
})), d.value = l.value, t.isImitate ?
|
|
36
|
+
})), d.value = l.value, t.isImitate ? C() : a.value && clearInterval(a.value);
|
|
36
37
|
} catch {
|
|
37
|
-
|
|
38
|
+
x.parseEvents(n.useEvents, "dataListener", null);
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
});
|
|
41
|
-
},
|
|
42
|
-
|
|
42
|
+
}, I = (e) => {
|
|
43
|
+
N(e.fontFamily);
|
|
43
44
|
const o = {};
|
|
44
45
|
e.color && e.color.includes("linear-gradient") && (o.backgroundImage = e.color, o["-webkit-background-clip"] = "text", o.color = "transparent");
|
|
45
|
-
const
|
|
46
|
+
const E = {};
|
|
46
47
|
return e.textAlign === "left" && (e.justifyContent = "flex-start"), e.textAlign === "center" && (e.justifyContent = "center"), e.textAlign === "right" && (e.justifyContent = "flex-end"), {
|
|
47
48
|
...H(e),
|
|
48
49
|
...o,
|
|
49
|
-
...
|
|
50
|
+
...E,
|
|
50
51
|
...e.textShadow.show ? { textShadow: `${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}` } : {}
|
|
51
52
|
};
|
|
52
|
-
}, I = () => {
|
|
53
53
|
}, b = () => {
|
|
54
|
-
|
|
54
|
+
}, C = () => {
|
|
55
|
+
a.value && clearInterval(a.value);
|
|
55
56
|
const e = t.countUp.isOdometer ? Math.floor(Math.random() * 6) + 5 : Math.floor(Math.random() * 4) + 3;
|
|
56
|
-
|
|
57
|
+
a.value = setInterval(() => {
|
|
57
58
|
d.value = l.value, c.value.startVal = d.value;
|
|
58
59
|
const o = Number((Math.random() * 10).toFixed(t.countUp.decimalPlaces));
|
|
59
60
|
o > 3 ? l.value += o : l.value -= o;
|
|
60
61
|
}, e * 1e3);
|
|
61
62
|
};
|
|
62
|
-
return P(() =>
|
|
63
|
-
|
|
63
|
+
return P(() => T(() => p())), $(() => {
|
|
64
|
+
a.value && clearInterval(a.value);
|
|
64
65
|
}), {
|
|
65
|
-
key:
|
|
66
|
+
key: r,
|
|
66
67
|
init: p,
|
|
67
68
|
options: c,
|
|
68
69
|
endValue: l,
|
|
69
|
-
onFinished:
|
|
70
|
-
rendererDomStyle:
|
|
70
|
+
onFinished: b,
|
|
71
|
+
rendererDomStyle: I
|
|
71
72
|
};
|
|
72
73
|
}, {
|
|
73
|
-
key:
|
|
74
|
-
init:
|
|
75
|
-
options:
|
|
76
|
-
endValue:
|
|
77
|
-
onFinished:
|
|
78
|
-
rendererDomStyle:
|
|
79
|
-
} =
|
|
80
|
-
return f(() => m(n.basicOption), (t,
|
|
81
|
-
v(t,
|
|
82
|
-
}, { deep: !0 }), f(() => m(n.sources), (t,
|
|
83
|
-
v(t,
|
|
84
|
-
}, { deep: !0 }),
|
|
85
|
-
refresh: () =>
|
|
86
|
-
refreshView: () =>
|
|
87
|
-
refreshData: () =>
|
|
88
|
-
}), (t,
|
|
89
|
-
key:
|
|
74
|
+
key: w,
|
|
75
|
+
init: i,
|
|
76
|
+
options: k,
|
|
77
|
+
endValue: D,
|
|
78
|
+
onFinished: V,
|
|
79
|
+
rendererDomStyle: F
|
|
80
|
+
} = g(n.basicOption);
|
|
81
|
+
return f(() => m(n.basicOption), (t, r) => {
|
|
82
|
+
v(t, r) || i();
|
|
83
|
+
}, { deep: !0 }), f(() => m(n.sources), (t, r) => {
|
|
84
|
+
v(t, r) || i();
|
|
85
|
+
}, { deep: !0 }), S({
|
|
86
|
+
refresh: () => i(),
|
|
87
|
+
refreshView: () => i(),
|
|
88
|
+
refreshData: () => i()
|
|
89
|
+
}), (t, r) => (j(), M(u(z), {
|
|
90
|
+
key: u(w),
|
|
90
91
|
class: "zerov-widget-over-number",
|
|
91
|
-
"end-val":
|
|
92
|
-
options:
|
|
92
|
+
"end-val": u(D),
|
|
93
|
+
options: u(k),
|
|
93
94
|
loop: t.basicOption.countUp.loop,
|
|
94
95
|
delay: t.basicOption.countUp.delay,
|
|
95
|
-
style:
|
|
96
|
-
onFinished:
|
|
96
|
+
style: _(u(F)(t.basicOption.css)),
|
|
97
|
+
onFinished: u(V)
|
|
97
98
|
}, null, 8, ["end-val", "options", "loop", "delay", "style", "onFinished"]));
|
|
98
99
|
}
|
|
99
100
|
});
|
|
100
101
|
export {
|
|
101
|
-
|
|
102
|
+
X as default
|
|
102
103
|
};
|
|
@@ -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-68f8955f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cloneDeep as
|
|
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
3
|
import i from "dayjs";
|
|
4
4
|
import "dayjs/locale/zh-cn";
|
|
5
|
-
import { autoInstallFont as
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import { autoInstallFont as k, jsonToCssStyle as D } from "../../commons/utils/json2css.mjs";
|
|
6
|
+
import { SHJParseEvent as f } from "../../commons/plugins/event/index.mjs";
|
|
7
|
+
const O = ["ztitle"], R = p({ name: "zv-text-real-time" }), J = /* @__PURE__ */ p({
|
|
8
|
+
...R,
|
|
8
9
|
props: {
|
|
9
10
|
basicOption: {},
|
|
10
11
|
datasource: {},
|
|
@@ -13,43 +14,43 @@ const D = ["ztitle"], O = f({ name: "zv-text-real-time" }), H = /* @__PURE__ */
|
|
|
13
14
|
emits: [
|
|
14
15
|
"on-change"
|
|
15
16
|
],
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
const t = c(), n = c(i().locale("zh-cn").format(o.format)),
|
|
19
|
-
|
|
17
|
+
setup(s, { emit: d }) {
|
|
18
|
+
const m = d, a = s, v = (o) => {
|
|
19
|
+
const t = c(), n = c(i().locale("zh-cn").format(o.format)), g = (e) => {
|
|
20
|
+
k(e.fontFamily);
|
|
20
21
|
const r = {};
|
|
21
22
|
e.color && e.color.includes("linear-gradient") && (r.backgroundImage = e.color, r["-webkit-background-clip"] = "text", r.color = "transparent");
|
|
22
|
-
const
|
|
23
|
+
const S = {};
|
|
23
24
|
return e.textAlign === "left" && (e.justifyContent = "flex-start"), e.textAlign === "center" && (e.justifyContent = "center"), e.textAlign === "right" && (e.justifyContent = "flex-end"), {
|
|
24
|
-
...
|
|
25
|
+
...D(e),
|
|
25
26
|
...r,
|
|
26
|
-
...
|
|
27
|
+
...S,
|
|
27
28
|
...e.textShadow.show ? { "--text-shadow": `${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}` } : {}
|
|
28
29
|
};
|
|
29
|
-
},
|
|
30
|
+
}, y = (e) => {
|
|
30
31
|
t.value && clearInterval(t.value), t.value = setInterval(() => {
|
|
31
|
-
n.value = i().locale("zh-cn").format(e),
|
|
32
|
+
n.value = i().locale("zh-cn").format(e), m("on-change", n.value), f.parseEvents(a.useEvents, "on-change", n.value);
|
|
32
33
|
}, 1e3);
|
|
33
34
|
};
|
|
34
35
|
return z(() => {
|
|
35
36
|
t.value = setInterval(() => {
|
|
36
|
-
n.value = i().locale("zh-cn").format(o.format),
|
|
37
|
+
n.value = i().locale("zh-cn").format(o.format), m("on-change", n.value), f.parseEvents(a.useEvents, "on-change", n.value);
|
|
37
38
|
}, 1e3);
|
|
38
|
-
}),
|
|
39
|
+
}), j(() => {
|
|
39
40
|
t.value && clearInterval(t.value);
|
|
40
|
-
}), { updateRealTime:
|
|
41
|
-
}, { updateRealTime:
|
|
42
|
-
return
|
|
43
|
-
|
|
41
|
+
}), { updateRealTime: y, realTime: n, rendererDomStyle: g };
|
|
42
|
+
}, { updateRealTime: h, realTime: u, rendererDomStyle: x } = v(a.basicOption);
|
|
43
|
+
return T(() => C(a.basicOption.format), (o, t) => {
|
|
44
|
+
I(o, t) || h(o);
|
|
44
45
|
}, {
|
|
45
46
|
deep: !0
|
|
46
|
-
}), (o, t) => (
|
|
47
|
+
}), (o, t) => (_(), w("div", {
|
|
47
48
|
class: "real-time",
|
|
48
|
-
style:
|
|
49
|
-
ztitle: l(
|
|
50
|
-
}, b(l(
|
|
49
|
+
style: E(l(x)(o.basicOption.css)),
|
|
50
|
+
ztitle: l(u)
|
|
51
|
+
}, b(l(u)), 13, O));
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
+
J as default
|
|
55
56
|
};
|
|
@@ -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-ed5eeea7"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|