@shjjs/visual-ui 1.0.30 → 1.0.31
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/plugins/datasource/index.d.ts +1 -1
- package/es/commons/plugins/datasource/index.mjs +91 -86
- package/es/commons/plugins/datasource/sources/api.mjs +7 -7
- package/es/commons/plugins/datasource/sources/static.mjs +4 -4
- package/es/commons/plugins/datasource/sources/storage.mjs +8 -8
- package/es/commons/plugins/datasource/sources/url.mjs +4 -4
- package/es/commons/plugins/datasource/sources/variable.mjs +9 -9
- package/es/commons/plugins/datasource/sources/ws.mjs +8 -7
- package/es/commons/plugins/datasource/utils/utils.mjs +15 -15
- package/es/commons/plugins/event/actions/invokeAction.mjs +1 -1
- package/es/components/chart/commons/components/common-chart/hooks/useCommonChart.mjs +8 -19
- package/es/components/chart/commons/components/common-chart/index.vue.mjs +35 -24
- package/es/components/chart/commons/components/common-chart-map/hooks/useCommonChart.mjs +8 -19
- package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +35 -24
- package/es/components/chart/commons/hooks/useChart.mjs +66 -51
- package/es/components/chart/components/bar/animation/index.d.ts +1 -0
- package/es/components/chart/components/bar/animation/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/animation/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/basic/index.d.ts +1 -0
- package/es/components/chart/components/bar/basic/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/basic/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/contrast/index.d.ts +1 -0
- package/es/components/chart/components/bar/contrast/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/contrast/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/contrast2/index.d.ts +1 -0
- package/es/components/chart/components/bar/contrast2/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/contrast2/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/contrast3/index.d.ts +1 -0
- package/es/components/chart/components/bar/contrast3/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/contrast3/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/gradient-column-chart/index.d.ts +1 -0
- package/es/components/chart/components/bar/gradient-column-chart/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/gradient-column-chart/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/horizontal/index.d.ts +1 -0
- package/es/components/chart/components/bar/horizontal/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/horizontal/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/horizontal-stack/index.d.ts +1 -0
- package/es/components/chart/components/bar/horizontal-stack/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/horizontal-stack/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/line-bar/index.d.ts +1 -0
- package/es/components/chart/components/bar/line-bar/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/line-bar/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/line-bar2/index.d.ts +1 -0
- package/es/components/chart/components/bar/line-bar2/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/line-bar2/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/loop/index.d.ts +1 -0
- package/es/components/chart/components/bar/loop/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/loop/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/mini/index.d.ts +1 -0
- package/es/components/chart/components/bar/mini/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/mini/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/polar/index.d.ts +1 -0
- package/es/components/chart/components/bar/polar/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/polar/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/polar-stack/index.d.ts +1 -0
- package/es/components/chart/components/bar/polar-stack/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/polar-stack/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/polar2/index.d.ts +1 -0
- package/es/components/chart/components/bar/polar2/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/polar2/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/radius-circle/index.d.ts +1 -0
- package/es/components/chart/components/bar/radius-circle/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/radius-circle/index.vue.mjs +26 -6
- package/es/components/chart/components/bar/rank/index.d.ts +1 -0
- package/es/components/chart/components/bar/rank/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/rank/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/segmented-progress/index.d.ts +1 -0
- package/es/components/chart/components/bar/segmented-progress/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/segmented-progress/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/spire/index.d.ts +1 -0
- package/es/components/chart/components/bar/spire/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/spire/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/stack/index.d.ts +1 -0
- package/es/components/chart/components/bar/stack/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/stack/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/stack-line/index.d.ts +1 -0
- package/es/components/chart/components/bar/stack-line/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/stack-line/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/stack2/index.d.ts +1 -0
- package/es/components/chart/components/bar/stack2/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/stack2/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/stack3/index.d.ts +1 -0
- package/es/components/chart/components/bar/stack3/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/stack3/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/staggered/index.d.ts +1 -0
- package/es/components/chart/components/bar/staggered/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/staggered/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/three/index.d.ts +1 -0
- package/es/components/chart/components/bar/three/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/three/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/waterfall/index.d.ts +1 -0
- package/es/components/chart/components/bar/waterfall/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/waterfall/index.vue.mjs +27 -7
- package/es/components/chart/components/bar/zebra/index.d.ts +1 -0
- package/es/components/chart/components/bar/zebra/index.vue.d.ts +1 -0
- package/es/components/chart/components/bar/zebra/index.vue.mjs +27 -7
- package/es/components/chart/components/line/area-gradient/index.d.ts +1 -0
- package/es/components/chart/components/line/area-gradient/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/area-gradient/index.vue.mjs +27 -7
- package/es/components/chart/components/line/area-highlight/index.d.ts +1 -0
- package/es/components/chart/components/line/area-highlight/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/area-highlight/index.vue.mjs +26 -6
- package/es/components/chart/components/line/area-highlight2/index.d.ts +1 -0
- package/es/components/chart/components/line/area-highlight2/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/area-highlight2/index.vue.mjs +26 -6
- package/es/components/chart/components/line/basic/index.d.ts +1 -0
- package/es/components/chart/components/line/basic/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/basic/index.vue.mjs +27 -7
- package/es/components/chart/components/line/bump/index.d.ts +1 -0
- package/es/components/chart/components/line/bump/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/bump/index.vue.mjs +27 -7
- package/es/components/chart/components/line/dashed/index.d.ts +1 -0
- package/es/components/chart/components/line/dashed/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/dashed/index.vue.mjs +27 -7
- package/es/components/chart/components/line/ladder/index.d.ts +1 -0
- package/es/components/chart/components/line/ladder/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/ladder/index.vue.mjs +27 -7
- package/es/components/chart/components/line/logarithm/index.d.ts +1 -0
- package/es/components/chart/components/line/logarithm/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/logarithm/index.vue.mjs +27 -7
- package/es/components/chart/components/line/multix/index.d.ts +1 -0
- package/es/components/chart/components/line/multix/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/multix/index.vue.mjs +27 -7
- package/es/components/chart/components/line/polar-double/index.d.ts +1 -0
- package/es/components/chart/components/line/polar-double/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/polar-double/index.vue.mjs +27 -7
- package/es/components/chart/components/line/rain-flow/index.d.ts +1 -0
- package/es/components/chart/components/line/rain-flow/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/rain-flow/index.vue.mjs +27 -7
- package/es/components/chart/components/line/scale/index.d.ts +1 -0
- package/es/components/chart/components/line/scale/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/scale/index.vue.mjs +27 -7
- package/es/components/chart/components/line/smooth/index.d.ts +1 -0
- package/es/components/chart/components/line/smooth/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/smooth/index.vue.mjs +27 -7
- package/es/components/chart/components/line/smooth-area/index.d.ts +1 -0
- package/es/components/chart/components/line/smooth-area/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/smooth-area/index.vue.mjs +27 -7
- package/es/components/chart/components/line/stack/index.d.ts +1 -0
- package/es/components/chart/components/line/stack/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/stack/index.vue.mjs +27 -7
- package/es/components/chart/components/line/stack-area/index.d.ts +1 -0
- package/es/components/chart/components/line/stack-area/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/stack-area/index.vue.mjs +27 -7
- package/es/components/chart/components/line/temp/index.d.ts +1 -0
- package/es/components/chart/components/line/temp/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/temp/index.vue.mjs +27 -7
- package/es/components/chart/components/line/vertical/index.d.ts +1 -0
- package/es/components/chart/components/line/vertical/index.vue.d.ts +1 -0
- package/es/components/chart/components/line/vertical/index.vue.mjs +27 -7
- package/es/components/chart/components/map/basic/index.d.ts +1 -0
- package/es/components/chart/components/map/basic/index.vue.d.ts +1 -0
- package/es/components/chart/components/map/basic/index.vue.mjs +27 -7
- package/es/components/chart/components/map/bmap-basic/index.d.ts +1 -0
- package/es/components/chart/components/map/bmap-basic/index.vue.d.ts +1 -0
- package/es/components/chart/components/map/bmap-basic/index.vue.mjs +27 -7
- package/es/components/chart/components/map/bmap-heatmap/index.d.ts +1 -0
- package/es/components/chart/components/map/bmap-heatmap/index.vue.d.ts +1 -0
- package/es/components/chart/components/map/bmap-heatmap/index.vue.mjs +27 -7
- package/es/components/chart/components/map/bmap-rich/index.d.ts +1 -0
- package/es/components/chart/components/map/bmap-rich/index.vue.d.ts +3 -6
- package/es/components/chart/components/map/bmap-rich/index.vue.mjs +27 -7
- package/es/components/chart/components/map/customize/index.d.ts +1 -0
- package/es/components/chart/components/map/customize/index.vue.d.ts +3 -6
- package/es/components/chart/components/map/customize/index.vue.mjs +27 -7
- package/es/components/chart/components/map/lines/index.d.ts +1 -0
- package/es/components/chart/components/map/lines/index.vue.d.ts +1 -0
- package/es/components/chart/components/map/lines/index.vue.mjs +27 -7
- package/es/components/chart/components/map/scatter/index.d.ts +1 -0
- package/es/components/chart/components/map/scatter/index.vue.d.ts +1 -0
- package/es/components/chart/components/map/scatter/index.vue.mjs +27 -7
- package/es/components/chart/components/pie/3d/index.d.ts +1 -0
- package/es/components/chart/components/pie/3d/index.vue.d.ts +7 -6
- package/es/components/chart/components/pie/3d/index.vue.mjs +32 -13
- package/es/components/chart/components/pie/basic/index.d.ts +1 -0
- package/es/components/chart/components/pie/basic/index.vue.d.ts +1 -0
- package/es/components/chart/components/pie/basic/index.vue.mjs +26 -6
- package/es/components/chart/components/pie/basic2/index.d.ts +1 -0
- package/es/components/chart/components/pie/basic2/index.vue.d.ts +1 -0
- package/es/components/chart/components/pie/basic2/index.vue.mjs +26 -6
- package/es/components/chart/components/pie/customized/index.d.ts +1 -0
- package/es/components/chart/components/pie/customized/index.vue.d.ts +1 -0
- package/es/components/chart/components/pie/customized/index.vue.mjs +27 -7
- package/es/components/chart/components/pie/index/index.d.ts +1 -0
- package/es/components/chart/components/pie/index/index.vue.d.ts +1 -0
- package/es/components/chart/components/pie/index/index.vue.mjs +31 -12
- package/es/components/chart/components/pie/interval/index.d.ts +1 -0
- package/es/components/chart/components/pie/interval/index.vue.d.ts +1 -0
- package/es/components/chart/components/pie/interval/index.vue.mjs +27 -7
- package/es/components/chart/components/pie/legend-scroll/index.d.ts +1 -0
- package/es/components/chart/components/pie/legend-scroll/index.vue.d.ts +1 -0
- package/es/components/chart/components/pie/legend-scroll/index.vue.mjs +27 -7
- package/es/components/chart/components/pie/radius/index.d.ts +1 -0
- package/es/components/chart/components/pie/radius/index.vue.d.ts +1 -0
- package/es/components/chart/components/pie/radius/index.vue.mjs +26 -6
- package/es/components/chart/components/pie/rose/index.d.ts +1 -0
- package/es/components/chart/components/pie/rose/index.vue.d.ts +1 -0
- package/es/components/chart/components/pie/rose/index.vue.mjs +27 -7
- package/es/components/chart/components/pie/round/index.d.ts +1 -0
- package/es/components/chart/components/pie/round/index.vue.d.ts +1 -0
- package/es/components/chart/components/pie/round/index.vue.mjs +27 -7
- package/es/components/chart/components/pie/sunburst/index.d.ts +1 -0
- package/es/components/chart/components/pie/sunburst/index.vue.d.ts +1 -0
- package/es/components/chart/components/pie/sunburst/index.vue.mjs +27 -7
- package/es/components/commons-product-model/index.vue.mjs +1 -1
- package/es/components/commons-product-model/index.vue2.mjs +23 -23
- package/es/components/commons-three-loader/index.vue.mjs +1 -1
- package/es/components/commons-three-loader/index.vue2.mjs +54 -50
- package/es/components/commons-three-loader3/index.vue.mjs +1 -1
- package/es/components/commons-three-loader3/index.vue2.mjs +3 -3
- package/es/components/interaction/tabs/hooks/useTabsWatch.mjs +21 -7
- package/es/components/interaction/tabs/index.vue.mjs +16 -16
- package/es/components/interaction/tabs/types.d.ts +3 -0
- package/es/components/interaction-input/index.vue.mjs +2 -2
- package/es/components/scene-amap3d/index.vue.mjs +2 -2
- package/es/components/scene-amap3d/index.vue2.mjs +1 -1
- package/es/widgets.css +1 -1
- package/lib/commons/plugins/datasource/index.js +2 -2
- package/lib/commons/plugins/datasource/sources/api.js +1 -1
- package/lib/commons/plugins/datasource/sources/static.js +1 -1
- package/lib/commons/plugins/datasource/sources/storage.js +1 -1
- package/lib/commons/plugins/datasource/sources/url.js +1 -1
- package/lib/commons/plugins/datasource/sources/variable.js +1 -1
- package/lib/commons/plugins/datasource/sources/ws.js +1 -1
- package/lib/commons/plugins/datasource/utils/utils.js +1 -1
- package/lib/commons/plugins/event/actions/invokeAction.js +1 -1
- package/lib/components/chart/commons/components/common-chart/hooks/useCommonChart.js +1 -1
- package/lib/components/chart/commons/components/common-chart/index.vue.js +1 -1
- package/lib/components/chart/commons/components/common-chart-map/hooks/useCommonChart.js +1 -1
- package/lib/components/chart/commons/components/common-chart-map/index.vue.js +1 -1
- package/lib/components/chart/commons/hooks/useChart.js +6 -1
- package/lib/components/chart/components/bar/animation/index.vue.js +1 -1
- package/lib/components/chart/components/bar/basic/index.vue.js +1 -1
- package/lib/components/chart/components/bar/contrast/index.vue.js +1 -1
- package/lib/components/chart/components/bar/contrast2/index.vue.js +1 -1
- package/lib/components/chart/components/bar/contrast3/index.vue.js +1 -1
- package/lib/components/chart/components/bar/gradient-column-chart/index.vue.js +1 -1
- package/lib/components/chart/components/bar/horizontal/index.vue.js +1 -1
- package/lib/components/chart/components/bar/horizontal-stack/index.vue.js +1 -1
- package/lib/components/chart/components/bar/line-bar/index.vue.js +1 -1
- package/lib/components/chart/components/bar/line-bar2/index.vue.js +1 -1
- package/lib/components/chart/components/bar/loop/index.vue.js +1 -1
- package/lib/components/chart/components/bar/mini/index.vue.js +1 -1
- package/lib/components/chart/components/bar/polar/index.vue.js +1 -1
- package/lib/components/chart/components/bar/polar-stack/index.vue.js +1 -1
- package/lib/components/chart/components/bar/polar2/index.vue.js +1 -1
- package/lib/components/chart/components/bar/radius-circle/index.vue.js +1 -1
- package/lib/components/chart/components/bar/rank/index.vue.js +1 -1
- package/lib/components/chart/components/bar/segmented-progress/index.vue.js +1 -1
- package/lib/components/chart/components/bar/spire/index.vue.js +1 -1
- package/lib/components/chart/components/bar/stack/index.vue.js +1 -1
- package/lib/components/chart/components/bar/stack-line/index.vue.js +1 -1
- package/lib/components/chart/components/bar/stack2/index.vue.js +1 -1
- package/lib/components/chart/components/bar/stack3/index.vue.js +1 -1
- package/lib/components/chart/components/bar/staggered/index.vue.js +1 -1
- package/lib/components/chart/components/bar/three/index.vue.js +1 -1
- package/lib/components/chart/components/bar/waterfall/index.vue.js +1 -1
- package/lib/components/chart/components/bar/zebra/index.vue.js +1 -1
- package/lib/components/chart/components/line/area-gradient/index.vue.js +1 -1
- package/lib/components/chart/components/line/area-highlight/index.vue.js +1 -1
- package/lib/components/chart/components/line/area-highlight2/index.vue.js +1 -1
- package/lib/components/chart/components/line/basic/index.vue.js +1 -1
- package/lib/components/chart/components/line/bump/index.vue.js +1 -1
- package/lib/components/chart/components/line/dashed/index.vue.js +1 -1
- package/lib/components/chart/components/line/ladder/index.vue.js +1 -1
- package/lib/components/chart/components/line/logarithm/index.vue.js +1 -1
- package/lib/components/chart/components/line/multix/index.vue.js +1 -1
- package/lib/components/chart/components/line/polar-double/index.vue.js +1 -1
- package/lib/components/chart/components/line/rain-flow/index.vue.js +1 -1
- package/lib/components/chart/components/line/scale/index.vue.js +1 -1
- package/lib/components/chart/components/line/smooth/index.vue.js +1 -1
- package/lib/components/chart/components/line/smooth-area/index.vue.js +1 -1
- package/lib/components/chart/components/line/stack/index.vue.js +1 -1
- package/lib/components/chart/components/line/stack-area/index.vue.js +1 -1
- package/lib/components/chart/components/line/temp/index.vue.js +1 -1
- package/lib/components/chart/components/line/vertical/index.vue.js +1 -1
- package/lib/components/chart/components/map/basic/index.vue.js +1 -1
- package/lib/components/chart/components/map/bmap-basic/index.vue.js +1 -1
- package/lib/components/chart/components/map/bmap-heatmap/index.vue.js +1 -1
- package/lib/components/chart/components/map/bmap-rich/index.vue.js +1 -1
- package/lib/components/chart/components/map/customize/index.vue.js +1 -1
- package/lib/components/chart/components/map/lines/index.vue.js +1 -1
- package/lib/components/chart/components/map/scatter/index.vue.js +1 -1
- package/lib/components/chart/components/pie/3d/index.vue.js +1 -1
- package/lib/components/chart/components/pie/basic/index.vue.js +1 -1
- package/lib/components/chart/components/pie/basic2/index.vue.js +1 -1
- package/lib/components/chart/components/pie/customized/index.vue.js +1 -1
- package/lib/components/chart/components/pie/index/index.vue.js +1 -1
- package/lib/components/chart/components/pie/interval/index.vue.js +1 -1
- package/lib/components/chart/components/pie/legend-scroll/index.vue.js +1 -1
- package/lib/components/chart/components/pie/radius/index.vue.js +1 -1
- package/lib/components/chart/components/pie/rose/index.vue.js +1 -1
- package/lib/components/chart/components/pie/round/index.vue.js +1 -1
- package/lib/components/chart/components/pie/sunburst/index.vue.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/interaction/tabs/hooks/useTabsWatch.js +1 -1
- package/lib/components/interaction/tabs/index.vue.js +1 -1
- package/lib/components/interaction-input/index.vue.js +1 -1
- package/lib/components/scene-amap3d/index.vue.js +1 -1
- package/lib/components/scene-amap3d/index.vue2.js +1 -1
- package/lib/widgets.css +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as h, createElementBlock as f, openBlock as v, createElementVNode as E, unref as _ } from "vue";
|
|
2
2
|
import { cloneDeep as s } from "lodash";
|
|
3
|
-
import { useCommonChart as
|
|
4
|
-
import { SHJDatasourceV2 as
|
|
5
|
-
import { useChart as
|
|
3
|
+
import { useCommonChart as D } from "./hooks/useCommonChart.mjs";
|
|
4
|
+
import { SHJDatasourceV2 as k } from "../../../../../commons/plugins/datasource/index.mjs";
|
|
5
|
+
import { useChart as x } from "../../hooks/useChart.mjs";
|
|
6
6
|
import { parseDataset as C } from "../../../../../commons/utils/parseDataset.mjs";
|
|
7
7
|
import { cloneSeries as L } from "../../../../../commons/utils/cloneSeries.mjs";
|
|
8
|
-
import { SHJParseEvent as
|
|
9
|
-
const S = { class: "zerov-widget" },
|
|
8
|
+
import { SHJParseEvent as c } from "../../../../../commons/plugins/event/index.mjs";
|
|
9
|
+
const S = { class: "zerov-widget" }, w = ["id"], M = /* @__PURE__ */ h({
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
12
12
|
option: {},
|
|
@@ -17,43 +17,54 @@ const S = { class: "zerov-widget" }, x = ["id"], O = /* @__PURE__ */ p({
|
|
|
17
17
|
customRenderData: { type: Function }
|
|
18
18
|
},
|
|
19
19
|
emits: ["dataListener", "chart-click", "chart-dblclick", "chart-mousedown", "chart-mouseover", "chart-mouseout", "chart-contextmenu"],
|
|
20
|
-
setup(
|
|
21
|
-
const e =
|
|
22
|
-
id:
|
|
23
|
-
setOption:
|
|
24
|
-
chart:
|
|
25
|
-
renderChart:
|
|
26
|
-
renderData:
|
|
27
|
-
} =
|
|
20
|
+
setup(u, { expose: m, emit: d }) {
|
|
21
|
+
const e = u, o = d, {
|
|
22
|
+
id: p,
|
|
23
|
+
setOption: n,
|
|
24
|
+
chart: l,
|
|
25
|
+
renderChart: a,
|
|
26
|
+
renderData: i
|
|
27
|
+
} = x({
|
|
28
28
|
basicOption: s(e.option),
|
|
29
29
|
useEvents: s(e.useEvents),
|
|
30
30
|
customRenderData: (t) => {
|
|
31
|
-
t = s(t),
|
|
31
|
+
t = s(t), k.parse({
|
|
32
32
|
tId: e.uuid,
|
|
33
33
|
sources: e.sources,
|
|
34
34
|
callback: ({ data: r }) => {
|
|
35
35
|
try {
|
|
36
|
-
if (o("dataListener", r),
|
|
37
|
-
e.customRenderData(t, r,
|
|
36
|
+
if (o("dataListener", r), c.parseEvents(e.useEvents, "dataListener", r), e.customRenderData) {
|
|
37
|
+
e.customRenderData(t, r, n);
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
t.dataset = C(s(r)), e.isMultiSeries && (t.series = L(r, t.series)),
|
|
40
|
+
t.dataset = C(s(r)), e.isMultiSeries && (t.series = L(r, t.series)), n(t);
|
|
41
41
|
} catch {
|
|
42
|
-
o("dataListener", null),
|
|
42
|
+
o("dataListener", null), c.parseEvents(e.useEvents, "dataListener", null), n(t);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
},
|
|
47
47
|
emits: o
|
|
48
48
|
});
|
|
49
|
-
return
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
return D(e, i, a), m({
|
|
50
|
+
getEchartsInstance: () => l.value,
|
|
51
|
+
refresh: () => {
|
|
52
|
+
i(e.option), a(e.option);
|
|
53
|
+
},
|
|
54
|
+
refreshView: () => {
|
|
55
|
+
a(e.option);
|
|
56
|
+
},
|
|
57
|
+
refreshData: () => {
|
|
58
|
+
i(e.option);
|
|
59
|
+
}
|
|
60
|
+
}), (t, r) => (v(), f("div", S, [
|
|
61
|
+
E("div", {
|
|
62
|
+
id: _(p),
|
|
52
63
|
class: "widget"
|
|
53
|
-
}, null, 8,
|
|
64
|
+
}, null, 8, w)
|
|
54
65
|
]));
|
|
55
66
|
}
|
|
56
67
|
});
|
|
57
68
|
export {
|
|
58
|
-
|
|
69
|
+
M as default
|
|
59
70
|
};
|
|
@@ -1,27 +1,16 @@
|
|
|
1
|
-
import { watch as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
e.sources && e.sources.length > 0 &&
|
|
1
|
+
import { watch as t } from "vue";
|
|
2
|
+
import { cloneDeep as u, isEqual as m } from "lodash";
|
|
3
|
+
const f = (e, r, c, n) => {
|
|
4
|
+
t(() => e.sources, () => {
|
|
5
|
+
e.sources && e.sources.length > 0 && r(e.option);
|
|
6
6
|
}, {
|
|
7
7
|
deep: !0
|
|
8
|
-
}),
|
|
9
|
-
|
|
8
|
+
}), t(() => u(e.option), (o, i) => {
|
|
9
|
+
m(o, i) || c(o);
|
|
10
10
|
}, {
|
|
11
11
|
deep: !0
|
|
12
|
-
}), f({
|
|
13
|
-
getEchartsInstance: () => c.value,
|
|
14
|
-
refresh: () => {
|
|
15
|
-
e.sources && e.sources.length > 0 && o(e.option), t(e.option);
|
|
16
|
-
},
|
|
17
|
-
refreshView: () => {
|
|
18
|
-
t(e.option);
|
|
19
|
-
},
|
|
20
|
-
refreshData: () => {
|
|
21
|
-
o(e.option);
|
|
22
|
-
}
|
|
23
12
|
});
|
|
24
13
|
};
|
|
25
14
|
export {
|
|
26
|
-
|
|
15
|
+
f as useCommonChart
|
|
27
16
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cloneDeep as
|
|
1
|
+
import { defineComponent as v, createElementBlock as E, openBlock as _, createElementVNode as k, unref as x } from "vue";
|
|
2
|
+
import { cloneDeep as c } from "lodash";
|
|
3
3
|
import { useCommonChart as C } from "./hooks/useCommonChart.mjs";
|
|
4
|
-
import { SHJDatasourceV2 as
|
|
5
|
-
import { useChart as
|
|
6
|
-
import { SHJParseEvent as
|
|
7
|
-
const
|
|
4
|
+
import { SHJDatasourceV2 as D } from "../../../../../commons/plugins/datasource/index.mjs";
|
|
5
|
+
import { useChart as L } from "../../hooks/useChart.mjs";
|
|
6
|
+
import { SHJParseEvent as d } from "../../../../../commons/plugins/event/index.mjs";
|
|
7
|
+
const w = { class: "zerov-widget" }, b = ["id"], J = /* @__PURE__ */ v({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
10
10
|
option: {},
|
|
@@ -13,36 +13,47 @@ const D = { class: "zerov-widget" }, b = ["id"], J = /* @__PURE__ */ f({
|
|
|
13
13
|
uuid: {}
|
|
14
14
|
},
|
|
15
15
|
emits: ["dataListener", "chart-click", "chart-dblclick", "chart-mousedown", "chart-mouseover", "chart-mouseout", "chart-contextmenu"],
|
|
16
|
-
setup(
|
|
17
|
-
const e =
|
|
18
|
-
id:
|
|
19
|
-
setOption:
|
|
20
|
-
chart:
|
|
21
|
-
renderChart:
|
|
22
|
-
renderData:
|
|
23
|
-
} =
|
|
24
|
-
basicOption:
|
|
25
|
-
useEvents:
|
|
16
|
+
setup(u, { expose: m, emit: p }) {
|
|
17
|
+
const e = u, s = p, {
|
|
18
|
+
id: h,
|
|
19
|
+
setOption: i,
|
|
20
|
+
chart: l,
|
|
21
|
+
renderChart: a,
|
|
22
|
+
renderData: o
|
|
23
|
+
} = L({
|
|
24
|
+
basicOption: c(e.option),
|
|
25
|
+
useEvents: c(e.useEvents),
|
|
26
26
|
customRenderData: (t) => {
|
|
27
|
-
t =
|
|
27
|
+
t = c(t), D.parse({
|
|
28
28
|
tId: e.uuid,
|
|
29
29
|
sources: e.sources,
|
|
30
30
|
callback: (r) => {
|
|
31
31
|
try {
|
|
32
|
-
s("dataListener", r.data),
|
|
33
|
-
const
|
|
34
|
-
|
|
32
|
+
s("dataListener", r.data), d.parseEvents(e.useEvents, "dataListener", r.data);
|
|
33
|
+
const n = t.series.find((f) => f._sourceId === r.id);
|
|
34
|
+
n && (n.data = r.data[0].data), i(t);
|
|
35
35
|
} catch {
|
|
36
|
-
s("dataListener", null),
|
|
36
|
+
s("dataListener", null), d.parseEvents(e.useEvents, "dataListener", null), i(t);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
},
|
|
41
41
|
emits: s
|
|
42
42
|
});
|
|
43
|
-
return C(e,
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
return C(e, o, a), m({
|
|
44
|
+
getEchartsInstance: () => l.value,
|
|
45
|
+
refresh: () => {
|
|
46
|
+
o(e.option), a(e.option);
|
|
47
|
+
},
|
|
48
|
+
refreshView: () => {
|
|
49
|
+
a(e.option);
|
|
50
|
+
},
|
|
51
|
+
refreshData: () => {
|
|
52
|
+
o(e.option);
|
|
53
|
+
}
|
|
54
|
+
}), (t, r) => (_(), E("div", w, [
|
|
55
|
+
k("div", {
|
|
56
|
+
id: x(h),
|
|
46
57
|
class: "widget"
|
|
47
58
|
}, null, 8, b)
|
|
48
59
|
]));
|
|
@@ -1,81 +1,96 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as g, shallowRef as O, onMounted as b, onBeforeUnmount as k } from "vue";
|
|
2
2
|
import { useResizeObserver as D } from "@vueuse/core";
|
|
3
|
-
import { debounce as M, cloneDeep as
|
|
3
|
+
import { debounce as M, cloneDeep as L, isArray as n } from "lodash";
|
|
4
4
|
import T from "is-electron";
|
|
5
|
-
import * as
|
|
5
|
+
import * as h from "echarts";
|
|
6
6
|
import { nanoid as x } from "nanoid";
|
|
7
7
|
import "echarts-wordcloud";
|
|
8
8
|
import "echarts-liquidfill";
|
|
9
|
-
import { SHJParseEvent as
|
|
10
|
-
import { HoverLoop as
|
|
9
|
+
import { SHJParseEvent as m } from "../../../../commons/plugins/event/index.mjs";
|
|
10
|
+
import { HoverLoop as Z } from "../utils/hoverLoop.mjs";
|
|
11
11
|
const z = (l) => {
|
|
12
12
|
const e = [];
|
|
13
13
|
l.geo && (n(l.geo) ? e.push(...l.geo.map((r) => r.map)) : e.push(l.geo.map)), l.series && n(l.series) && l.series.forEach((r) => {
|
|
14
14
|
r.map && e.push(r.map);
|
|
15
15
|
});
|
|
16
|
-
const
|
|
16
|
+
const p = e.map((r) => {
|
|
17
17
|
if (r === "customize")
|
|
18
18
|
if (n(l.geo)) {
|
|
19
|
-
const c = JSON.parse(l.geo.find((
|
|
20
|
-
return
|
|
19
|
+
const c = JSON.parse(l.geo.find((f) => f.map === "customize").geoData);
|
|
20
|
+
return h.registerMap(r, c);
|
|
21
21
|
} else {
|
|
22
22
|
const c = JSON.parse(l.geo.geoData);
|
|
23
|
-
return
|
|
23
|
+
return h.registerMap(r, c);
|
|
24
24
|
}
|
|
25
25
|
else
|
|
26
26
|
return fetch((T() ? "gismap/" : "/gismap/") + r + ".json").then((c) => c.json()).then((c) => {
|
|
27
|
-
|
|
27
|
+
h.registerMap(r, c);
|
|
28
28
|
}).catch((c) => {
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
|
-
return Promise.all(
|
|
31
|
+
return Promise.all(p);
|
|
32
32
|
}, B = async (l) => {
|
|
33
33
|
l.bmap && await import(
|
|
34
34
|
/* @vite-ignore */
|
|
35
35
|
"echarts/extension/bmap/bmap"
|
|
36
36
|
);
|
|
37
|
-
},
|
|
38
|
-
const c = x(),
|
|
37
|
+
}, U = ({ basicOption: l, useEvents: e, customRenderData: p, emits: r }) => {
|
|
38
|
+
const c = x(), f = g(!0), t = O(null), w = p, u = g(null), i = g(null), I = (s, S) => {
|
|
39
39
|
try {
|
|
40
|
-
t.value || (t.value =
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
if (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
t.value || (t.value = h.init(document.getElementById(c), null, { renderer: S || "svg" }));
|
|
41
|
+
const o = L(s);
|
|
42
|
+
if (o) {
|
|
43
|
+
if (o.tooltip && o.tooltip.isFormatter) {
|
|
44
|
+
let a = `
|
|
45
|
+
${o.tooltip.formatterCode}
|
|
46
|
+
|
|
47
|
+
// 在这里调用 filter 函数,并传递 data 参数
|
|
48
|
+
return custom(params);
|
|
49
|
+
`;
|
|
50
|
+
a = a.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g, ""), o.tooltip.formatter = (v) => {
|
|
51
|
+
try {
|
|
52
|
+
return new Function("params", a)(v);
|
|
53
|
+
} catch {
|
|
54
|
+
return "";
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
if (t.value.setOption(o, !0), o.hoverLoop)
|
|
59
|
+
if (i.value && clearInterval(i.value), u.value && u.value.closeSwitchTooltip(), o.hoverLoop.type === "方式二") {
|
|
60
|
+
let a = 0;
|
|
61
|
+
o.dataset && o.dataset.source && (a = o.dataset.source.length), o.series[0] && o.series[0].data && (a = o.series[0].data.length);
|
|
62
|
+
const v = o.dataZoom[0].endValue, d = o.dataZoom[0].startValue, V = () => {
|
|
48
63
|
i.value = setInterval(() => {
|
|
49
|
-
|
|
50
|
-
},
|
|
64
|
+
o.dataZoom[0].endValue > a - 2 ? (o.dataZoom[0].endValue = v, o.dataZoom[0].startValue = d) : (o.dataZoom[0].endValue = o.dataZoom[0].endValue + 1, o.dataZoom[0].startValue = o.dataZoom[0].startValue + 1), t.value.setOption(o);
|
|
65
|
+
}, o.hoverLoop.delay2);
|
|
51
66
|
};
|
|
52
67
|
t.value.on("mousemove", function() {
|
|
53
68
|
i.value && clearInterval(i.value);
|
|
54
69
|
}), t.value.on("mouseout", function() {
|
|
55
70
|
i.value && clearInterval(i.value), V();
|
|
56
71
|
}), V();
|
|
57
|
-
} else
|
|
72
|
+
} else o.hoverLoop.type === "方式一" && (t.value.on("mousemove", function() {
|
|
58
73
|
u.value && u.value.closeSwitchTooltip();
|
|
59
74
|
}), t.value.on("mouseout", function() {
|
|
60
|
-
u.value && u.value.closeSwitchTooltip(), u.value = new
|
|
61
|
-
}), u.value = new
|
|
75
|
+
u.value && u.value.closeSwitchTooltip(), u.value = new Z(t.value, o);
|
|
76
|
+
}), u.value = new Z(t.value, o));
|
|
62
77
|
else
|
|
63
78
|
i.value && clearInterval(i.value), u.value && u.value.closeSwitchTooltip();
|
|
64
|
-
t.value.on("click", (
|
|
65
|
-
e && n(e) && e.length > 0 && (r("chart-click",
|
|
66
|
-
}), t.value.on("dblclick", (
|
|
67
|
-
e && n(e) && e.length > 0 && (r("chart-dblclick",
|
|
68
|
-
}), t.value.on("mousedown", (
|
|
69
|
-
e && n(e) && e.length > 0 && (r("chart-mousedown",
|
|
70
|
-
}), t.value.on("mouseup", (
|
|
71
|
-
e && n(e) && e.length > 0 && (r("chart-mouseup",
|
|
72
|
-
}), t.value.on("mouseover", (
|
|
73
|
-
e && n(e) && e.length > 0 && (r("chart-mouseover",
|
|
74
|
-
}), t.value.on("mouseout", (
|
|
75
|
-
e && n(e) && e.length > 0 && (r("chart-mouseout",
|
|
76
|
-
}), t.value.on("contextmenu", (
|
|
77
|
-
e && n(e) && e.length > 0 && (r("chart-contextmenu",
|
|
78
|
-
}),
|
|
79
|
+
t.value.on("click", (a) => {
|
|
80
|
+
e && n(e) && e.length > 0 && (r("chart-click", a), m.parseEvents(e, "chart-click", a));
|
|
81
|
+
}), t.value.on("dblclick", (a) => {
|
|
82
|
+
e && n(e) && e.length > 0 && (r("chart-dblclick", a), m.parseEvents(e, "chart-dblclick", a));
|
|
83
|
+
}), t.value.on("mousedown", (a) => {
|
|
84
|
+
e && n(e) && e.length > 0 && (r("chart-mousedown", a), m.parseEvents(e, "chart-mousedown", a));
|
|
85
|
+
}), t.value.on("mouseup", (a) => {
|
|
86
|
+
e && n(e) && e.length > 0 && (r("chart-mouseup", a), m.parseEvents(e, "chart-mouseup", a));
|
|
87
|
+
}), t.value.on("mouseover", (a) => {
|
|
88
|
+
e && n(e) && e.length > 0 && (r("chart-mouseover", a), m.parseEvents(e, "chart-mouseover", a));
|
|
89
|
+
}), t.value.on("mouseout", (a) => {
|
|
90
|
+
e && n(e) && e.length > 0 && (r("chart-mouseout", a), m.parseEvents(e, "chart-mouseout", a));
|
|
91
|
+
}), t.value.on("contextmenu", (a) => {
|
|
92
|
+
e && n(e) && e.length > 0 && (r("chart-contextmenu", a), m.parseEvents(e, "chart-contextmenu", a));
|
|
93
|
+
}), f.value = !1;
|
|
79
94
|
}
|
|
80
95
|
} catch {
|
|
81
96
|
try {
|
|
@@ -84,16 +99,16 @@ const z = (l) => {
|
|
|
84
99
|
}
|
|
85
100
|
t.value = null;
|
|
86
101
|
}
|
|
87
|
-
},
|
|
88
|
-
|
|
102
|
+
}, y = M((s) => {
|
|
103
|
+
f.value = !0, s = L(s), z(s).then(() => {
|
|
89
104
|
B(s).then(() => {
|
|
90
|
-
|
|
105
|
+
w(s);
|
|
91
106
|
});
|
|
92
|
-
}).catch((
|
|
107
|
+
}).catch((S) => {
|
|
93
108
|
});
|
|
94
109
|
}, 100);
|
|
95
110
|
return b(() => {
|
|
96
|
-
|
|
111
|
+
y(l), D(document.getElementById(c), (s) => {
|
|
97
112
|
t.value && t.value.resize();
|
|
98
113
|
});
|
|
99
114
|
}), k(() => {
|
|
@@ -104,13 +119,13 @@ const z = (l) => {
|
|
|
104
119
|
}
|
|
105
120
|
}), {
|
|
106
121
|
id: c,
|
|
107
|
-
status:
|
|
122
|
+
status: f,
|
|
108
123
|
chart: t,
|
|
109
|
-
setOption:
|
|
110
|
-
renderChart:
|
|
111
|
-
renderData:
|
|
124
|
+
setOption: I,
|
|
125
|
+
renderChart: y,
|
|
126
|
+
renderData: w
|
|
112
127
|
};
|
|
113
128
|
};
|
|
114
129
|
export {
|
|
115
|
-
|
|
130
|
+
U as useChart
|
|
116
131
|
};
|
|
@@ -1,15 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
...
|
|
1
|
+
import { defineComponent as r, ref as o, createBlock as n, openBlock as u, mergeProps as a } from "vue";
|
|
2
|
+
import i from "../../../commons/components/common-chart/index.vue.mjs";
|
|
3
|
+
const c = r({ name: "zv-chart-bar-animation" }), h = /* @__PURE__ */ r({
|
|
4
|
+
...c,
|
|
5
5
|
props: {
|
|
6
6
|
basicOption: {},
|
|
7
7
|
sources: {},
|
|
8
8
|
useEvents: {},
|
|
9
9
|
uuid: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
|
|
11
|
+
setup(f, { expose: t }) {
|
|
12
|
+
const s = o();
|
|
13
|
+
return t({
|
|
14
|
+
getEchartsInstance: () => {
|
|
15
|
+
var e;
|
|
16
|
+
return (e = s.value) == null ? void 0 : e.getEchartsInstance();
|
|
17
|
+
},
|
|
18
|
+
refresh: () => {
|
|
19
|
+
var e;
|
|
20
|
+
return (e = s.value) == null ? void 0 : e.refresh();
|
|
21
|
+
},
|
|
22
|
+
refreshView: () => {
|
|
23
|
+
var e;
|
|
24
|
+
return (e = s.value) == null ? void 0 : e.refreshView();
|
|
25
|
+
},
|
|
26
|
+
refreshData: () => {
|
|
27
|
+
var e;
|
|
28
|
+
return (e = s.value) == null ? void 0 : e.refreshData();
|
|
29
|
+
}
|
|
30
|
+
}), (e, p) => (u(), n(i, a({
|
|
31
|
+
ref_key: "componentRef",
|
|
32
|
+
ref: s,
|
|
13
33
|
option: e.basicOption,
|
|
14
34
|
sources: e.sources,
|
|
15
35
|
"use-events": e.useEvents,
|
|
@@ -19,5 +39,5 @@ const t = s({ name: "zv-chart-bar-animation" }), m = /* @__PURE__ */ s({
|
|
|
19
39
|
}
|
|
20
40
|
});
|
|
21
41
|
export {
|
|
22
|
-
|
|
42
|
+
h as default
|
|
23
43
|
};
|
|
@@ -1,15 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
...
|
|
1
|
+
import { defineComponent as r, ref as o, createBlock as n, openBlock as u, mergeProps as a } from "vue";
|
|
2
|
+
import i from "../../../commons/components/common-chart/index.vue.mjs";
|
|
3
|
+
const c = r({ name: "zv-chart-bar-basic" }), h = /* @__PURE__ */ r({
|
|
4
|
+
...c,
|
|
5
5
|
props: {
|
|
6
6
|
basicOption: {},
|
|
7
7
|
sources: {},
|
|
8
8
|
useEvents: {},
|
|
9
9
|
uuid: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
|
|
11
|
+
setup(f, { expose: t }) {
|
|
12
|
+
const s = o();
|
|
13
|
+
return t({
|
|
14
|
+
getEchartsInstance: () => {
|
|
15
|
+
var e;
|
|
16
|
+
return (e = s.value) == null ? void 0 : e.getEchartsInstance();
|
|
17
|
+
},
|
|
18
|
+
refresh: () => {
|
|
19
|
+
var e;
|
|
20
|
+
return (e = s.value) == null ? void 0 : e.refresh();
|
|
21
|
+
},
|
|
22
|
+
refreshView: () => {
|
|
23
|
+
var e;
|
|
24
|
+
return (e = s.value) == null ? void 0 : e.refreshView();
|
|
25
|
+
},
|
|
26
|
+
refreshData: () => {
|
|
27
|
+
var e;
|
|
28
|
+
return (e = s.value) == null ? void 0 : e.refreshData();
|
|
29
|
+
}
|
|
30
|
+
}), (e, p) => (u(), n(i, a({
|
|
31
|
+
ref_key: "componentRef",
|
|
32
|
+
ref: s,
|
|
13
33
|
option: e.basicOption,
|
|
14
34
|
sources: e.sources,
|
|
15
35
|
"use-events": e.useEvents,
|
|
@@ -19,5 +39,5 @@ const n = s({ name: "zv-chart-bar-basic" }), m = /* @__PURE__ */ s({
|
|
|
19
39
|
}
|
|
20
40
|
});
|
|
21
41
|
export {
|
|
22
|
-
|
|
42
|
+
h as default
|
|
23
43
|
};
|
|
@@ -1,15 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
...
|
|
1
|
+
import { defineComponent as r, ref as o, createBlock as n, openBlock as u, mergeProps as a } from "vue";
|
|
2
|
+
import c from "../../../commons/components/common-chart/index.vue.mjs";
|
|
3
|
+
const i = r({ name: "zv-chart-bar-contrast" }), h = /* @__PURE__ */ r({
|
|
4
|
+
...i,
|
|
5
5
|
props: {
|
|
6
6
|
basicOption: {},
|
|
7
7
|
sources: {},
|
|
8
8
|
useEvents: {},
|
|
9
9
|
uuid: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
|
|
11
|
+
setup(f, { expose: t }) {
|
|
12
|
+
const s = o();
|
|
13
|
+
return t({
|
|
14
|
+
getEchartsInstance: () => {
|
|
15
|
+
var e;
|
|
16
|
+
return (e = s.value) == null ? void 0 : e.getEchartsInstance();
|
|
17
|
+
},
|
|
18
|
+
refresh: () => {
|
|
19
|
+
var e;
|
|
20
|
+
return (e = s.value) == null ? void 0 : e.refresh();
|
|
21
|
+
},
|
|
22
|
+
refreshView: () => {
|
|
23
|
+
var e;
|
|
24
|
+
return (e = s.value) == null ? void 0 : e.refreshView();
|
|
25
|
+
},
|
|
26
|
+
refreshData: () => {
|
|
27
|
+
var e;
|
|
28
|
+
return (e = s.value) == null ? void 0 : e.refreshData();
|
|
29
|
+
}
|
|
30
|
+
}), (e, p) => (u(), n(c, a({
|
|
31
|
+
ref_key: "componentRef",
|
|
32
|
+
ref: s,
|
|
13
33
|
option: e.basicOption,
|
|
14
34
|
sources: e.sources,
|
|
15
35
|
"use-events": e.useEvents,
|
|
@@ -19,5 +39,5 @@ const n = s({ name: "zv-chart-bar-contrast" }), m = /* @__PURE__ */ s({
|
|
|
19
39
|
}
|
|
20
40
|
});
|
|
21
41
|
export {
|
|
22
|
-
|
|
42
|
+
h as default
|
|
23
43
|
};
|