@web-utils/form-ui 1.0.0-beta36 → 1.0.0-beta37
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/chunks/{iWQD3xvX.mjs → B17LMtNG.mjs} +11 -16
- package/chunks/{DFsI7Y6h.mjs → B2HO8aAj.mjs} +11 -11
- package/chunks/{axr9InkL.mjs → BC0gfvsl.mjs} +9 -13
- package/chunks/{DQxPzCsy.mjs → BMAsNnWL.mjs} +11 -15
- package/chunks/{DQJyNm1V.mjs → Bd1UFJic.mjs} +135 -131
- package/chunks/{D5_ctQqL.mjs → BeBtvo7Q.mjs} +1 -1
- package/chunks/{Cr1vBYne.mjs → BeyC-b9n.mjs} +12 -15
- package/chunks/{A3sHIRQ_.mjs → BiIR7j9T.mjs} +15 -42
- package/chunks/{_dm2lLNL.mjs → BrXlRZbl.mjs} +2 -2
- package/chunks/{BTS_zTkz.mjs → BufIRDd0.mjs} +35 -39
- package/chunks/{Buc52aVh.mjs → Byr79NWq.mjs} +11 -29
- package/chunks/{BLWwTutr.mjs → C81uwgZb.mjs} +14 -33
- package/chunks/{CNskrN5I.mjs → C95McWbI.mjs} +2 -2
- package/chunks/CE8bze--.mjs +231 -0
- package/chunks/{DcbnHU8K.mjs → CGmMqCP6.mjs} +19 -23
- package/chunks/{D7hD-ppq.mjs → CRrdgtwT.mjs} +1 -1
- package/chunks/{DistOy_O.mjs → CUvhHVXq.mjs} +27 -19
- package/chunks/{DJKE5P39.mjs → CZ6kuiWf.mjs} +2 -2
- package/chunks/{Dgyjc3LT.mjs → Cab-ZjRx.mjs} +29 -45
- package/chunks/{ZXCLnZFa.mjs → Ce5K-XbN.mjs} +111 -144
- package/chunks/{CLn0r4lV.mjs → CszLlvRH.mjs} +15 -17
- package/chunks/{CGJkMYZ4.mjs → D0M61zlJ.mjs} +11 -20
- package/chunks/DjX-fB-E.mjs +35 -0
- package/chunks/{BwdWZEjT.mjs → DkXSvAFI.mjs} +12 -18
- package/chunks/{DQKi5eEl.mjs → XqRTtFfp.mjs} +2 -2
- package/chunks/{BX-cVxlK.mjs → cmuHpsX6.mjs} +21 -14
- package/chunks/{1cDNhlSV.mjs → h0Y7oZ-O.mjs} +2 -2
- package/editable-tree/index.d.ts +1 -1
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.d.ts +1 -1
- package/element-dialog/index.mjs +1 -1
- package/form-cascader/index.d.ts +0 -14
- package/form-cascader/index.mjs +1 -1
- package/form-check-box-group/index.d.ts +0 -2
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.d.ts +36 -10
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +2 -6
- package/form-holder/index.mjs +1 -1
- package/form-image/index.d.ts +2 -14
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +0 -24
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +0 -6
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.d.ts +0 -2
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +0 -2
- package/form-rate/index.mjs +1 -1
- package/form-select/index.d.ts +0 -14
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +0 -4
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +0 -2
- package/form-switch/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/helper/dictionary.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/index.mjs +25 -25
- package/package.json +1 -1
- package/pageable-table/index.d.ts +0 -38
- package/pageable-table/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +6 -6
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/web-types.json +1 -1
- package/chunks/BLRY0zkF.mjs +0 -51
- package/chunks/BvsmTC3G.mjs +0 -229
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./CE8bze--.mjs";
|
|
2
|
+
import { n } from "./CRrdgtwT.mjs";
|
|
3
3
|
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
4
|
import { ElSlider as o } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/slide.ts
|
|
@@ -67,29 +67,24 @@ var s = {
|
|
|
67
67
|
type: Boolean,
|
|
68
68
|
default: !0
|
|
69
69
|
}
|
|
70
|
-
}, c = { modelValue: !0 }, l =
|
|
70
|
+
}, c = { modelValue: !0 }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
|
|
71
71
|
name: "FormSlider",
|
|
72
72
|
inheritAttrs: !1,
|
|
73
73
|
props: { ...s },
|
|
74
|
-
emits: {
|
|
75
|
-
...t,
|
|
76
|
-
change: null,
|
|
77
|
-
input: null
|
|
78
|
-
},
|
|
74
|
+
emits: { ...t },
|
|
79
75
|
setup(t, { emit: n, slots: s, attrs: c }) {
|
|
80
|
-
let
|
|
76
|
+
let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
|
|
81
77
|
emit: n,
|
|
82
78
|
slots: s,
|
|
83
|
-
|
|
84
|
-
predicate: u,
|
|
79
|
+
predicate: l,
|
|
85
80
|
attrs: c
|
|
86
81
|
});
|
|
87
|
-
return () =>
|
|
88
|
-
modelValue:
|
|
89
|
-
"onUpdate:modelValue": (e) =>
|
|
90
|
-
disabled:
|
|
82
|
+
return () => d({ vNodes: r(o, i(p.value, m.value, {
|
|
83
|
+
modelValue: u.value,
|
|
84
|
+
"onUpdate:modelValue": (e) => u.value = e,
|
|
85
|
+
disabled: f.value
|
|
91
86
|
}), null) });
|
|
92
87
|
}
|
|
93
88
|
};
|
|
94
89
|
//#endregion
|
|
95
|
-
export {
|
|
90
|
+
export { u as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./CE8bze--.mjs";
|
|
2
|
+
import { n } from "./CRrdgtwT.mjs";
|
|
3
3
|
import { computed as r, createVNode as i, mergeProps as a } from "vue";
|
|
4
4
|
import { ElDatePicker as o } from "element-plus/es";
|
|
5
5
|
import { toDate as s } from "@web-utils/integrations/dayjs";
|
|
@@ -143,7 +143,7 @@ var c = {
|
|
|
143
143
|
emptyValues: !0,
|
|
144
144
|
type: !0,
|
|
145
145
|
valueOnClear: !0
|
|
146
|
-
}, u =
|
|
146
|
+
}, u = (e) => n[e] === void 0 && l[e] !== !0, d = {
|
|
147
147
|
name: "FormDatePicker",
|
|
148
148
|
inheritAttrs: !1,
|
|
149
149
|
props: { ...c },
|
|
@@ -153,12 +153,11 @@ var c = {
|
|
|
153
153
|
"update:endDate": null
|
|
154
154
|
},
|
|
155
155
|
setup(t, { emit: n, slots: c, attrs: l }) {
|
|
156
|
-
let { emitInput:
|
|
156
|
+
let { emitInput: d, render: f, placeholder: p, disabled: m, listeners: h, inputProps: g } = e(t, {
|
|
157
157
|
emit: n,
|
|
158
158
|
slots: c,
|
|
159
159
|
attrs: l,
|
|
160
|
-
|
|
161
|
-
predicate: d,
|
|
160
|
+
predicate: u,
|
|
162
161
|
messagePrefix: "请选择"
|
|
163
162
|
}), _ = r(() => t.dateTimeRange || t.dateRange || t.monthRange), v = r(() => t.year ? "YYYY" : t.month || t.monthRange ? "YYYY-MM" : t.week ? "YYYY 第 WW 周" : t.dateTime || t.dateTimeRange ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD"), y = r(() => t.year ? "year" : t.month ? "month" : t.dates ? "dates" : t.week ? "week" : t.dateTime ? "datetime" : t.dateTimeRange ? "datetimerange" : t.dateRange ? "daterange" : t.monthRange ? "monthrange" : "date"), b = r(() => {
|
|
164
163
|
if (t.miniDate) {
|
|
@@ -172,13 +171,14 @@ var c = {
|
|
|
172
171
|
}, C = (e, t) => {
|
|
173
172
|
n("update:startDate", e), n("update:endDate", t);
|
|
174
173
|
}, w = (e) => {
|
|
175
|
-
_.value && t.split ? e ? C(e[0], e[1]) : C(null, null) :
|
|
174
|
+
_.value && t.split ? e ? C(e[0], e[1]) : C(null, null) : d(e);
|
|
176
175
|
}, T = r(() => _.value && t.split ? [t.startDate, t.endDate] : t.modelValue), E = r(() => t.week ? "YYYY-MM-DD" : t.valueFormat || v.value), D = r(() => t.format || v.value);
|
|
177
|
-
return () =>
|
|
176
|
+
return () => f({ vNodes: i(o, a(h.value, g.value, {
|
|
177
|
+
style: "width: 100%",
|
|
178
178
|
type: y.value,
|
|
179
179
|
modelValue: T.value,
|
|
180
|
-
disabled:
|
|
181
|
-
placeholder:
|
|
180
|
+
disabled: m.value,
|
|
181
|
+
placeholder: p.value,
|
|
182
182
|
format: D.value,
|
|
183
183
|
disabledDate: S,
|
|
184
184
|
"value-format": E.value,
|
|
@@ -194,4 +194,4 @@ var c = {
|
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
//#endregion
|
|
197
|
-
export {
|
|
197
|
+
export { d as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as t, r as n } from "./
|
|
3
|
-
import { n as r } from "./
|
|
1
|
+
import { d as e } from "./cmuHpsX6.mjs";
|
|
2
|
+
import { o as t, r as n } from "./CE8bze--.mjs";
|
|
3
|
+
import { n as r } from "./CRrdgtwT.mjs";
|
|
4
4
|
import { createVNode as i, mergeProps as a } from "vue";
|
|
5
5
|
import { ElText as o } from "element-plus/es";
|
|
6
6
|
//#region src/components/form/props/text.ts
|
|
@@ -21,22 +21,18 @@ var s = {
|
|
|
21
21
|
default: "span"
|
|
22
22
|
},
|
|
23
23
|
text: String
|
|
24
|
-
}, c = { modelValue: !0 }, l =
|
|
24
|
+
}, c = { modelValue: !0 }, l = (e) => r[e] === void 0 && c[e] !== !0, u = {
|
|
25
25
|
name: "FormText",
|
|
26
26
|
inheritAttrs: !1,
|
|
27
27
|
props: { ...s },
|
|
28
|
-
setup(r, { slots: s,
|
|
29
|
-
let
|
|
30
|
-
events: l,
|
|
31
|
-
predicate: u,
|
|
32
|
-
emit: c
|
|
33
|
-
});
|
|
28
|
+
setup(r, { slots: s, attrs: c }) {
|
|
29
|
+
let u = t(r, { attrs: c }), d = e(r, l);
|
|
34
30
|
return () => n(r, {
|
|
35
|
-
vNodes: i(o, a(
|
|
36
|
-
formItemProps:
|
|
31
|
+
vNodes: i(o, a(d.value, c), { default: s.default || (() => r.text) }),
|
|
32
|
+
formItemProps: u,
|
|
37
33
|
slots: s
|
|
38
34
|
});
|
|
39
35
|
}
|
|
40
36
|
};
|
|
41
37
|
//#endregion
|
|
42
|
-
export {
|
|
38
|
+
export { u as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./CE8bze--.mjs";
|
|
2
|
+
import { n } from "./CRrdgtwT.mjs";
|
|
3
3
|
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
4
|
import { ElRate as o } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/rate.ts
|
|
@@ -61,28 +61,24 @@ var s = {
|
|
|
61
61
|
},
|
|
62
62
|
id: String,
|
|
63
63
|
ariaLabel: String
|
|
64
|
-
}, c = { modelValue: !0 }, l =
|
|
64
|
+
}, c = { modelValue: !0 }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
|
|
65
65
|
name: "FormRate",
|
|
66
66
|
inheritAttrs: !1,
|
|
67
67
|
props: { ...s },
|
|
68
|
-
emits: {
|
|
69
|
-
...t,
|
|
70
|
-
change: null
|
|
71
|
-
},
|
|
68
|
+
emits: { ...t },
|
|
72
69
|
setup(t, { emit: n, slots: s, attrs: c }) {
|
|
73
|
-
let
|
|
70
|
+
let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
|
|
74
71
|
emit: n,
|
|
75
72
|
slots: s,
|
|
76
73
|
attrs: c,
|
|
77
|
-
|
|
78
|
-
predicate: u
|
|
74
|
+
predicate: l
|
|
79
75
|
});
|
|
80
|
-
return () =>
|
|
81
|
-
modelValue:
|
|
82
|
-
"onUpdate:modelValue": (e) =>
|
|
83
|
-
disabled:
|
|
76
|
+
return () => d({ vNodes: r(o, i(p.value, m.value, {
|
|
77
|
+
modelValue: u.value,
|
|
78
|
+
"onUpdate:modelValue": (e) => u.value = e,
|
|
79
|
+
disabled: f.value
|
|
84
80
|
}), null) });
|
|
85
81
|
}
|
|
86
82
|
};
|
|
87
83
|
//#endregion
|
|
88
|
-
export {
|
|
84
|
+
export { u as t };
|