@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,11 +1,10 @@
|
|
|
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
|
|
2
|
-
import { debounce 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 c, 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 m, cloneDeep as w, isEqual as R } from "lodash";
|
|
3
3
|
import { nanoid as k } from "nanoid";
|
|
4
4
|
import { RecycleScroller as Q } from "vue-virtual-scroller";
|
|
5
|
+
import { SHJParseEvent as d, SHJDatasourceV2 as U } from "@zerov/core";
|
|
5
6
|
import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
|
|
6
|
-
|
|
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({
|
|
7
|
+
const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ name: "zv-text-table-basic" }), ne = /* @__PURE__ */ W({
|
|
9
8
|
...Z,
|
|
10
9
|
props: {
|
|
11
10
|
basicOption: {},
|
|
@@ -16,26 +15,26 @@ const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ na
|
|
|
16
15
|
emits: ["on-click-item", "on-click-row", "on-mouseenter-row", "on-mouseout-row"],
|
|
17
16
|
setup(B, { expose: N, emit: j }) {
|
|
18
17
|
A((e) => ({
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
18
|
+
"2a4865d0": e.basicOption.css.table.borderWidth + "px",
|
|
19
|
+
"2fd481c0": e.basicOption.css.table.borderStyle,
|
|
20
|
+
"2ef09372": e.basicOption.css.table.borderColor,
|
|
21
|
+
"0d48809a": e.basicOption.css.table.paddingLeft + "px",
|
|
22
|
+
"0b126780": e.basicOption.css.table.alignItems,
|
|
23
|
+
"1f04610e": e.basicOption.css.table.justifyContent,
|
|
24
|
+
"537a73ac": e.basicOption.css.header.background,
|
|
25
|
+
"961f29ec": e.basicOption.css.header.height + "px",
|
|
26
|
+
"4b4110e7": e.basicOption.css.header.color,
|
|
27
|
+
"5b7a6621": e.basicOption.css.header.fontSize + "px",
|
|
28
|
+
"0c3816ba": e.basicOption.css.header.fontWeight,
|
|
29
|
+
"42d80bb4": e.basicOption.css.header.fontStyle,
|
|
30
|
+
"7f23be9f": e.basicOption.css.body.height + "px",
|
|
31
|
+
"0d3dba96": e.basicOption.css.body.background,
|
|
32
|
+
e0506d08: e.basicOption.css.body.color,
|
|
33
|
+
66272876: e.basicOption.css.body.fontSize + "px",
|
|
34
|
+
"1d02512e": e.basicOption.css.body.fontWeight,
|
|
35
|
+
"1142603b": e.basicOption.css.body.fontStyle
|
|
37
36
|
}));
|
|
38
|
-
const
|
|
37
|
+
const f = j, v = S(k()), r = S([]), i = B, H = () => {
|
|
39
38
|
if (!r.value.length) return;
|
|
40
39
|
const e = Object.keys(r.value[0]), t = i.basicOption.columns || [], s = e.map((o, a) => {
|
|
41
40
|
const n = t.find((C) => C.name === o) || {};
|
|
@@ -55,7 +54,7 @@ const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ na
|
|
|
55
54
|
};
|
|
56
55
|
});
|
|
57
56
|
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)),
|
|
57
|
+
}, h = E(() => i.basicOption.columns || []), y = E(() => h.value.filter((e) => e.visible).map((e) => e.name)), l = () => {
|
|
59
58
|
U.parse({
|
|
60
59
|
tId: i.uuid,
|
|
61
60
|
sources: i.sources,
|
|
@@ -93,41 +92,41 @@ const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ na
|
|
|
93
92
|
...t.textStyle
|
|
94
93
|
// 用户自定义样式
|
|
95
94
|
};
|
|
96
|
-
}, q =
|
|
95
|
+
}, q = m((e, t) => {
|
|
97
96
|
const s = { row: e, rowIndex: t };
|
|
98
|
-
|
|
99
|
-
}, 100), F =
|
|
97
|
+
f("on-click-row", s), d.parseEvents(i.useEvents, "on-click-row", s);
|
|
98
|
+
}, 100), F = m((e, t) => {
|
|
100
99
|
const s = { row: e, rowIndex: t };
|
|
101
|
-
|
|
102
|
-
}, 100), P =
|
|
100
|
+
f("on-mouseenter-row", s), d.parseEvents(i.useEvents, "on-mouseenter-row", s);
|
|
101
|
+
}, 100), P = m((e, t) => {
|
|
103
102
|
const s = { row: e, rowIndex: t };
|
|
104
|
-
|
|
105
|
-
}, 100), T =
|
|
103
|
+
f("on-mouseout-row", s), d.parseEvents(i.useEvents, "on-mouseout-row", s);
|
|
104
|
+
}, 100), T = m((e, t, s, o) => {
|
|
106
105
|
const a = { row: e, item: t, rowIndex: s, columnIndex: o };
|
|
107
|
-
|
|
106
|
+
f("on-click-item", a), d.parseEvents(i.useEvents, "on-click-item", a);
|
|
108
107
|
}, 100);
|
|
109
108
|
return z(() => w(i.sources), (e, t) => {
|
|
110
|
-
R(e, t) ||
|
|
109
|
+
R(e, t) || l();
|
|
111
110
|
}, { deep: !0 }), z(() => w(i.basicOption), (e, t) => {
|
|
112
|
-
R(e, t) ||
|
|
113
|
-
}, { deep: !0 }), G(() =>
|
|
114
|
-
refresh: () =>
|
|
115
|
-
refreshView: () =>
|
|
116
|
-
refreshData: () =>
|
|
111
|
+
R(e, t) || l();
|
|
112
|
+
}, { deep: !0 }), G(() => l()), N({
|
|
113
|
+
refresh: () => l(),
|
|
114
|
+
refreshView: () => l(),
|
|
115
|
+
refreshData: () => l()
|
|
117
116
|
}), (e, t) => {
|
|
118
117
|
const s = K("el-tooltip");
|
|
119
|
-
return r.value.length > 0 ? (u(),
|
|
118
|
+
return r.value.length > 0 ? (u(), c("div", {
|
|
120
119
|
key: v.value,
|
|
121
120
|
class: "table-scroll"
|
|
122
121
|
}, [
|
|
123
|
-
e.basicOption.css.header.show ? (u(),
|
|
122
|
+
e.basicOption.css.header.show ? (u(), c("div", {
|
|
124
123
|
key: 0,
|
|
125
124
|
class: "table-header",
|
|
126
125
|
style: p({
|
|
127
126
|
"--header-background-image": `url(${e.basicOption.css.header.background})`
|
|
128
127
|
})
|
|
129
128
|
}, [
|
|
130
|
-
(u(!0),
|
|
129
|
+
(u(!0), c(V, null, I(y.value, (o) => (u(), c("div", {
|
|
131
130
|
key: o,
|
|
132
131
|
class: "th",
|
|
133
132
|
style: p({ width: g(o) })
|
|
@@ -153,7 +152,7 @@ const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ na
|
|
|
153
152
|
onMouseenter: (n) => b(F)(o, a),
|
|
154
153
|
onMouseout: (n) => b(P)(o, a)
|
|
155
154
|
}, [
|
|
156
|
-
(u(!0),
|
|
155
|
+
(u(!0), c(V, null, I(y.value, (n) => (u(), c("div", {
|
|
157
156
|
key: n,
|
|
158
157
|
class: "td",
|
|
159
158
|
style: p({ width: g(n) }),
|
|
@@ -179,5 +178,5 @@ const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ na
|
|
|
179
178
|
}
|
|
180
179
|
});
|
|
181
180
|
export {
|
|
182
|
-
|
|
181
|
+
ne as default
|
|
183
182
|
};
|
|
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6008a797"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -2,9 +2,8 @@ import { defineComponent as M, useCssVars as j, ref as O, onMounted as A, watch
|
|
|
2
2
|
import { cloneDeep as k, isEqual as z } from "lodash";
|
|
3
3
|
import { Vue3SeamlessScroll as U } from "vue3-seamless-scroll";
|
|
4
4
|
import { nanoid as w } from "nanoid";
|
|
5
|
-
import { SHJDatasourceV2 as G } from "
|
|
6
|
-
|
|
7
|
-
const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key: 1 }, Y = M({ name: "zv-text-table-scroll" }), ne = /* @__PURE__ */ M({
|
|
5
|
+
import { SHJDatasourceV2 as G, SHJParseEvent as p } from "@zerov/core";
|
|
6
|
+
const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key: 1 }, Y = M({ name: "zv-text-table-scroll" }), oe = /* @__PURE__ */ M({
|
|
8
7
|
...Y,
|
|
9
8
|
props: {
|
|
10
9
|
basicOption: {},
|
|
@@ -15,48 +14,48 @@ const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key:
|
|
|
15
14
|
emits: ["on-click-item", "on-click-row", "on-mouseenter-row", "on-mouseout-row"],
|
|
16
15
|
setup($, { expose: D, emit: F }) {
|
|
17
16
|
j((e) => ({
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
17
|
+
"72f00295": e.basicOption.css.table.borderWidth + "px",
|
|
18
|
+
"78ee623a": e.basicOption.css.table.borderStyle,
|
|
19
|
+
"7ab63ed6": e.basicOption.css.table.borderColor,
|
|
20
|
+
d54693d2: e.basicOption.css.table.paddingLeft + "px",
|
|
21
|
+
"30de69fd": e.basicOption.css.table.alignItems,
|
|
22
|
+
bc3e45ea: e.basicOption.css.table.justifyContent,
|
|
23
|
+
"69f7134d": e.basicOption.css.header.background,
|
|
24
|
+
"37cce707": e.basicOption.css.header.height + "px",
|
|
25
|
+
"71c3d9e4": e.basicOption.css.header.color,
|
|
26
|
+
cdb05244: e.basicOption.css.header.fontSize + "px",
|
|
27
|
+
e4cf7c74: e.basicOption.css.header.fontWeight,
|
|
28
|
+
"045ffca3": e.basicOption.css.header.fontStyle,
|
|
29
|
+
f20746d0: e.basicOption.css.body.background,
|
|
30
|
+
"67c04a4a": e.basicOption.css.oddBackground,
|
|
31
|
+
"7582adb9": e.basicOption.css.body.color,
|
|
32
|
+
"2df8b71a": e.basicOption.css.body.fontSize + "px",
|
|
33
|
+
aac4e9de: e.basicOption.css.body.fontWeight,
|
|
34
|
+
bb924410: e.basicOption.css.body.fontStyle
|
|
36
35
|
}));
|
|
37
|
-
const b = F, h = O(w()), a = O([]),
|
|
36
|
+
const b = F, h = O(w()), a = O([]), o = $, m = O(o.basicOption.scroll.start), d = () => {
|
|
38
37
|
G.parse({
|
|
39
|
-
tId:
|
|
40
|
-
sources:
|
|
38
|
+
tId: o.uuid,
|
|
39
|
+
sources: o.sources,
|
|
41
40
|
callback: (e) => {
|
|
42
41
|
try {
|
|
43
|
-
p.parseEvents(
|
|
42
|
+
p.parseEvents(o.useEvents, "dataListener", a), a.value = k(e.data[0].data) || [], h.value = w(), m.value = o.basicOption.scroll.start;
|
|
44
43
|
} catch {
|
|
45
|
-
p.parseEvents(
|
|
44
|
+
p.parseEvents(o.useEvents, "dataListener", null), h.value = w(), a.value = [], m.value = o.basicOption.scroll.start;
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
});
|
|
49
48
|
}, L = (e) => {
|
|
50
49
|
const t = [];
|
|
51
|
-
for (const
|
|
52
|
-
t.push(e[
|
|
50
|
+
for (const s in e)
|
|
51
|
+
t.push(e[s]);
|
|
53
52
|
return t;
|
|
54
53
|
};
|
|
55
|
-
A(() => d()), S(() => k(
|
|
54
|
+
A(() => d()), S(() => k(o.basicOption), (e, t) => {
|
|
56
55
|
z(e, t) || d();
|
|
57
56
|
}, {
|
|
58
57
|
deep: !0
|
|
59
|
-
}), S(() => k(
|
|
58
|
+
}), S(() => k(o.sources), (e, t) => {
|
|
60
59
|
z(e, t) || d();
|
|
61
60
|
}, {
|
|
62
61
|
deep: !0
|
|
@@ -66,37 +65,37 @@ const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key:
|
|
|
66
65
|
refreshData: () => d()
|
|
67
66
|
});
|
|
68
67
|
const N = (e) => {
|
|
69
|
-
if (!
|
|
68
|
+
if (!o.basicOption.columns)
|
|
70
69
|
return !0;
|
|
71
|
-
const t =
|
|
70
|
+
const t = o.basicOption.columns.find((s) => s.index === e);
|
|
72
71
|
return t ? t.font.auto : !0;
|
|
73
72
|
}, f = (e) => {
|
|
74
|
-
if (!
|
|
73
|
+
if (!o.basicOption.columns)
|
|
75
74
|
return null;
|
|
76
|
-
const t =
|
|
75
|
+
const t = o.basicOption.columns.find((s) => s.index === e);
|
|
77
76
|
return t && t.font.auto === !1 ? t.font : null;
|
|
78
77
|
}, C = (e) => {
|
|
79
|
-
if (!
|
|
78
|
+
if (!o.basicOption.columns)
|
|
80
79
|
return !0;
|
|
81
|
-
const t =
|
|
80
|
+
const t = o.basicOption.columns.find((s) => s.index === e);
|
|
82
81
|
return t ? t.width.auto : !0;
|
|
83
82
|
}, E = (e) => {
|
|
84
|
-
if (!
|
|
83
|
+
if (!o.basicOption.columns)
|
|
85
84
|
return null;
|
|
86
|
-
const t =
|
|
85
|
+
const t = o.basicOption.columns.find((s) => s.index === e);
|
|
87
86
|
return t && t.width.auto === !1 ? t.width.width : null;
|
|
88
87
|
}, B = (e, t) => {
|
|
89
|
-
const
|
|
90
|
-
b("on-click-row",
|
|
88
|
+
const s = { row: e, rowIndex: t };
|
|
89
|
+
b("on-click-row", s), p.parseEvents(o.useEvents, "on-click-row", s);
|
|
91
90
|
}, H = (e, t) => {
|
|
92
|
-
const
|
|
93
|
-
b("on-mouseenter-row",
|
|
91
|
+
const s = { row: e, rowIndex: t };
|
|
92
|
+
b("on-mouseenter-row", s), p.parseEvents(o.useEvents, "on-mouseenter-row", s);
|
|
94
93
|
}, I = (e, t) => {
|
|
95
|
-
const
|
|
96
|
-
b("on-mouseout-row",
|
|
97
|
-
}, R = (e, t,
|
|
98
|
-
const n = { row: e, item: t, rowIndex:
|
|
99
|
-
b("on-click-item", n), p.parseEvents(
|
|
94
|
+
const s = { row: e, rowIndex: t };
|
|
95
|
+
b("on-mouseout-row", s), p.parseEvents(o.useEvents, "on-mouseout-row", s);
|
|
96
|
+
}, R = (e, t, s, l) => {
|
|
97
|
+
const n = { row: e, item: t, rowIndex: s, columnIndex: l };
|
|
98
|
+
b("on-click-item", n), p.parseEvents(o.useEvents, "on-click-item", n);
|
|
100
99
|
};
|
|
101
100
|
return (e, t) => a.value.length > 0 ? (r(), i("div", {
|
|
102
101
|
key: h.value,
|
|
@@ -110,17 +109,17 @@ const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key:
|
|
|
110
109
|
"--header-background-image": `url(${e.basicOption.css.header.backgroundImage})`
|
|
111
110
|
})
|
|
112
111
|
}, [
|
|
113
|
-
(r(!0), i(v, null, y(Object.keys(a.value[0]), (
|
|
114
|
-
key:
|
|
112
|
+
(r(!0), i(v, null, y(Object.keys(a.value[0]), (s, l) => (r(), i("div", {
|
|
113
|
+
key: s,
|
|
115
114
|
class: W(["th", { customWidth: !C(l + 1) }]),
|
|
116
115
|
style: u({ "--width": E(l + 1) + "px" })
|
|
117
116
|
}, [
|
|
118
|
-
T("p", null, g(
|
|
117
|
+
T("p", null, g(s), 1)
|
|
119
118
|
], 6))), 128))
|
|
120
119
|
], 4)) : V("", !0),
|
|
121
120
|
J(q(U), {
|
|
122
121
|
modelValue: m.value,
|
|
123
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
122
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => m.value = s),
|
|
124
123
|
direction: e.basicOption.scroll.direction,
|
|
125
124
|
list: a.value,
|
|
126
125
|
"is-watch": "",
|
|
@@ -135,21 +134,21 @@ const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key:
|
|
|
135
134
|
}])
|
|
136
135
|
}, {
|
|
137
136
|
default: P(() => [
|
|
138
|
-
(r(!0), i(v, null, y(a.value, (
|
|
139
|
-
key:
|
|
137
|
+
(r(!0), i(v, null, y(a.value, (s, l) => (r(), i("div", {
|
|
138
|
+
key: s,
|
|
140
139
|
class: "tr",
|
|
141
140
|
style: u({
|
|
142
141
|
"--row-hover": e.basicOption.css.hoverColor
|
|
143
142
|
}),
|
|
144
|
-
onClick: (n) => B(
|
|
145
|
-
onMouseenter: (n) => H(
|
|
146
|
-
onMouseout: (n) => I(
|
|
143
|
+
onClick: (n) => B(s, l),
|
|
144
|
+
onMouseenter: (n) => H(s, l),
|
|
145
|
+
onMouseout: (n) => I(s, l)
|
|
147
146
|
}, [
|
|
148
|
-
(r(!0), i(v, null, y(L(
|
|
147
|
+
(r(!0), i(v, null, y(L(s), (n, c) => (r(), i("div", {
|
|
149
148
|
key: n,
|
|
150
149
|
class: W(["td", { customWidth: !C(c + 1) }]),
|
|
151
150
|
style: u({ "--width": E(c + 1) + "px" }),
|
|
152
|
-
onClick: (Z) => R(
|
|
151
|
+
onClick: (Z) => R(s, n, l, c)
|
|
153
152
|
}, [
|
|
154
153
|
N(c + 1) ? (r(), i("p", X, g(n), 1)) : (r(), i("p", {
|
|
155
154
|
key: 0,
|
|
@@ -169,5 +168,5 @@ const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key:
|
|
|
169
168
|
}
|
|
170
169
|
});
|
|
171
170
|
export {
|
|
172
|
-
|
|
171
|
+
oe as default
|
|
173
172
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9865613b"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { defineComponent as f, watch as s, createElementBlock as S, openBlock as g, unref as i, normalizeStyle as w, toDisplayString as _, ref as D, onMounted as E, nextTick as b } from "vue";
|
|
2
|
-
import { cloneDeep as c, isEqual as
|
|
3
|
-
import { SHJDatasourceV2 as k } from "
|
|
2
|
+
import { cloneDeep as c, isEqual as d } from "lodash";
|
|
3
|
+
import { SHJDatasourceV2 as k, SHJParseEvent as p } from "@zerov/core";
|
|
4
4
|
import { autoInstallFont as C, jsonToCssStyle as j } from "../../commons/utils/json2css.mjs";
|
|
5
|
-
|
|
6
|
-
const z = ["ztitle"], T = f({ name: "zv-text-text-dynamic" }), F = /* @__PURE__ */ f({
|
|
5
|
+
const z = ["ztitle"], T = f({ name: "zv-text-text-dynamic" }), B = /* @__PURE__ */ f({
|
|
7
6
|
...T,
|
|
8
7
|
props: {
|
|
9
8
|
basicOption: {},
|
|
@@ -12,8 +11,8 @@ const z = ["ztitle"], T = f({ name: "zv-text-text-dynamic" }), F = /* @__PURE__
|
|
|
12
11
|
uuid: {}
|
|
13
12
|
},
|
|
14
13
|
setup(x, { expose: m }) {
|
|
15
|
-
const
|
|
16
|
-
const t = D(""),
|
|
14
|
+
const n = x, y = () => {
|
|
15
|
+
const t = D(""), o = (e) => {
|
|
17
16
|
C(e.fontFamily);
|
|
18
17
|
const a = {};
|
|
19
18
|
e.color && e.color.includes("linear-gradient") && (a.backgroundImage = e.color, a["-webkit-background-clip"] = "text", a.color = "transparent");
|
|
@@ -26,28 +25,28 @@ const z = ["ztitle"], T = f({ name: "zv-text-text-dynamic" }), F = /* @__PURE__
|
|
|
26
25
|
};
|
|
27
26
|
}, u = () => {
|
|
28
27
|
k.parse({
|
|
29
|
-
tId:
|
|
30
|
-
sources:
|
|
28
|
+
tId: n.uuid,
|
|
29
|
+
sources: n.sources,
|
|
31
30
|
callback: ({ data: e }) => {
|
|
32
31
|
try {
|
|
33
|
-
|
|
32
|
+
p.parseEvents(n.useEvents, "dataListener", e), t.value = e[0].data[0].value;
|
|
34
33
|
} catch {
|
|
35
|
-
|
|
34
|
+
p.parseEvents(n.useEvents, "dataListener", null);
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
});
|
|
39
38
|
};
|
|
40
|
-
return E(() => b(() => u())), { rendererDomStyle:
|
|
39
|
+
return E(() => b(() => u())), { rendererDomStyle: o, init: u, value: t };
|
|
41
40
|
}, { rendererDomStyle: h, init: r, value: l } = y();
|
|
42
|
-
return s(() => c(
|
|
43
|
-
|
|
44
|
-
}, { deep: !0 }), s(() => c(
|
|
45
|
-
|
|
41
|
+
return s(() => c(n.basicOption), (t, o) => {
|
|
42
|
+
d(t, o) || r();
|
|
43
|
+
}, { deep: !0 }), s(() => c(n.sources), (t, o) => {
|
|
44
|
+
d(t, o) || r();
|
|
46
45
|
}, { deep: !0 }), m({
|
|
47
46
|
refresh: () => r(),
|
|
48
47
|
refreshView: () => r(),
|
|
49
48
|
refreshData: () => r()
|
|
50
|
-
}), (t,
|
|
49
|
+
}), (t, o) => (g(), S("p", {
|
|
51
50
|
class: "zerov-widget-text",
|
|
52
51
|
style: w(i(h)(t.basicOption.css)),
|
|
53
52
|
ztitle: i(l)
|
|
@@ -55,5 +54,5 @@ const z = ["ztitle"], T = f({ name: "zv-text-text-dynamic" }), F = /* @__PURE__
|
|
|
55
54
|
}
|
|
56
55
|
});
|
|
57
56
|
export {
|
|
58
|
-
|
|
57
|
+
B as default
|
|
59
58
|
};
|
package/es/env.d.ts
CHANGED
package/es/index.d.ts
CHANGED
|
@@ -4,10 +4,3 @@ declare const _default: {
|
|
|
4
4
|
install: (app: App) => void;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
|
-
export * from './commons/plugins/datasource';
|
|
8
|
-
export * from './commons/plugins/event';
|
|
9
|
-
export * from './commons/utils/getNextElement';
|
|
10
|
-
export * from './commons/plugins/event/utils/utils';
|
|
11
|
-
export * from './commons/plugins/datasource/utils/utils';
|
|
12
|
-
export * from './commons/plugins/datasource/utils/wsManager';
|
|
13
|
-
export * from './commons/utils/componentRefs';
|