@web-utils/form-ui 1.0.0-beta3 → 1.0.0-beta30
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/api/index.d.ts +60 -0
- package/api/index.mjs +42 -0
- package/awesome-button/index.d.ts +60 -0
- package/awesome-button/index.mjs +49 -0
- package/base.css +1 -1
- package/chunks/4ZuVpQf6.mjs +478 -0
- package/chunks/B99alfW4.mjs +207 -0
- package/chunks/BQ77eAb3.mjs +71 -0
- package/chunks/BV_N8p9t.mjs +83 -0
- package/chunks/BV_P9a8o.mjs +100 -0
- package/chunks/BgDYHgyH.mjs +189 -0
- package/chunks/Bm5eiSmT.mjs +79 -0
- package/chunks/BmZieBZW.mjs +88 -0
- package/chunks/Br4i8stg.mjs +222 -0
- package/chunks/C3a15Ful.mjs +95 -0
- package/chunks/C4bM8miy.mjs +174 -0
- package/chunks/C9J3j0PX.mjs +93 -0
- package/chunks/CKErj8Ax.mjs +637 -0
- package/chunks/Cby3mvvZ.mjs +216 -0
- package/chunks/Cc3EJjbV.mjs +25 -0
- package/chunks/Cgl-hCE5.mjs +25 -0
- package/chunks/Ci1XxmdE.mjs +51 -0
- package/chunks/CkFapoKt.mjs +8 -0
- package/chunks/CsfgUCe9.mjs +17 -0
- package/chunks/CugRu2Ka.mjs +42 -0
- package/chunks/Cy-4nmyC.mjs +106 -0
- package/chunks/D1EOkWJ7.mjs +25 -0
- package/chunks/D1G2MMMx.mjs +1360 -0
- package/chunks/DO8dVGef.mjs +98 -0
- package/chunks/DazglPJZ.mjs +180 -0
- package/chunks/Dt6gY213.mjs +62 -0
- package/chunks/DtAYXPvz.mjs +108 -0
- package/chunks/JhyiXnbd.mjs +76 -0
- package/chunks/S64sNmuR.mjs +226 -0
- package/chunks/bnRb5PUB.mjs +108 -0
- package/chunks/dM-icPM8.mjs +107 -0
- package/chunks/pxFLMMUm.mjs +110 -0
- package/chunks/q1SlJP1y.mjs +171 -0
- package/confirm-button/index.d.ts +113 -0
- package/confirm-button/index.mjs +35 -0
- package/confirmable/index.d.ts +84 -0
- package/confirmable/index.mjs +8 -0
- package/constants/index.d.ts +42 -0
- package/constants/index.mjs +4 -0
- package/dict-render/index.d.ts +28 -0
- package/element-dialog/index.d.ts +374 -0
- package/element-dialog/index.mjs +2 -91
- package/empty-view/index.d.ts +29 -0
- package/empty-view/index.mjs +1 -1
- package/flex-scroll-area/index.d.ts +22 -0
- package/flex-scroll-area/index.mjs +1 -1
- package/form-advice/index.d.ts +9 -0
- package/form-advice/index.mjs +13 -12
- package/form-button/index.d.ts +114 -0
- package/form-button/index.mjs +36 -0
- package/form-cascader/index.d.ts +486 -0
- package/form-cascader/index.mjs +2 -0
- package/form-cell/index.d.ts +25 -0
- package/form-check-box-group/index.d.ts +295 -0
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.d.ts +273 -0
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +423 -0
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +166 -0
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +226 -0
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +389 -0
- package/form-input/index.mjs +1 -1
- package/form-input/style.css +1 -0
- package/form-input-cron-expression/index.d.ts +217 -0
- package/form-input-cron-expression/index.mjs +2 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.d.ts +363 -0
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +363 -0
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +327 -0
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +363 -0
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +2 -0
- package/form-input-time/index.d.ts +2 -0
- package/form-item-config-provider/index.d.ts +22 -0
- package/form-item-config-provider/index.mjs +24 -0
- package/form-item-group/index.d.ts +94 -0
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.d.ts +184 -0
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -0
- package/form-radio-group/index.d.ts +283 -0
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +321 -0
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.d.ts +21 -0
- package/form-red-table/index.mjs +27 -26
- package/form-row/index.d.ts +11 -0
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +542 -0
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +350 -0
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +339 -0
- package/form-switch/index.mjs +1 -1
- package/form-text/index.d.ts +229 -0
- package/form-text/index.mjs +1 -1
- package/form-view/index.d.ts +2 -0
- package/form-view/index.mjs +1 -1
- package/helper/dictionary.d.ts +15 -0
- package/helper/dictionary.mjs +97 -0
- package/hook/useDictionary.d.ts +60 -0
- package/hook/useDictionary.mjs +15 -0
- package/hook/useVisibilityChange.d.ts +4 -0
- package/hook/useVisibilityChange.mjs +14 -0
- package/iframe-window/index.d.ts +9 -0
- package/iframe-window/index.mjs +37 -0
- package/iframe-window/style.css +1 -0
- package/index.d.ts +51 -0
- package/index.mjs +51 -37
- package/month-calendar/index.d.ts +80 -0
- package/package.json +12 -7
- package/pageable-table/index.d.ts +436 -0
- package/pageable-table/index.mjs +2 -0
- package/pageable-table/style.css +1 -0
- package/resize-observer/index.d.ts +8 -0
- package/resize-observer/index.mjs +40 -0
- package/resize-observer/style.css +1 -0
- package/resolver/index.d.ts +9 -0
- package/resolver/index.mjs +29 -0
- package/table-column/index.d.ts +160 -0
- package/table-column/index.mjs +2 -0
- package/table-column/style.css +1 -0
- package/table-column-def/index.d.ts +85 -0
- package/table-column-def/index.mjs +11 -0
- package/table-column-filter/index.d.ts +11 -0
- package/table-column-filterable/index.d.ts +10 -0
- package/table-view/index.d.ts +2 -0
- package/table-view/index.mjs +1 -1
- package/toolbar/index.d.ts +129 -0
- package/toolbar/index.mjs +1 -8
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.d.ts +77 -0
- package/toolbar-button/index.mjs +1 -8
- package/vue-cron/index.d.ts +191 -0
- package/vue-cron/index.mjs +2 -0
- package/vue-cron/style.css +1 -0
- package/web-types.json +1 -1
- package/x-input-tag/index.d.ts +2 -0
- package/x-input-tag/index.mjs +226 -0
- package/x-input-tag/style.css +1 -0
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.mjs +2 -0
- package/year-calendar/style.css +1 -0
- package/chunks/B4M_TFeR.mjs +0 -152
- package/chunks/B5BIQCcK.mjs +0 -149
- package/chunks/BHNKrW1j.mjs +0 -61
- package/chunks/BO9jWhBl.mjs +0 -46
- package/chunks/BZ8aOa78.mjs +0 -35
- package/chunks/Bsz7y4Xp.mjs +0 -73
- package/chunks/Bxj372sF.mjs +0 -53
- package/chunks/C33EmJN8.mjs +0 -32
- package/chunks/C6Li3-l7.mjs +0 -28
- package/chunks/CBcdalMX.mjs +0 -35
- package/chunks/CdRsyF0n.mjs +0 -43
- package/chunks/ClNahmiU.mjs +0 -23
- package/chunks/CstztYMu.mjs +0 -28
- package/chunks/DC9b53M6.mjs +0 -32
- package/chunks/DDVAgRED.mjs +0 -36
- package/chunks/DpJQABVD.mjs +0 -91
- package/chunks/ZsLNWI9x.mjs +0 -46
- package/chunks/jn_iQrVZ.mjs +0 -28
- package/constants.mjs +0 -4
- package/input/style.css +0 -1
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { i as e, n as t } from "./Br4i8stg.mjs";
|
|
2
|
+
import { n, t as r } from "./CsfgUCe9.mjs";
|
|
3
|
+
import { useDictionary as i } from "../hook/useDictionary.mjs";
|
|
4
|
+
import { findTreeChildren as a, isArray as o, isString as s, setParent as c } from "@web-utils/core";
|
|
5
|
+
import { computed as l, createVNode as u, mergeProps as d } from "vue";
|
|
6
|
+
import { cloneDeep as f } from "@web-utils/integrations/lodash";
|
|
7
|
+
import { ElCascader as p } from "element-plus/es";
|
|
8
|
+
//#region src/components/form/props/cascader.ts
|
|
9
|
+
var m = {
|
|
10
|
+
...n,
|
|
11
|
+
...r,
|
|
12
|
+
modelValue: [
|
|
13
|
+
String,
|
|
14
|
+
Number,
|
|
15
|
+
Array
|
|
16
|
+
],
|
|
17
|
+
options: Array,
|
|
18
|
+
props: Object,
|
|
19
|
+
size: String,
|
|
20
|
+
placeholder: String,
|
|
21
|
+
disabled: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !1
|
|
24
|
+
},
|
|
25
|
+
clearable: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
},
|
|
29
|
+
clearIcon: [String, Object],
|
|
30
|
+
showAllLevels: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !0
|
|
33
|
+
},
|
|
34
|
+
collapseTags: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
collapseTagsTooltip: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
maxCollapseTagsTooltipHeight: [String, Number],
|
|
43
|
+
separator: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "/"
|
|
46
|
+
},
|
|
47
|
+
filterable: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
filterMethod: Function,
|
|
52
|
+
debounce: {
|
|
53
|
+
type: Number,
|
|
54
|
+
default: 300
|
|
55
|
+
},
|
|
56
|
+
beforeFilter: Function,
|
|
57
|
+
popperClass: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: ""
|
|
60
|
+
},
|
|
61
|
+
popperStyle: [String, Object],
|
|
62
|
+
teleported: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: !0
|
|
65
|
+
},
|
|
66
|
+
effect: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: "light"
|
|
69
|
+
},
|
|
70
|
+
tagType: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: "info"
|
|
73
|
+
},
|
|
74
|
+
tagEffect: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: "light"
|
|
77
|
+
},
|
|
78
|
+
validateEvent: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: !0
|
|
81
|
+
},
|
|
82
|
+
maxCollapseTags: {
|
|
83
|
+
type: Number,
|
|
84
|
+
default: 1
|
|
85
|
+
},
|
|
86
|
+
emptyValues: Array,
|
|
87
|
+
valueOnClear: [
|
|
88
|
+
String,
|
|
89
|
+
Number,
|
|
90
|
+
Boolean,
|
|
91
|
+
Function
|
|
92
|
+
],
|
|
93
|
+
persistent: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: !0
|
|
96
|
+
},
|
|
97
|
+
fallbackPlacements: {
|
|
98
|
+
type: Array,
|
|
99
|
+
default: () => [
|
|
100
|
+
"bottom-start",
|
|
101
|
+
"top-start",
|
|
102
|
+
"right",
|
|
103
|
+
"left"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
placement: {
|
|
107
|
+
type: String,
|
|
108
|
+
default: "bottom-start"
|
|
109
|
+
},
|
|
110
|
+
popperAppendToBody: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: !0
|
|
113
|
+
},
|
|
114
|
+
showCheckedStrategy: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: "child"
|
|
117
|
+
},
|
|
118
|
+
readonly: Boolean,
|
|
119
|
+
last: Boolean,
|
|
120
|
+
checkStrictly: Boolean,
|
|
121
|
+
labelKey: {
|
|
122
|
+
type: String,
|
|
123
|
+
default: "label"
|
|
124
|
+
},
|
|
125
|
+
valueKey: {
|
|
126
|
+
type: String,
|
|
127
|
+
default: "value"
|
|
128
|
+
},
|
|
129
|
+
emitPath: {
|
|
130
|
+
type: Boolean,
|
|
131
|
+
default: !0
|
|
132
|
+
},
|
|
133
|
+
join: {
|
|
134
|
+
type: Boolean,
|
|
135
|
+
default: !0
|
|
136
|
+
},
|
|
137
|
+
idAsValue: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
default: !0
|
|
140
|
+
},
|
|
141
|
+
labelAsValue: Boolean,
|
|
142
|
+
treeDict: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
default: !0
|
|
145
|
+
},
|
|
146
|
+
dictType: String
|
|
147
|
+
}, h = {
|
|
148
|
+
modelValue: !0,
|
|
149
|
+
readonly: !0,
|
|
150
|
+
props: !0
|
|
151
|
+
}, g = [
|
|
152
|
+
"change",
|
|
153
|
+
"expand-change",
|
|
154
|
+
"blur",
|
|
155
|
+
"focus",
|
|
156
|
+
"clear",
|
|
157
|
+
"visible-change",
|
|
158
|
+
"remove-tag"
|
|
159
|
+
], _ = (e) => n[e] === void 0 && h[e] !== !0, v = {
|
|
160
|
+
name: "FormCascader",
|
|
161
|
+
props: { ...m },
|
|
162
|
+
emits: {
|
|
163
|
+
...t,
|
|
164
|
+
change: null,
|
|
165
|
+
"expand-change": null,
|
|
166
|
+
blur: null,
|
|
167
|
+
focus: null,
|
|
168
|
+
clear: null,
|
|
169
|
+
"visible-change": null,
|
|
170
|
+
"remove-tag": null
|
|
171
|
+
},
|
|
172
|
+
setup(t, { slots: n, emit: r, attrs: m }) {
|
|
173
|
+
let { emitInput: h, render: v, placeholder: y, disabled: b, autoBind: x } = e(t, {
|
|
174
|
+
emit: r,
|
|
175
|
+
slots: n,
|
|
176
|
+
attrs: m,
|
|
177
|
+
events: g,
|
|
178
|
+
predicate: _
|
|
179
|
+
}), { dictItems: S } = i(t), C = l(() => {
|
|
180
|
+
if (t.dictType) return S.value;
|
|
181
|
+
if (t.options) {
|
|
182
|
+
let e = f(t.options);
|
|
183
|
+
return t.last && c(e), e;
|
|
184
|
+
} else return [];
|
|
185
|
+
}), w = l(() => {
|
|
186
|
+
if (t.join) return o(t.modelValue) ? t.modelValue : s(t.modelValue) ? t.modelValue.split(t.separator) : [];
|
|
187
|
+
if (t.last) {
|
|
188
|
+
let [e] = a(C.value, (e) => e[t.valueKey] === t.modelValue), n = [];
|
|
189
|
+
for (; e;) n.push(e[t.valueKey]), e = e.parent;
|
|
190
|
+
return n.reverse();
|
|
191
|
+
}
|
|
192
|
+
return t.modelValue;
|
|
193
|
+
}), T = (e) => {
|
|
194
|
+
t.join && o(e) ? h(e.join(t.separator)) : h(t.last ? e[e.length - 1] : e);
|
|
195
|
+
};
|
|
196
|
+
return () => v({ vNodes: u(p, d({
|
|
197
|
+
style: "width: 100%",
|
|
198
|
+
class: { "is-readonly": t.readonly }
|
|
199
|
+
}, x.value, {
|
|
200
|
+
"model-value": w.value,
|
|
201
|
+
options: C.value,
|
|
202
|
+
props: {
|
|
203
|
+
checkStrictly: t.checkStrictly,
|
|
204
|
+
label: t.labelKey,
|
|
205
|
+
value: t.valueKey,
|
|
206
|
+
emitPath: t.emitPath,
|
|
207
|
+
expandTrigger: "hover"
|
|
208
|
+
},
|
|
209
|
+
disabled: b.value,
|
|
210
|
+
placeholder: y.value,
|
|
211
|
+
"onUpdate:modelValue": T
|
|
212
|
+
}), null) });
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
//#endregion
|
|
216
|
+
export { v as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { n as e } from "./Br4i8stg.mjs";
|
|
2
|
+
import { n as t, t as n } from "./C4bM8miy.mjs";
|
|
3
|
+
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
|
+
//#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
|
|
5
|
+
function s(e) {
|
|
6
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/form/FormInputEmail.vue
|
|
10
|
+
var c = {
|
|
11
|
+
name: "FormInputEmail",
|
|
12
|
+
inheritAttrs: !1,
|
|
13
|
+
props: { ...t },
|
|
14
|
+
emits: { ...e },
|
|
15
|
+
setup(e, { slots: t, attrs: i }) {
|
|
16
|
+
let c = o(e, "modelValue");
|
|
17
|
+
return () => r(n, a(e, i, {
|
|
18
|
+
modelValue: c.value,
|
|
19
|
+
"onUpdate:modelValue": (e) => c.value = e,
|
|
20
|
+
type: "email"
|
|
21
|
+
}), s(t) ? t : { default: () => [t] });
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { c as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { n as e } from "./Br4i8stg.mjs";
|
|
2
|
+
import { n as t, t as n } from "./C4bM8miy.mjs";
|
|
3
|
+
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
|
+
//#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
|
|
5
|
+
function s(e) {
|
|
6
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/form/FormInputIdCard.vue
|
|
10
|
+
var c = {
|
|
11
|
+
name: "FormInputIdCard",
|
|
12
|
+
inheritAttrs: !1,
|
|
13
|
+
props: { ...t },
|
|
14
|
+
emits: { ...e },
|
|
15
|
+
setup(e, { slots: t, attrs: i }) {
|
|
16
|
+
let c = o(e, "modelValue");
|
|
17
|
+
return () => r(n, a(e, i, {
|
|
18
|
+
modelValue: c.value,
|
|
19
|
+
"onUpdate:modelValue": (e) => c.value = e,
|
|
20
|
+
type: "idcard"
|
|
21
|
+
}), s(t) ? t : { default: () => [t] });
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { c as t };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { s as e } from "./BQ77eAb3.mjs";
|
|
2
|
+
import { o as t, r as n } from "./Br4i8stg.mjs";
|
|
3
|
+
import { n as r } from "./CsfgUCe9.mjs";
|
|
4
|
+
import { createVNode as i, isVNode as a, mergeProps as o } from "vue";
|
|
5
|
+
import { ElImage as s } from "element-plus/es";
|
|
6
|
+
//#region src/components/form/props/image.ts
|
|
7
|
+
var c = {
|
|
8
|
+
...r,
|
|
9
|
+
src: String,
|
|
10
|
+
fit: String,
|
|
11
|
+
hideOnClickModal: Boolean
|
|
12
|
+
}, l = { modelValue: !0 }, u = [
|
|
13
|
+
"load",
|
|
14
|
+
"error",
|
|
15
|
+
"switch",
|
|
16
|
+
"close",
|
|
17
|
+
"show"
|
|
18
|
+
], d = (e) => r[e] === void 0 && l[e] !== !0;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/form/FormImage.vue?vue&type=script&lang.jsx
|
|
21
|
+
function f(e) {
|
|
22
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !a(e);
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/form/FormImage.vue
|
|
26
|
+
var p = {
|
|
27
|
+
name: "FormImage",
|
|
28
|
+
inheritAttrs: !1,
|
|
29
|
+
props: { ...c },
|
|
30
|
+
emits: {
|
|
31
|
+
load: null,
|
|
32
|
+
error: null,
|
|
33
|
+
switch: null,
|
|
34
|
+
close: null,
|
|
35
|
+
show: null
|
|
36
|
+
},
|
|
37
|
+
setup(r, { slots: a, attrs: c, emit: l }) {
|
|
38
|
+
let p = t(r, { attrs: c }), m = e(r, {
|
|
39
|
+
events: u,
|
|
40
|
+
predicate: d,
|
|
41
|
+
emit: l
|
|
42
|
+
});
|
|
43
|
+
return () => n(r, {
|
|
44
|
+
vNodes: i(s, o(m.value, c, { "preview-src-list": [r.src] }), f(a) ? a : { default: () => [a] }),
|
|
45
|
+
formItemProps: p,
|
|
46
|
+
slots: a
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
51
|
+
export { p as t };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { c as e, s as t } from "./Br4i8stg.mjs";
|
|
2
|
+
//#region src/components/form/props/common.ts
|
|
3
|
+
var n = {
|
|
4
|
+
...e,
|
|
5
|
+
...t,
|
|
6
|
+
wrapFormItem: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: !0
|
|
9
|
+
},
|
|
10
|
+
disabled: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: void 0
|
|
13
|
+
},
|
|
14
|
+
col: Boolean
|
|
15
|
+
}, r = { size: { type: String } };
|
|
16
|
+
//#endregion
|
|
17
|
+
export { n, r as t };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { s as e } from "./BQ77eAb3.mjs";
|
|
2
|
+
import { o as t, r as n } from "./Br4i8stg.mjs";
|
|
3
|
+
import { n as r } from "./CsfgUCe9.mjs";
|
|
4
|
+
import { createVNode as i, mergeProps as a } from "vue";
|
|
5
|
+
import { ElText as o } from "element-plus/es";
|
|
6
|
+
//#region src/components/form/props/text.ts
|
|
7
|
+
var s = {
|
|
8
|
+
...r,
|
|
9
|
+
type: String,
|
|
10
|
+
size: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "default"
|
|
13
|
+
},
|
|
14
|
+
truncated: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
lineClamp: [String, Number],
|
|
19
|
+
tag: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "span"
|
|
22
|
+
},
|
|
23
|
+
text: String
|
|
24
|
+
}, c = { modelValue: !0 }, l = ["change"], u = (e) => r[e] === void 0 && c[e] !== !0, d = {
|
|
25
|
+
name: "FormText",
|
|
26
|
+
inheritAttrs: !1,
|
|
27
|
+
props: { ...s },
|
|
28
|
+
setup(r, { slots: s, emit: c, attrs: d }) {
|
|
29
|
+
let f = t(r, { attrs: d }), p = e(r, {
|
|
30
|
+
events: l,
|
|
31
|
+
predicate: u,
|
|
32
|
+
emit: c
|
|
33
|
+
});
|
|
34
|
+
return () => n(r, {
|
|
35
|
+
vNodes: i(o, a(p.value, d), { default: s.default || (() => r.text) }),
|
|
36
|
+
formItemProps: f,
|
|
37
|
+
slots: s
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { d as t };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { i as e, n as t } from "./Br4i8stg.mjs";
|
|
2
|
+
import { n } from "./CsfgUCe9.mjs";
|
|
3
|
+
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
|
+
import { ElSwitch as o } from "element-plus/es";
|
|
5
|
+
//#region src/components/form/props/switch.ts
|
|
6
|
+
var s = {
|
|
7
|
+
...n,
|
|
8
|
+
modelValue: [
|
|
9
|
+
Boolean,
|
|
10
|
+
String,
|
|
11
|
+
Number
|
|
12
|
+
],
|
|
13
|
+
loading: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !1
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
width: [Number, String],
|
|
22
|
+
inlinePrompt: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
activeIcon: [String, Object],
|
|
27
|
+
inactiveIcon: [String, Object],
|
|
28
|
+
activeActionIcon: [String, Object],
|
|
29
|
+
inactiveActionIcon: [String, Object],
|
|
30
|
+
activeText: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: ""
|
|
33
|
+
},
|
|
34
|
+
inactiveText: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: ""
|
|
37
|
+
},
|
|
38
|
+
activeValue: {
|
|
39
|
+
type: [
|
|
40
|
+
Boolean,
|
|
41
|
+
String,
|
|
42
|
+
Number
|
|
43
|
+
],
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
inactiveValue: {
|
|
47
|
+
type: [
|
|
48
|
+
Boolean,
|
|
49
|
+
String,
|
|
50
|
+
Number
|
|
51
|
+
],
|
|
52
|
+
default: !1
|
|
53
|
+
},
|
|
54
|
+
name: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: ""
|
|
57
|
+
},
|
|
58
|
+
validateEvent: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: !0
|
|
61
|
+
},
|
|
62
|
+
beforeChange: Function,
|
|
63
|
+
id: String,
|
|
64
|
+
tabindex: [String, Number],
|
|
65
|
+
ariaLabel: String,
|
|
66
|
+
activeColor: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: ""
|
|
69
|
+
},
|
|
70
|
+
inactiveColor: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: ""
|
|
73
|
+
},
|
|
74
|
+
borderColor: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: ""
|
|
77
|
+
}
|
|
78
|
+
}, c = { modelValue: !0 }, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
|
|
79
|
+
name: "FormSwitch",
|
|
80
|
+
inheritAttrs: !1,
|
|
81
|
+
props: { ...s },
|
|
82
|
+
emits: {
|
|
83
|
+
...t,
|
|
84
|
+
change: null
|
|
85
|
+
},
|
|
86
|
+
setup(t, { emit: n, slots: s, attrs: c }) {
|
|
87
|
+
let d = a(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
|
|
88
|
+
emit: n,
|
|
89
|
+
slots: s,
|
|
90
|
+
events: l,
|
|
91
|
+
predicate: u
|
|
92
|
+
});
|
|
93
|
+
return () => f({ vNodes: r(o, i(m.value, c, {
|
|
94
|
+
modelValue: d.value,
|
|
95
|
+
"onUpdate:modelValue": (e) => d.value = e,
|
|
96
|
+
disabled: p.value
|
|
97
|
+
}), {
|
|
98
|
+
"active-action": s["active-action"],
|
|
99
|
+
"inactive-action": s["inactive-action"],
|
|
100
|
+
active: s.active,
|
|
101
|
+
inactive: s.inactive
|
|
102
|
+
}) });
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
export { d as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { n as e } from "./Br4i8stg.mjs";
|
|
2
|
+
import { n as t, t as n } from "./C4bM8miy.mjs";
|
|
3
|
+
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
|
+
//#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
|
|
5
|
+
function s(e) {
|
|
6
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/form/FormInputPhoneNumber.vue
|
|
10
|
+
var c = {
|
|
11
|
+
name: "FormInputPhoneNumber",
|
|
12
|
+
inheritAttrs: !1,
|
|
13
|
+
props: { ...t },
|
|
14
|
+
emits: { ...e },
|
|
15
|
+
setup(e, { slots: t, attrs: i }) {
|
|
16
|
+
let c = o(e, "modelValue");
|
|
17
|
+
return () => r(n, a(e, i, {
|
|
18
|
+
modelValue: c.value,
|
|
19
|
+
"onUpdate:modelValue": (e) => c.value = e,
|
|
20
|
+
type: "phone"
|
|
21
|
+
}), s(t) ? t : { default: () => [t] });
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { c as t };
|