@web-utils/form-ui 1.0.0-beta54 → 1.0.0-beta56
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 +6 -0
- package/chunks/{B3yVc-P62.mjs → 5KomemiE2.mjs} +20 -20
- package/chunks/{H70Z56YY.mjs → 6GcIyEQV.mjs} +8 -8
- package/chunks/{DjnHvHXo.mjs → 8c9TEVNY.mjs} +3 -2
- package/chunks/AAZfNtly.mjs +119 -0
- package/chunks/{ByTyNsWf.mjs → B3A-CnYr.mjs} +2 -2
- package/chunks/{D5EQJdPL.mjs → BKlMENhV.mjs} +8 -8
- package/chunks/{9MExJqL-.mjs → BNVYEWWW.mjs} +7 -7
- package/chunks/{c0Niqotr.mjs → BTuzBfTA.mjs} +18 -18
- package/chunks/{GI8krYU82.mjs → BZTAuJxn2.mjs} +1 -1
- package/chunks/{DawYTjoT.mjs → BpCiVuKL.mjs} +2 -2
- package/chunks/{D7R9Or2m2.mjs → Bq62m7IR2.mjs} +13 -13
- package/chunks/BvKUeniN.mjs +127 -0
- package/chunks/{CGuDBVCB.mjs → C3MF_-bN.mjs} +11 -11
- package/chunks/{BNXbI4OG.mjs → C6Dq9Dgb.mjs} +1 -1
- package/chunks/{DwkOWXIR.mjs → C6u76g6o.mjs} +21 -21
- package/chunks/{B6yWUT6z.mjs → C7Mak2La.mjs} +2 -2
- package/chunks/{BV-XUugQ.mjs → CLO5X9Lb.mjs} +34 -34
- package/chunks/{DFFNxlqD.mjs → CNK4mfga.mjs} +3 -3
- package/chunks/{BEvOkSfB.mjs → CauzhVSa2.mjs} +10 -10
- package/chunks/{BJYlobMz2.mjs → CdoiMj7L2.mjs} +3 -2
- package/chunks/{CgN7m-1v.mjs → Czz_49pC.mjs} +22 -22
- package/chunks/{XwerN1TU.mjs → D0kIhzQo.mjs} +5 -5
- package/chunks/{CGDnQr1c.mjs → D2B9Y3oT.mjs} +1 -1
- package/chunks/{BjGlxyi6.mjs → DWE67l1f.mjs} +47 -47
- package/chunks/{BqC_VU52.mjs → DZrQmH9Y.mjs} +5 -5
- package/chunks/{BgTCTXs72.mjs → D_L1p3vm2.mjs} +6 -6
- package/chunks/{BqzJ6vY6.mjs → Dluor05A.mjs} +2 -2
- package/chunks/{z5FJgzdc.mjs → Dy_5vPdP.mjs} +8 -8
- package/chunks/{Dytof5EW.mjs → Goee5Y-H.mjs} +13 -13
- package/chunks/{CB9QUXUX.mjs → ecpQ-ODX.mjs} +5 -5
- package/chunks/{D9IFsT272.mjs → g8MIBMw92.mjs} +10 -10
- package/constants/index.d.ts +18 -0
- package/editable-tree/index.d.ts +27 -0
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +3 -0
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.d.ts +6 -0
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +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-config-provider/index.d.ts +18 -0
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +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.d.ts +14 -0
- package/helper/form-item.d.ts +17 -0
- package/helper/form-item.mjs +2 -0
- package/helper/input.d.ts +47 -0
- package/helper/input.mjs +2 -0
- package/helper/sub-table-plus.d.ts +60 -0
- package/index.css +1 -1
- package/index.mjs +34 -34
- package/package.json +1 -1
- package/pageable-table/index.mjs +1 -1
- package/sub-table/index.d.ts +3 -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 +3 -3
- package/toolbar/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
- package/year-calendar/index.mjs +1 -1
- package/year-calendar/style.css +1 -1
- package/chunks/BHbMJZPp.mjs +0 -237
- /package/chunks/{B_RAcbs_.mjs → BNqVEHk_.mjs} +0 -0
- /package/chunks/{DOP3aBxf.mjs → BlxLaWcU.mjs} +0 -0
- /package/chunks/{CPvdsnRN.mjs → BoJgSMkL.mjs} +0 -0
- /package/chunks/{4rnKCvCw.mjs → DTVTvvq-.mjs} +0 -0
- /package/chunks/{DyCO22Ia2.mjs → Dt_s96gL2.mjs} +0 -0
- /package/chunks/{XoImEoke.mjs → xq_LR6R2.mjs} +0 -0
package/year-calendar/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BZTAuJxn2.mjs";
|
|
2
2
|
export { e as default };
|
package/year-calendar/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.c-wrapper[data-v-
|
|
1
|
+
.c-wrapper[data-v-c5d49ea6]{padding:10px}.calendar[data-v-c5d49ea6]{text-align:center;color:#353c46cc;background-color:#fff;border-radius:2px;min-width:0;min-height:295px;text-decoration:none;transition:transform .3s;position:relative;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.calendar[data-v-c5d49ea6]:hover{z-index:2}@media (min-width:1024px){.calendar[data-v-c5d49ea6]:hover{transform:scale(1.15);box-shadow:0 7px 21px #0000001a}}.calendar .calendar__title[data-v-c5d49ea6]{cursor:pointer;border-bottom:1px solid #c4c4c44d;flex:100%;justify-content:center;align-items:center;height:50px;margin-bottom:12px;font-size:18px;font-weight:700;display:flex}.calendar .calendar__body[data-v-c5d49ea6]{flex-wrap:wrap;place-content:flex-start;min-width:194px;padding:0 20px;display:flex}.calendar .calendar__day[data-v-c5d49ea6]{color:#5db3d4;flex:14.28%;justify-content:center;align-items:center;height:31px;font-size:16px;display:flex}.calendar .day__weektitle[data-v-c5d49ea6]{color:#353c46cc}.calendar .day[data-v-c5d49ea6]{cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:5px;justify-content:center;align-items:center;width:22px;height:22px;font-size:14px;display:flex;position:relative}.calendar .day[data-v-c5d49ea6]:after{content:"";z-index:1;background-color:#0000;border-radius:50%;width:10px;height:10px;display:block;position:absolute;top:-5px;right:-5px}.calendar .day.calendar--active[data-v-c5d49ea6]:after{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20fill='%23FF6060'%20d='M12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm5%2011H7v-2h10v2z'/%3e%3c/svg%3e");background-size:100% 100%}.calendar .day[data-v-c5d49ea6]:not(.calendar__day--otherMonth):hover{background-color:#6666661a;border-radius:5px}.calendar .day.calendar--active[data-v-c5d49ea6]{color:#bcbcbc;background-color:#ffbaba80}.calendar .day.calendar--active.info[data-v-c5d49ea6]{color:#fff;background-color:#17a2b8cc}.calendar .day.calendar--active.info[data-v-c5d49ea6]:after{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%2317a2b8'%20d='M0%200h24v24H0V0z'/%3e%3cpath%20fill='white'%20d='M11%207h2v2h-2zm0%204h2v6h-2zm1-9C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm0%2018c-4.41%200-8-3.59-8-8s3.59-8%208-8%208%203.59%208%208-3.59%208-8%208z'/%3e%3c/svg%3e");background-size:100% 100%}.calendar .day.calendar--active.warning[data-v-c5d49ea6]{color:#fff;background-color:#ffc107b3}.calendar .day.calendar--active.warning[data-v-c5d49ea6]:after{background-color:#eaeaea4d;background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23ffc107'%20d='M4.47%2021h15.06c1.54%200%202.5-1.67%201.73-3L13.73%204.99c-.77-1.33-2.69-1.33-3.46%200L2.74%2018c-.77%201.33.19%203%201.73%203zM12%2014c-.55%200-1-.45-1-1v-2c0-.55.45-1%201-1s1%20.45%201%201v2c0%20.55-.45%201-1%201zm1%204h-2v-2h2v2z'/%3e%3c/svg%3e");background-size:100% 100%}.calendar .calendar__day--otherMonth[data-v-c5d49ea6]{color:#eaeaea;cursor:auto}.container__months.hide-sunday .calendar__day:nth-of-type(7n){display:none}.container__months.hide-sunday .calendar__day{flex:16.66%}.container__months.hide-weekend .calendar__day:nth-of-type(7n),.container__months.hide-weekend .calendar__day:nth-of-type(7n-1){display:none}.container__months.hide-weekend .calendar__day{flex:19%}.vue-calendar__container[data-v-5cc87b9a]{background-color:#f6f6f3;border-radius:2px;min-width:0;text-decoration:none;position:relative;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.vue-calendar__container .container__year[data-v-5cc87b9a]{-webkit-user-select:none;user-select:none;text-align:center;background-color:#fff;flex:100%;height:65px;font-size:24px;display:flex}.vue-calendar__container .container__year .year__chooser[data-v-5cc87b9a]{cursor:pointer;color:#000000e6;flex:1;justify-content:center;align-items:center;height:100%;display:flex}.vue-calendar__container .container__year .year__chooser[data-v-5cc87b9a]:hover{background-color:#6666661a}.vue-calendar__container .container__year .year__chooser[data-v-5cc87b9a]:nth-child(4n-3){color:#0000004d}.vue-calendar__container .container__year .year__chooser[data-v-5cc87b9a]:nth-child(2n){color:#0009}.vue-calendar__container .container__year .year__chooser[data-v-5cc87b9a]:nth-child(3){box-shadow:inset 0 -3px #4792bd}.vue-calendar__container .container__months[data-v-5cc87b9a]{flex-wrap:wrap;padding:15px;display:flex}.vue-calendar__container .container__month[data-v-5cc87b9a]{flex:16.66%;padding:8px}@media (max-width:1300px){.vue-calendar__container .container__month[data-v-5cc87b9a]{flex:25%}}@media (max-width:992px){.vue-calendar__container .container__month[data-v-5cc87b9a]{flex:33.3%}}@media (max-width:768px){.vue-calendar__container .container__month[data-v-5cc87b9a]{flex:50%}}@media (max-width:450px){.vue-calendar__container .container__month[data-v-5cc87b9a]{flex:100%}}.vue-calendar__container .p-0[data-v-5cc87b9a]{padding:0}
|
package/chunks/BHbMJZPp.mjs
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { f as e, o as t, p as n } from "./DcTVYqeJ.mjs";
|
|
2
|
-
import { formHolderContextKey as r, formItemConfigProviderContextKey as i, formItemGroupContextKey as a, formViewContextKey as o } from "../constants/index.mjs";
|
|
3
|
-
import { isArray as s, isPlainObject as c, isString as l } from "@web-utils/core";
|
|
4
|
-
import { computed as u, createVNode as d, h as f, inject as p, mergeProps as m, nextTick as h, unref as g, useTemplateRef as _ } from "vue";
|
|
5
|
-
import { ElCol as v, rowContextKey as y } from "element-plus";
|
|
6
|
-
import { ElCol as b, ElFormItem as x, ElTooltip as S } from "element-plus/es";
|
|
7
|
-
//#region src/components/form/props/form-item.ts
|
|
8
|
-
var C = {
|
|
9
|
-
prop: [String, Array],
|
|
10
|
-
label: String,
|
|
11
|
-
labelPosition: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: ""
|
|
14
|
-
},
|
|
15
|
-
labelWidth: [String, Number],
|
|
16
|
-
required: {
|
|
17
|
-
type: Boolean,
|
|
18
|
-
default: !1
|
|
19
|
-
},
|
|
20
|
-
rules: Object,
|
|
21
|
-
error: String,
|
|
22
|
-
showMessage: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !0
|
|
25
|
-
},
|
|
26
|
-
inlineMessage: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
},
|
|
30
|
-
size: String,
|
|
31
|
-
for: String,
|
|
32
|
-
validateStatus: String,
|
|
33
|
-
messagePrefix: String,
|
|
34
|
-
message: String,
|
|
35
|
-
wrapCol: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: !0
|
|
38
|
-
},
|
|
39
|
-
fixedSpan: Number,
|
|
40
|
-
block: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: void 0
|
|
43
|
-
},
|
|
44
|
-
unwrap: Boolean,
|
|
45
|
-
half: Boolean,
|
|
46
|
-
formItemClass: String,
|
|
47
|
-
hideLabel: Boolean,
|
|
48
|
-
tips: { type: String },
|
|
49
|
-
tipsAfterLabel: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: !1
|
|
52
|
-
},
|
|
53
|
-
labelColspan: [Number, String],
|
|
54
|
-
inputColspan: [Number, String],
|
|
55
|
-
labelRowspan: [Number, String],
|
|
56
|
-
inputRowspan: [Number, String]
|
|
57
|
-
}, w = {
|
|
58
|
-
required: !0,
|
|
59
|
-
rules: !0,
|
|
60
|
-
messagePrefix: !0,
|
|
61
|
-
message: !0,
|
|
62
|
-
wrapCol: !0,
|
|
63
|
-
fixedSpan: !0,
|
|
64
|
-
block: !0,
|
|
65
|
-
unwrap: !0,
|
|
66
|
-
half: !0,
|
|
67
|
-
formItemClass: !0,
|
|
68
|
-
hideLabel: !0,
|
|
69
|
-
tips: !0,
|
|
70
|
-
tipsAfterLabel: !0,
|
|
71
|
-
labelColspan: !0,
|
|
72
|
-
inputColspan: !0,
|
|
73
|
-
labelRowspan: !0,
|
|
74
|
-
inputRowspan: !0
|
|
75
|
-
}, T = (e) => C[e] !== void 0 && w[e] !== !0, E = (e, { emit: n, events: r, predicate: i }) => u(() => t(e, i, r, n)), D = {
|
|
76
|
-
span: {
|
|
77
|
-
type: Number,
|
|
78
|
-
default: 12
|
|
79
|
-
},
|
|
80
|
-
offset: {
|
|
81
|
-
type: Number,
|
|
82
|
-
default: 0
|
|
83
|
-
},
|
|
84
|
-
push: {
|
|
85
|
-
type: Number,
|
|
86
|
-
default: 0
|
|
87
|
-
},
|
|
88
|
-
pull: {
|
|
89
|
-
type: Number,
|
|
90
|
-
default: 0
|
|
91
|
-
},
|
|
92
|
-
xs: { type: [Number, Object] },
|
|
93
|
-
sm: { type: [Number, Object] },
|
|
94
|
-
md: { type: [Number, Object] },
|
|
95
|
-
lg: { type: [Number, Object] },
|
|
96
|
-
xl: { type: [Number, Object] },
|
|
97
|
-
tag: {
|
|
98
|
-
type: String,
|
|
99
|
-
default: "div"
|
|
100
|
-
}
|
|
101
|
-
}, O = { span: !0 }, k = (e) => D[e] !== void 0 && O[e] !== !0, A = (e, { emit: n, events: r, predicate: i }) => u(() => t(e, i, r, n)), j = (e) => {
|
|
102
|
-
let t = p(r, null);
|
|
103
|
-
return u(() => e.required === !0 ? !0 : (t == null ? void 0 : t.requiredFieldsMap[e.prop]) === !0);
|
|
104
|
-
}, M = (e, t) => {
|
|
105
|
-
l(t) ? e.push(t) : s(t) ? e.push(...t) : c(t) && e.push(t);
|
|
106
|
-
}, N = (e, { rules: t, attrs: n, block: r, class: i, messagePrefix: a, message: o } = {}) => {
|
|
107
|
-
let s = j(e);
|
|
108
|
-
return u(() => {
|
|
109
|
-
let c = { message: o }, l = g(t);
|
|
110
|
-
Object.keys({
|
|
111
|
-
...C,
|
|
112
|
-
...D
|
|
113
|
-
}).forEach((t) => {
|
|
114
|
-
t === "rules" ? e[t] && l ? c[t] = [...e[t], ...l] : e[t] ? c[t] = e[t] : l && (c[t] = l) : t === "messagePrefix" ? c[t] = e.messagePrefix || a : t === "block" ? c[t] = r ?? e.block : c[t] = e[t];
|
|
115
|
-
});
|
|
116
|
-
let u = [];
|
|
117
|
-
return M(u, g(n == null ? void 0 : n.class)), M(u, g(i)), c.required = s.value, c.class = u, c.style = n == null ? void 0 : n.style, c;
|
|
118
|
-
});
|
|
119
|
-
}, P = {
|
|
120
|
-
name: "FormItemX",
|
|
121
|
-
inheritAttrs: !1,
|
|
122
|
-
props: {
|
|
123
|
-
...C,
|
|
124
|
-
...D
|
|
125
|
-
},
|
|
126
|
-
setup(e, { attrs: t, slots: n, expose: a }) {
|
|
127
|
-
let o = p(y, null), s = p(i, null), c = p(r, null), l = t.embed ? u(() => t.disabled) : I(e), f = E(e, { predicate: T }), g = A(e, { predicate: k }), v = u(() => (s == null ? void 0 : s.reactive) === !0 && s.block === !1 && e.fixedSpan === void 0 && !e.half), C = j(e), w = _("formItem"), D = u(() => (s == null ? void 0 : s.wrapCol) === !1 ? !1 : !!o && e.wrapCol), O = u(() => c != null && c.tableForm ? "" : s != null && s.block ? "100%" : e.half && D.value ? `calc(50% - ${o.gutter.value / 2}px)` : ""), M = u(() => (s == null ? void 0 : s.block) === !0 || e.block || e.half ? 24 : e.span), N = u(() => {
|
|
128
|
-
if (l.value) return [];
|
|
129
|
-
if (C.value) {
|
|
130
|
-
let t = {
|
|
131
|
-
required: !0,
|
|
132
|
-
message: e.message || `${e.messagePrefix || "请输入"}${e.label}`
|
|
133
|
-
};
|
|
134
|
-
return e.rules ? [...e.rules, t] : [t];
|
|
135
|
-
}
|
|
136
|
-
return e.rules;
|
|
137
|
-
});
|
|
138
|
-
return a({
|
|
139
|
-
clearValidate: async () => {
|
|
140
|
-
var e;
|
|
141
|
-
await h(), (e = w.value) == null || e.clearValidate();
|
|
142
|
-
},
|
|
143
|
-
validate: async () => {
|
|
144
|
-
var e;
|
|
145
|
-
await h(), (e = w.value) == null || e.validate();
|
|
146
|
-
}
|
|
147
|
-
}), () => {
|
|
148
|
-
var r;
|
|
149
|
-
let i = n.tips || e.tips, a = i ? d(S, {
|
|
150
|
-
effect: "light",
|
|
151
|
-
content: e.tips,
|
|
152
|
-
offset: 4
|
|
153
|
-
}, {
|
|
154
|
-
default: () => d("i", { class: "el-icon-info form-item-input-info" }, null),
|
|
155
|
-
content: n.tips ? n.tips : null
|
|
156
|
-
}) : null, o = d(x, m(f.value, t, {
|
|
157
|
-
ref: "formItem",
|
|
158
|
-
style: { width: O.value },
|
|
159
|
-
class: [
|
|
160
|
-
"form-item",
|
|
161
|
-
e.formItemClass,
|
|
162
|
-
{
|
|
163
|
-
"form-item-hide-label": e.hideLabel,
|
|
164
|
-
"with-tips": !e.tipsAfterLabel && i,
|
|
165
|
-
required: l.value === !1 && C.value
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
rules: N.value
|
|
169
|
-
}), {
|
|
170
|
-
...n,
|
|
171
|
-
default: () => {
|
|
172
|
-
var t;
|
|
173
|
-
return [(t = n.default) == null ? void 0 : t.call(n, {
|
|
174
|
-
disabled: l.value,
|
|
175
|
-
required: C.value
|
|
176
|
-
}), i && !e.tipsAfterLabel ? a : null];
|
|
177
|
-
},
|
|
178
|
-
label: () => [n.label ? n.label() : e.label, e.tipsAfterLabel ? a : null]
|
|
179
|
-
}), s = [o, (r = n.below) == null ? void 0 : r.call(n)];
|
|
180
|
-
return e.unwrap ? s : D.value ? d(b, m(g.value, v.value ? {
|
|
181
|
-
xs: 24,
|
|
182
|
-
sm: 12,
|
|
183
|
-
md: 12,
|
|
184
|
-
lg: 8,
|
|
185
|
-
xl: 6
|
|
186
|
-
} : {}, { span: M.value }), { default: () => s }) : o;
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
}, F = "update:modelValue", I = (e) => {
|
|
190
|
-
let t = p(r, null), n = p(a, null);
|
|
191
|
-
return u(() => {
|
|
192
|
-
if (e.disabled !== void 0) return e.disabled;
|
|
193
|
-
if (t) {
|
|
194
|
-
if (t.requiredFieldsMap[e.prop] === !0 || t.enabledFieldsMap[e.prop] === !0) return !1;
|
|
195
|
-
if (t.disabledFieldsMap[e.prop] === !0) return !0;
|
|
196
|
-
}
|
|
197
|
-
return (n == null ? void 0 : n.enabled) === !0 ? !1 : (n == null ? void 0 : n.disabled) === !0 ? !0 : (t == null ? void 0 : t.disabled) === !0;
|
|
198
|
-
});
|
|
199
|
-
}, L = { [F]: null }, R = (e, t) => e(F, t), z = (e, { vNodes: t, formItemProps: n, slots: r, disabled: i }) => e.wrapFormItem ? f(P, {
|
|
200
|
-
...n.value,
|
|
201
|
-
embed: !0,
|
|
202
|
-
disabled: i == null ? void 0 : i.value
|
|
203
|
-
}, {
|
|
204
|
-
default: () => t,
|
|
205
|
-
label: r.label,
|
|
206
|
-
error: r.error,
|
|
207
|
-
tips: r.tips,
|
|
208
|
-
below: r.below
|
|
209
|
-
}) : t, B = (r, { emit: i, slots: a, events: s, predicate: c, removeOn: l = !1, attrs: d, block: m, class: h, rules: g, messagePrefix: _ = "请输入", extraFormItemProps: y }) => {
|
|
210
|
-
let b = I(r), x = p(o, null), S = u(() => b.value ? "" : `${_}${r.label}`), C = N(r, {
|
|
211
|
-
rules: g,
|
|
212
|
-
block: m === void 0 ? r.type === "textarea" && r.block === void 0 ? !0 : r.block : m,
|
|
213
|
-
attrs: d,
|
|
214
|
-
class: h,
|
|
215
|
-
message: S.value,
|
|
216
|
-
messagePrefix: _,
|
|
217
|
-
...y
|
|
218
|
-
}), w = (e) => R(i, e), T = (e) => r.col ? f(v, { span: r.block ? 24 : r.span }, { default: () => e }) : e, E = ({ vNodes: e }) => z(r, {
|
|
219
|
-
vNodes: T(e),
|
|
220
|
-
formItemProps: C,
|
|
221
|
-
slots: a,
|
|
222
|
-
disabled: b
|
|
223
|
-
}), D = u(() => t(r, c, s, i)), O = n({ removeOn: l });
|
|
224
|
-
return {
|
|
225
|
-
emitInput: w,
|
|
226
|
-
render: E,
|
|
227
|
-
placeholder: S,
|
|
228
|
-
disabled: b,
|
|
229
|
-
formItemProps: C,
|
|
230
|
-
autoBind: D,
|
|
231
|
-
inputProps: e(r, c),
|
|
232
|
-
listeners: O,
|
|
233
|
-
printing: u(() => (x == null ? void 0 : x.printing) === !0)
|
|
234
|
-
};
|
|
235
|
-
}, V = (e) => e.icon ? f("i", { class: e.icon }) : null;
|
|
236
|
-
//#endregion
|
|
237
|
-
export { P as a, C as c, B as i, L as n, N as o, z as r, D as s, V as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|