vft 0.0.119 → 0.0.121
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/attributes.json +1 -1
- package/es/component.js +25 -23
- package/es/components/backtop/backtop.vue2.js +3 -2
- package/es/components/button/button.vue2.js +21 -21
- package/es/components/context-menu/context-menu.vue2.js +3 -2
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +53 -57
- package/es/components/footer-layout/footer-layout.vue2.js +3 -2
- package/es/components/header-layout/header-layout.vue2.js +3 -2
- package/es/components/index.js +269 -261
- package/es/components/md-container/md-container.vue2.js +3 -2
- package/es/components/menu/menu-item.vue2.js +3 -2
- package/es/components/menu/sub-menu.vue2.js +3 -2
- package/es/components/message/message.vue2.js +12 -12
- package/es/components/modal/index.js +15 -0
- package/es/components/modal/modal.vue.js +4 -0
- package/es/components/modal/modal.vue2.js +92 -0
- package/es/components/modal/style/css.js +4 -0
- package/es/components/modal/style/index.js +4 -0
- package/es/components/modal/use/use-modal.js +95 -0
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +15 -14
- package/es/components/multiple-tabs/tab-content.vue2.js +11 -12
- package/es/components/multiple-tabs/use/use-multiple-tabs.js +22 -23
- package/es/components/result/result.vue2.js +3 -2
- package/es/components/side-menu/side-menu.vue2.js +26 -25
- package/es/components/super-form/component-map.js +24 -23
- package/es/components/super-form/super-form-action.vue2.js +28 -29
- package/es/components/super-form/super-form-item.vue2.js +132 -123
- package/es/components/super-form/super-form.vue2.js +139 -136
- package/es/components/super-form/use/use-form-events.js +144 -139
- package/es/components/table/field.js +90 -52
- package/es/components/table/index.js +15 -12
- package/es/components/table/types.js +1 -0
- package/es/components/tabs/tab-nav.vue2.js +3 -2
- package/es/components/upload/upload-content.vue2.js +2 -2
- package/es/components/upload/upload.vue2.js +40 -49
- package/es/index.js +354 -346
- package/es/package.json.js +1 -1
- package/lib/component.cjs +1 -1
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/message/message.vue2.cjs +1 -1
- package/lib/components/modal/index.cjs +1 -0
- package/lib/components/modal/modal.vue.cjs +1 -0
- package/lib/components/modal/modal.vue2.cjs +1 -0
- package/lib/components/modal/style/css.cjs +1 -0
- package/lib/components/modal/style/index.cjs +1 -0
- package/lib/components/modal/use/use-modal.cjs +1 -0
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-multiple-tabs.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/super-form/component-map.cjs +1 -1
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/super-form/use/use-form-events.cjs +1 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/index.cjs +1 -1
- package/lib/components/table/types.cjs +1 -0
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/upload/upload-content.vue2.cjs +1 -1
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +3 -3
- package/tags.json +1 -1
- package/theme-style/src/index.scss +1 -0
- package/theme-style/src/modal.scss +0 -0
- package/theme-style/vft-modal.css +0 -0
- package/web-types.json +1 -1
- /package/es/components/{table/type.js → modal/types.js} +0 -0
- /package/lib/components/{table/type.cjs → modal/types.cjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as F, computed as w, unref as f, useSlots as $, createVNode as p, mergeProps as O, withDirectives as z, vShow as X, isVNode as Y, createTextVNode as Q } from "vue";
|
|
2
2
|
import { VftDivider as Z } from "../divider/index.js";
|
|
3
3
|
import "../icon/index.js";
|
|
4
4
|
import "../avatar/index.js";
|
|
@@ -10,7 +10,7 @@ import "../collapse-transition/index.js";
|
|
|
10
10
|
import "../tooltip/index.js";
|
|
11
11
|
import "../popover/index.js";
|
|
12
12
|
import "../menu/index.js";
|
|
13
|
-
import { isFunction as
|
|
13
|
+
import { isFunction as R, isBoolean as K, cloneDeep as _, isNull as ee, upperFirst as te } from "@vft/utils";
|
|
14
14
|
import "../context-menu/context-menu.vue2.js";
|
|
15
15
|
import "../multiple-tabs/index.js";
|
|
16
16
|
import "../header-layout/index.js";
|
|
@@ -37,7 +37,7 @@ import "../clamp-toggle/index.js";
|
|
|
37
37
|
import "../page-wrapper/index.js";
|
|
38
38
|
import "../exception/index.js";
|
|
39
39
|
import "../search/index.js";
|
|
40
|
-
import { VftFormItem as
|
|
40
|
+
import { VftFormItem as oe } from "../form/index.js";
|
|
41
41
|
import "../button/index.js";
|
|
42
42
|
import "../checkbox/index.js";
|
|
43
43
|
import "../radio/index.js";
|
|
@@ -57,7 +57,7 @@ import "../image-viewer/index.js";
|
|
|
57
57
|
import "../list-cell/index.js";
|
|
58
58
|
import "../dialog/index.js";
|
|
59
59
|
import "../date-time-select/index.js";
|
|
60
|
-
import { VftCol as
|
|
60
|
+
import { VftCol as k } from "../col/index.js";
|
|
61
61
|
import "../row/index.js";
|
|
62
62
|
import "../horizontal-menu/index.js";
|
|
63
63
|
import "../time-picker/index.js";
|
|
@@ -76,6 +76,7 @@ import "../autocomplete/index.js";
|
|
|
76
76
|
import "./index.js";
|
|
77
77
|
import "../progress/index.js";
|
|
78
78
|
import "../upload/index.js";
|
|
79
|
+
import "../modal/index.js";
|
|
79
80
|
import "../md-container/index.js";
|
|
80
81
|
import "../md-comment/index.js";
|
|
81
82
|
import "../md-tabs/index.js";
|
|
@@ -83,20 +84,20 @@ import "../md-vue-playground/index.js";
|
|
|
83
84
|
import "../md-code-demo/index.js";
|
|
84
85
|
import "../md-code-tabs/index.js";
|
|
85
86
|
import "../message/index.js";
|
|
86
|
-
import { useNamespace as
|
|
87
|
+
import { useNamespace as re } from "../../hooks/use-namespace/index.js";
|
|
87
88
|
import "@popperjs/core";
|
|
88
89
|
import "lodash";
|
|
89
90
|
import "../../hooks/use-z-index/index.js";
|
|
90
91
|
import "@vueuse/core";
|
|
91
92
|
import "../../utils/ns-cover.js";
|
|
92
|
-
import { FormCompEnum as s, componentMap as
|
|
93
|
-
import { createPlaceholderMessage as
|
|
93
|
+
import { FormCompEnum as s, componentMap as L, isInput as ie, isDatePicker as ne, isRangePicker as se } from "./component-map.js";
|
|
94
|
+
import { createPlaceholderMessage as B } from "./use/helper.js";
|
|
94
95
|
function v(t) {
|
|
95
96
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !Y(t);
|
|
96
97
|
}
|
|
97
|
-
const me =
|
|
98
|
+
const me = F({
|
|
98
99
|
inheritAttrs: !1
|
|
99
|
-
}),
|
|
100
|
+
}), zt = /* @__PURE__ */ F({
|
|
100
101
|
...me,
|
|
101
102
|
__name: "super-form-item",
|
|
102
103
|
props: {
|
|
@@ -113,25 +114,25 @@ const me = k({
|
|
|
113
114
|
}
|
|
114
115
|
},
|
|
115
116
|
setup(t) {
|
|
116
|
-
const D =
|
|
117
|
+
const D = re("super-form"), d = w(() => {
|
|
117
118
|
const {
|
|
118
|
-
mergeDynamicData:
|
|
119
|
+
mergeDynamicData: r
|
|
119
120
|
} = t.formProps;
|
|
120
121
|
return {
|
|
121
122
|
field: t.schema.field,
|
|
122
123
|
model: t.formModel,
|
|
123
124
|
values: {
|
|
124
|
-
...
|
|
125
|
+
...r,
|
|
125
126
|
...t.allDefaultValues,
|
|
126
127
|
...t.formModel
|
|
127
128
|
},
|
|
128
129
|
schema: t.schema
|
|
129
130
|
};
|
|
130
|
-
}),
|
|
131
|
+
}), x = w(() => {
|
|
131
132
|
let {
|
|
132
|
-
componentProps:
|
|
133
|
+
componentProps: r = {}
|
|
133
134
|
} = t.schema;
|
|
134
|
-
|
|
135
|
+
R(r) && (r = r({
|
|
135
136
|
schema: t.schema,
|
|
136
137
|
tableAction: t.tableAction,
|
|
137
138
|
formModel: t.formModel,
|
|
@@ -169,218 +170,226 @@ const me = k({
|
|
|
169
170
|
}], [s.MONTHRANGE_PICKER, {
|
|
170
171
|
type: s.MONTHRANGE_PICKER
|
|
171
172
|
}]]);
|
|
172
|
-
return e.has(t.schema.component) && (
|
|
173
|
+
return e.has(t.schema.component) && (r = Object.assign(e.get(t.schema.component) || {}, r)), r;
|
|
173
174
|
}), H = w(() => {
|
|
174
175
|
const {
|
|
175
|
-
disabled:
|
|
176
|
+
disabled: r
|
|
176
177
|
} = t.formProps, {
|
|
177
178
|
dynamicDisabled: e
|
|
178
179
|
} = t.schema, {
|
|
179
180
|
disabled: a = !1
|
|
180
|
-
} =
|
|
181
|
-
let m = !!
|
|
182
|
-
return K(e) && (m = e),
|
|
181
|
+
} = f(x);
|
|
182
|
+
let m = !!r || a;
|
|
183
|
+
return K(e) && (m = e), R(e) && (m = e(f(d))), m;
|
|
183
184
|
});
|
|
184
185
|
function j() {
|
|
185
186
|
const {
|
|
186
|
-
show:
|
|
187
|
+
show: r,
|
|
187
188
|
ifShow: e
|
|
188
189
|
} = t.schema, {
|
|
189
190
|
showAdvancedButton: a
|
|
190
191
|
} = t.formProps, m = a && K(t.isAdvanced) ? t.isAdvanced : !0;
|
|
191
|
-
let l = !0,
|
|
192
|
-
return K(
|
|
192
|
+
let l = !0, u = !0;
|
|
193
|
+
return K(r) && (l = r), K(e) && (u = e), R(r) && (l = r(f(d))), R(e) && (u = e(f(d))), l = l && m, {
|
|
193
194
|
isShow: l,
|
|
194
|
-
isIfShow:
|
|
195
|
+
isIfShow: u
|
|
195
196
|
};
|
|
196
197
|
}
|
|
197
198
|
function G() {
|
|
198
199
|
const {
|
|
199
|
-
rules:
|
|
200
|
+
rules: r = [],
|
|
200
201
|
component: e,
|
|
201
202
|
rulesMessageJoinLabel: a,
|
|
202
203
|
label: m,
|
|
203
204
|
dynamicRule: l,
|
|
204
|
-
required:
|
|
205
|
-
dynamicRuleAdd:
|
|
205
|
+
required: u,
|
|
206
|
+
dynamicRuleAdd: A = !0
|
|
206
207
|
} = t.schema;
|
|
207
|
-
if (
|
|
208
|
-
return l(
|
|
209
|
-
let
|
|
208
|
+
if (R(l) && !A)
|
|
209
|
+
return l(f(d));
|
|
210
|
+
let o = _(r);
|
|
210
211
|
const {
|
|
211
|
-
rulesMessageJoinLabel:
|
|
212
|
-
} = t.formProps,
|
|
213
|
-
function
|
|
214
|
-
const
|
|
215
|
-
return i === void 0 || ee(i) || Array.isArray(i) && i.length === 0 || typeof i == "string" && i.trim() === "" || typeof i == "object" && Reflect.has(i, "checked") && Reflect.has(i, "halfChecked") && Array.isArray(i.checked) && Array.isArray(i.halfChecked) && i.checked.length === 0 && i.halfChecked.length === 0 ? Promise.reject(
|
|
212
|
+
rulesMessageJoinLabel: g
|
|
213
|
+
} = t.formProps, y = Reflect.has(t.schema, "rulesMessageJoinLabel") ? a : g, I = B(e, `${y ? m : ""}`);
|
|
214
|
+
function M(n, i) {
|
|
215
|
+
const E = n.message || I;
|
|
216
|
+
return i === void 0 || ee(i) || Array.isArray(i) && i.length === 0 || typeof i == "string" && i.trim() === "" || typeof i == "object" && Reflect.has(i, "checked") && Reflect.has(i, "halfChecked") && Array.isArray(i.checked) && Array.isArray(i.halfChecked) && i.checked.length === 0 && i.halfChecked.length === 0 ? Promise.reject(E) : Promise.resolve();
|
|
216
217
|
}
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
required:
|
|
220
|
-
validator:
|
|
221
|
-
}] :
|
|
222
|
-
required:
|
|
223
|
-
validator:
|
|
218
|
+
const b = R(u) ? u(f(d)) : u;
|
|
219
|
+
b && (!o || o.length === 0 ? o = [{
|
|
220
|
+
required: b,
|
|
221
|
+
validator: M
|
|
222
|
+
}] : o.findIndex((i) => Reflect.has(i, "required")) === -1 && o.unshift({
|
|
223
|
+
required: b,
|
|
224
|
+
validator: M
|
|
224
225
|
}));
|
|
225
|
-
const
|
|
226
|
-
if (
|
|
227
|
-
const n =
|
|
226
|
+
const h = o.findIndex((n) => Reflect.has(n, "required") && !Reflect.has(n, "validator"));
|
|
227
|
+
if (h !== -1) {
|
|
228
|
+
const n = o[h], {
|
|
228
229
|
isShow: i
|
|
229
230
|
} = j();
|
|
230
|
-
i || (n.required = !1), e && (Reflect.has(n, "type") || (n.type = e === "InputNumber" ? "number" : "string"), n.message = n.message ||
|
|
231
|
+
i || (n.required = !1), e && (Reflect.has(n, "type") || (n.type = e === "InputNumber" ? "number" : "string"), n.message = n.message || I, (e.includes("Input") || e.includes("Textarea")) && (n.whitespace = !0));
|
|
231
232
|
}
|
|
232
|
-
const
|
|
233
|
-
function
|
|
234
|
-
const
|
|
235
|
-
return ["min", "all"].includes(
|
|
233
|
+
const c = o.findIndex((n) => n.min), P = o.findIndex((n) => n.max);
|
|
234
|
+
function C(n, i, E = "all") {
|
|
235
|
+
const S = (n == null ? void 0 : n.length) || 0;
|
|
236
|
+
return ["min", "all"].includes(E) && S < o[i].min ? Promise.reject(m + "至少为" + o[i].min + "位") : ["max", "all"].includes(E) && S > o[i].max ? Promise.reject(m + "最多" + o[i].max + "位") : Promise.resolve();
|
|
236
237
|
}
|
|
237
|
-
(
|
|
238
|
-
const T =
|
|
239
|
-
return T !== -1 && (
|
|
238
|
+
(c !== -1 || P !== -1) && (c !== -1 && P !== -1 && !o[c].validator && !o[c].message ? o[c].validator = (n, i) => C(i, c) : c !== -1 && !o[c].validator && !o[c].message ? o[c].validator = (n, i) => C(i, c, "min") : P !== -1 && !o[P].validator && !o[P].message && (o[P].validator = (n, i) => C(i, P, "max")));
|
|
239
|
+
const T = o.findIndex((n) => n.len);
|
|
240
|
+
return T !== -1 && (o[T].validator = (n, i) => i.length !== o[T].len ? Promise.reject(m + "必须是" + o[T].len + "位") : Promise.resolve()), R(l) && A && o.push(l(f(d))), o;
|
|
240
241
|
}
|
|
241
242
|
const U = () => {
|
|
242
243
|
var n;
|
|
243
244
|
const {
|
|
244
|
-
renderComponentContent:
|
|
245
|
+
renderComponentContent: r,
|
|
245
246
|
component: e,
|
|
246
247
|
field: a,
|
|
247
248
|
changeEvent: m = "change",
|
|
248
249
|
valueField: l,
|
|
249
|
-
label:
|
|
250
|
-
placeholderJoinLabel:
|
|
250
|
+
label: u,
|
|
251
|
+
placeholderJoinLabel: A = !0
|
|
251
252
|
} = t.schema;
|
|
252
|
-
let
|
|
253
|
-
ie(e) ?
|
|
254
|
-
const
|
|
255
|
-
[
|
|
256
|
-
const [
|
|
257
|
-
g
|
|
258
|
-
const
|
|
253
|
+
let o = m;
|
|
254
|
+
ie(e) ? o = "input" : (ne(e) || e === s.TIME_PICKER) && (o = "update:modelValue");
|
|
255
|
+
const g = `on${te(o)}`, y = {
|
|
256
|
+
[g]: (...i) => {
|
|
257
|
+
const [E] = i;
|
|
258
|
+
h[g] && h[g](...i);
|
|
259
|
+
const S = E ? E.target : null, W = S ? S.value : E;
|
|
259
260
|
t.setFormModel(a, W, t.schema);
|
|
260
261
|
}
|
|
261
|
-
},
|
|
262
|
-
autoSetPlaceHolder:
|
|
263
|
-
size:
|
|
264
|
-
} = t.formProps,
|
|
262
|
+
}, I = L.get(e), {
|
|
263
|
+
autoSetPlaceHolder: M,
|
|
264
|
+
size: b
|
|
265
|
+
} = t.formProps, h = {
|
|
265
266
|
clearable: !0,
|
|
266
|
-
size:
|
|
267
|
-
...
|
|
268
|
-
disabled:
|
|
267
|
+
size: b,
|
|
268
|
+
...f(x),
|
|
269
|
+
disabled: f(H)
|
|
269
270
|
};
|
|
270
|
-
!
|
|
271
|
-
const
|
|
271
|
+
!h.disabled && M && !se(e) && e && (h.placeholder = ((n = f(x)) == null ? void 0 : n.placeholder) || B(e, A ? u : ""));
|
|
272
|
+
const P = {
|
|
272
273
|
[l || "model-value"]: t.formModel[a]
|
|
273
|
-
},
|
|
274
|
-
...
|
|
275
|
-
...
|
|
276
|
-
...
|
|
274
|
+
}, C = {
|
|
275
|
+
...y,
|
|
276
|
+
...h,
|
|
277
|
+
...P
|
|
277
278
|
};
|
|
278
|
-
if (!
|
|
279
|
-
return
|
|
280
|
-
const T =
|
|
281
|
-
...
|
|
279
|
+
if (!r)
|
|
280
|
+
return p(I, C, null);
|
|
281
|
+
const T = R(r) ? {
|
|
282
|
+
...r(f(d))
|
|
282
283
|
} : {
|
|
283
|
-
default: () =>
|
|
284
|
+
default: () => r
|
|
284
285
|
};
|
|
285
|
-
return
|
|
286
|
+
return p(I, C, v(T) ? T : {
|
|
286
287
|
default: () => [T]
|
|
287
288
|
});
|
|
288
289
|
};
|
|
289
290
|
function N() {
|
|
290
291
|
const {
|
|
291
|
-
showLabel:
|
|
292
|
+
showLabel: r = !0,
|
|
292
293
|
label: e,
|
|
293
294
|
subLabel: a
|
|
294
295
|
} = t.schema;
|
|
295
|
-
return
|
|
296
|
+
return r && e ? a ? p("span", null, [e, Q(" "), p("span", null, [a])]) : e : void 0;
|
|
296
297
|
}
|
|
297
298
|
const V = $();
|
|
298
|
-
function
|
|
299
|
-
if (!
|
|
299
|
+
function q(r, e = "default", a) {
|
|
300
|
+
if (!r || !Reflect.has(r, e))
|
|
300
301
|
return null;
|
|
301
|
-
if (!
|
|
302
|
+
if (!R(r[e]))
|
|
302
303
|
return console.error(`${e} is not a function!`), null;
|
|
303
|
-
const m =
|
|
304
|
+
const m = r[e];
|
|
304
305
|
return m ? m(a) : null;
|
|
305
306
|
}
|
|
306
307
|
function J() {
|
|
307
308
|
const {
|
|
308
|
-
itemProps:
|
|
309
|
+
itemProps: r,
|
|
309
310
|
slot: e,
|
|
310
311
|
render: a,
|
|
311
312
|
field: m,
|
|
312
313
|
suffix: l,
|
|
313
|
-
prefix:
|
|
314
|
-
prefixParentStyle:
|
|
314
|
+
prefix: u,
|
|
315
|
+
prefixParentStyle: A
|
|
315
316
|
} = t.schema, {
|
|
316
|
-
autoCleanErrorMessage:
|
|
317
|
-
} = t.formProps,
|
|
317
|
+
autoCleanErrorMessage: o
|
|
318
|
+
} = t.formProps, g = () => e ? q(V, e, f(d)) : a ? a(f(d)) : U(), y = !!l, I = !!u, M = R(l) ? l(f(d)) : l, b = R(u) ? u(f(d)) : u, h = () => {
|
|
318
319
|
t.updateSchema([{
|
|
319
320
|
field: m,
|
|
320
321
|
itemProps: {
|
|
321
322
|
error: ""
|
|
322
323
|
}
|
|
323
324
|
}]);
|
|
324
|
-
},
|
|
325
|
+
}, c = () => p(oe, O({
|
|
325
326
|
prop: m,
|
|
326
327
|
class: [{
|
|
327
|
-
[D.is(l)]:
|
|
328
|
+
[D.is(l)]: y
|
|
328
329
|
}, D.e("item")]
|
|
329
|
-
},
|
|
330
|
-
"onUpdate:error":
|
|
330
|
+
}, r, {
|
|
331
|
+
"onUpdate:error": o ? h : null,
|
|
331
332
|
rules: G()
|
|
332
333
|
}), {
|
|
333
|
-
default: () => [
|
|
334
|
+
default: () => [p("div", {
|
|
334
335
|
class: D.e("container")
|
|
335
|
-
}, [
|
|
336
|
+
}, [p("div", {
|
|
336
337
|
class: D.e("content")
|
|
337
|
-
}, [
|
|
338
|
+
}, [g()]), y && p("span", {
|
|
338
339
|
class: D.m("suffix")
|
|
339
|
-
}, [
|
|
340
|
+
}, [M])])],
|
|
340
341
|
label: N() ? () => N() : void 0
|
|
341
342
|
});
|
|
342
|
-
return
|
|
343
|
-
style:
|
|
344
|
-
}, [
|
|
343
|
+
return I ? p("div", {
|
|
344
|
+
style: A
|
|
345
|
+
}, [p("span", {
|
|
345
346
|
class: D.m("prefix")
|
|
346
|
-
}, [
|
|
347
|
+
}, [b]), c()]) : c();
|
|
347
348
|
}
|
|
348
349
|
return () => {
|
|
349
|
-
let
|
|
350
|
+
let r;
|
|
350
351
|
const {
|
|
351
352
|
colProps: e = {},
|
|
352
353
|
colSlot: a,
|
|
353
354
|
renderColContent: m,
|
|
354
355
|
component: l,
|
|
355
|
-
render:
|
|
356
|
+
render: u,
|
|
357
|
+
quickColSpan: A
|
|
356
358
|
} = t.schema;
|
|
357
|
-
if (!
|
|
359
|
+
if (!L.has(l) && !m && !u)
|
|
358
360
|
return null;
|
|
359
361
|
const {
|
|
360
|
-
baseColProps:
|
|
361
|
-
|
|
362
|
-
|
|
362
|
+
baseColProps: o = {},
|
|
363
|
+
quickColSpan: g
|
|
364
|
+
} = t.formProps, y = g ? {
|
|
365
|
+
span: Math.floor(24 / g),
|
|
366
|
+
...o
|
|
367
|
+
} : {}, I = A ? {
|
|
368
|
+
span: Math.floor(24 / A),
|
|
363
369
|
...e
|
|
370
|
+
} : {}, M = {
|
|
371
|
+
...y,
|
|
372
|
+
...I
|
|
364
373
|
}, {
|
|
365
|
-
isIfShow:
|
|
366
|
-
isShow:
|
|
367
|
-
} = j(),
|
|
374
|
+
isIfShow: b,
|
|
375
|
+
isShow: h
|
|
376
|
+
} = j(), c = f(d), P = () => a ? q(V, a, c) : m ? m(c) : J();
|
|
368
377
|
if (l === s.DIVIDER) {
|
|
369
|
-
let
|
|
370
|
-
return
|
|
378
|
+
let C;
|
|
379
|
+
return p(k, O({
|
|
371
380
|
span: 24
|
|
372
|
-
},
|
|
373
|
-
default: () => [
|
|
374
|
-
default: () => [
|
|
381
|
+
}, I), {
|
|
382
|
+
default: () => [p(Z, f(x), v(C = N()) ? C : {
|
|
383
|
+
default: () => [C]
|
|
375
384
|
})]
|
|
376
385
|
});
|
|
377
386
|
}
|
|
378
|
-
return
|
|
379
|
-
default: () => [
|
|
380
|
-
}), [[X,
|
|
387
|
+
return b && z(p(k, M, v(r = P()) ? r : {
|
|
388
|
+
default: () => [r]
|
|
389
|
+
}), [[X, h]]);
|
|
381
390
|
};
|
|
382
391
|
}
|
|
383
392
|
});
|
|
384
393
|
export {
|
|
385
|
-
|
|
394
|
+
zt as default
|
|
386
395
|
};
|