@web-utils/form-ui 1.0.0-beta56 → 1.0.0-beta58
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/-qKZw-3p2.mjs +23 -0
- package/chunks/{CauzhVSa2.mjs → 4-vc_q1t.mjs} +12 -12
- package/chunks/{Bq62m7IR2.mjs → 4C611CU2.mjs} +11 -11
- package/chunks/{gLPy4Sus.mjs → 8P-OAGbj.mjs} +1 -1
- package/chunks/B2PuSZ_F.mjs +35 -0
- package/chunks/B6B-rhhB.mjs +37 -0
- package/chunks/{C7Mak2La.mjs → BHT38Us-.mjs} +7 -6
- package/chunks/BWoKh6f6.mjs +66 -0
- package/chunks/{Dt_s96gL2.mjs → BXrA0SYn2.mjs} +2 -2
- package/chunks/BZ0v5mka.mjs +30 -0
- package/chunks/{5KomemiE2.mjs → BlmtfUfl2.mjs} +29 -29
- package/chunks/CE1uX9hJ.mjs +95 -0
- package/chunks/CGnOR2gn.mjs +59 -0
- package/chunks/CJ1-f8sg.mjs +30 -0
- package/chunks/{B3A-CnYr.mjs → CSnlDCNV.mjs} +5 -5
- package/chunks/CdzoVG6J.mjs +47 -0
- package/chunks/{BZTAuJxn2.mjs → CqoMZ9Wo2.mjs} +1 -1
- package/chunks/CrQmTHMA.mjs +105 -0
- package/chunks/Crh2RUrS.mjs +106 -0
- package/chunks/DBUJ7Bva.mjs +56 -0
- package/chunks/DB_UKPay.mjs +27 -0
- package/chunks/{BvKUeniN.mjs → DEC2O0q-.mjs} +46 -44
- package/chunks/{BoJgSMkL.mjs → DUhF8YOY.mjs} +2 -2
- package/chunks/{g8MIBMw92.mjs → Dqq8z1t4.mjs} +13 -13
- package/chunks/Du1PslcN.mjs +28 -0
- package/chunks/{Dluor05A.mjs → DyEYDv4B.mjs} +7 -6
- package/chunks/EAJCsX8W.mjs +32 -0
- package/chunks/ZFJ73RWd2.mjs +29 -0
- package/chunks/{D2B9Y3oT.mjs → fmIV_kHp.mjs} +2 -2
- package/chunks/h5488Kii.mjs +27 -0
- package/chunks/k3cC9SGC.mjs +27 -0
- package/chunks/{7GmKqdbC.mjs → usyXQe35.mjs} +1 -1
- package/chunks/{BpCiVuKL.mjs → v3wbYL_-.mjs} +7 -6
- package/chunks/vd9nXj8B.mjs +59 -0
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/editable-tree/index.mjs +591 -2
- package/element-dialog/index.mjs +1 -1
- package/element-resize-observer/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- 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.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/helper/dictionary.mjs +1 -1
- package/helper/form-item.d.ts +1 -1
- package/helper/form-item.mjs +27 -2
- package/helper/input.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/index.mjs +37 -37
- package/package.json +1 -1
- package/pageable-table/index.mjs +1 -1
- package/props/cascader.d.ts +326 -0
- package/{chunks/Czz_49pC.mjs → props/cascader.mjs} +8 -58
- package/props/checkbox-group.d.ts +213 -0
- package/props/checkbox-group.mjs +83 -0
- package/props/checkbox.d.ts +202 -0
- package/props/checkbox.mjs +71 -0
- package/props/col.d.ts +74 -0
- package/props/col.mjs +32 -0
- package/props/common.d.ts +114 -0
- package/props/common.mjs +18 -0
- package/props/date.d.ts +339 -0
- package/props/date.mjs +145 -0
- package/props/form-item.d.ts +144 -0
- package/props/form-item.mjs +73 -0
- package/props/form.d.ts +157 -0
- package/props/form.mjs +89 -0
- package/props/image.d.ts +102 -0
- package/props/image.mjs +10 -0
- package/props/input-cron.d.ts +102 -0
- package/props/input-cron.mjs +16 -0
- package/props/input-number.d.ts +216 -0
- package/props/input-number.mjs +72 -0
- package/props/input-tag.d.ts +123 -0
- package/props/input-tag.mjs +33 -0
- package/props/input.d.ts +299 -0
- package/props/input.mjs +97 -0
- package/props/radio-group.d.ts +205 -0
- package/props/radio-group.mjs +84 -0
- package/props/rate.d.ts +211 -0
- package/{chunks/D0kIhzQo.mjs → props/rate.mjs} +7 -28
- package/props/select.d.ts +450 -0
- package/props/select.mjs +218 -0
- package/props/slide.d.ts +235 -0
- package/{chunks/DZrQmH9Y.mjs → props/slide.mjs} +7 -28
- package/props/switch.d.ts +229 -0
- package/{chunks/ecpQ-ODX.mjs → props/switch.mjs} +7 -33
- package/props/text.d.ts +127 -0
- package/props/text.mjs +22 -0
- package/props/textarea.d.ts +266 -0
- package/{chunks/CNK4mfga.mjs → props/textarea.mjs} +19 -31
- package/props/time-select.d.ts +216 -0
- package/props/time-select.mjs +67 -0
- package/props/time.d.ts +304 -0
- package/{chunks/C3MF_-bN.mjs → props/time.mjs} +8 -39
- package/props/tree.d.ts +76 -0
- package/props/tree.mjs +75 -0
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.mjs +13 -13
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +2 -2
- package/year-calendar/index.mjs +1 -1
- package/chunks/6GcIyEQV.mjs +0 -95
- package/chunks/8c9TEVNY.mjs +0 -36
- package/chunks/AAZfNtly.mjs +0 -119
- package/chunks/BKlMENhV.mjs +0 -57
- package/chunks/BNVYEWWW.mjs +0 -57
- package/chunks/BTuzBfTA.mjs +0 -141
- package/chunks/C6Dq9Dgb.mjs +0 -17
- package/chunks/C6u76g6o.mjs +0 -158
- package/chunks/CLO5X9Lb.mjs +0 -176
- package/chunks/CdoiMj7L2.mjs +0 -39
- package/chunks/DTVTvvq-.mjs +0 -189
- package/chunks/DWE67l1f.mjs +0 -317
- package/chunks/DWMePN6q.mjs +0 -660
- package/chunks/D_L1p3vm2.mjs +0 -90
- package/chunks/Dy_5vPdP.mjs +0 -101
- package/chunks/Goee5Y-H.mjs +0 -198
- /package/chunks/{BlxLaWcU.mjs → 6av50rJm.mjs} +0 -0
- /package/chunks/{CkOD-_VV.mjs → B1MSrc6f.mjs} +0 -0
- /package/chunks/{BNqVEHk_.mjs → C-0zqLII.mjs} +0 -0
- /package/chunks/{xq_LR6R2.mjs → CI1ehQi5.mjs} +0 -0
- /package/chunks/{DcTVYqeJ.mjs → DuOxL6xh.mjs} +0 -0
- /package/chunks/{CXsoKP22.mjs → mekxD3ef.mjs} +0 -0
package/x-input-tag/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
2
|
-
import { t } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/usyXQe35.mjs";
|
|
2
|
+
import { t } from "../chunks/B1MSrc6f.mjs";
|
|
3
3
|
import { isArray as n, isDef as r, isPlainObject as i, scrollIntoView as a } from "@web-utils/core";
|
|
4
4
|
import { Fragment as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, nextTick as f, normalizeClass as p, openBlock as m, renderList as h, toDisplayString as g, vShow as _, withCtx as v, withDirectives as y, withKeys as b } from "vue";
|
|
5
5
|
import { ElMessage as x, formContextKey as S, formItemContextKey as C } from "element-plus";
|
package/year-calendar/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CqoMZ9Wo2.mjs";
|
|
2
2
|
export { e as default };
|
package/chunks/6GcIyEQV.mjs
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { n as e, o as t } from "./BvKUeniN.mjs";
|
|
2
|
-
import { n } from "./C6Dq9Dgb.mjs";
|
|
3
|
-
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
|
-
import { ElCheckbox as o } from "element-plus/es";
|
|
5
|
-
//#region src/components/form/props/checkbox.ts
|
|
6
|
-
var s = {
|
|
7
|
-
...n,
|
|
8
|
-
modelValue: [
|
|
9
|
-
String,
|
|
10
|
-
Number,
|
|
11
|
-
Boolean
|
|
12
|
-
],
|
|
13
|
-
value: [
|
|
14
|
-
String,
|
|
15
|
-
Number,
|
|
16
|
-
Boolean,
|
|
17
|
-
Object
|
|
18
|
-
],
|
|
19
|
-
labelValue: [
|
|
20
|
-
String,
|
|
21
|
-
Number,
|
|
22
|
-
Boolean,
|
|
23
|
-
Object
|
|
24
|
-
],
|
|
25
|
-
trueValue: {
|
|
26
|
-
type: [String, Number],
|
|
27
|
-
default: "1"
|
|
28
|
-
},
|
|
29
|
-
falseValue: {
|
|
30
|
-
type: [String, Number],
|
|
31
|
-
default: "0"
|
|
32
|
-
},
|
|
33
|
-
border: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: !1
|
|
36
|
-
},
|
|
37
|
-
size: String,
|
|
38
|
-
name: String,
|
|
39
|
-
checked: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: !1
|
|
42
|
-
},
|
|
43
|
-
indeterminate: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: !1
|
|
46
|
-
},
|
|
47
|
-
validateEvent: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: !0
|
|
50
|
-
},
|
|
51
|
-
tabindex: [String, Number],
|
|
52
|
-
id: String,
|
|
53
|
-
ariaControls: String,
|
|
54
|
-
ariaLabel: String,
|
|
55
|
-
trueLabel: {
|
|
56
|
-
type: [String, Number],
|
|
57
|
-
default: "1"
|
|
58
|
-
},
|
|
59
|
-
falseLabel: {
|
|
60
|
-
type: [String, Number],
|
|
61
|
-
default: "0"
|
|
62
|
-
},
|
|
63
|
-
controls: String
|
|
64
|
-
}, c = {
|
|
65
|
-
modelValue: !0,
|
|
66
|
-
disabled: !0,
|
|
67
|
-
labelValue: !0,
|
|
68
|
-
trueLabel: !0,
|
|
69
|
-
falseLabel: !0,
|
|
70
|
-
trueValue: !0,
|
|
71
|
-
falseValue: !0
|
|
72
|
-
}, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
|
|
73
|
-
name: "FormCheckbox",
|
|
74
|
-
inheritAttrs: !1,
|
|
75
|
-
props: { ...s },
|
|
76
|
-
emits: { ...e },
|
|
77
|
-
setup(e, { emit: n, slots: s, attrs: c }) {
|
|
78
|
-
let u = a(e, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = t(e, {
|
|
79
|
-
emit: n,
|
|
80
|
-
slots: s,
|
|
81
|
-
attrs: c,
|
|
82
|
-
predicate: l
|
|
83
|
-
});
|
|
84
|
-
return () => d({ vNodes: r(o, i(m.value, p.value, {
|
|
85
|
-
label: e.labelValue,
|
|
86
|
-
modelValue: u.value,
|
|
87
|
-
"onUpdate:modelValue": (e) => u.value = e,
|
|
88
|
-
trueValue: e.trueLabel ?? e.trueValue,
|
|
89
|
-
falseValue: e.falseLabel ?? e.falseValue,
|
|
90
|
-
disabled: f.value
|
|
91
|
-
}), { default: s.default }) });
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
//#endregion
|
|
95
|
-
export { u as t };
|
package/chunks/8c9TEVNY.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { f as e } from "./DcTVYqeJ.mjs";
|
|
2
|
-
import { t } from "./AAZfNtly.mjs";
|
|
3
|
-
import { r as n } from "./BvKUeniN.mjs";
|
|
4
|
-
import { n as r } from "./C6Dq9Dgb.mjs";
|
|
5
|
-
import { createVNode as i, isVNode as a, mergeProps as o } from "vue";
|
|
6
|
-
import { ElImage as s } from "element-plus/es";
|
|
7
|
-
//#region src/components/form/props/image.ts
|
|
8
|
-
var c = {
|
|
9
|
-
...r,
|
|
10
|
-
src: String,
|
|
11
|
-
fit: String,
|
|
12
|
-
hideOnClickModal: Boolean
|
|
13
|
-
}, l = { modelValue: !0 }, u = (e) => r[e] === void 0 && l[e] !== !0;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/components/form/FormImage.vue?vue&type=script&lang.jsx
|
|
16
|
-
function d(e) {
|
|
17
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !a(e);
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region src/components/form/FormImage.vue
|
|
21
|
-
var f = {
|
|
22
|
-
name: "FormImage",
|
|
23
|
-
inheritAttrs: !1,
|
|
24
|
-
props: { ...c },
|
|
25
|
-
emits: {},
|
|
26
|
-
setup(r, { slots: a, attrs: c }) {
|
|
27
|
-
let l = t(r, { attrs: c }), f = e(r, u);
|
|
28
|
-
return () => n(r, {
|
|
29
|
-
vNodes: i(s, o(f.value, c, { "preview-src-list": [r.src] }), d(a) ? a : { default: () => [a] }),
|
|
30
|
-
formItemProps: l,
|
|
31
|
-
slots: a
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
//#endregion
|
|
36
|
-
export { f as t };
|
package/chunks/AAZfNtly.mjs
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { o as e } from "./DcTVYqeJ.mjs";
|
|
2
|
-
import { formHolderContextKey as t } from "../constants/index.mjs";
|
|
3
|
-
import { isArray as n, isPlainObject as r, isString as i } from "@web-utils/core";
|
|
4
|
-
import { computed as a, inject as o, unref as s } from "vue";
|
|
5
|
-
//#region src/components/form/props/form-item.ts
|
|
6
|
-
var c = {
|
|
7
|
-
prop: [String, Array],
|
|
8
|
-
label: String,
|
|
9
|
-
labelPosition: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: ""
|
|
12
|
-
},
|
|
13
|
-
labelWidth: [String, Number],
|
|
14
|
-
required: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: !1
|
|
17
|
-
},
|
|
18
|
-
rules: Object,
|
|
19
|
-
error: String,
|
|
20
|
-
showMessage: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: !0
|
|
23
|
-
},
|
|
24
|
-
inlineMessage: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: !1
|
|
27
|
-
},
|
|
28
|
-
size: String,
|
|
29
|
-
for: String,
|
|
30
|
-
validateStatus: String,
|
|
31
|
-
messagePrefix: String,
|
|
32
|
-
message: String,
|
|
33
|
-
wrapCol: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: !0
|
|
36
|
-
},
|
|
37
|
-
fixedSpan: Number,
|
|
38
|
-
block: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default: void 0
|
|
41
|
-
},
|
|
42
|
-
unwrap: Boolean,
|
|
43
|
-
half: Boolean,
|
|
44
|
-
formItemClass: String,
|
|
45
|
-
hideLabel: Boolean,
|
|
46
|
-
tips: { type: String },
|
|
47
|
-
tipsAfterLabel: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: !1
|
|
50
|
-
},
|
|
51
|
-
labelColspan: [Number, String],
|
|
52
|
-
inputColspan: [Number, String],
|
|
53
|
-
labelRowspan: [Number, String],
|
|
54
|
-
inputRowspan: [Number, String]
|
|
55
|
-
}, l = {
|
|
56
|
-
required: !0,
|
|
57
|
-
rules: !0,
|
|
58
|
-
messagePrefix: !0,
|
|
59
|
-
message: !0,
|
|
60
|
-
wrapCol: !0,
|
|
61
|
-
fixedSpan: !0,
|
|
62
|
-
block: !0,
|
|
63
|
-
unwrap: !0,
|
|
64
|
-
half: !0,
|
|
65
|
-
formItemClass: !0,
|
|
66
|
-
hideLabel: !0,
|
|
67
|
-
tips: !0,
|
|
68
|
-
tipsAfterLabel: !0,
|
|
69
|
-
labelColspan: !0,
|
|
70
|
-
inputColspan: !0,
|
|
71
|
-
labelRowspan: !0,
|
|
72
|
-
inputRowspan: !0
|
|
73
|
-
}, u = (e) => c[e] !== void 0 && l[e] !== !0, d = (t, { emit: n, events: r, predicate: i }) => a(() => e(t, i, r, n)), f = {
|
|
74
|
-
span: {
|
|
75
|
-
type: Number,
|
|
76
|
-
default: 12
|
|
77
|
-
},
|
|
78
|
-
offset: {
|
|
79
|
-
type: Number,
|
|
80
|
-
default: 0
|
|
81
|
-
},
|
|
82
|
-
push: {
|
|
83
|
-
type: Number,
|
|
84
|
-
default: 0
|
|
85
|
-
},
|
|
86
|
-
pull: {
|
|
87
|
-
type: Number,
|
|
88
|
-
default: 0
|
|
89
|
-
},
|
|
90
|
-
xs: { type: [Number, Object] },
|
|
91
|
-
sm: { type: [Number, Object] },
|
|
92
|
-
md: { type: [Number, Object] },
|
|
93
|
-
lg: { type: [Number, Object] },
|
|
94
|
-
xl: { type: [Number, Object] },
|
|
95
|
-
tag: {
|
|
96
|
-
type: String,
|
|
97
|
-
default: "div"
|
|
98
|
-
}
|
|
99
|
-
}, p = { span: !0 }, m = (e) => f[e] !== void 0 && p[e] !== !0, h = (t, { emit: n, events: r, predicate: i }) => a(() => e(t, i, r, n)), g = (e) => {
|
|
100
|
-
let n = o(t, null);
|
|
101
|
-
return a(() => e.required === !0 ? !0 : (n == null ? void 0 : n.requiredFieldsMap[e.prop]) === !0);
|
|
102
|
-
}, _ = (e, t) => {
|
|
103
|
-
i(t) ? e.push(t) : n(t) ? e.push(...t) : r(t) && e.push(t);
|
|
104
|
-
}, v = (e, { rules: t, attrs: n, block: r, class: i, messagePrefix: o, message: l } = {}) => {
|
|
105
|
-
let u = g(e);
|
|
106
|
-
return a(() => {
|
|
107
|
-
let a = { message: l }, d = s(t);
|
|
108
|
-
Object.keys({
|
|
109
|
-
...c,
|
|
110
|
-
...f
|
|
111
|
-
}).forEach((t) => {
|
|
112
|
-
t === "rules" ? e[t] && d ? a[t] = [...e[t], ...d] : e[t] ? a[t] = e[t] : d && (a[t] = d) : t === "messagePrefix" ? a[t] = e.messagePrefix || o : t === "block" ? a[t] = r ?? e.block : a[t] = e[t];
|
|
113
|
-
});
|
|
114
|
-
let p = [];
|
|
115
|
-
return _(p, s(n == null ? void 0 : n.class)), _(p, s(i)), a.required = u.value, a.class = p, a.style = n == null ? void 0 : n.style, a;
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
|
-
//#endregion
|
|
119
|
-
export { h as a, d as c, m as i, g as n, c as o, f as r, u as s, v as t };
|
package/chunks/BKlMENhV.mjs
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { n as e, o as t } from "./BvKUeniN.mjs";
|
|
2
|
-
import { n, t as r } from "./C6Dq9Dgb.mjs";
|
|
3
|
-
import { t as i } from "./BoJgSMkL.mjs";
|
|
4
|
-
import { createVNode as a, mergeProps as o, ref as s } from "vue";
|
|
5
|
-
import { ElInput as c, ElPopover as l } from "element-plus/es";
|
|
6
|
-
//#region src/components/form/props/input-cron.ts
|
|
7
|
-
var u = {
|
|
8
|
-
...n,
|
|
9
|
-
...r,
|
|
10
|
-
modelValue: [String, Number]
|
|
11
|
-
}, d = {
|
|
12
|
-
readonly: !0,
|
|
13
|
-
placeholder: !0,
|
|
14
|
-
disabled: !0,
|
|
15
|
-
modelValue: !0,
|
|
16
|
-
prefix: !0,
|
|
17
|
-
suffix: !0
|
|
18
|
-
}, f = (e) => n[e] === void 0 && d[e] !== !0, p = {
|
|
19
|
-
name: "FormInputCronExpression",
|
|
20
|
-
props: { ...u },
|
|
21
|
-
emits: { ...e },
|
|
22
|
-
setup(e, { emit: n, slots: r, attrs: u }) {
|
|
23
|
-
let d = s(!1), { emitInput: p, render: m, placeholder: h, disabled: g, listeners: _, inputProps: v } = t(e, {
|
|
24
|
-
emit: n,
|
|
25
|
-
slots: r,
|
|
26
|
-
attrs: u,
|
|
27
|
-
predicate: f
|
|
28
|
-
}), y = () => {
|
|
29
|
-
d.value = !0;
|
|
30
|
-
}, b = () => {
|
|
31
|
-
d.value = !1;
|
|
32
|
-
};
|
|
33
|
-
return () => m({ vNodes: a("div", { class: "cron" }, [a(l, {
|
|
34
|
-
placement: "bottom-start",
|
|
35
|
-
disabled: g.value,
|
|
36
|
-
visible: d.value,
|
|
37
|
-
"onUpdate:visible": (e) => d.value = e,
|
|
38
|
-
"popper-class": "cron-popover"
|
|
39
|
-
}, {
|
|
40
|
-
default: () => a(i, o(_.value, v.value, {
|
|
41
|
-
i18n: "cn",
|
|
42
|
-
expression: e.modelValue,
|
|
43
|
-
onChange: p,
|
|
44
|
-
onClose: b
|
|
45
|
-
}), null),
|
|
46
|
-
reference: () => a(c, {
|
|
47
|
-
modelValue: e.modelValue,
|
|
48
|
-
readonly: !0,
|
|
49
|
-
disabled: g.value,
|
|
50
|
-
placeholder: h.value,
|
|
51
|
-
onClick: y
|
|
52
|
-
}, null)
|
|
53
|
-
})]) });
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
//#endregion
|
|
57
|
-
export { p as t };
|
package/chunks/BNVYEWWW.mjs
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { n as e, o as t } from "./BvKUeniN.mjs";
|
|
2
|
-
import { n, t as r } from "./C6Dq9Dgb.mjs";
|
|
3
|
-
import i from "../x-input-tag/index.mjs";
|
|
4
|
-
import { createVNode as a, mergeProps as o } from "vue";
|
|
5
|
-
//#region src/components/form/props/input-tag.ts
|
|
6
|
-
var s = {
|
|
7
|
-
...n,
|
|
8
|
-
...r,
|
|
9
|
-
modelValue: [Array, String],
|
|
10
|
-
arrayMode: {
|
|
11
|
-
type: Boolean,
|
|
12
|
-
default: !0
|
|
13
|
-
},
|
|
14
|
-
objectMode: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: !0
|
|
17
|
-
},
|
|
18
|
-
separator: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: ","
|
|
21
|
-
},
|
|
22
|
-
boundarySelector: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: ".form-scroller"
|
|
25
|
-
},
|
|
26
|
-
query: Function,
|
|
27
|
-
type: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: "标签"
|
|
30
|
-
}
|
|
31
|
-
}, c = {
|
|
32
|
-
disabled: !0,
|
|
33
|
-
modelValue: !0
|
|
34
|
-
}, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
|
|
35
|
-
name: "FormInputTag",
|
|
36
|
-
inheritAttrs: !1,
|
|
37
|
-
props: { ...s },
|
|
38
|
-
emits: { ...e },
|
|
39
|
-
setup(e, { emit: n, slots: r, attrs: s }) {
|
|
40
|
-
let { emitInput: c, render: u, placeholder: d, disabled: f, listeners: p, inputProps: m } = t(e, {
|
|
41
|
-
emit: n,
|
|
42
|
-
slots: r,
|
|
43
|
-
attrs: s,
|
|
44
|
-
predicate: l,
|
|
45
|
-
block: e.block === void 0 ? !0 : e.block
|
|
46
|
-
});
|
|
47
|
-
return () => u({ vNodes: a(i, o(p.value, m.value, {
|
|
48
|
-
style: "width: 100%",
|
|
49
|
-
modelValue: e.modelValue,
|
|
50
|
-
disabled: f.value,
|
|
51
|
-
"onUpdate:modelValue": c,
|
|
52
|
-
placeholder: d.value
|
|
53
|
-
}), null) });
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
//#endregion
|
|
57
|
-
export { u as t };
|
package/chunks/BTuzBfTA.mjs
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { n as e, o as t } from "./BvKUeniN.mjs";
|
|
2
|
-
import { n } from "./C6Dq9Dgb.mjs";
|
|
3
|
-
import { useDictionary as r } from "../hook/useDictionary.mjs";
|
|
4
|
-
import { computed as i, createVNode as a, isVNode as o, mergeProps as s, useModel as c } from "vue";
|
|
5
|
-
import { ElRadio as l, ElRadioButton as u, ElRadioGroup as d } from "element-plus/es";
|
|
6
|
-
//#region src/components/form/props/radio-group.ts
|
|
7
|
-
var f = {
|
|
8
|
-
...n,
|
|
9
|
-
modelValue: [
|
|
10
|
-
String,
|
|
11
|
-
Number,
|
|
12
|
-
Boolean
|
|
13
|
-
],
|
|
14
|
-
size: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: "default"
|
|
17
|
-
},
|
|
18
|
-
validateEvent: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: !0
|
|
21
|
-
},
|
|
22
|
-
textColor: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: "#ffffff"
|
|
25
|
-
},
|
|
26
|
-
fill: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "#409eff"
|
|
29
|
-
},
|
|
30
|
-
ariaLabel: String,
|
|
31
|
-
name: String,
|
|
32
|
-
id: String,
|
|
33
|
-
options: {
|
|
34
|
-
type: Array,
|
|
35
|
-
default: () => []
|
|
36
|
-
},
|
|
37
|
-
props: {
|
|
38
|
-
type: Object,
|
|
39
|
-
default: () => ({
|
|
40
|
-
value: "value",
|
|
41
|
-
label: "label",
|
|
42
|
-
disabled: "disabled"
|
|
43
|
-
})
|
|
44
|
-
},
|
|
45
|
-
type: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: "radio"
|
|
48
|
-
},
|
|
49
|
-
border: Boolean,
|
|
50
|
-
gender: Boolean,
|
|
51
|
-
overFlow: Boolean,
|
|
52
|
-
confirm: Boolean,
|
|
53
|
-
trigger: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: "change"
|
|
56
|
-
},
|
|
57
|
-
labelProp: {
|
|
58
|
-
type: String,
|
|
59
|
-
default: "name"
|
|
60
|
-
},
|
|
61
|
-
valueProp: {
|
|
62
|
-
type: String,
|
|
63
|
-
default: "code"
|
|
64
|
-
},
|
|
65
|
-
english: Boolean,
|
|
66
|
-
chinese: Boolean,
|
|
67
|
-
typing: Boolean,
|
|
68
|
-
classic: {
|
|
69
|
-
type: Boolean,
|
|
70
|
-
default: !0
|
|
71
|
-
},
|
|
72
|
-
fillRow: Boolean,
|
|
73
|
-
ellipsis: Boolean,
|
|
74
|
-
inline: Boolean,
|
|
75
|
-
allowCancel: Boolean,
|
|
76
|
-
radioType: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: "radio"
|
|
79
|
-
},
|
|
80
|
-
dictType: String
|
|
81
|
-
}, p = {
|
|
82
|
-
modelValue: !0,
|
|
83
|
-
disabled: !0,
|
|
84
|
-
type: !0,
|
|
85
|
-
options: !0
|
|
86
|
-
}, m = (e) => n[e] === void 0 && p[e] !== !0;
|
|
87
|
-
//#endregion
|
|
88
|
-
//#region src/components/form/FormRadioGroup.vue?vue&type=script&lang.jsx
|
|
89
|
-
function h(e) {
|
|
90
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !o(e);
|
|
91
|
-
}
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region src/components/form/FormRadioGroup.vue
|
|
94
|
-
var g = {
|
|
95
|
-
name: "FormRadioGroup",
|
|
96
|
-
inheritAttrs: !1,
|
|
97
|
-
props: { ...f },
|
|
98
|
-
emits: { ...e },
|
|
99
|
-
setup(e, { slots: n, attrs: o, emit: f }) {
|
|
100
|
-
let p = c(e, "modelValue"), { render: g, disabled: _, listeners: v, inputProps: y } = t(e, {
|
|
101
|
-
emit: f,
|
|
102
|
-
slots: n,
|
|
103
|
-
attrs: o,
|
|
104
|
-
predicate: m,
|
|
105
|
-
messagePrefix: "请选择"
|
|
106
|
-
}), b = i(() => e.classic ? "label" : e.labelProp), x = i(() => e.classic ? "value" : e.valueProp), { dictItems: S } = r(e), C = i(() => e.dictType ? S.value : e.gender ? [{
|
|
107
|
-
[b.value]: "男",
|
|
108
|
-
[x.value]: e.chinese ? "男" : e.typing ? 1 : "1"
|
|
109
|
-
}, {
|
|
110
|
-
[b.value]: "女",
|
|
111
|
-
[x.value]: e.chinese ? "女" : e.typing ? 2 : "2"
|
|
112
|
-
}] : e.confirm ? [{
|
|
113
|
-
[b.value]: "是",
|
|
114
|
-
[x.value]: e.chinese ? "是" : e.english ? "Y" : e.typing ? 1 : "1"
|
|
115
|
-
}, {
|
|
116
|
-
[b.value]: "否",
|
|
117
|
-
[x.value]: e.chinese ? "否" : e.english ? "N" : e.typing ? 0 : "0"
|
|
118
|
-
}] : e.options);
|
|
119
|
-
return () => g({ vNodes: a(d, s(v.value, y.value, {
|
|
120
|
-
modelValue: p.value,
|
|
121
|
-
"onUpdate:modelValue": (e) => p.value = e,
|
|
122
|
-
disabled: _.value
|
|
123
|
-
}), {
|
|
124
|
-
...n,
|
|
125
|
-
default: n.default || (() => {
|
|
126
|
-
var t;
|
|
127
|
-
return (t = C.value) == null ? void 0 : t.map(({ value: t, label: n, disabled: r }) => e.type === "button" || e.radioType === "button" ? a(u, {
|
|
128
|
-
key: t,
|
|
129
|
-
value: t,
|
|
130
|
-
disabled: r
|
|
131
|
-
}, h(n) ? n : { default: () => [n] }) : a(l, {
|
|
132
|
-
key: t,
|
|
133
|
-
value: t,
|
|
134
|
-
disabled: r
|
|
135
|
-
}, h(n) ? n : { default: () => [n] }));
|
|
136
|
-
})
|
|
137
|
-
}) });
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
//#endregion
|
|
141
|
-
export { g as t };
|
package/chunks/C6Dq9Dgb.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { o as e, r as t } from "./AAZfNtly.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 };
|
package/chunks/C6u76g6o.mjs
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { n as e, o as t, t as n } from "./BvKUeniN.mjs";
|
|
2
|
-
import { n as r, t as i } from "./C6Dq9Dgb.mjs";
|
|
3
|
-
import { validatePhoneNum as a } from "@web-utils/core";
|
|
4
|
-
import { computed as o, createVNode as s, mergeProps as c, useModel as l } from "vue";
|
|
5
|
-
import { ElInput as u } from "element-plus/es";
|
|
6
|
-
//#region src/utils/form-validate.ts
|
|
7
|
-
var d = (e, t, n) => t && !/^[A-Za-z0-9\u4e00-\u9fa5_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
|
|
8
|
-
function f(e, t, n) {
|
|
9
|
-
t && !/^[1-9][0-9]{5}(18|19|(2[0-9]))[0-9]{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)[0-9]{3}[0-9Xx]$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
|
|
10
|
-
}
|
|
11
|
-
function p(e, t, n) {
|
|
12
|
-
if (this.$refs.table.$refs.table.records.length === 0) {
|
|
13
|
-
n(Error(e.message || `请添加${e.label}`));
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
n();
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region src/components/form/props/input.ts
|
|
20
|
-
var m = {
|
|
21
|
-
...r,
|
|
22
|
-
...i,
|
|
23
|
-
type: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: "text"
|
|
26
|
-
},
|
|
27
|
-
modelValue: [String, Number],
|
|
28
|
-
modelModifiers: Object,
|
|
29
|
-
maxlength: {
|
|
30
|
-
type: [String, Number],
|
|
31
|
-
default: 255
|
|
32
|
-
},
|
|
33
|
-
minlength: [String, Number],
|
|
34
|
-
showWordLimit: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: !1
|
|
37
|
-
},
|
|
38
|
-
wordLimitPosition: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: "inside"
|
|
41
|
-
},
|
|
42
|
-
placeholder: String,
|
|
43
|
-
clearable: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: !0
|
|
46
|
-
},
|
|
47
|
-
clearIcon: [String, Object],
|
|
48
|
-
formatter: Function,
|
|
49
|
-
parser: Function,
|
|
50
|
-
showPassword: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: !1
|
|
53
|
-
},
|
|
54
|
-
size: String,
|
|
55
|
-
prefixIcon: [String, Object],
|
|
56
|
-
suffixIcon: [String, Object],
|
|
57
|
-
rows: {
|
|
58
|
-
type: Number,
|
|
59
|
-
default: 4
|
|
60
|
-
},
|
|
61
|
-
autosize: [Boolean, Object],
|
|
62
|
-
autocomplete: {
|
|
63
|
-
type: String,
|
|
64
|
-
default: "off"
|
|
65
|
-
},
|
|
66
|
-
name: String,
|
|
67
|
-
readonly: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: !1
|
|
70
|
-
},
|
|
71
|
-
max: [String, Number],
|
|
72
|
-
min: [String, Number],
|
|
73
|
-
step: [String, Number],
|
|
74
|
-
resize: String,
|
|
75
|
-
autofocus: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
default: !1
|
|
78
|
-
},
|
|
79
|
-
form: String,
|
|
80
|
-
ariaLabel: String,
|
|
81
|
-
tabindex: [String, Number],
|
|
82
|
-
validateEvent: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
default: !0
|
|
85
|
-
},
|
|
86
|
-
inputStyle: [String, Object],
|
|
87
|
-
inputmode: String,
|
|
88
|
-
countGraphemes: Function,
|
|
89
|
-
prepend: String,
|
|
90
|
-
append: String,
|
|
91
|
-
prefix: String,
|
|
92
|
-
suffix: String,
|
|
93
|
-
picker: Boolean,
|
|
94
|
-
readonlyGrey: {
|
|
95
|
-
type: Boolean,
|
|
96
|
-
default: !0
|
|
97
|
-
}
|
|
98
|
-
}, h = {
|
|
99
|
-
readonly: !0,
|
|
100
|
-
prefixIcon: !0,
|
|
101
|
-
disabled: !0,
|
|
102
|
-
suffixIcon: !0,
|
|
103
|
-
placeholder: !0,
|
|
104
|
-
modelValue: !0,
|
|
105
|
-
block: !0,
|
|
106
|
-
readonlyGrey: !0,
|
|
107
|
-
picker: !0,
|
|
108
|
-
append: !0,
|
|
109
|
-
prefix: !0,
|
|
110
|
-
suffix: !0,
|
|
111
|
-
prepend: !0
|
|
112
|
-
}, g = (e) => r[e] === void 0 && h[e] !== !0, _ = {
|
|
113
|
-
name: "FormInput",
|
|
114
|
-
inheritAttrs: !1,
|
|
115
|
-
props: { ...m },
|
|
116
|
-
emits: { ...e },
|
|
117
|
-
setup(e, { emit: r, slots: i, attrs: p }) {
|
|
118
|
-
let m = l(e, "modelValue"), h = `请输入正确的${e.label}!`, { render: _, placeholder: v, disabled: y, listeners: b, inputProps: x, printing: S } = t(e, {
|
|
119
|
-
emit: r,
|
|
120
|
-
slots: i,
|
|
121
|
-
attrs: p,
|
|
122
|
-
rules: o(() => {
|
|
123
|
-
if (!e.type || e.type === "textarea") return null;
|
|
124
|
-
let t = {
|
|
125
|
-
message: h,
|
|
126
|
-
trigger: "blur"
|
|
127
|
-
};
|
|
128
|
-
if (e.type === "email") t.validator = d;
|
|
129
|
-
else if (e.type === "idcard") t.validator = f;
|
|
130
|
-
else if (e.type === "phone") t.validator = a;
|
|
131
|
-
else return null;
|
|
132
|
-
return [t];
|
|
133
|
-
}),
|
|
134
|
-
predicate: g
|
|
135
|
-
});
|
|
136
|
-
return () => _({ vNodes: S.value ? e.modelValue : s(u, c(b.value, x.value, {
|
|
137
|
-
class: ["form-input", {
|
|
138
|
-
"is-readonly": e.readonlyGrey && e.readonly && !e.picker,
|
|
139
|
-
"el-input-cursor-pointer": e.picker && !y.value
|
|
140
|
-
}],
|
|
141
|
-
modelValue: m.value,
|
|
142
|
-
"onUpdate:modelValue": (e) => m.value = e,
|
|
143
|
-
disabled: y.value,
|
|
144
|
-
placeholder: v.value,
|
|
145
|
-
readonly: e.readonly || e.picker,
|
|
146
|
-
"prefix-icon": n({ icon: e.picker ? "el-icon-search" : e.prefixIcon }),
|
|
147
|
-
"suffix-icon": n({ icon: e.suffixIcon })
|
|
148
|
-
}), {
|
|
149
|
-
prefix: i.prefix || e.prefix ? () => e.prefix : null,
|
|
150
|
-
suffix: i.suffix || e.suffix ? () => e.suffix : null,
|
|
151
|
-
"password-icon": i["password-icon"],
|
|
152
|
-
prepend: i.prepend || e.prepend ? () => e.prepend : null,
|
|
153
|
-
append: i.append || e.append ? () => e.append : null
|
|
154
|
-
}) });
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
//#endregion
|
|
158
|
-
export { m as n, p as r, _ as t };
|