@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,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
import { Vue3SeamlessScroll as
|
|
4
|
-
import { nanoid as
|
|
5
|
-
import { SHJDatasourceV2 as
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { defineComponent as M, useCssVars as A, ref as v, onMounted as H, watch as S, createElementBlock as i, createCommentVNode as V, openBlock as r, createVNode as J, normalizeStyle as p, Fragment as O, renderList as y, normalizeClass as W, createElementVNode as T, toDisplayString as g, unref as q, withCtx as P } from "vue";
|
|
2
|
+
import { cloneDeep as k, isEqual as z } from "lodash";
|
|
3
|
+
import { Vue3SeamlessScroll as U } from "vue3-seamless-scroll";
|
|
4
|
+
import { nanoid as w } from "nanoid";
|
|
5
|
+
import { SHJDatasourceV2 as G } from "../../commons/plugins/datasource/index.mjs";
|
|
6
|
+
import { SHJParseEvent as d } from "../../commons/plugins/event/index.mjs";
|
|
7
|
+
const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key: 1 }, Y = M({ name: "zv-text-row-scroll" }), ne = /* @__PURE__ */ M({
|
|
8
|
+
...Y,
|
|
8
9
|
props: {
|
|
9
10
|
basicOption: {},
|
|
10
11
|
useEvents: {},
|
|
@@ -12,116 +13,116 @@ const G = ["onClick", "onMouseenter", "onMouseout"], K = ["onClick"], Q = { key:
|
|
|
12
13
|
uuid: {}
|
|
13
14
|
},
|
|
14
15
|
emits: ["on-click-item", "on-click-row", "on-mouseenter-row", "on-mouseout-row"],
|
|
15
|
-
setup(
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
16
|
+
setup($, { expose: D, emit: F }) {
|
|
17
|
+
A((e) => ({
|
|
18
|
+
"1ecf4d84": e.basicOption.css.table.borderWidth + "px",
|
|
19
|
+
d92d3a58: e.basicOption.css.table.borderStyle,
|
|
20
|
+
daf516f4: e.basicOption.css.table.borderColor,
|
|
21
|
+
"413c0106": e.basicOption.css.table.paddingLeft + "px",
|
|
22
|
+
"379313ec": e.basicOption.css.table.alignItems,
|
|
23
|
+
ed7e110c: e.basicOption.css.table.justifyContent,
|
|
24
|
+
"39d7a73e": e.basicOption.css.header.background,
|
|
25
|
+
"1f2d0176": e.basicOption.css.header.height + "px",
|
|
26
|
+
"08fe595a": e.basicOption.css.header.color,
|
|
27
|
+
"28eb118d": e.basicOption.css.header.fontSize + "px",
|
|
28
|
+
"5d78d5b7": e.basicOption.css.header.fontWeight,
|
|
29
|
+
"0b14a692": e.basicOption.css.header.fontStyle,
|
|
30
|
+
e3a9ffea: e.basicOption.css.body.height + "px",
|
|
31
|
+
"452338c9": e.basicOption.css.body.background,
|
|
32
|
+
"7a020f4c": e.basicOption.css.oddBackground,
|
|
33
|
+
b8859230: e.basicOption.css.body.color,
|
|
34
|
+
"5f38823c": e.basicOption.css.body.fontSize + "px",
|
|
35
|
+
"68c46742": e.basicOption.css.body.fontWeight,
|
|
36
|
+
"9ec990b2": e.basicOption.css.body.fontStyle
|
|
36
37
|
}));
|
|
37
|
-
const b =
|
|
38
|
-
|
|
38
|
+
const b = F, f = v(w()), c = v([]), s = $, m = v(s.basicOption.scroll.start), u = () => {
|
|
39
|
+
G.parse({
|
|
39
40
|
tId: s.uuid,
|
|
40
41
|
sources: s.sources,
|
|
41
42
|
callback: (e) => {
|
|
42
43
|
try {
|
|
43
|
-
|
|
44
|
+
d.parseEvents(s.useEvents, "dataListener", c), c.value = k(e.data[0].data) || [], f.value = w(), m.value = s.basicOption.scroll.start;
|
|
44
45
|
} catch {
|
|
45
|
-
|
|
46
|
+
d.parseEvents(s.useEvents, "dataListener", null), c.value = [], f.value = w(), m.value = s.basicOption.scroll.start;
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
});
|
|
49
|
-
},
|
|
50
|
+
}, L = (e) => {
|
|
50
51
|
const o = [];
|
|
51
52
|
for (const t in e)
|
|
52
53
|
o.push(e[t]);
|
|
53
54
|
return o;
|
|
54
55
|
};
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
H(() => u()), S(() => k(s.basicOption), (e, o) => {
|
|
57
|
+
z(e, o) || u();
|
|
57
58
|
}, {
|
|
58
59
|
deep: !0
|
|
59
|
-
}), S(() =>
|
|
60
|
-
|
|
60
|
+
}), S(() => k(s.sources), (e, o) => {
|
|
61
|
+
z(e, o) || u();
|
|
61
62
|
}, {
|
|
62
63
|
deep: !0
|
|
63
|
-
}),
|
|
64
|
+
}), D({
|
|
64
65
|
refresh: () => u(),
|
|
65
66
|
refreshView: () => u(),
|
|
66
67
|
refreshData: () => u()
|
|
67
68
|
});
|
|
68
|
-
const
|
|
69
|
+
const N = (e) => {
|
|
69
70
|
if (!s.basicOption.columns)
|
|
70
71
|
return !0;
|
|
71
72
|
const o = s.basicOption.columns.find((t) => t.index === e);
|
|
72
73
|
return o ? o.font.auto : !0;
|
|
73
|
-
},
|
|
74
|
+
}, h = (e) => {
|
|
74
75
|
if (!s.basicOption.columns)
|
|
75
76
|
return null;
|
|
76
77
|
const o = s.basicOption.columns.find((t) => t.index === e);
|
|
77
78
|
return o && o.font.auto === !1 ? o.font : null;
|
|
78
|
-
},
|
|
79
|
+
}, C = (e) => {
|
|
79
80
|
if (!s.basicOption.columns)
|
|
80
81
|
return !0;
|
|
81
82
|
const o = s.basicOption.columns.find((t) => t.index === e);
|
|
82
83
|
return o ? o.width.auto : !0;
|
|
83
|
-
},
|
|
84
|
+
}, E = (e) => {
|
|
84
85
|
if (!s.basicOption.columns)
|
|
85
86
|
return null;
|
|
86
87
|
const o = s.basicOption.columns.find((t) => t.index === e);
|
|
87
88
|
return o && o.width.auto === !1 ? o.width.width : null;
|
|
88
|
-
},
|
|
89
|
+
}, B = (e, o) => {
|
|
89
90
|
const t = { row: e, rowIndex: o };
|
|
90
|
-
b("on-click-row", t),
|
|
91
|
-
},
|
|
91
|
+
b("on-click-row", t), d.parseEvents(s.useEvents, "on-click-row", t);
|
|
92
|
+
}, I = (e, o) => {
|
|
92
93
|
const t = { row: e, rowIndex: o };
|
|
93
|
-
b("on-mouseenter-row", t),
|
|
94
|
-
},
|
|
94
|
+
b("on-mouseenter-row", t), d.parseEvents(s.useEvents, "on-mouseenter-row", t);
|
|
95
|
+
}, R = (e, o) => {
|
|
95
96
|
const t = { row: e, rowIndex: o };
|
|
96
|
-
b("on-mouseout-row", t),
|
|
97
|
-
},
|
|
97
|
+
b("on-mouseout-row", t), d.parseEvents(s.useEvents, "on-mouseout-row", t);
|
|
98
|
+
}, j = (e, o, t, a) => {
|
|
98
99
|
const n = { row: e, item: o, rowIndex: t, columnIndex: a };
|
|
99
|
-
b("on-click-item", n),
|
|
100
|
+
b("on-click-item", n), d.parseEvents(s.useEvents, "on-click-item", n);
|
|
100
101
|
};
|
|
101
|
-
return (e, o) =>
|
|
102
|
-
key:
|
|
102
|
+
return (e, o) => c.value.length > 0 ? (r(), i("div", {
|
|
103
|
+
key: f.value,
|
|
103
104
|
class: "table-scroll"
|
|
104
105
|
}, [
|
|
105
106
|
e.basicOption.css.header.show ? (r(), i("div", {
|
|
106
107
|
key: 0,
|
|
107
108
|
class: "table-header",
|
|
108
|
-
style:
|
|
109
|
+
style: p({
|
|
109
110
|
"--header-background-image": `url(${e.basicOption.css.header.backgroundImage})`
|
|
110
111
|
})
|
|
111
112
|
}, [
|
|
112
|
-
(r(!0), i(O, null,
|
|
113
|
+
(r(!0), i(O, null, y(Object.keys(c.value[0]), (t, a) => (r(), i("div", {
|
|
113
114
|
key: t,
|
|
114
|
-
class:
|
|
115
|
-
style:
|
|
115
|
+
class: W(["th", { customWidth: !C(a + 1) }]),
|
|
116
|
+
style: p({ "--width": E(a + 1) + "px" })
|
|
116
117
|
}, [
|
|
117
|
-
|
|
118
|
+
T("p", null, g(t), 1)
|
|
118
119
|
], 6))), 128))
|
|
119
|
-
], 4)) :
|
|
120
|
-
|
|
121
|
-
modelValue:
|
|
122
|
-
"onUpdate:modelValue": o[0] || (o[0] = (t) =>
|
|
120
|
+
], 4)) : V("", !0),
|
|
121
|
+
J(q(U), {
|
|
122
|
+
modelValue: m.value,
|
|
123
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => m.value = t),
|
|
123
124
|
direction: e.basicOption.scroll.direction,
|
|
124
|
-
list:
|
|
125
|
+
list: c.value,
|
|
125
126
|
"is-watch": "",
|
|
126
127
|
hover: e.basicOption.scroll.hover,
|
|
127
128
|
"limit-scroll-num": e.basicOption.scroll.limitScrollNum,
|
|
@@ -129,40 +130,40 @@ const G = ["onClick", "onMouseenter", "onMouseout"], K = ["onClick"], Q = { key:
|
|
|
129
130
|
"single-wait-time": e.basicOption.scroll.singleWaitTime,
|
|
130
131
|
class: "table-body"
|
|
131
132
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
(r(!0), i(O, null,
|
|
133
|
+
default: P(() => [
|
|
134
|
+
(r(!0), i(O, null, y(c.value, (t, a) => (r(), i("div", {
|
|
134
135
|
key: t,
|
|
135
136
|
class: "tr",
|
|
136
|
-
style:
|
|
137
|
+
style: p({
|
|
137
138
|
"--row-hover": e.basicOption.css.hoverColor
|
|
138
139
|
}),
|
|
139
|
-
onClick: (n) =>
|
|
140
|
-
onMouseenter: (n) =>
|
|
141
|
-
onMouseout: (n) =>
|
|
140
|
+
onClick: (n) => B(t, a),
|
|
141
|
+
onMouseenter: (n) => I(t, a),
|
|
142
|
+
onMouseout: (n) => R(t, a)
|
|
142
143
|
}, [
|
|
143
|
-
(r(!0), i(O, null,
|
|
144
|
+
(r(!0), i(O, null, y(L(t), (n, l) => (r(), i("div", {
|
|
144
145
|
key: n,
|
|
145
|
-
class:
|
|
146
|
-
style:
|
|
147
|
-
onClick: (
|
|
146
|
+
class: W(["td", { customWidth: !C(l + 1) }]),
|
|
147
|
+
style: p({ "--width": E(l + 1) + "px" }),
|
|
148
|
+
onClick: (Z) => j(t, n, a, l)
|
|
148
149
|
}, [
|
|
149
|
-
|
|
150
|
+
N(l + 1) ? (r(), i("p", X, g(n), 1)) : (r(), i("p", {
|
|
150
151
|
key: 0,
|
|
151
152
|
class: "customFont",
|
|
152
|
-
style:
|
|
153
|
-
"--text-color":
|
|
154
|
-
"--text-font-size":
|
|
155
|
-
"--text-font-style":
|
|
153
|
+
style: p({
|
|
154
|
+
"--text-color": h(l + 1).color,
|
|
155
|
+
"--text-font-size": h(l + 1).fontSize + "px",
|
|
156
|
+
"--text-font-style": h(l + 1).fontStyle
|
|
156
157
|
})
|
|
157
|
-
},
|
|
158
|
-
], 14,
|
|
159
|
-
], 44,
|
|
158
|
+
}, g(n), 5))
|
|
159
|
+
], 14, Q))), 128))
|
|
160
|
+
], 44, K))), 128))
|
|
160
161
|
]),
|
|
161
162
|
_: 1
|
|
162
163
|
}, 8, ["modelValue", "direction", "list", "hover", "limit-scroll-num", "single-height", "single-wait-time"])
|
|
163
|
-
])) :
|
|
164
|
+
])) : V("", !0);
|
|
164
165
|
}
|
|
165
166
|
});
|
|
166
167
|
export {
|
|
167
|
-
|
|
168
|
+
ne as default
|
|
168
169
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-5d78d597"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { debounce as f, cloneDeep as
|
|
3
|
-
import { nanoid as
|
|
4
|
-
import { RecycleScroller as
|
|
1
|
+
import { defineComponent as W, useCssVars as A, ref as S, computed as E, watch as z, onMounted as G, resolveComponent as K, createElementBlock as l, createCommentVNode as M, openBlock as u, createVNode as $, normalizeStyle as p, Fragment as V, renderList as I, createElementVNode as O, toDisplayString as D, unref as b, withCtx as L } from "vue";
|
|
2
|
+
import { debounce as f, cloneDeep as w, isEqual as R } from "lodash";
|
|
3
|
+
import { nanoid as k } from "nanoid";
|
|
4
|
+
import { RecycleScroller as Q } from "vue-virtual-scroller";
|
|
5
5
|
import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
|
|
6
|
-
import { SHJDatasourceV2 as
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
import { SHJDatasourceV2 as U } from "../../commons/plugins/datasource/index.mjs";
|
|
7
|
+
import { SHJParseEvent as d } from "../../commons/plugins/event/index.mjs";
|
|
8
|
+
const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ name: "zv-text-table-basic" }), ie = /* @__PURE__ */ W({
|
|
9
|
+
...Z,
|
|
9
10
|
props: {
|
|
10
11
|
basicOption: {},
|
|
11
12
|
useEvents: {},
|
|
@@ -13,35 +14,35 @@ const U = ["onClick", "onMouseenter", "onMouseout"], X = ["onClick"], Y = I({ na
|
|
|
13
14
|
uuid: {}
|
|
14
15
|
},
|
|
15
16
|
emits: ["on-click-item", "on-click-row", "on-mouseenter-row", "on-mouseout-row"],
|
|
16
|
-
setup(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
17
|
+
setup(B, { expose: N, emit: j }) {
|
|
18
|
+
A((e) => ({
|
|
19
|
+
b3073844: e.basicOption.css.table.borderWidth + "px",
|
|
20
|
+
"8b05448c": e.basicOption.css.table.borderStyle,
|
|
21
|
+
"8ccd2128": e.basicOption.css.table.borderColor,
|
|
22
|
+
"6e2dd140": e.basicOption.css.table.paddingLeft + "px",
|
|
23
|
+
"337db774": e.basicOption.css.table.alignItems,
|
|
24
|
+
"175b4ad4": e.basicOption.css.table.justifyContent,
|
|
25
|
+
"60eba224": e.basicOption.css.header.background,
|
|
26
|
+
a5715660: e.basicOption.css.header.height + "px",
|
|
27
|
+
"07adbea6": e.basicOption.css.header.color,
|
|
28
|
+
cc841332: e.basicOption.css.header.fontSize + "px",
|
|
29
|
+
f6e65ec6: e.basicOption.css.header.fontWeight,
|
|
30
|
+
"8c7a9228": e.basicOption.css.header.fontStyle,
|
|
31
|
+
"499661e5": e.basicOption.css.body.height + "px",
|
|
32
|
+
"72b695a2": e.basicOption.css.body.background,
|
|
33
|
+
"30ed12c2": e.basicOption.css.body.color,
|
|
34
|
+
"5e7e123c": e.basicOption.css.body.fontSize + "px",
|
|
35
|
+
"2b7438b0": e.basicOption.css.body.fontWeight,
|
|
36
|
+
28659681: e.basicOption.css.body.fontStyle
|
|
36
37
|
}));
|
|
37
|
-
const
|
|
38
|
+
const m = j, v = S(k()), r = S([]), i = B, H = () => {
|
|
38
39
|
if (!r.value.length) return;
|
|
39
|
-
const e = Object.keys(r.value[0]),
|
|
40
|
-
const n =
|
|
40
|
+
const e = Object.keys(r.value[0]), t = i.basicOption.columns || [], s = e.map((o, a) => {
|
|
41
|
+
const n = t.find((C) => C.name === o) || {};
|
|
41
42
|
return {
|
|
42
|
-
name: n.name ||
|
|
43
|
+
name: n.name || o,
|
|
43
44
|
// 如果用户没有提供 name,使用 key 作为 name
|
|
44
|
-
label: n.label ||
|
|
45
|
+
label: n.label || o,
|
|
45
46
|
// 如果用户没有提供 label,使用 key 作为 label
|
|
46
47
|
visible: n.visible !== void 0 ? n.visible : !0,
|
|
47
48
|
// 如果用户没有提供 visible,默认可见
|
|
@@ -53,29 +54,29 @@ const U = ["onClick", "onMouseenter", "onMouseout"], X = ["onClick"], Y = I({ na
|
|
|
53
54
|
// 如果用户没有提供 font,使用默认字体
|
|
54
55
|
};
|
|
55
56
|
});
|
|
56
|
-
i.basicOption.columns = s.sort((
|
|
57
|
-
},
|
|
58
|
-
|
|
57
|
+
i.basicOption.columns = s.sort((o, a) => o.index - a.index);
|
|
58
|
+
}, h = E(() => i.basicOption.columns || []), y = E(() => h.value.filter((e) => e.visible).map((e) => e.name)), c = () => {
|
|
59
|
+
U.parse({
|
|
59
60
|
tId: i.uuid,
|
|
60
61
|
sources: i.sources,
|
|
61
62
|
callback: (e) => {
|
|
62
63
|
try {
|
|
63
|
-
|
|
64
|
-
id:
|
|
64
|
+
d.parseEvents(i.useEvents, "dataListener", r), v.value = k(), r.value = w(e.data[0].data).map((t, s) => ({
|
|
65
|
+
id: t.id || s,
|
|
65
66
|
// 使用索引作为 id
|
|
66
|
-
...
|
|
67
|
-
})),
|
|
67
|
+
...t
|
|
68
|
+
})), H();
|
|
68
69
|
} catch {
|
|
69
|
-
|
|
70
|
+
d.parseEvents(i.useEvents, "dataListener", null), v.value = k(), r.value = [];
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
});
|
|
73
|
-
},
|
|
74
|
-
const
|
|
75
|
-
return
|
|
76
|
-
},
|
|
77
|
-
const
|
|
78
|
-
if (!
|
|
74
|
+
}, g = (e) => {
|
|
75
|
+
const t = h.value.find((s) => s.name === e);
|
|
76
|
+
return t != null && t.width.auto ? null : `${t == null ? void 0 : t.width.width}px`;
|
|
77
|
+
}, J = (e) => {
|
|
78
|
+
const t = h.value.find((o) => o.name === e);
|
|
79
|
+
if (!t) return {};
|
|
79
80
|
const s = {
|
|
80
81
|
whiteSpace: "nowrap",
|
|
81
82
|
// 默认不换行
|
|
@@ -85,98 +86,98 @@ const U = ["onClick", "onMouseenter", "onMouseout"], X = ["onClick"], Y = I({ na
|
|
|
85
86
|
// 默认隐藏溢出内容
|
|
86
87
|
};
|
|
87
88
|
return {
|
|
88
|
-
color:
|
|
89
|
-
fontSize: `${
|
|
90
|
-
fontStyle:
|
|
89
|
+
color: t.font.color,
|
|
90
|
+
fontSize: `${t.font.fontSize}px`,
|
|
91
|
+
fontStyle: t.font.fontStyle,
|
|
91
92
|
...s,
|
|
92
|
-
...
|
|
93
|
+
...t.textStyle
|
|
93
94
|
// 用户自定义样式
|
|
94
95
|
};
|
|
95
|
-
},
|
|
96
|
-
const s = { row: e, rowIndex:
|
|
97
|
-
|
|
98
|
-
}, 100),
|
|
99
|
-
const s = { row: e, rowIndex:
|
|
100
|
-
|
|
101
|
-
}, 100),
|
|
102
|
-
const s = { row: e, rowIndex:
|
|
103
|
-
|
|
104
|
-
}, 100),
|
|
105
|
-
const a = { row: e, item:
|
|
106
|
-
|
|
96
|
+
}, q = f((e, t) => {
|
|
97
|
+
const s = { row: e, rowIndex: t };
|
|
98
|
+
m("on-click-row", s), d.parseEvents(i.useEvents, "on-click-row", s);
|
|
99
|
+
}, 100), F = f((e, t) => {
|
|
100
|
+
const s = { row: e, rowIndex: t };
|
|
101
|
+
m("on-mouseenter-row", s), d.parseEvents(i.useEvents, "on-mouseenter-row", s);
|
|
102
|
+
}, 100), P = f((e, t) => {
|
|
103
|
+
const s = { row: e, rowIndex: t };
|
|
104
|
+
m("on-mouseout-row", s), d.parseEvents(i.useEvents, "on-mouseout-row", s);
|
|
105
|
+
}, 100), T = f((e, t, s, o) => {
|
|
106
|
+
const a = { row: e, item: t, rowIndex: s, columnIndex: o };
|
|
107
|
+
m("on-click-item", a), d.parseEvents(i.useEvents, "on-click-item", a);
|
|
107
108
|
}, 100);
|
|
108
|
-
return
|
|
109
|
-
|
|
110
|
-
}, { deep: !0 }),
|
|
111
|
-
|
|
112
|
-
}, { deep: !0 }),
|
|
109
|
+
return z(() => w(i.sources), (e, t) => {
|
|
110
|
+
R(e, t) || c();
|
|
111
|
+
}, { deep: !0 }), z(() => w(i.basicOption), (e, t) => {
|
|
112
|
+
R(e, t) || c();
|
|
113
|
+
}, { deep: !0 }), G(() => c()), N({
|
|
113
114
|
refresh: () => c(),
|
|
114
115
|
refreshView: () => c(),
|
|
115
116
|
refreshData: () => c()
|
|
116
|
-
}), (e,
|
|
117
|
-
const s =
|
|
117
|
+
}), (e, t) => {
|
|
118
|
+
const s = K("el-tooltip");
|
|
118
119
|
return r.value.length > 0 ? (u(), l("div", {
|
|
119
|
-
key:
|
|
120
|
+
key: v.value,
|
|
120
121
|
class: "table-scroll"
|
|
121
122
|
}, [
|
|
122
123
|
e.basicOption.css.header.show ? (u(), l("div", {
|
|
123
124
|
key: 0,
|
|
124
125
|
class: "table-header",
|
|
125
|
-
style:
|
|
126
|
+
style: p({
|
|
126
127
|
"--header-background-image": `url(${e.basicOption.css.header.background})`
|
|
127
128
|
})
|
|
128
129
|
}, [
|
|
129
|
-
(u(!0), l(
|
|
130
|
-
key:
|
|
130
|
+
(u(!0), l(V, null, I(y.value, (o) => (u(), l("div", {
|
|
131
|
+
key: o,
|
|
131
132
|
class: "th",
|
|
132
|
-
style:
|
|
133
|
+
style: p({ width: g(o) })
|
|
133
134
|
}, [
|
|
134
|
-
|
|
135
|
+
O("p", null, D(o), 1)
|
|
135
136
|
], 4))), 128))
|
|
136
|
-
], 4)) :
|
|
137
|
-
|
|
137
|
+
], 4)) : M("", !0),
|
|
138
|
+
$(b(Q), {
|
|
138
139
|
id: "",
|
|
139
140
|
class: "table-body",
|
|
140
141
|
items: r.value,
|
|
141
142
|
"item-size": e.basicOption.css.body.height,
|
|
142
143
|
"key-field": "id"
|
|
143
144
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
|
|
145
|
+
default: L(({ item: o, index: a }) => [
|
|
146
|
+
O("div", {
|
|
146
147
|
class: "tr",
|
|
147
|
-
style:
|
|
148
|
+
style: p({
|
|
148
149
|
"--row-hover": e.basicOption.css.hoverColor,
|
|
149
150
|
"--odd-background": e.basicOption.css.oddBackground
|
|
150
151
|
}),
|
|
151
|
-
onClick: (n) =>
|
|
152
|
-
onMouseenter: (n) =>
|
|
153
|
-
onMouseout: (n) =>
|
|
152
|
+
onClick: (n) => b(q)(o, a),
|
|
153
|
+
onMouseenter: (n) => b(F)(o, a),
|
|
154
|
+
onMouseout: (n) => b(P)(o, a)
|
|
154
155
|
}, [
|
|
155
|
-
(u(!0), l(
|
|
156
|
+
(u(!0), l(V, null, I(y.value, (n) => (u(), l("div", {
|
|
156
157
|
key: n,
|
|
157
158
|
class: "td",
|
|
158
|
-
style:
|
|
159
|
-
onClick: (
|
|
159
|
+
style: p({ width: g(n) }),
|
|
160
|
+
onClick: (C) => b(T)(o, o[n], a, y.value.indexOf(n))
|
|
160
161
|
}, [
|
|
161
|
-
|
|
162
|
-
content:
|
|
162
|
+
$(s, {
|
|
163
|
+
content: o[n]
|
|
163
164
|
}, {
|
|
164
|
-
default:
|
|
165
|
-
|
|
166
|
-
style:
|
|
167
|
-
},
|
|
165
|
+
default: L(() => [
|
|
166
|
+
O("p", {
|
|
167
|
+
style: p(J(n))
|
|
168
|
+
}, D(o[n]), 5)
|
|
168
169
|
]),
|
|
169
170
|
_: 2
|
|
170
171
|
}, 1032, ["content"])
|
|
171
|
-
], 12,
|
|
172
|
-
], 44,
|
|
172
|
+
], 12, Y))), 128))
|
|
173
|
+
], 44, X)
|
|
173
174
|
]),
|
|
174
175
|
_: 1
|
|
175
176
|
}, 8, ["items", "item-size"])
|
|
176
|
-
])) :
|
|
177
|
+
])) : M("", !0);
|
|
177
178
|
};
|
|
178
179
|
}
|
|
179
180
|
});
|
|
180
181
|
export {
|
|
181
|
-
|
|
182
|
+
ie as default
|
|
182
183
|
};
|
|
@@ -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-1ca17191"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|