@shjjs/visual-ui 1.0.33 → 1.0.35
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 +1 -1
- package/es/commons/plugins/datasource/index.d.ts +73 -73
- package/es/commons/plugins/datasource/index.mjs +214 -214
- package/es/commons/plugins/datasource/sources/api.d.ts +1 -1
- package/es/commons/plugins/datasource/sources/api.mjs +32 -32
- package/es/commons/plugins/datasource/sources/static.d.ts +1 -1
- package/es/commons/plugins/datasource/sources/static.mjs +17 -17
- package/es/commons/plugins/datasource/sources/storage.d.ts +1 -1
- package/es/commons/plugins/datasource/sources/storage.mjs +28 -28
- package/es/commons/plugins/datasource/sources/url.d.ts +1 -1
- package/es/commons/plugins/datasource/sources/url.mjs +17 -17
- package/es/commons/plugins/datasource/sources/variable.d.ts +1 -1
- package/es/commons/plugins/datasource/sources/variable.mjs +17 -17
- package/es/commons/plugins/datasource/sources/ws.d.ts +32 -32
- package/es/commons/plugins/datasource/sources/ws.mjs +139 -139
- package/es/commons/plugins/datasource/utils/axios.d.ts +70 -70
- package/es/commons/plugins/datasource/utils/axios.mjs +134 -134
- package/es/commons/plugins/datasource/utils/request.d.ts +3 -3
- package/es/commons/plugins/datasource/utils/request.mjs +5 -5
- package/es/commons/plugins/datasource/utils/utils.d.ts +115 -115
- package/es/commons/plugins/datasource/utils/utils.mjs +229 -229
- package/es/commons/plugins/datasource/utils/wsManager.d.ts +16 -16
- package/es/commons/plugins/datasource/utils/wsManager.mjs +78 -78
- package/es/commons/plugins/event/actions/fullScreenAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/fullScreenAction.mjs +8 -8
- package/es/commons/plugins/event/actions/invokeAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/invokeAction.mjs +11 -11
- package/es/commons/plugins/event/actions/linkAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/linkAction.mjs +8 -8
- package/es/commons/plugins/event/actions/moveAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/moveAction.mjs +15 -15
- package/es/commons/plugins/event/actions/refreshVariableAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/refreshVariableAction.mjs +18 -18
- package/es/commons/plugins/event/actions/rotateAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/rotateAction.mjs +19 -19
- package/es/commons/plugins/event/actions/scaleAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/scaleAction.mjs +24 -24
- package/es/commons/plugins/event/actions/sendApiAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/sendApiAction.mjs +16 -16
- package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.mjs +31 -31
- package/es/commons/plugins/event/actions/ueShjExecMethodAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/ueShjExecMethodAction.mjs +31 -31
- package/es/commons/plugins/event/actions/unityIframeExecMethodAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/unityIframeExecMethodAction.mjs +28 -28
- package/es/commons/plugins/event/actions/unityWebglExecMethodAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/unityWebglExecMethodAction.mjs +28 -28
- package/es/commons/plugins/event/actions/updatePageAction.d.ts +8 -8
- package/es/commons/plugins/event/actions/updatePageAction.mjs +6 -6
- package/es/commons/plugins/event/actions/updateVariableAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/updateVariableAction.mjs +25 -25
- package/es/commons/plugins/event/actions/updateWidgetAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/updateWidgetAction.mjs +14 -14
- package/es/commons/plugins/event/actions/vrSceneMethodAction.d.ts +7 -7
- package/es/commons/plugins/event/actions/vrSceneMethodAction.mjs +12 -12
- package/es/commons/plugins/event/index.d.ts +206 -206
- package/es/commons/plugins/event/index.mjs +161 -161
- package/es/commons/plugins/event/utils/utils.d.ts +22 -22
- package/es/commons/plugins/event/utils/utils.mjs +50 -50
- package/es/commons/utils/componentRefs.d.ts +28 -28
- package/es/commons/utils/componentRefs.mjs +37 -37
- package/es/commons/utils/getNextElement.d.ts +7 -7
- package/es/commons/utils/getNextElement.mjs +12 -12
- package/es/components/chart/commons/components/common-chart/index.vue.mjs +10 -11
- package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +6 -7
- package/es/components/chart/commons/hooks/useChart.mjs +1 -1
- package/es/components/chart-other-candlestick-basic/index.vue.mjs +7 -8
- package/es/components/chart-other-candlestick-demo/index.vue.mjs +16 -17
- package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +14 -15
- package/es/components/chart-other-circular-graph/index.vue.mjs +16 -17
- package/es/components/chart-other-force/index.vue.mjs +19 -20
- package/es/components/chart-other-force2/index.vue.mjs +19 -20
- package/es/components/chart-other-funnel/index.vue.mjs +16 -17
- package/es/components/chart-other-funnel-contrast/index.vue.mjs +16 -17
- package/es/components/chart-other-funnel-split/index.vue.mjs +16 -17
- package/es/components/chart-other-funnel2/index.vue.mjs +16 -17
- package/es/components/chart-other-gauge/index.vue.mjs +21 -22
- package/es/components/chart-other-gauge-grade/index.vue.mjs +20 -21
- package/es/components/chart-other-gauge-stage/index.vue.mjs +21 -22
- package/es/components/chart-other-graph-basic/index.vue.mjs +8 -9
- package/es/components/chart-other-graph-basic2/index.vue.mjs +8 -9
- package/es/components/chart-other-graph-calendar/index.vue.mjs +7 -8
- package/es/components/chart-other-grid-percentage/index.vue.mjs +3 -4
- package/es/components/chart-other-heatmap/index.vue.mjs +19 -20
- package/es/components/chart-other-label-gauge/index.vue.mjs +9 -10
- package/es/components/chart-other-liquidfill/index.vue.mjs +11 -12
- package/es/components/chart-other-parallel-basic/index.vue.mjs +15 -16
- package/es/components/chart-other-parallel-mul/index.vue.mjs +6 -7
- package/es/components/chart-other-radar/index.vue.mjs +20 -21
- package/es/components/chart-other-radar-stack/index.vue.mjs +6 -7
- package/es/components/chart-other-sunburst-basic/index.vue.mjs +12 -13
- package/es/components/chart-other-sunburst-basic2/index.vue.mjs +12 -13
- package/es/components/chart-other-sunburst-basic3/index.vue.mjs +12 -13
- package/es/components/chart-other-sunburst-basic4/index.vue.mjs +12 -13
- package/es/components/chart-other-sunburst-book/index.vue.mjs +7 -8
- package/es/components/chart-other-sunburst-flavors/index.vue.mjs +16 -17
- package/es/components/chart-other-sunburst-radius/index.vue.mjs +18 -19
- package/es/components/chart-other-theme-river/index.vue.mjs +3 -4
- package/es/components/chart-other-tree/index.vue.mjs +8 -9
- package/es/components/chart-other-tree-line/index.vue.mjs +7 -8
- package/es/components/chart-other-treemap/index.vue.mjs +9 -10
- package/es/components/chart-other-treemap-basic/index.vue.mjs +14 -15
- package/es/components/chart-other-word-cloud/index.vue.mjs +11 -12
- package/es/components/commons-echarts/compileAndRunEcharts.mjs +8 -9
- package/es/components/commons-loop-iterator/index.vue.mjs +2 -2
- package/es/components/commons-loop-iterator/index.vue2.mjs +3 -4
- package/es/components/commons-product-model/index.vue.mjs +2 -2
- package/es/components/commons-product-model/index.vue2.mjs +1 -1
- package/es/components/commons-three-loader/index.vue.mjs +1 -1
- package/es/components/commons-three-loader/index.vue2.mjs +1 -1
- package/es/components/commons-three-loader3/index.vue.mjs +1 -1
- package/es/components/commons-three-loader3/index.vue2.mjs +1 -1
- package/es/components/commons-weather/index.vue.mjs +2 -2
- package/es/components/commons-weather/index.vue2.mjs +1 -1
- package/es/components/commons-weather-dynamic/index.vue.mjs +1 -1
- package/es/components/commons-weather-dynamic/index.vue2.mjs +3 -4
- package/es/components/index.d.ts +111 -111
- package/es/components/index.mjs +360 -360
- package/es/components/interaction/button/index.vue.mjs +2 -2
- package/es/components/interaction/button/index.vue2.mjs +65 -65
- package/es/components/interaction/date-picker/components/common-date-picker/index.vue.mjs +2 -2
- package/es/components/interaction/date-picker/components/common-date-picker/index.vue2.mjs +64 -65
- package/es/components/interaction/date-picker/src/date-picker/index.d.ts +211 -211
- package/es/components/interaction/date-picker/src/date-picker/index.vue.d.ts +211 -211
- package/es/components/interaction/date-picker/src/date-picker-range/index.d.ts +211 -211
- package/es/components/interaction/date-picker/src/date-picker-range/index.vue.d.ts +211 -211
- package/es/components/interaction/tabs/index.vue.mjs +11 -12
- package/es/components/interaction/tabs-icon/index.vue.mjs +6 -7
- package/es/components/interaction-input/index.vue.mjs +1 -1
- package/es/components/interaction-input/index.vue2.mjs +3 -4
- package/es/components/interaction-select/index.vue.mjs +1 -1
- package/es/components/interaction-select/index.vue2.mjs +6 -7
- package/es/components/interaction-slider/index.vue.mjs +2 -2
- package/es/components/interaction-slider/index.vue2.mjs +34 -35
- package/es/components/interaction-switch/index.vue.mjs +2 -2
- package/es/components/interaction-switch/index.vue2.mjs +20 -20
- package/es/components/interaction-tabs/index.vue.mjs +2 -2
- package/es/components/interaction-tabs/index.vue2.mjs +1 -1
- package/es/components/interaction-tabs2/index.vue.mjs +2 -2
- package/es/components/interaction-tabs2/index.vue2.mjs +1 -1
- package/es/components/map-earth-basic/index.vue.d.ts +0 -2
- package/es/components/map-earth-basic/index.vue.mjs +14 -15
- package/es/components/map-earth-cool-tech/index.vue.mjs +14 -15
- package/es/components/map-earth-fly-line/index.vue.d.ts +0 -4
- package/es/components/map-earth-fly-line/index.vue.mjs +8 -9
- package/es/components/map-earth-hacker/index.vue.d.ts +2 -4
- package/es/components/map-earth-hacker/index.vue.mjs +19 -20
- package/es/components/map-earth-particle/index.vue.d.ts +0 -4
- package/es/components/map-earth-particle/index.vue.mjs +14 -15
- package/es/components/media-audio/index.vue.mjs +2 -2
- package/es/components/media-audio/index.vue2.mjs +5 -5
- package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
- package/es/components/media-audio-dynamic/index.vue2.mjs +4 -5
- package/es/components/media-flv/index.vue.mjs +1 -1
- package/es/components/media-iframe/index.vue.mjs +2 -2
- package/es/components/media-iframe/index.vue2.mjs +1 -1
- package/es/components/media-image-dynamic/index.vue.mjs +2 -2
- package/es/components/media-image-dynamic/index.vue2.mjs +6 -7
- package/es/components/media-m3u8/index.vue.mjs +1 -1
- package/es/components/media-m3u8-dynamic/index.vue.mjs +3 -4
- package/es/components/media-video/index.vue.mjs +2 -2
- package/es/components/media-video/index.vue2.mjs +1 -1
- package/es/components/media-video-dynamic/index.vue.mjs +2 -2
- package/es/components/media-video-dynamic/index.vue2.mjs +3 -4
- package/es/components/scene-amap2d/index.vue.mjs +1 -1
- package/es/components/scene-amap2d/index.vue2.mjs +13 -14
- package/es/components/scene-amap3d/index.vue.mjs +2 -2
- package/es/components/scene-amap3d/index.vue2.mjs +4 -5
- package/es/components/scene-default/index.vue.mjs +2 -2
- package/es/components/scene-default/index.vue2.mjs +1 -1
- package/es/components/scene-map3d/index.vue.mjs +2 -2
- package/es/components/scene-map3d/index.vue2.mjs +19 -20
- package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
- package/es/components/scene-ue-iframe/index.vue2.mjs +1 -1
- package/es/components/scene-ue-shj/index.vue.mjs +2 -2
- package/es/components/scene-ue-shj/index.vue2.mjs +1 -1
- package/es/components/scene-unity-iframe/index.vue.mjs +2 -2
- package/es/components/scene-unity-iframe/index.vue2.mjs +1 -1
- package/es/components/scene-unity-webgl/index.vue.mjs +1 -1
- package/es/components/scene-unity-webgl/index.vue2.mjs +1 -1
- package/es/components/scene-vr/index.vue.mjs +2 -2
- package/es/components/scene-vr/index.vue2.mjs +3 -3
- package/es/components/text/list/index.vue.mjs +10 -11
- package/es/components/text-count-down/index.vue.mjs +1 -1
- package/es/components/text-count-down/index.vue2.mjs +1 -1
- package/es/components/text-over-number/index.vue.mjs +1 -1
- package/es/components/text-over-number/index.vue2.mjs +15 -16
- package/es/components/text-real-time/index.vue.mjs +1 -1
- package/es/components/text-real-time/index.vue2.mjs +2 -2
- package/es/components/text-row-scroll/index.vue.mjs +2 -2
- package/es/components/text-row-scroll/index.vue2.mjs +30 -31
- package/es/components/text-table-basic/index.vue.mjs +1 -1
- package/es/components/text-table-basic/index.vue2.mjs +43 -44
- package/es/components/text-table-scroll/index.vue.mjs +2 -2
- package/es/components/text-table-scroll/index.vue2.mjs +58 -59
- package/es/components/text-text-dynamic/index.vue.mjs +1 -1
- package/es/components/text-text-dynamic/index.vue2.mjs +16 -17
- package/es/env.d.ts +0 -1
- package/es/index.d.ts +0 -7
- package/es/index.mjs +370 -384
- package/es/widgets.css +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a4e9af51"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as a, useCssVars as d, ref as l, onMounted as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as a, useCssVars as d, ref as l, onMounted as b, createElementBlock as x, openBlock as v, normalizeStyle as c, unref as i, createElementVNode as f, toDisplayString as h } from "vue";
|
|
2
|
+
import { SHJDatasourceV2 as u } from "@zerov/core";
|
|
3
|
+
import { useButtonWatch as S } from "./hooks/useButtonWatch.mjs";
|
|
4
4
|
import { Utils as n } from "../../../commons/utils/utils.mjs";
|
|
5
5
|
const g = a({ name: "shj-button" }), j = /* @__PURE__ */ a({
|
|
6
6
|
...g,
|
|
@@ -12,80 +12,80 @@ const g = a({ name: "shj-button" }), j = /* @__PURE__ */ a({
|
|
|
12
12
|
},
|
|
13
13
|
emits: ["on-click-item", "on-change"],
|
|
14
14
|
setup(p, { expose: r, emit: y }) {
|
|
15
|
-
d((
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
15
|
+
d((e) => ({
|
|
16
|
+
d6821bca: t.option.css.hover.backgroundColor,
|
|
17
|
+
"9afd4d56": t.option.css.hover.borderRadius + "px",
|
|
18
|
+
"63cba76d": t.option.css.hover.borderWidth + "px",
|
|
19
|
+
aec5f9aa: t.option.css.hover.borderStyle,
|
|
20
|
+
b08dd646: t.option.css.hover.borderColor,
|
|
21
|
+
d5db27da: t.option.css.hover.backgroundImage,
|
|
22
|
+
"9b82336e": t.option.css.hover.backgroundSize,
|
|
23
|
+
"1c2cc1e3": t.option.css.hover.backgroundRepeat,
|
|
24
|
+
"5e66ec74": t.option.css.hover.backgroundPositionX + "px",
|
|
25
|
+
"38adb6a5": t.option.css.hover.backgroundPositionY + "px",
|
|
26
|
+
f38f4a22: t.option.css.hover.paddingLeft + "px",
|
|
27
|
+
b3b09ff0: t.option.css.hover.paddingRight + "px",
|
|
28
|
+
"4f7f206f": t.option.css.hover.paddingTop + "px",
|
|
29
|
+
e448ebea: t.option.css.hover.paddingBottom + "px",
|
|
30
|
+
"2ae4fdfe": t.option.css.hover.textStyle.fontStyle,
|
|
31
|
+
"1a7a84b7": t.option.css.hover.textStyle.fontFamily,
|
|
32
|
+
"779dc0bf": t.option.css.hover.textStyle.color,
|
|
33
|
+
"88063bce": t.option.css.hover.textStyle.fontSize + "px",
|
|
34
|
+
"37b36bcb": t.option.css.hover.textStyle.fontWeight,
|
|
35
|
+
"2419e3df": t.option.css.hover.textStyle.alignItems,
|
|
36
|
+
"352895ed": t.option.css.hover.textStyle.justifyContent,
|
|
37
|
+
"7ded678c": t.option.css.hover.textStyle["-webkit-text-stroke-color"],
|
|
38
|
+
"2b76c230": t.option.css.hover.textStyle["-webkit-text-stroke-width"] + "px",
|
|
39
|
+
"7e4cfdf4": t.option.css.hover.textStyle.letterSpacing + "px",
|
|
40
|
+
"44bb4e5f": t.option.css.hover.textStyle.lineHeight,
|
|
41
|
+
"171ebaf5": t.option.css.active.backgroundColor,
|
|
42
|
+
"0885b5a2": t.option.css.active.borderRadius + "px",
|
|
43
|
+
"2c59f853": t.option.css.active.borderWidth + "px",
|
|
44
|
+
"30b16df6": t.option.css.active.borderStyle,
|
|
45
|
+
"32794a92": t.option.css.active.borderColor,
|
|
46
|
+
"177234ed": t.option.css.active.backgroundImage,
|
|
47
|
+
"8294cba2": t.option.css.active.backgroundSize,
|
|
48
|
+
"3473d76e": t.option.css.active.backgroundRepeat,
|
|
49
|
+
"78f2d6a8": t.option.css.active.backgroundPositionX + "px",
|
|
50
|
+
"2b67c18b": t.option.css.active.backgroundPositionY + "px",
|
|
51
|
+
"4ec6abd5": t.option.css.active.paddingLeft + "px",
|
|
52
|
+
"2139083c": t.option.css.active.paddingRight + "px",
|
|
53
|
+
"8ddfca6e": t.option.css.active.paddingTop + "px",
|
|
54
|
+
"6c193971": t.option.css.active.paddingBottom + "px",
|
|
55
|
+
"7420c9d8": t.option.css.active.textStyle.fontStyle,
|
|
56
|
+
"0e8f97c6": t.option.css.active.textStyle.fontFamily,
|
|
57
|
+
"0c04ecce": t.option.css.active.textStyle.color,
|
|
58
|
+
ebfa3b1a: t.option.css.active.textStyle.fontSize + "px",
|
|
59
|
+
"15f11b31": t.option.css.active.textStyle.fontWeight,
|
|
60
|
+
"02579345": t.option.css.active.textStyle.alignItems,
|
|
61
|
+
54942253: t.option.css.active.textStyle.justifyContent,
|
|
62
|
+
"5687a3c0": t.option.css.active.textStyle["-webkit-text-stroke-color"],
|
|
63
|
+
"2843118a": t.option.css.active.textStyle["-webkit-text-stroke-width"] + "px",
|
|
64
|
+
"1d9b25da": t.option.css.active.textStyle.letterSpacing + "px",
|
|
65
|
+
"22f8fdc5": t.option.css.active.textStyle.lineHeight
|
|
66
66
|
}));
|
|
67
|
-
const t = p, s = l(""),
|
|
68
|
-
|
|
67
|
+
const t = p, s = l(""), o = () => {
|
|
68
|
+
u.parse({
|
|
69
69
|
tId: t.uuid,
|
|
70
70
|
sources: t.sources,
|
|
71
|
-
callback: ({ data:
|
|
72
|
-
s.value =
|
|
71
|
+
callback: ({ data: e }) => {
|
|
72
|
+
s.value = e[0].data[0].data;
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
return
|
|
77
|
-
refresh: () =>
|
|
76
|
+
return b(() => o()), S(t, o), r({
|
|
77
|
+
refresh: () => o(),
|
|
78
78
|
refreshView: () => {
|
|
79
79
|
},
|
|
80
80
|
// 刷新视图 无需刷新
|
|
81
|
-
refreshData: () =>
|
|
82
|
-
}), (
|
|
81
|
+
refreshData: () => o()
|
|
82
|
+
}), (e, m) => (v(), x("button", {
|
|
83
83
|
class: "height-100 transition-all",
|
|
84
|
-
style: i(
|
|
84
|
+
style: c(i(n).json2cssObject(t.option.css))
|
|
85
85
|
}, [
|
|
86
|
-
|
|
86
|
+
f("p", {
|
|
87
87
|
class: "flex width-100 height-100 transition-all",
|
|
88
|
-
style: i(
|
|
88
|
+
style: c(i(n).json2cssObject(t.option.css.textStyle))
|
|
89
89
|
}, h(s.value), 5)
|
|
90
90
|
], 4));
|
|
91
91
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1ae780e7"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
import { defineComponent as V, useCssVars as D, ref as h, onMounted as T, createElementBlock as f, openBlock as m, createVNode as B, unref as C, normalizeStyle as E, withCtx as I, createElementVNode as
|
|
1
|
+
import { defineComponent as V, useCssVars as D, ref as h, onMounted as T, createElementBlock as f, openBlock as m, createVNode as B, unref as C, normalizeStyle as E, withCtx as I, createElementVNode as s, createCommentVNode as w, Fragment as O, pushScopeId as N, popScopeId as R } from "vue";
|
|
2
2
|
import H from "@vuepic/vue-datepicker";
|
|
3
3
|
import { nanoid as g } from "nanoid";
|
|
4
|
-
import
|
|
4
|
+
import t from "dayjs";
|
|
5
5
|
import "dayjs/locale/zh-cn";
|
|
6
6
|
import j from "dayjs/plugin/relativeTime";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { SHJParseEvent as S } from "../../../../../commons/plugins/event/index.mjs";
|
|
7
|
+
import { SHJDatasourceV2 as q, SHJParseEvent as S } from "@zerov/core";
|
|
8
|
+
import { useDatePickerWatch as z } from "./hooks/useDatePickerWatch.mjs";
|
|
10
9
|
import { Utils as F } from "../../../../../commons/utils/utils.mjs";
|
|
11
10
|
import "@vuepic/vue-datepicker/dist/main.css";
|
|
12
|
-
const i = (d) => (N("data-v-
|
|
11
|
+
const i = (d) => (N("data-v-1ae780e7"), d = d(), R(), d), J = { class: "left-sidebar" }, U = /* @__PURE__ */ i(() => /* @__PURE__ */ s("span", null, "今天", -1)), A = [
|
|
13
12
|
U
|
|
14
|
-
], K = /* @__PURE__ */ i(() => /* @__PURE__ */
|
|
13
|
+
], K = /* @__PURE__ */ i(() => /* @__PURE__ */ s("span", null, "昨天", -1)), L = [
|
|
15
14
|
K
|
|
16
|
-
], M = /* @__PURE__ */ i(() => /* @__PURE__ */
|
|
15
|
+
], M = /* @__PURE__ */ i(() => /* @__PURE__ */ s("span", null, "前天", -1)), W = [
|
|
17
16
|
M
|
|
18
|
-
], Y = /* @__PURE__ */ i(() => /* @__PURE__ */
|
|
17
|
+
], Y = /* @__PURE__ */ i(() => /* @__PURE__ */ s("span", null, "今日", -1)), G = [
|
|
19
18
|
Y
|
|
20
|
-
], Q = /* @__PURE__ */ i(() => /* @__PURE__ */
|
|
19
|
+
], Q = /* @__PURE__ */ i(() => /* @__PURE__ */ s("span", null, "昨日", -1)), X = [
|
|
21
20
|
Q
|
|
22
|
-
], Z = /* @__PURE__ */ i(() => /* @__PURE__ */
|
|
21
|
+
], Z = /* @__PURE__ */ i(() => /* @__PURE__ */ s("span", null, "前天", -1)), _ = [
|
|
23
22
|
Z
|
|
24
|
-
], x = /* @__PURE__ */ i(() => /* @__PURE__ */
|
|
23
|
+
], x = /* @__PURE__ */ i(() => /* @__PURE__ */ s("span", null, "本周", -1)), ee = [
|
|
25
24
|
x
|
|
26
|
-
], oe = /* @__PURE__ */ i(() => /* @__PURE__ */
|
|
25
|
+
], oe = /* @__PURE__ */ i(() => /* @__PURE__ */ s("span", null, "上一月", -1)), se = [
|
|
27
26
|
oe
|
|
28
|
-
],
|
|
29
|
-
|
|
30
|
-
], ie = /* @__PURE__ */ i(() => /* @__PURE__ */
|
|
27
|
+
], te = /* @__PURE__ */ i(() => /* @__PURE__ */ s("span", null, "本月", -1)), ne = [
|
|
28
|
+
te
|
|
29
|
+
], ie = /* @__PURE__ */ i(() => /* @__PURE__ */ s("span", null, "近7天", -1)), ae = [
|
|
31
30
|
ie
|
|
32
|
-
], le = /* @__PURE__ */ i(() => /* @__PURE__ */
|
|
31
|
+
], le = /* @__PURE__ */ i(() => /* @__PURE__ */ s("span", null, "近15天", -1)), re = [
|
|
33
32
|
le
|
|
34
|
-
], de = /* @__PURE__ */ i(() => /* @__PURE__ */
|
|
33
|
+
], de = /* @__PURE__ */ i(() => /* @__PURE__ */ s("span", null, "近30天", -1)), pe = [
|
|
35
34
|
de
|
|
36
|
-
], ce = /* @__PURE__ */ i(() => /* @__PURE__ */
|
|
35
|
+
], ce = /* @__PURE__ */ i(() => /* @__PURE__ */ s("span", null, "近365天", -1)), ue = [
|
|
37
36
|
ce
|
|
38
|
-
],
|
|
37
|
+
], ge = /* @__PURE__ */ V({
|
|
39
38
|
__name: "index",
|
|
40
39
|
props: {
|
|
41
40
|
option: {},
|
|
@@ -46,33 +45,33 @@ const i = (d) => (N("data-v-a3634643"), d = d(), R(), d), J = { class: "left-sid
|
|
|
46
45
|
emits: ["on-change"],
|
|
47
46
|
setup(d, { expose: $, emit: P }) {
|
|
48
47
|
D((e) => ({
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
})),
|
|
48
|
+
d4d74a16: e.option.css.dp.backgroundColor,
|
|
49
|
+
"6f1d2a56": e.option.css.dp.textColor,
|
|
50
|
+
"304c6367": e.option.css.dp.hoverColor,
|
|
51
|
+
"24827f8c": e.option.css.dp.hoverTextColor,
|
|
52
|
+
"6484b261": e.option.css.dp.primaryColor,
|
|
53
|
+
13665176: e.option.css.dp.primaryDisabledColor,
|
|
54
|
+
c239fb98: e.option.css.dp.primaryTextColor,
|
|
55
|
+
"2ea72e2f": e.option.css.dp.secondaryColor,
|
|
56
|
+
"4108fab7": e.option.css.dp.borderColor,
|
|
57
|
+
"36c5bbd8": e.option.css.dp.menuBorderColor,
|
|
58
|
+
"08160e76": e.option.css.dp.borderColorHover,
|
|
59
|
+
"084ef73e": e.option.css.dp.borderColorFocus,
|
|
60
|
+
"4f121e67": e.option.css.dp.disabledColor,
|
|
61
|
+
"2f20c3f4": e.option.css.dp.scrollBarBackground,
|
|
62
|
+
"5b1a1cdd": e.option.css.dp.scrollBarColor,
|
|
63
|
+
ffdece00: e.option.css.dp.successColor,
|
|
64
|
+
"6a68379c": e.option.css.dp.successColorDisabled,
|
|
65
|
+
"154009c0": e.option.css.dp.dangerColor,
|
|
66
|
+
"22a64c34": e.option.css.dp.disabledColorText,
|
|
67
|
+
d995ca22: e.option.css.dp.highlightColor,
|
|
68
|
+
"35dcb01a": e.option.css.dp.loader,
|
|
69
|
+
e1eebe60: e.option.css.dp.fontSize,
|
|
70
|
+
"414cb98b": e.option.css.dp.inputBackgroundColor,
|
|
71
|
+
"1fcc6c9e": e.option.css.dp.inputHeight
|
|
72
|
+
})), t.extend(j), t.locale("zh-cn");
|
|
74
73
|
const r = d, b = P, n = h(), v = h(g()), y = () => v.value = g(), c = () => {
|
|
75
|
-
|
|
74
|
+
q.parse({
|
|
76
75
|
tId: r.uuid,
|
|
77
76
|
sources: r.sources,
|
|
78
77
|
callback: ({ data: e }) => {
|
|
@@ -83,7 +82,7 @@ const i = (d) => (N("data-v-a3634643"), d = d(), R(), d), J = { class: "left-sid
|
|
|
83
82
|
}
|
|
84
83
|
});
|
|
85
84
|
};
|
|
86
|
-
T(() => c()),
|
|
85
|
+
T(() => c()), z(r, c, y), $({
|
|
87
86
|
refresh: () => c(),
|
|
88
87
|
refreshView: () => y(),
|
|
89
88
|
refreshData: () => c()
|
|
@@ -101,9 +100,9 @@ const i = (d) => (N("data-v-a3634643"), d = d(), R(), d), J = { class: "left-sid
|
|
|
101
100
|
const o = { data: n.value };
|
|
102
101
|
b("on-change", o), S.parseEvents(r.useEvents, "on-change", o);
|
|
103
102
|
}, u = (e) => {
|
|
104
|
-
e === "today" ? n.value =
|
|
103
|
+
e === "today" ? n.value = t() : e === "yesterday" ? n.value = t().subtract(1, "day") : e === "before-yesterday" && (n.value = t().subtract(2, "day"));
|
|
105
104
|
}, l = (e) => {
|
|
106
|
-
e === "today" ? n.value = [
|
|
105
|
+
e === "today" ? n.value = [t().startOf("day"), t().endOf("day")] : e === "yesterday" ? n.value = [t().subtract(1, "day").startOf("day"), t().subtract(1, "day").endOf("day")] : e === "before-yesterday" ? n.value = [t().subtract(2, "day").startOf("day"), t().subtract(2, "day").endOf("day")] : e === "week" ? n.value = [t().startOf("week"), t().endOf("week")] : e === "last-month" ? n.value = [t().subtract(1, "month").startOf("month"), t().subtract(1, "month").endOf("month")] : e === "month" ? n.value = [t().startOf("month"), t().endOf("month")] : e === "last-7" ? n.value = [t().subtract(7, "day").startOf("day"), t().endOf("day")] : e === "last-15" ? n.value = [t().subtract(15, "day").startOf("day"), t().endOf("day")] : e === "last-30" ? n.value = [t().subtract(30, "day").startOf("day"), t().endOf("day")] : e === "last-365" && (n.value = [t().subtract(365, "day").startOf("day"), t().endOf("day")]), k(n.value);
|
|
107
106
|
};
|
|
108
107
|
return (e, o) => (m(), f("div", {
|
|
109
108
|
key: v.value,
|
|
@@ -146,59 +145,59 @@ const i = (d) => (N("data-v-a3634643"), d = d(), R(), d), J = { class: "left-sid
|
|
|
146
145
|
style: E(C(F).json2cssObject(e.option.css.dp, "dp"))
|
|
147
146
|
}, {
|
|
148
147
|
"left-sidebar": I((p) => [
|
|
149
|
-
|
|
148
|
+
s("div", J, [
|
|
150
149
|
e.option.range ? w("", !0) : (m(), f(O, { key: 0 }, [
|
|
151
|
-
|
|
150
|
+
s("div", {
|
|
152
151
|
class: "left-sidebar-item",
|
|
153
152
|
onClick: o[0] || (o[0] = (a) => u("today"))
|
|
154
153
|
}, A),
|
|
155
|
-
|
|
154
|
+
s("div", {
|
|
156
155
|
class: "left-sidebar-item",
|
|
157
156
|
onClick: o[1] || (o[1] = (a) => u("yesterday"))
|
|
158
157
|
}, L),
|
|
159
|
-
|
|
158
|
+
s("div", {
|
|
160
159
|
class: "left-sidebar-item",
|
|
161
160
|
onClick: o[2] || (o[2] = (a) => u("before-yesterday"))
|
|
162
161
|
}, W)
|
|
163
162
|
], 64)),
|
|
164
163
|
e.option.range ? (m(), f(O, { key: 1 }, [
|
|
165
|
-
|
|
164
|
+
s("div", {
|
|
166
165
|
class: "left-sidebar-item",
|
|
167
166
|
onClick: o[3] || (o[3] = (a) => l("today"))
|
|
168
167
|
}, G),
|
|
169
|
-
|
|
168
|
+
s("div", {
|
|
170
169
|
class: "left-sidebar-item",
|
|
171
170
|
onClick: o[4] || (o[4] = (a) => l("yesterday"))
|
|
172
171
|
}, X),
|
|
173
|
-
|
|
172
|
+
s("div", {
|
|
174
173
|
class: "left-sidebar-item",
|
|
175
174
|
onClick: o[5] || (o[5] = (a) => l("before-yesterday"))
|
|
176
175
|
}, _),
|
|
177
|
-
|
|
176
|
+
s("div", {
|
|
178
177
|
class: "left-sidebar-item",
|
|
179
178
|
onClick: o[6] || (o[6] = (a) => l("week"))
|
|
180
179
|
}, ee),
|
|
181
|
-
|
|
180
|
+
s("div", {
|
|
182
181
|
class: "left-sidebar-item",
|
|
183
182
|
onClick: o[7] || (o[7] = (a) => l("last-month"))
|
|
184
|
-
},
|
|
185
|
-
|
|
183
|
+
}, se),
|
|
184
|
+
s("div", {
|
|
186
185
|
class: "left-sidebar-item",
|
|
187
186
|
onClick: o[8] || (o[8] = (a) => l("month"))
|
|
188
187
|
}, ne),
|
|
189
|
-
|
|
188
|
+
s("div", {
|
|
190
189
|
class: "left-sidebar-item",
|
|
191
190
|
onClick: o[9] || (o[9] = (a) => l("last-7"))
|
|
192
191
|
}, ae),
|
|
193
|
-
|
|
192
|
+
s("div", {
|
|
194
193
|
class: "left-sidebar-item",
|
|
195
194
|
onClick: o[10] || (o[10] = (a) => l("last-15"))
|
|
196
195
|
}, re),
|
|
197
|
-
|
|
196
|
+
s("div", {
|
|
198
197
|
class: "left-sidebar-item",
|
|
199
198
|
onClick: o[11] || (o[11] = (a) => l("last-30"))
|
|
200
199
|
}, pe),
|
|
201
|
-
|
|
200
|
+
s("div", {
|
|
202
201
|
class: "left-sidebar-item",
|
|
203
202
|
onClick: o[12] || (o[12] = (a) => l("last-365"))
|
|
204
203
|
}, ue)
|
|
@@ -211,5 +210,5 @@ const i = (d) => (N("data-v-a3634643"), d = d(), R(), d), J = { class: "left-sid
|
|
|
211
210
|
}
|
|
212
211
|
});
|
|
213
212
|
export {
|
|
214
|
-
|
|
213
|
+
ge as default
|
|
215
214
|
};
|