@shjjs/visual-ui 1.0.2 → 1.0.3
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/components/interaction-data-picker/index.d.ts +14 -12
- package/es/components/interaction-data-picker/index.mjs +2 -2
- package/es/components/interaction-data-picker/index.vue.d.ts +14 -12
- package/es/components/interaction-data-picker/index.vue.mjs +5 -11
- package/es/components/interaction-data-picker/index.vue2.mjs +130 -2
- package/es/components/interaction-input/index.d.ts +25 -5
- package/es/components/interaction-input/index.vue.d.ts +25 -5
- package/es/components/interaction-input/index.vue.mjs +2 -2
- package/es/components/interaction-input/index.vue2.mjs +67 -36
- package/es/components/interaction-slider/index.d.ts +22 -5
- package/es/components/interaction-slider/index.vue.d.ts +22 -5
- package/es/components/interaction-slider/index.vue.mjs +2 -2
- package/es/components/interaction-slider/index.vue2.mjs +84 -50
- package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
- package/es/components/scene-ue-iframe/index.vue2.mjs +4 -4
- package/es/style.css +1 -1
- package/lib/components/interaction-data-picker/index.js +1 -1
- package/lib/components/interaction-data-picker/index.vue.js +1 -1
- package/lib/components/interaction-data-picker/index.vue2.js +1 -1
- package/lib/components/interaction-input/index.vue.js +1 -1
- package/lib/components/interaction-input/index.vue2.js +1 -1
- package/lib/components/interaction-slider/index.vue.js +1 -1
- package/lib/components/interaction-slider/index.vue2.js +1 -1
- package/lib/components/scene-ue-iframe/index.vue.js +1 -1
- package/lib/components/scene-ue-iframe/index.vue2.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
export declare const ZvInteractionDataPicker: import("../../utils/typescript").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const ZvInteractionDataPicker: import("../../utils/typescript").SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
2
|
+
calendarOpen: import("vue").Ref<boolean>;
|
|
3
|
+
useDatePicker: () => {
|
|
4
|
+
getCurrentDate: () => number[];
|
|
5
|
+
solarWeek: (y: number, m: number, d: number) => number;
|
|
6
|
+
beforeDays: (date: number[], last: number) => any[];
|
|
7
|
+
afterDays: (day: any[], date: number[]) => any[];
|
|
8
|
+
dateArray: any[];
|
|
9
|
+
selectYear: import("vue").Ref<number>;
|
|
10
|
+
selectMonth: import("vue").Ref<number>;
|
|
5
11
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type: any;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
|
-
}>>, {}, {}>> & Record<string, any>;
|
|
12
|
+
dateArray: any[];
|
|
13
|
+
selectYear: import("vue").Ref<number>;
|
|
14
|
+
selectMonth: import("vue").Ref<number>;
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>> & Record<string, any>;
|
|
14
16
|
export default ZvInteractionDataPicker;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
calendarOpen: import("vue").Ref<boolean>;
|
|
3
|
+
useDatePicker: () => {
|
|
4
|
+
getCurrentDate: () => number[];
|
|
5
|
+
solarWeek: (y: number, m: number, d: number) => number;
|
|
6
|
+
beforeDays: (date: number[], last: number) => any[];
|
|
7
|
+
afterDays: (day: any[], date: number[]) => any[];
|
|
8
|
+
dateArray: any[];
|
|
9
|
+
selectYear: import("vue").Ref<number>;
|
|
10
|
+
selectMonth: import("vue").Ref<number>;
|
|
5
11
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type: any;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
|
-
}>>, {}, {}>;
|
|
12
|
+
dateArray: any[];
|
|
13
|
+
selectYear: import("vue").Ref<number>;
|
|
14
|
+
selectMonth: import("vue").Ref<number>;
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
14
16
|
export default _sfc_main;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
basicOption: {}
|
|
6
|
-
},
|
|
7
|
-
setup(r) {
|
|
8
|
-
return (a, s) => (t(), o("div", n));
|
|
9
|
-
}
|
|
10
|
-
});
|
|
1
|
+
import o from "./index.vue2.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6b2adda5"]]);
|
|
11
5
|
export {
|
|
12
|
-
|
|
6
|
+
p as default
|
|
13
7
|
};
|
|
@@ -1,4 +1,132 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as x, ref as m, openBlock as n, createElementBlock as l, normalizeClass as A, createElementVNode as e, toDisplayString as y, unref as g, Fragment as D, renderList as S, createCommentVNode as F, pushScopeId as I, popScopeId as W } from "vue";
|
|
2
|
+
import j from "dayjs";
|
|
3
|
+
const i = (_) => (I("data-v-6b2adda5"), _ = _(), W(), _), B = /* @__PURE__ */ i(() => /* @__PURE__ */ e("div", { class: "selected-date" }, [
|
|
4
|
+
/* @__PURE__ */ e("div", { class: "selected-date__prefix" }, [
|
|
5
|
+
/* @__PURE__ */ e("img", {
|
|
6
|
+
src: "https://lganv-1304359499.cos.ap-beijing.myqcloud.com/lg_cos_static/system/users/pages/xQY9EPmv7fsKSmtuEKmh/24gl-calendar-20241025175735939.png",
|
|
7
|
+
alt: ""
|
|
8
|
+
})
|
|
9
|
+
]),
|
|
10
|
+
/* @__PURE__ */ e("div", { class: "selected-date__inner" }, " 2024-10-25 15:35:46 ")
|
|
11
|
+
], -1)), K = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "zv-date-picker"
|
|
14
|
+
}, P = { class: "zv-date-picker__header" }, V = /* @__PURE__ */ i(() => /* @__PURE__ */ e("span", { class: "zv-date-picker__prev-btn" }, [
|
|
15
|
+
/* @__PURE__ */ e("i", { class: "iconfont zv-drag-drop-down" }),
|
|
16
|
+
/* @__PURE__ */ e("i", { class: "iconfont zv-return" })
|
|
17
|
+
], -1)), q = { class: "zv-date-picker__header-label" }, L = { class: "zv-date-picker__header-label" }, O = /* @__PURE__ */ i(() => /* @__PURE__ */ e("span", { class: "zv-date-picker__next-btn" }, [
|
|
18
|
+
/* @__PURE__ */ e("i", { class: "iconfont zv-arrow-right" }),
|
|
19
|
+
/* @__PURE__ */ e("i", { class: "iconfont zv-drag-drop-down-r" })
|
|
20
|
+
], -1)), Q = { class: "zv-date-picker__body" }, G = {
|
|
21
|
+
class: "zv-date-table",
|
|
22
|
+
cellspacing: "0",
|
|
23
|
+
cellpadding: "0",
|
|
24
|
+
role: "grid"
|
|
25
|
+
}, H = /* @__PURE__ */ i(() => /* @__PURE__ */ e("tr", null, [
|
|
26
|
+
/* @__PURE__ */ e("th", {
|
|
27
|
+
"aria-label": "Sunday",
|
|
28
|
+
scope: "col"
|
|
29
|
+
}, "Sun"),
|
|
30
|
+
/* @__PURE__ */ e("th", {
|
|
31
|
+
"aria-label": "Monday",
|
|
32
|
+
scope: "col"
|
|
33
|
+
}, "Mon"),
|
|
34
|
+
/* @__PURE__ */ e("th", {
|
|
35
|
+
"aria-label": "Tuesday",
|
|
36
|
+
scope: "col"
|
|
37
|
+
}, "Tue"),
|
|
38
|
+
/* @__PURE__ */ e("th", {
|
|
39
|
+
"aria-label": "Wednesday",
|
|
40
|
+
scope: "col"
|
|
41
|
+
}, "Wed"),
|
|
42
|
+
/* @__PURE__ */ e("th", {
|
|
43
|
+
"aria-label": "Thursday",
|
|
44
|
+
scope: "col"
|
|
45
|
+
}, "Thu"),
|
|
46
|
+
/* @__PURE__ */ e("th", {
|
|
47
|
+
"aria-label": "Friday",
|
|
48
|
+
scope: "col"
|
|
49
|
+
}, "Fri"),
|
|
50
|
+
/* @__PURE__ */ e("th", {
|
|
51
|
+
"aria-label": "Saturday",
|
|
52
|
+
scope: "col"
|
|
53
|
+
}, "Sat")
|
|
54
|
+
], -1)), J = /* @__PURE__ */ i(() => /* @__PURE__ */ e("span", { class: "zv-date-picker__arrow" }, null, -1)), R = x({ name: "zv-interaction-data-picker" }), Z = /* @__PURE__ */ x({
|
|
55
|
+
...R,
|
|
56
|
+
setup(_) {
|
|
57
|
+
const b = m(!0), M = () => {
|
|
58
|
+
const f = m(0), k = m(0), p = () => {
|
|
59
|
+
const t = j();
|
|
60
|
+
return [t.year(), t.month(), t.date()];
|
|
61
|
+
}, u = (t, s, a) => new Date(t, s, a).getDay(), d = (t, s) => {
|
|
62
|
+
const a = t[1] === 1 ? t[0] - 1 : t[0], c = t[1] === 1 ? 12 : t[1], r = [];
|
|
63
|
+
let v = new Date(a, c, 0).getDate();
|
|
64
|
+
for (let o = 0; o < s; o++)
|
|
65
|
+
r.push({
|
|
66
|
+
y: a,
|
|
67
|
+
m: c,
|
|
68
|
+
d: v--
|
|
69
|
+
});
|
|
70
|
+
return r.sort();
|
|
71
|
+
}, z = (t, s) => {
|
|
72
|
+
const a = s[1] === 12 ? s[0] + 1 : s[0], c = s[1] === 12 ? 1 : s[1] + 1, r = [], v = new Date(a, c, 0).getDate();
|
|
73
|
+
for (let o = 1; o < 42 - t.length + 1; o++)
|
|
74
|
+
o > v ? r.push({
|
|
75
|
+
y: a,
|
|
76
|
+
m: c,
|
|
77
|
+
d: o - v
|
|
78
|
+
}) : r.push({
|
|
79
|
+
y: a,
|
|
80
|
+
m: c,
|
|
81
|
+
d: o
|
|
82
|
+
});
|
|
83
|
+
return [...t, ...r];
|
|
84
|
+
}, h = p(), N = u(h[0], h[1], 1), Y = z(d(h, N), h), w = [];
|
|
85
|
+
for (let t = 0; t < 6; t++)
|
|
86
|
+
w.push(Y.splice(0, 7));
|
|
87
|
+
return {
|
|
88
|
+
getCurrentDate: p,
|
|
89
|
+
solarWeek: u,
|
|
90
|
+
beforeDays: d,
|
|
91
|
+
afterDays: z,
|
|
92
|
+
dateArray: w,
|
|
93
|
+
selectYear: f,
|
|
94
|
+
selectMonth: k
|
|
95
|
+
};
|
|
96
|
+
}, {
|
|
97
|
+
dateArray: T,
|
|
98
|
+
selectYear: C,
|
|
99
|
+
selectMonth: E
|
|
100
|
+
} = M();
|
|
101
|
+
return (f, k) => (n(), l("div", {
|
|
102
|
+
class: A(["zerov-widgets-wrap", { "is-open": b.value }])
|
|
103
|
+
}, [
|
|
104
|
+
B,
|
|
105
|
+
b.value ? (n(), l("div", K, [
|
|
106
|
+
e("div", P, [
|
|
107
|
+
V,
|
|
108
|
+
e("span", q, y(g(C)), 1),
|
|
109
|
+
e("span", L, y(g(E)), 1),
|
|
110
|
+
O
|
|
111
|
+
]),
|
|
112
|
+
e("div", Q, [
|
|
113
|
+
e("table", G, [
|
|
114
|
+
e("tbody", null, [
|
|
115
|
+
H,
|
|
116
|
+
(n(!0), l(D, null, S(g(T), (p, u) => (n(), l("tr", {
|
|
117
|
+
key: u,
|
|
118
|
+
class: "zv-date-table__row"
|
|
119
|
+
}, [
|
|
120
|
+
(n(!0), l(D, null, S(p, (d) => (n(), l("td", { key: d }, y(d.d), 1))), 128))
|
|
121
|
+
]))), 128))
|
|
122
|
+
])
|
|
123
|
+
])
|
|
124
|
+
]),
|
|
125
|
+
J
|
|
126
|
+
])) : F("", !0)
|
|
127
|
+
], 2));
|
|
128
|
+
}
|
|
129
|
+
});
|
|
2
130
|
export {
|
|
3
|
-
|
|
131
|
+
Z as default
|
|
4
132
|
};
|
|
@@ -3,13 +3,23 @@ export declare const ZvInteractionInput: import("../../utils/typescript").SFCWit
|
|
|
3
3
|
type: any;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
|
+
sources: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
6
10
|
useEvents: {
|
|
7
11
|
type: ArrayConstructor;
|
|
8
12
|
required: true;
|
|
9
13
|
};
|
|
14
|
+
uuid: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
10
18
|
}, {
|
|
19
|
+
props: any;
|
|
11
20
|
emit: (event: "on-blur" | "on-focus" | "on-input" | "on-change", ...args: any[]) => void;
|
|
12
21
|
useInput: () => {
|
|
22
|
+
init: () => void;
|
|
13
23
|
rendererDomStyle: (css: any) => {
|
|
14
24
|
constructor: Function;
|
|
15
25
|
toString(): string;
|
|
@@ -20,12 +30,9 @@ export declare const ZvInteractionInput: import("../../utils/typescript").SFCWit
|
|
|
20
30
|
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
21
31
|
};
|
|
22
32
|
inputRef: import("vue").Ref<any>;
|
|
33
|
+
inputValue: import("vue").Ref<string>;
|
|
23
34
|
};
|
|
24
|
-
|
|
25
|
-
onInputBlur: (e: FocusEvent) => void;
|
|
26
|
-
onInputFocus: (e: FocusEvent) => void;
|
|
27
|
-
onInputInput: (e: Event) => void;
|
|
28
|
-
onInputChange: (e: Event) => void;
|
|
35
|
+
init: () => void;
|
|
29
36
|
rendererDomStyle: (css: any) => {
|
|
30
37
|
constructor: Function;
|
|
31
38
|
toString(): string;
|
|
@@ -36,15 +43,28 @@ export declare const ZvInteractionInput: import("../../utils/typescript").SFCWit
|
|
|
36
43
|
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
37
44
|
};
|
|
38
45
|
inputRef: import("vue").Ref<any>;
|
|
46
|
+
inputValue: import("vue").Ref<string>;
|
|
47
|
+
onInputBlur: (e: FocusEvent) => void;
|
|
48
|
+
onInputFocus: (e: FocusEvent) => void;
|
|
49
|
+
onInputInput: (e: Event) => void;
|
|
50
|
+
onInputChange: (e: Event) => void;
|
|
39
51
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("on-blur" | "on-focus" | "on-input" | "on-change")[], "on-blur" | "on-focus" | "on-input" | "on-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
52
|
basicOption: {
|
|
41
53
|
type: any;
|
|
42
54
|
required: true;
|
|
43
55
|
};
|
|
56
|
+
sources: {
|
|
57
|
+
type: ArrayConstructor;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
44
60
|
useEvents: {
|
|
45
61
|
type: ArrayConstructor;
|
|
46
62
|
required: true;
|
|
47
63
|
};
|
|
64
|
+
uuid: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
48
68
|
}>> & {
|
|
49
69
|
"onOn-blur"?: (...args: any[]) => any;
|
|
50
70
|
"onOn-focus"?: (...args: any[]) => any;
|
|
@@ -3,13 +3,23 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
3
3
|
type: any;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
|
+
sources: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
6
10
|
useEvents: {
|
|
7
11
|
type: ArrayConstructor;
|
|
8
12
|
required: true;
|
|
9
13
|
};
|
|
14
|
+
uuid: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
10
18
|
}, {
|
|
19
|
+
props: any;
|
|
11
20
|
emit: (event: "on-blur" | "on-focus" | "on-input" | "on-change", ...args: any[]) => void;
|
|
12
21
|
useInput: () => {
|
|
22
|
+
init: () => void;
|
|
13
23
|
rendererDomStyle: (css: any) => {
|
|
14
24
|
constructor: Function;
|
|
15
25
|
toString(): string;
|
|
@@ -20,12 +30,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
20
30
|
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
21
31
|
};
|
|
22
32
|
inputRef: import("vue").Ref<any>;
|
|
33
|
+
inputValue: import("vue").Ref<string>;
|
|
23
34
|
};
|
|
24
|
-
|
|
25
|
-
onInputBlur: (e: FocusEvent) => void;
|
|
26
|
-
onInputFocus: (e: FocusEvent) => void;
|
|
27
|
-
onInputInput: (e: Event) => void;
|
|
28
|
-
onInputChange: (e: Event) => void;
|
|
35
|
+
init: () => void;
|
|
29
36
|
rendererDomStyle: (css: any) => {
|
|
30
37
|
constructor: Function;
|
|
31
38
|
toString(): string;
|
|
@@ -36,15 +43,28 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
36
43
|
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
37
44
|
};
|
|
38
45
|
inputRef: import("vue").Ref<any>;
|
|
46
|
+
inputValue: import("vue").Ref<string>;
|
|
47
|
+
onInputBlur: (e: FocusEvent) => void;
|
|
48
|
+
onInputFocus: (e: FocusEvent) => void;
|
|
49
|
+
onInputInput: (e: Event) => void;
|
|
50
|
+
onInputChange: (e: Event) => void;
|
|
39
51
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("on-blur" | "on-focus" | "on-input" | "on-change")[], "on-blur" | "on-focus" | "on-input" | "on-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
52
|
basicOption: {
|
|
41
53
|
type: any;
|
|
42
54
|
required: true;
|
|
43
55
|
};
|
|
56
|
+
sources: {
|
|
57
|
+
type: ArrayConstructor;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
44
60
|
useEvents: {
|
|
45
61
|
type: ArrayConstructor;
|
|
46
62
|
required: true;
|
|
47
63
|
};
|
|
64
|
+
uuid: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
48
68
|
}>> & {
|
|
49
69
|
"onOn-blur"?: (...args: any[]) => any;
|
|
50
70
|
"onOn-focus"?: (...args: any[]) => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2233c529"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,62 +1,93 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { defineComponent as h, watch as v, withDirectives as P, openBlock as V, createElementBlock as _, isRef as F, normalizeStyle as O, unref as d, withModifiers as s, vModelDynamic as R, ref as f, onMounted as k } from "vue";
|
|
2
|
+
import { cloneDeep as m, isEqual as w } from "lodash";
|
|
3
|
+
import { autoInstallFont as E, jsonToCssStyle as r } from "../../utils/json2css.mjs";
|
|
4
|
+
const B = ["type", "placeholder"], C = h({ name: "zv-interaction-input" }), q = /* @__PURE__ */ h({
|
|
5
|
+
...C,
|
|
5
6
|
props: {
|
|
6
7
|
basicOption: {},
|
|
7
|
-
|
|
8
|
+
sources: {},
|
|
9
|
+
useEvents: {},
|
|
10
|
+
uuid: {}
|
|
8
11
|
},
|
|
9
12
|
emits: ["on-blur", "on-focus", "on-input", "on-change"],
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
const e =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
setup(y, { emit: S }) {
|
|
14
|
+
const t = y, a = S, b = () => {
|
|
15
|
+
const e = f(""), o = f(), i = (u) => {
|
|
16
|
+
if (E(u.fontFamily), E(u.focus.fontFamily), o.value)
|
|
17
|
+
return {
|
|
18
|
+
...r(u),
|
|
19
|
+
...r(u.focus, "focus"),
|
|
20
|
+
...r(u.placeholder, "placeholder")
|
|
21
|
+
};
|
|
22
|
+
}, c = () => {
|
|
23
|
+
window.SHJDatasourceV2({
|
|
24
|
+
tId: t.uuid,
|
|
25
|
+
sources: t.sources,
|
|
26
|
+
callback: ({ data: u }) => {
|
|
27
|
+
try {
|
|
28
|
+
window.SHJParseEvent(t.useEvents, "dataListener", u), e.value = u[0].data[0].value;
|
|
29
|
+
} catch {
|
|
30
|
+
window.SHJParseEvent(t.useEvents, "dataListener", null);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
23
34
|
};
|
|
24
|
-
|
|
25
|
-
|
|
35
|
+
return k(() => c()), {
|
|
36
|
+
init: c,
|
|
37
|
+
rendererDomStyle: i,
|
|
38
|
+
inputRef: o,
|
|
39
|
+
inputValue: e
|
|
40
|
+
};
|
|
41
|
+
}, { init: p, rendererDomStyle: I, inputRef: n, inputValue: l } = b(), D = (e) => {
|
|
42
|
+
n.value && (a("on-blur", e, n.value.value), window.SHJParseEvent(t.useEvents, "on-blur", {
|
|
26
43
|
data: n.value.value,
|
|
27
44
|
event: e
|
|
28
45
|
}));
|
|
29
|
-
},
|
|
30
|
-
n.value && (
|
|
46
|
+
}, H = (e) => {
|
|
47
|
+
n.value && (a("on-focus", e, n.value.value), window.SHJParseEvent(t.useEvents, "on-focus", {
|
|
31
48
|
data: n.value.value,
|
|
32
49
|
event: e
|
|
33
50
|
}));
|
|
34
|
-
},
|
|
35
|
-
n.value && (
|
|
51
|
+
}, J = (e) => {
|
|
52
|
+
n.value && (a("on-input", e, n.value.value), window.SHJParseEvent(t.useEvents, "on-input", {
|
|
36
53
|
data: n.value.value,
|
|
37
54
|
event: e
|
|
38
55
|
}));
|
|
39
|
-
},
|
|
40
|
-
n.value && (
|
|
56
|
+
}, g = (e) => {
|
|
57
|
+
n.value && (a("on-change", e, n.value.value), window.SHJParseEvent(t.useEvents, "on-change", {
|
|
41
58
|
data: n.value.value,
|
|
42
59
|
event: e
|
|
43
60
|
}));
|
|
44
|
-
}
|
|
45
|
-
return (
|
|
61
|
+
};
|
|
62
|
+
return v(
|
|
63
|
+
() => m(t.basicOption),
|
|
64
|
+
(e, o) => {
|
|
65
|
+
w(e, o) || p();
|
|
66
|
+
},
|
|
67
|
+
{ deep: !0 }
|
|
68
|
+
), v(
|
|
69
|
+
() => m(t.sources),
|
|
70
|
+
(e, o) => {
|
|
71
|
+
w(e, o) || p();
|
|
72
|
+
},
|
|
73
|
+
{ deep: !0 }
|
|
74
|
+
), (e, o) => P((V(), _("input", {
|
|
75
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => F(l) ? l.value = i : null),
|
|
46
76
|
ref_key: "inputRef",
|
|
47
77
|
ref: n,
|
|
48
78
|
type: e.basicOption.css.type || "text",
|
|
49
79
|
class: "zerov-widget-input",
|
|
50
|
-
value: e.basicOption.value,
|
|
51
80
|
placeholder: e.basicOption.placeholderValue,
|
|
52
|
-
style:
|
|
53
|
-
onBlur:
|
|
54
|
-
onFocus:
|
|
55
|
-
onInput:
|
|
56
|
-
onChange:
|
|
57
|
-
}, null, 44,
|
|
81
|
+
style: O(d(I)(e.basicOption.css)),
|
|
82
|
+
onBlur: s(D, ["stop"]),
|
|
83
|
+
onFocus: s(H, ["stop"]),
|
|
84
|
+
onInput: s(J, ["stop"]),
|
|
85
|
+
onChange: s(g, ["stop"])
|
|
86
|
+
}, null, 44, B)), [
|
|
87
|
+
[R, d(l)]
|
|
88
|
+
]);
|
|
58
89
|
}
|
|
59
90
|
});
|
|
60
91
|
export {
|
|
61
|
-
|
|
92
|
+
q as default
|
|
62
93
|
};
|
|
@@ -1,27 +1,44 @@
|
|
|
1
1
|
export declare const ZvInteractionSlider: import("../../utils/typescript").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
2
|
basicOption: {
|
|
3
|
-
type:
|
|
3
|
+
type: any;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
sources: {
|
|
7
|
+
type: ArrayConstructor;
|
|
4
8
|
required: true;
|
|
5
9
|
};
|
|
6
10
|
useEvents: {
|
|
7
11
|
type: ArrayConstructor;
|
|
8
12
|
required: true;
|
|
9
13
|
};
|
|
14
|
+
uuid: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
10
18
|
}, {
|
|
11
|
-
emit: (event: "on-change", ...args: any[]) => void;
|
|
12
|
-
value: import("vue").Ref<number>;
|
|
13
19
|
props: any;
|
|
14
|
-
|
|
20
|
+
emit: (event: "on-change", ...args: any[]) => void;
|
|
21
|
+
sliderValue: import("vue").Ref<number>;
|
|
22
|
+
init: () => void;
|
|
23
|
+
onSliderChange: (value: number) => void;
|
|
15
24
|
readonly Slider: typeof import("@vueform/slider");
|
|
16
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "on-change"[], "on-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
26
|
basicOption: {
|
|
18
|
-
type:
|
|
27
|
+
type: any;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
sources: {
|
|
31
|
+
type: ArrayConstructor;
|
|
19
32
|
required: true;
|
|
20
33
|
};
|
|
21
34
|
useEvents: {
|
|
22
35
|
type: ArrayConstructor;
|
|
23
36
|
required: true;
|
|
24
37
|
};
|
|
38
|
+
uuid: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
25
42
|
}>> & {
|
|
26
43
|
"onOn-change"?: (...args: any[]) => any;
|
|
27
44
|
}, {}, {}>> & Record<string, any>;
|
|
@@ -1,28 +1,45 @@
|
|
|
1
1
|
import Slider from '@vueform/slider';
|
|
2
2
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
3
|
basicOption: {
|
|
4
|
-
type:
|
|
4
|
+
type: any;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
sources: {
|
|
8
|
+
type: ArrayConstructor;
|
|
5
9
|
required: true;
|
|
6
10
|
};
|
|
7
11
|
useEvents: {
|
|
8
12
|
type: ArrayConstructor;
|
|
9
13
|
required: true;
|
|
10
14
|
};
|
|
15
|
+
uuid: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
11
19
|
}, {
|
|
12
|
-
emit: (event: "on-change", ...args: any[]) => void;
|
|
13
|
-
value: import("vue").Ref<number>;
|
|
14
20
|
props: any;
|
|
15
|
-
|
|
21
|
+
emit: (event: "on-change", ...args: any[]) => void;
|
|
22
|
+
sliderValue: import("vue").Ref<number>;
|
|
23
|
+
init: () => void;
|
|
24
|
+
onSliderChange: (value: number) => void;
|
|
16
25
|
readonly Slider: typeof Slider;
|
|
17
26
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "on-change"[], "on-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
27
|
basicOption: {
|
|
19
|
-
type:
|
|
28
|
+
type: any;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
sources: {
|
|
32
|
+
type: ArrayConstructor;
|
|
20
33
|
required: true;
|
|
21
34
|
};
|
|
22
35
|
useEvents: {
|
|
23
36
|
type: ArrayConstructor;
|
|
24
37
|
required: true;
|
|
25
38
|
};
|
|
39
|
+
uuid: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
26
43
|
}>> & {
|
|
27
44
|
"onOn-change"?: (...args: any[]) => any;
|
|
28
45
|
}, {}, {}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ed81c815"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|