@web-utils/form-ui 1.0.0-beta51 → 1.0.0-beta53
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/{Dt3lfDnL.mjs → 7GmKqdbC.mjs} +48 -33
- package/chunks/{6yfBZFOB.mjs → 9MExJqL-.mjs} +4 -3
- package/chunks/{BQk3-Ppb2.mjs → B3yVc-P62.mjs} +38 -39
- package/chunks/{bFbPPcdq.mjs → B6yWUT6z.mjs} +2 -2
- package/chunks/BEvOkSfB.mjs +417 -0
- package/chunks/{D_qiRmiE.mjs → BHbMJZPp.mjs} +69 -62
- package/chunks/{B9gA65rt2.mjs → BJYlobMz2.mjs} +2 -2
- package/chunks/{CJdkjadi.mjs → BNXbI4OG.mjs} +1 -1
- package/chunks/{V2p-PCpL.mjs → BV-XUugQ.mjs} +3 -3
- package/chunks/B_RAcbs_.mjs +108 -0
- package/chunks/{CqVd8D222.mjs → BgTCTXs72.mjs} +4 -3
- package/chunks/{BtcjAHE6.mjs → BjGlxyi6.mjs} +2 -2
- package/chunks/{pIzhYsBe.mjs → BqC_VU52.mjs} +2 -2
- package/chunks/{eae6huQB.mjs → BqzJ6vY6.mjs} +2 -2
- package/chunks/ByTyNsWf.mjs +653 -0
- package/chunks/{BfxDxIg0.mjs → CB9QUXUX.mjs} +2 -2
- package/chunks/CGDnQr1c.mjs +67 -0
- package/chunks/{DKwp6AMl.mjs → CGuDBVCB.mjs} +4 -3
- package/chunks/{C7G-cAoI.mjs → CPvdsnRN.mjs} +1 -1
- package/chunks/{Bwbtu2cp.mjs → CgN7m-1v.mjs} +4 -3
- package/chunks/{D_Fs3bkZ.mjs → D5EQJdPL.mjs} +3 -3
- package/chunks/D7R9Or2m2.mjs +87 -0
- package/chunks/D9IFsT272.mjs +513 -0
- package/chunks/{CuAoMR3n.mjs → DFFNxlqD.mjs} +5 -16
- package/chunks/{BWh6u1O0.mjs → DWMePN6q.mjs} +1 -1
- package/chunks/{CAd1zK9Q.mjs → DawYTjoT.mjs} +2 -2
- package/chunks/{BqWvBF14.mjs → DjnHvHXo.mjs} +2 -2
- package/chunks/{CabldOLo.mjs → DwkOWXIR.mjs} +6 -5
- package/chunks/{BQyL45PF2.mjs → DyCO22Ia2.mjs} +1 -1
- package/chunks/{B1IPSTA6.mjs → Dytof5EW.mjs} +2 -2
- package/chunks/{wXeqV-_7.mjs → H70Z56YY.mjs} +9 -3
- package/chunks/{BBERmTup.mjs → XoImEoke.mjs} +19 -4
- package/chunks/{ByHz4mmh.mjs → XwerN1TU.mjs} +2 -2
- package/chunks/{DA7oGHSX.mjs → c0Niqotr.mjs} +2 -2
- package/chunks/{C2zgFLYO.mjs → oVFbZ6yk.mjs} +30 -30
- package/chunks/{BbSPWDDZ.mjs → z5FJgzdc.mjs} +4 -3
- package/constants/index.d.ts +1 -0
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.d.ts +2 -2
- package/form-cascader/index.d.ts +8 -2
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.d.ts +10 -4
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +8 -2
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.d.ts +8 -2
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.d.ts +8 -2
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +8 -2
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.d.ts +8 -2
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.d.ts +8 -2
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +8 -2
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +8 -2
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +8 -2
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +8 -2
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.d.ts +8 -2
- package/form-input-time/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.d.ts +8 -2
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -1
- package/form-radio-group/index.d.ts +8 -2
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +8 -2
- package/form-rate/index.mjs +1 -1
- package/form-select/index.d.ts +8 -2
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +8 -2
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +8 -2
- package/form-switch/index.mjs +1 -1
- package/form-table/index.d.ts +43 -25
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.d.ts +8 -8
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.d.ts +8 -2
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +12 -12
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.d.ts +8 -2
- package/form-time-select/index.mjs +1 -1
- package/helper/sub-table-plus.d.ts +38 -0
- package/helper/sub-table-plus.mjs +4 -0
- package/index.css +1 -1
- package/index.mjs +35 -35
- package/package.json +1 -1
- package/pageable-table/index.d.ts +11 -11
- package/pageable-table/index.mjs +1 -1
- package/sub-table/index.d.ts +36 -30
- package/sub-table/index.mjs +2 -537
- package/sub-table-plus/index.d.ts +11 -2
- package/sub-table-plus/index.mjs +1 -1
- package/table-column/index.d.ts +8 -5
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.d.ts +14 -12
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.d.ts +4 -0
- package/table-view/index.mjs +16 -8
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/toolbar-button/style.css +1 -0
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +1 -1
- package/chunks/BG8z3V9d2.mjs +0 -643
- package/chunks/BsZgAJX_2.mjs +0 -81
- package/chunks/YFiU0ngn.mjs +0 -622
- package/chunks/gCeDFHo1.mjs +0 -32
- package/chunks/hlha6Bhc.mjs +0 -107
- package/chunks/wDS9KBFw.mjs +0 -67
|
@@ -1,11 +1,11 @@
|
|
|
1
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 } from "../constants/index.mjs";
|
|
3
|
-
import { isArray as
|
|
4
|
-
import { computed as
|
|
5
|
-
import { ElCol as
|
|
6
|
-
import { ElCol as
|
|
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
7
|
//#region src/components/form/props/form-item.ts
|
|
8
|
-
var
|
|
8
|
+
var C = {
|
|
9
9
|
prop: [String, Array],
|
|
10
10
|
label: String,
|
|
11
11
|
labelPosition: {
|
|
@@ -37,7 +37,10 @@ var S = {
|
|
|
37
37
|
default: !0
|
|
38
38
|
},
|
|
39
39
|
fixedSpan: Number,
|
|
40
|
-
block:
|
|
40
|
+
block: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: void 0
|
|
43
|
+
},
|
|
41
44
|
unwrap: Boolean,
|
|
42
45
|
half: Boolean,
|
|
43
46
|
formItemClass: String,
|
|
@@ -51,7 +54,7 @@ var S = {
|
|
|
51
54
|
inputColspan: [Number, String],
|
|
52
55
|
labelRowspan: [Number, String],
|
|
53
56
|
inputRowspan: [Number, String]
|
|
54
|
-
},
|
|
57
|
+
}, w = {
|
|
55
58
|
required: !0,
|
|
56
59
|
rules: !0,
|
|
57
60
|
messagePrefix: !0,
|
|
@@ -69,7 +72,7 @@ var S = {
|
|
|
69
72
|
inputColspan: !0,
|
|
70
73
|
labelRowspan: !0,
|
|
71
74
|
inputRowspan: !0
|
|
72
|
-
},
|
|
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 = {
|
|
73
76
|
span: {
|
|
74
77
|
type: Number,
|
|
75
78
|
default: 12
|
|
@@ -95,34 +98,34 @@ var S = {
|
|
|
95
98
|
type: String,
|
|
96
99
|
default: "div"
|
|
97
100
|
}
|
|
98
|
-
},
|
|
99
|
-
let t =
|
|
100
|
-
return
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
let
|
|
105
|
-
return
|
|
106
|
-
let
|
|
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);
|
|
107
110
|
Object.keys({
|
|
108
|
-
...
|
|
109
|
-
...
|
|
111
|
+
...C,
|
|
112
|
+
...D
|
|
110
113
|
}).forEach((t) => {
|
|
111
|
-
t === "rules" ? e[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];
|
|
112
115
|
});
|
|
113
|
-
let
|
|
114
|
-
return
|
|
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;
|
|
115
118
|
});
|
|
116
|
-
},
|
|
119
|
+
}, P = {
|
|
117
120
|
name: "FormItemX",
|
|
118
121
|
inheritAttrs: !1,
|
|
119
122
|
props: {
|
|
120
|
-
...
|
|
121
|
-
...
|
|
123
|
+
...C,
|
|
124
|
+
...D
|
|
122
125
|
},
|
|
123
126
|
setup(e, { attrs: t, slots: n, expose: a }) {
|
|
124
|
-
let o =
|
|
125
|
-
if (
|
|
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 [];
|
|
126
129
|
if (C.value) {
|
|
127
130
|
let t = {
|
|
128
131
|
required: !0,
|
|
@@ -135,31 +138,31 @@ var S = {
|
|
|
135
138
|
return a({
|
|
136
139
|
clearValidate: async () => {
|
|
137
140
|
var e;
|
|
138
|
-
await
|
|
141
|
+
await h(), (e = w.value) == null || e.clearValidate();
|
|
139
142
|
},
|
|
140
143
|
validate: async () => {
|
|
141
144
|
var e;
|
|
142
|
-
await
|
|
145
|
+
await h(), (e = w.value) == null || e.validate();
|
|
143
146
|
}
|
|
144
147
|
}), () => {
|
|
145
148
|
var r;
|
|
146
|
-
let i = n.tips || e.tips, a = i ?
|
|
149
|
+
let i = n.tips || e.tips, a = i ? d(S, {
|
|
147
150
|
effect: "light",
|
|
148
151
|
content: e.tips,
|
|
149
152
|
offset: 4
|
|
150
153
|
}, {
|
|
151
|
-
default: () =>
|
|
154
|
+
default: () => d("i", { class: "el-icon-info form-item-input-info" }, null),
|
|
152
155
|
content: n.tips ? n.tips : null
|
|
153
|
-
}) : null, o =
|
|
156
|
+
}) : null, o = d(x, m(f.value, t, {
|
|
154
157
|
ref: "formItem",
|
|
155
|
-
style: { width:
|
|
158
|
+
style: { width: O.value },
|
|
156
159
|
class: [
|
|
157
160
|
"form-item",
|
|
158
161
|
e.formItemClass,
|
|
159
162
|
{
|
|
160
163
|
"form-item-hide-label": e.hideLabel,
|
|
161
164
|
"with-tips": !e.tipsAfterLabel && i,
|
|
162
|
-
required:
|
|
165
|
+
required: l.value === !1 && C.value
|
|
163
166
|
}
|
|
164
167
|
],
|
|
165
168
|
rules: N.value
|
|
@@ -168,13 +171,13 @@ var S = {
|
|
|
168
171
|
default: () => {
|
|
169
172
|
var t;
|
|
170
173
|
return [(t = n.default) == null ? void 0 : t.call(n, {
|
|
171
|
-
disabled:
|
|
174
|
+
disabled: l.value,
|
|
172
175
|
required: C.value
|
|
173
176
|
}), i && !e.tipsAfterLabel ? a : null];
|
|
174
177
|
},
|
|
175
178
|
label: () => [n.label ? n.label() : e.label, e.tipsAfterLabel ? a : null]
|
|
176
179
|
}), s = [o, (r = n.below) == null ? void 0 : r.call(n)];
|
|
177
|
-
return e.unwrap ? s : D.value ?
|
|
180
|
+
return e.unwrap ? s : D.value ? d(b, m(g.value, v.value ? {
|
|
178
181
|
xs: 24,
|
|
179
182
|
sm: 12,
|
|
180
183
|
md: 12,
|
|
@@ -183,9 +186,9 @@ var S = {
|
|
|
183
186
|
} : {}, { span: M.value }), { default: () => s }) : o;
|
|
184
187
|
};
|
|
185
188
|
}
|
|
186
|
-
},
|
|
187
|
-
let t =
|
|
188
|
-
return
|
|
189
|
+
}, F = "update:modelValue", I = (e) => {
|
|
190
|
+
let t = p(r, null), n = p(a, null);
|
|
191
|
+
return u(() => {
|
|
189
192
|
if (e.disabled !== void 0) return e.disabled;
|
|
190
193
|
if (t) {
|
|
191
194
|
if (t.requiredFieldsMap[e.prop] === !0 || t.enabledFieldsMap[e.prop] === !0) return !1;
|
|
@@ -193,7 +196,7 @@ var S = {
|
|
|
193
196
|
}
|
|
194
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;
|
|
195
198
|
});
|
|
196
|
-
},
|
|
199
|
+
}, L = { [F]: null }, R = (e, t) => e(F, t), z = (e, { vNodes: t, formItemProps: n, slots: r, disabled: i }) => e.wrapFormItem ? f(P, {
|
|
197
200
|
...n.value,
|
|
198
201
|
embed: !0,
|
|
199
202
|
disabled: i == null ? void 0 : i.value
|
|
@@ -203,28 +206,32 @@ var S = {
|
|
|
203
206
|
error: r.error,
|
|
204
207
|
tips: r.tips,
|
|
205
208
|
below: r.below
|
|
206
|
-
}) : t,
|
|
207
|
-
let
|
|
208
|
-
rules:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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,
|
|
215
221
|
slots: a,
|
|
216
|
-
disabled:
|
|
217
|
-
}),
|
|
222
|
+
disabled: b
|
|
223
|
+
}), D = u(() => t(r, c, s, i)), O = n({ removeOn: l });
|
|
218
224
|
return {
|
|
219
|
-
emitInput:
|
|
220
|
-
render:
|
|
221
|
-
placeholder:
|
|
222
|
-
disabled:
|
|
223
|
-
formItemProps:
|
|
224
|
-
autoBind:
|
|
225
|
-
inputProps: e(r,
|
|
226
|
-
listeners:
|
|
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)
|
|
227
234
|
};
|
|
228
|
-
},
|
|
235
|
+
}, V = (e) => e.icon ? f("i", { class: e.icon }) : null;
|
|
229
236
|
//#endregion
|
|
230
|
-
export {
|
|
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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as e } from "./DcTVYqeJ.mjs";
|
|
2
|
-
import { o as t, r as n } from "./
|
|
3
|
-
import { n as r } from "./
|
|
2
|
+
import { o as t, r as n } from "./BHbMJZPp.mjs";
|
|
3
|
+
import { n as r } from "./BNXbI4OG.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./BHbMJZPp.mjs";
|
|
2
|
+
import { n } from "./BNXbI4OG.mjs";
|
|
3
3
|
import { useDictionary as r } from "../hook/useDictionary.mjs";
|
|
4
|
-
import { t as i } from "./
|
|
4
|
+
import { t as i } from "./DwkOWXIR.mjs";
|
|
5
5
|
import { computed as a, createVNode as o, defineComponent as s, isVNode as c, mergeProps as l, useModel as u } from "vue";
|
|
6
6
|
import { ElCheckbox as d, ElCheckboxButton as f, ElCheckboxGroup as p } from "element-plus/es";
|
|
7
7
|
//#region src/components/form/props/checkbox-group.ts
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { formItemGroupContextKey as e, formViewContextKey as t } from "../constants/index.mjs";
|
|
2
|
+
import n from "../empty-view/index.mjs";
|
|
3
|
+
import { Fragment as r, computed as i, createTextVNode as a, createVNode as o, h as s, inject as c, isVNode as l, onBeforeUnmount as u, onMounted as d, provide as f, reactive as p, ref as m, toRef as h, useTemplateRef as g, vShow as _, watchEffect as v, withDirectives as y } from "vue";
|
|
4
|
+
import { ElCol as b, ElCollapseTransition as x } from "element-plus";
|
|
5
|
+
import { ElRow as S } from "element-plus/es";
|
|
6
|
+
//#region src/components/form/FormItemGroup.vue?vue&type=script&lang.jsx
|
|
7
|
+
function C(e) {
|
|
8
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/form/FormItemGroup.vue
|
|
12
|
+
var w = {
|
|
13
|
+
name: "FormItemGroup",
|
|
14
|
+
props: {
|
|
15
|
+
blockTitle: String,
|
|
16
|
+
tips: String,
|
|
17
|
+
active: Boolean,
|
|
18
|
+
enabled: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: void 0
|
|
21
|
+
},
|
|
22
|
+
disabled: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: void 0
|
|
25
|
+
},
|
|
26
|
+
tag: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "ElCol"
|
|
29
|
+
},
|
|
30
|
+
span: {
|
|
31
|
+
type: Number,
|
|
32
|
+
default: 24
|
|
33
|
+
},
|
|
34
|
+
block: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !0
|
|
37
|
+
},
|
|
38
|
+
wrapRow: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !0
|
|
41
|
+
},
|
|
42
|
+
gutter: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: 20
|
|
45
|
+
},
|
|
46
|
+
collapse: Boolean,
|
|
47
|
+
showTitle: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !0
|
|
50
|
+
},
|
|
51
|
+
notDispatch: Boolean
|
|
52
|
+
},
|
|
53
|
+
setup(l, { expose: w, slots: T }) {
|
|
54
|
+
let E = c(t, null), D = g("root"), O = m(!0), k = h(() => l.enabled), A = h(() => l.disabled), j = i(() => l.enabled === !0 ? !1 : l.disabled === !0), M = i(() => l.tag === "ElCol"), N = () => O.value = !O.value, P = () => {
|
|
55
|
+
O.value = !0;
|
|
56
|
+
};
|
|
57
|
+
v(() => {
|
|
58
|
+
O.value = !l.collapse;
|
|
59
|
+
});
|
|
60
|
+
let F = {
|
|
61
|
+
$el: h(() => M.value ? D.value.$el : D.value),
|
|
62
|
+
enabled: k,
|
|
63
|
+
disabled: A,
|
|
64
|
+
open: P,
|
|
65
|
+
expand: O,
|
|
66
|
+
blockTitle: h(() => l.blockTitle)
|
|
67
|
+
}, I = p(F);
|
|
68
|
+
return f(e, I), d(() => {
|
|
69
|
+
l.notDispatch || E == null || E.addGroup(I);
|
|
70
|
+
}), u(() => {
|
|
71
|
+
l.notDispatch || E == null || E.removeGroup(I);
|
|
72
|
+
}), w(F), () => {
|
|
73
|
+
let e = () => {
|
|
74
|
+
var e;
|
|
75
|
+
return o(r, null, [y(o("div", {
|
|
76
|
+
class: "form-item-group-title",
|
|
77
|
+
onClick: N
|
|
78
|
+
}, [o("span", {
|
|
79
|
+
class: "flex-item",
|
|
80
|
+
style: "flex: 1"
|
|
81
|
+
}, [
|
|
82
|
+
T.title ? T.title() : l.blockTitle,
|
|
83
|
+
T.tips || l.tips ? o("span", { style: "color: #ff0000; font-size: 14px" }, [
|
|
84
|
+
a("("),
|
|
85
|
+
T.tips ? T.tips() : l.tips,
|
|
86
|
+
a(")")
|
|
87
|
+
]) : null,
|
|
88
|
+
(e = T["title-right"]) == null ? void 0 : e.call(T)
|
|
89
|
+
]), o("i", { class: O.value ? "el-icon-arrow-down" : "el-icon-arrow-right" }, null)]), [[_, l.showTitle]]), o(x, null, { default: () => {
|
|
90
|
+
let e;
|
|
91
|
+
return T.default ? l.wrapRow ? y(o(S, { gutter: l.gutter }, C(e = T.default()) ? e : { default: () => [e] }), [[_, O.value]]) : y(o("div", null, [T.default()]), [[_, O.value]]) : y(o(n, {
|
|
92
|
+
"font-size": "14px",
|
|
93
|
+
"empty-tips": "暂无信息"
|
|
94
|
+
}, null), [[_, O.value]]);
|
|
95
|
+
} })]);
|
|
96
|
+
}, t = {
|
|
97
|
+
ref: "root",
|
|
98
|
+
class: ["form-item-group", {
|
|
99
|
+
"default-active": l.active,
|
|
100
|
+
"is-disabled": j.value
|
|
101
|
+
}]
|
|
102
|
+
};
|
|
103
|
+
return M.value && (t.span = l.block ? 24 : l.span), s(M.value ? b : "div", t, M.value ? e : e());
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
export { w as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n, t as r } from "./
|
|
1
|
+
import { i as e, n as t } from "./BHbMJZPp.mjs";
|
|
2
|
+
import { n, t as r } from "./BNXbI4OG.mjs";
|
|
3
3
|
import { createVNode as i, mergeProps as a } from "vue";
|
|
4
4
|
import { ElTimeSelect as o } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/time-select.ts
|
|
@@ -63,7 +63,8 @@ var s = {
|
|
|
63
63
|
popperStyle: [String, Object]
|
|
64
64
|
}, c = {
|
|
65
65
|
disabled: !0,
|
|
66
|
-
modelValue: !0
|
|
66
|
+
modelValue: !0,
|
|
67
|
+
valueOnClear: !0
|
|
67
68
|
}, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
|
|
68
69
|
name: "FormTimeSelect",
|
|
69
70
|
inheritAttrs: !1,
|
|
@@ -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 "./BHbMJZPp.mjs";
|
|
2
|
+
import { n } from "./BNXbI4OG.mjs";
|
|
3
3
|
import { useDictionary as r } from "../hook/useDictionary.mjs";
|
|
4
4
|
import { isNumber as i, isPlainObject as a, isString as o } from "@web-utils/core";
|
|
5
5
|
import { computed as s, createVNode as c, mergeProps as l, ref as u, watchEffect as d } from "vue";
|
|
@@ -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 "./BHbMJZPp.mjs";
|
|
2
|
+
import { n } from "./BNXbI4OG.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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { n as t, t as n } from "./
|
|
1
|
+
import { n as e } from "./BHbMJZPp.mjs";
|
|
2
|
+
import { n as t, t as n } from "./DwkOWXIR.mjs";
|
|
3
3
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
4
|
//#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
|
|
5
5
|
function s(e) {
|