vft 0.0.499 → 0.0.501
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/dist/index.css +1 -1
- package/es/components/autocomplete/autocomplete.vue.d.ts +6 -6
- package/es/components/autocomplete/index.d.ts +18 -18
- package/es/components/button/index.d.ts +9 -9
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/config-provider/hooks/use-global-config.js +3 -3
- package/es/components/image-viewer/image-viewer.vue.d.ts +2 -0
- package/es/components/image-viewer/image-viewer.vue2.js +89 -85
- package/es/components/image-viewer/index.d.ts +18 -0
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/popconfirm/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/popper/index.d.ts +3 -3
- package/es/components/select/index.d.ts +15 -15
- package/es/components/select/select.vue.d.ts +15 -15
- package/es/components/select/useSelect.d.ts +12 -12
- package/es/components/super-form/style/css.d.ts +1 -0
- package/es/components/super-form/style/index.d.ts +1 -0
- package/es/components/super-form/super-form-item.vue2.js +360 -325
- package/es/components/super-form/types.d.ts +3 -1
- package/es/components/table/field.js +32 -33
- package/es/components/table/table.vue2.js +51 -49
- package/es/components/table/use/use-data-source.js +166 -143
- package/es/components/table/use/use-loading.js +11 -11
- package/es/components/table/use/use-table.js +7 -6
- package/es/components/tooltip/index.d.ts +3 -3
- package/es/components/tree/index.d.ts +5 -5
- package/es/components/tree/tree.vue.d.ts +2 -2
- package/es/components/tree-select/select.js +24 -24
- package/es/components/tree-select/tree-select-option.js +18 -7
- package/es/components/tree-select/tree-select.vue2.js +28 -26
- package/es/components/tree-select/tree.js +27 -26
- package/es/components/upload/index.d.ts +15 -15
- package/es/components/upload/upload-content.vue.d.ts +1 -1
- package/es/components/upload/upload.vue.d.ts +1 -1
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/form-register.d.ts +1 -0
- package/es/utils/form-register.js +5 -4
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +6 -6
- package/lib/components/autocomplete/index.d.ts +18 -18
- package/lib/components/button/index.d.ts +9 -9
- package/lib/components/image-viewer/image-viewer.vue.d.ts +2 -0
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/image-viewer/index.d.ts +18 -0
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/popper/index.d.ts +3 -3
- package/lib/components/select/index.d.ts +15 -15
- package/lib/components/select/select.vue.d.ts +15 -15
- package/lib/components/select/useSelect.d.ts +12 -12
- package/lib/components/super-form/style/css.d.ts +1 -0
- package/lib/components/super-form/style/index.d.ts +1 -0
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/types.d.ts +3 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-data-source.cjs +1 -1
- package/lib/components/table/use/use-loading.cjs +1 -1
- package/lib/components/table/use/use-table.cjs +1 -1
- package/lib/components/tooltip/index.d.ts +3 -3
- package/lib/components/tree/index.d.ts +5 -5
- package/lib/components/tree/tree.vue.d.ts +2 -2
- package/lib/components/tree-select/select.cjs +1 -1
- package/lib/components/tree-select/tree-select-option.cjs +1 -1
- package/lib/components/tree-select/tree-select.vue2.cjs +1 -1
- package/lib/components/tree-select/tree.cjs +1 -1
- package/lib/components/upload/index.d.ts +15 -15
- package/lib/components/upload/upload-content.vue.d.ts +1 -1
- package/lib/components/upload/upload.vue.d.ts +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/lib/utils/form-register.cjs +1 -1
- package/lib/utils/form-register.d.ts +1 -0
- package/package.json +5 -5
- package/theme-style/index.css +1 -1
- package/theme-style/src/icon-text.scss +1 -1
- package/theme-style/src/tree-select.scss +8 -0
- package/theme-style/vft-icon-text.css +1 -1
- package/theme-style/vft-tree-select.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as me, ref as
|
|
1
|
+
import { defineComponent as me, ref as G, computed as H, watch as J, onMounted as Pe, nextTick as O, unref as d, useSlots as ke, createVNode as f, mergeProps as U, withDirectives as Ce, vShow as Se, isVNode as ve, createTextVNode as ie, resolveComponent as X } from "vue";
|
|
2
2
|
import "../alert/index.js";
|
|
3
3
|
import "../avatar/index.js";
|
|
4
4
|
import "../avatar-stack/index.js";
|
|
@@ -18,19 +18,19 @@ import "../collapse-transition/index.js";
|
|
|
18
18
|
import "../color-picker/index.js";
|
|
19
19
|
import "../config-provider/index.js";
|
|
20
20
|
import "../container/index.js";
|
|
21
|
-
import { isBoolean as
|
|
21
|
+
import { isBoolean as Z, isFunction as k, singleAttrToObj as ae, isNullOrUndefined as xe, isArray as _, cloneDeep as Ae, isNull as Re, upperFirst as we, isString as Me } from "@vft/utils";
|
|
22
22
|
import "../context-menu/context-menu.vue2.js";
|
|
23
|
-
import { VftIcon as
|
|
23
|
+
import { VftIcon as le } from "../icon/index.js";
|
|
24
24
|
import "../date-picker/index.js";
|
|
25
25
|
import "../date-time-select/index.js";
|
|
26
26
|
import "../descriptions/index.js";
|
|
27
27
|
import "../dialog/index.js";
|
|
28
|
-
import { VftDivider as
|
|
28
|
+
import { VftDivider as Ie } from "../divider/index.js";
|
|
29
29
|
import "../drawer/index.js";
|
|
30
30
|
import "../dropdown/index.js";
|
|
31
31
|
import "../empty/index.js";
|
|
32
32
|
import "../footer-layout/index.js";
|
|
33
|
-
import { VftFormItem as
|
|
33
|
+
import { VftFormItem as Te } from "../form/index.js";
|
|
34
34
|
import "../full-screen/index.js";
|
|
35
35
|
import "../header-layout/index.js";
|
|
36
36
|
import "../horizontal-menu/index.js";
|
|
@@ -100,26 +100,26 @@ import "../md-container/index.js";
|
|
|
100
100
|
import "../md-tabs/index.js";
|
|
101
101
|
import "../md-vue-playground/index.js";
|
|
102
102
|
import "../infinite-scroll/index.js";
|
|
103
|
-
import { FormCompEnum as
|
|
103
|
+
import { FormCompEnum as t, getComponent as se } from "../../utils/form-register.js";
|
|
104
104
|
import "@vueuse/core";
|
|
105
105
|
import "../config-provider/hooks/use-global-config.js";
|
|
106
|
-
import { debounce as
|
|
107
|
-
import { useNamespace as
|
|
106
|
+
import { debounce as qe } from "lodash-es";
|
|
107
|
+
import { useNamespace as Ke } from "../../hooks/use-namespace/index.js";
|
|
108
108
|
import "../../hooks/use-model-toggle/index.js";
|
|
109
109
|
import "@popperjs/core";
|
|
110
110
|
import "../../hooks/use-z-index/index.js";
|
|
111
111
|
import "../message/index.js";
|
|
112
112
|
import "../progress-i/index.js";
|
|
113
113
|
import "./index.js";
|
|
114
|
-
import { isRangePicker as
|
|
114
|
+
import { isRangePicker as Fe, isInput as Le, isDatePicker as Ve } from "./component-map.js";
|
|
115
115
|
import { createPlaceholderMessage as ce } from "./use/helper.js";
|
|
116
|
-
function
|
|
117
|
-
return typeof
|
|
116
|
+
function ee(e) {
|
|
117
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ve(e);
|
|
118
118
|
}
|
|
119
|
-
const
|
|
119
|
+
const je = me({
|
|
120
120
|
inheritAttrs: !1
|
|
121
121
|
}), Wo = /* @__PURE__ */ me({
|
|
122
|
-
...
|
|
122
|
+
...je,
|
|
123
123
|
__name: "super-form-item",
|
|
124
124
|
props: {
|
|
125
125
|
schema: {},
|
|
@@ -130,505 +130,540 @@ const Fe = me({
|
|
|
130
130
|
updateSchema: {},
|
|
131
131
|
formActionType: {}
|
|
132
132
|
},
|
|
133
|
-
setup(
|
|
134
|
-
const
|
|
133
|
+
setup(e) {
|
|
134
|
+
const q = Ke("super-form"), F = G(), P = H(() => {
|
|
135
135
|
const {
|
|
136
|
-
mergeDynamicData:
|
|
137
|
-
} =
|
|
136
|
+
mergeDynamicData: r
|
|
137
|
+
} = e.formProps;
|
|
138
138
|
return {
|
|
139
|
-
field:
|
|
140
|
-
model:
|
|
139
|
+
field: e.schema.field,
|
|
140
|
+
model: e.formModel,
|
|
141
141
|
values: {
|
|
142
|
-
...
|
|
143
|
-
...
|
|
144
|
-
...
|
|
142
|
+
...r,
|
|
143
|
+
...e.allDefaultValues,
|
|
144
|
+
...e.formModel
|
|
145
145
|
},
|
|
146
|
-
schema:
|
|
147
|
-
elRef:
|
|
148
|
-
formActionType:
|
|
146
|
+
schema: e.schema,
|
|
147
|
+
elRef: F,
|
|
148
|
+
formActionType: e.formActionType
|
|
149
149
|
};
|
|
150
|
-
}),
|
|
150
|
+
}), fe = /* @__PURE__ */ new Set([t.Select, t.Radio, t.Checkbox, t.RadioButton, t.CheckboxButton, t.Cascader, t.AutoComplete]), L = /* @__PURE__ */ new Set([t.Select, t.Radio, t.RadioButton, t.Checkbox, t.CheckboxButton, t.Cascader, t.AutoComplete]), z = /* @__PURE__ */ new Set([t.Tree, t.TreeSelect]), Y = () => e.schema.type && fe.has(e.schema.type) ? {
|
|
151
151
|
options: []
|
|
152
|
-
} : {},
|
|
153
|
-
async function
|
|
152
|
+
} : {}, p = G(Y());
|
|
153
|
+
async function ue() {
|
|
154
154
|
const {
|
|
155
|
-
componentProps:
|
|
156
|
-
} =
|
|
157
|
-
if (
|
|
158
|
-
const
|
|
159
|
-
|
|
155
|
+
componentProps: r = {}
|
|
156
|
+
} = e.schema;
|
|
157
|
+
if (k(r)) {
|
|
158
|
+
const o = Y();
|
|
159
|
+
p.value = o;
|
|
160
160
|
try {
|
|
161
|
-
const i =
|
|
162
|
-
schema:
|
|
163
|
-
formModel:
|
|
164
|
-
formActionType:
|
|
165
|
-
}),
|
|
166
|
-
...
|
|
167
|
-
...
|
|
161
|
+
const i = r({
|
|
162
|
+
schema: e.schema,
|
|
163
|
+
formModel: e.formModel,
|
|
164
|
+
formActionType: e.formActionType
|
|
165
|
+
}), n = i instanceof Promise ? await i : i, a = {
|
|
166
|
+
...o,
|
|
167
|
+
...n ?? {}
|
|
168
168
|
};
|
|
169
|
-
L.has(
|
|
169
|
+
L.has(e.schema.type) && (!a.options || !Array.isArray(a.options)) && (a.options = []), p.value = a;
|
|
170
170
|
} catch (i) {
|
|
171
|
-
console.error("componentProps 执行错误:", i),
|
|
171
|
+
console.error("componentProps 执行错误:", i), p.value = Y();
|
|
172
172
|
}
|
|
173
173
|
} else
|
|
174
|
-
|
|
174
|
+
p.value = r, L.has(e.schema.type) && (!p.value.options || !Array.isArray(p.value.options)) && (p.value.options = []);
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
J(() => e.schema.componentProps, (r, o) => (r || o) && ue(), {
|
|
177
177
|
immediate: !0
|
|
178
|
+
}), Pe(() => {
|
|
179
|
+
if (e.schema.type === t.Tree) {
|
|
180
|
+
const r = e.formModel[e.schema.field], o = p.value, i = o?.defaultCheckedKeys, n = o?.includeHalfChecked;
|
|
181
|
+
i && Array.isArray(i) && i.length > 0 && (!r || !Array.isArray(r) || r.length === 0) && (n ? O(() => {
|
|
182
|
+
if (F.value) {
|
|
183
|
+
const a = F.value;
|
|
184
|
+
if (a?.getHalfCheckedKeys) {
|
|
185
|
+
const u = [...a.getHalfCheckedKeys() || [], ...i];
|
|
186
|
+
e.setFormModel(e.schema.field, u, e.schema);
|
|
187
|
+
const C = Symbol.for(`${e.schema.field}_checkedKeys`);
|
|
188
|
+
e.formModel[C] = [...i];
|
|
189
|
+
} else
|
|
190
|
+
e.setFormModel(e.schema.field, [...i], e.schema);
|
|
191
|
+
}
|
|
192
|
+
}) : e.setFormModel(e.schema.field, [...i], e.schema));
|
|
193
|
+
}
|
|
178
194
|
});
|
|
179
|
-
let
|
|
180
|
-
const
|
|
195
|
+
let A = null;
|
|
196
|
+
const N = G(!1), $ = async (r, o) => {
|
|
181
197
|
try {
|
|
182
198
|
const i = {
|
|
183
|
-
...
|
|
184
|
-
},
|
|
185
|
-
|
|
199
|
+
...p.value
|
|
200
|
+
}, n = L.has(e.schema.type);
|
|
201
|
+
p.value = {
|
|
186
202
|
...i,
|
|
187
203
|
loading: !0,
|
|
188
204
|
// 清空 options,避免显示旧数据,确保是数组类型
|
|
189
|
-
...
|
|
205
|
+
...n ? {
|
|
190
206
|
options: []
|
|
191
207
|
} : {}
|
|
192
208
|
};
|
|
193
|
-
const
|
|
194
|
-
type:
|
|
195
|
-
} =
|
|
196
|
-
|
|
209
|
+
const a = await r(d(P)), {
|
|
210
|
+
type: m
|
|
211
|
+
} = e.schema, u = n ? Array.isArray(a) ? a : [] : a;
|
|
212
|
+
n ? p.value = {
|
|
197
213
|
...i,
|
|
198
|
-
options:
|
|
199
|
-
requestResult:
|
|
214
|
+
options: u,
|
|
215
|
+
requestResult: a,
|
|
200
216
|
loading: !1
|
|
201
|
-
} : z.has(
|
|
217
|
+
} : z.has(m) ? p.value = {
|
|
202
218
|
...i,
|
|
203
|
-
data: Array.isArray(
|
|
204
|
-
requestResult:
|
|
219
|
+
data: Array.isArray(a) ? a : a || [],
|
|
220
|
+
requestResult: a,
|
|
205
221
|
loading: !1
|
|
206
|
-
} :
|
|
222
|
+
} : p.value = {
|
|
207
223
|
...i,
|
|
208
|
-
requestResult:
|
|
224
|
+
requestResult: a,
|
|
209
225
|
loading: !1
|
|
210
|
-
},
|
|
226
|
+
}, o && await o(a, d(P));
|
|
211
227
|
} catch (i) {
|
|
212
228
|
console.error("fetchRemoteData 执行错误:", i);
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
...
|
|
229
|
+
const n = L.has(e.schema.type), a = z.has(e.schema.type);
|
|
230
|
+
p.value = {
|
|
231
|
+
...p.value,
|
|
216
232
|
loading: !1,
|
|
217
233
|
// 确保错误时 options 也是数组
|
|
218
|
-
...
|
|
234
|
+
...n ? {
|
|
219
235
|
options: []
|
|
220
236
|
} : {},
|
|
221
237
|
// 确保错误时 tree 组件的 data 也是数组
|
|
222
|
-
...
|
|
238
|
+
...a ? {
|
|
223
239
|
data: []
|
|
224
240
|
} : {}
|
|
225
241
|
};
|
|
226
242
|
} finally {
|
|
227
|
-
await
|
|
243
|
+
await O();
|
|
228
244
|
}
|
|
229
|
-
},
|
|
230
|
-
const
|
|
231
|
-
if (
|
|
232
|
-
if (
|
|
233
|
-
|
|
245
|
+
}, te = () => {
|
|
246
|
+
const r = p.value?.request;
|
|
247
|
+
if (r)
|
|
248
|
+
if (k(r))
|
|
249
|
+
$(r);
|
|
234
250
|
else {
|
|
235
251
|
const {
|
|
236
|
-
watchFields:
|
|
252
|
+
watchFields: o = [],
|
|
237
253
|
options: i = {},
|
|
238
|
-
wait:
|
|
239
|
-
callback:
|
|
240
|
-
onSuccess:
|
|
241
|
-
} =
|
|
242
|
-
if (!
|
|
243
|
-
const
|
|
244
|
-
if (i?.immediate && !
|
|
245
|
-
|
|
254
|
+
wait: n = 0,
|
|
255
|
+
callback: a,
|
|
256
|
+
onSuccess: m
|
|
257
|
+
} = r;
|
|
258
|
+
if (!a) return;
|
|
259
|
+
const u = Array.isArray(o) && o.length > 0;
|
|
260
|
+
if (i?.immediate && !u) {
|
|
261
|
+
N.value || (N.value = !0, $(a, m));
|
|
246
262
|
return;
|
|
247
263
|
}
|
|
248
264
|
const {
|
|
249
|
-
immediate:
|
|
265
|
+
immediate: C,
|
|
250
266
|
...h
|
|
251
|
-
} = i, y =
|
|
252
|
-
|
|
253
|
-
},
|
|
254
|
-
|
|
267
|
+
} = i, y = o.map((s) => () => e.formModel[s]), g = n > 0 ? qe(() => {
|
|
268
|
+
$(a, m);
|
|
269
|
+
}, n) : () => {
|
|
270
|
+
$(a, m);
|
|
255
271
|
};
|
|
256
|
-
|
|
272
|
+
A = J(y, g, h), i?.immediate && (N.value || (N.value = !0, $(a, m)));
|
|
257
273
|
}
|
|
258
|
-
},
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
}) : (!
|
|
274
|
+
}, de = H(() => E());
|
|
275
|
+
J(de, (r, o) => {
|
|
276
|
+
r.isIfShow && r.isShow && (o == null || !o.isIfShow || !o.isShow) ? O(() => {
|
|
277
|
+
A && (A(), A = null), te();
|
|
278
|
+
}) : (!r.isIfShow || !r.isShow) && (N.value = !1, A && (A(), A = null));
|
|
263
279
|
}, {
|
|
264
280
|
immediate: !0
|
|
265
|
-
}),
|
|
281
|
+
}), J(() => p.value?.request, () => {
|
|
266
282
|
const {
|
|
267
|
-
isIfShow:
|
|
268
|
-
isShow:
|
|
283
|
+
isIfShow: r,
|
|
284
|
+
isShow: o
|
|
269
285
|
} = E();
|
|
270
|
-
|
|
271
|
-
|
|
286
|
+
r && o && O(() => {
|
|
287
|
+
A && (A(), A = null), te();
|
|
272
288
|
});
|
|
273
289
|
});
|
|
274
|
-
const
|
|
275
|
-
let
|
|
276
|
-
...
|
|
290
|
+
const K = H(() => {
|
|
291
|
+
let r = {
|
|
292
|
+
...p.value
|
|
277
293
|
};
|
|
278
|
-
L.has(
|
|
279
|
-
|
|
294
|
+
if (L.has(e.schema.type) && (!r.options || !Array.isArray(r.options)) && (r.options = []), z.has(e.schema.type) && (!r.data || !Array.isArray(r.data)) && (r.data = []), e.schema.type === t.Tree) {
|
|
295
|
+
const n = e.formModel[e.schema.field];
|
|
296
|
+
if (Array.isArray(n) && r.data?.length > 0)
|
|
297
|
+
if (r.includeHalfChecked) {
|
|
298
|
+
const a = Symbol.for(`${e.schema.field}_checkedKeys`), m = e.formModel[a];
|
|
299
|
+
r.defaultCheckedKeys = Array.isArray(m) ? m : n;
|
|
300
|
+
} else
|
|
301
|
+
r.defaultCheckedKeys = n;
|
|
302
|
+
}
|
|
303
|
+
const o = /* @__PURE__ */ new Map([[t.Divider, {
|
|
280
304
|
type: "horizontal"
|
|
281
|
-
}], [
|
|
305
|
+
}], [t.Textarea, {
|
|
282
306
|
type: "textarea"
|
|
283
|
-
}], [
|
|
307
|
+
}], [t.Password, {
|
|
284
308
|
type: "password",
|
|
285
309
|
"show-password": !0
|
|
286
|
-
}], [
|
|
310
|
+
}], [t.InputNumber, {
|
|
287
311
|
type: "number"
|
|
288
|
-
}], [
|
|
312
|
+
}], [t.CheckboxButton, {
|
|
289
313
|
useButton: !0
|
|
290
|
-
}], [
|
|
314
|
+
}], [t.RadioButton, {
|
|
291
315
|
useButton: !0
|
|
292
|
-
}], [
|
|
293
|
-
type:
|
|
294
|
-
}], [
|
|
295
|
-
type:
|
|
296
|
-
}], [
|
|
297
|
-
type:
|
|
298
|
-
}], [
|
|
299
|
-
type:
|
|
300
|
-
}], [
|
|
301
|
-
type:
|
|
302
|
-
}], [
|
|
303
|
-
type:
|
|
304
|
-
}], [
|
|
305
|
-
type:
|
|
316
|
+
}], [t.YearPicker, {
|
|
317
|
+
type: t.YearPicker
|
|
318
|
+
}], [t.MonthPicker, {
|
|
319
|
+
type: t.MonthPicker
|
|
320
|
+
}], [t.DatePicker, {
|
|
321
|
+
type: t.DatePicker
|
|
322
|
+
}], [t.DatesPicker, {
|
|
323
|
+
type: t.DatesPicker
|
|
324
|
+
}], [t.DateTimePicker, {
|
|
325
|
+
type: t.DateTimePicker
|
|
326
|
+
}], [t.WeekPicker, {
|
|
327
|
+
type: t.WeekPicker
|
|
328
|
+
}], [t.TimeRangePicker, {
|
|
329
|
+
type: t.TimePicker,
|
|
306
330
|
"is-range": !0,
|
|
307
331
|
"start-placeholder": "开始时间",
|
|
308
332
|
"end-placeholder": "结束时间"
|
|
309
|
-
}], [
|
|
310
|
-
type:
|
|
333
|
+
}], [t.DateTimeRangePicker, {
|
|
334
|
+
type: t.DateTimeRangePicker,
|
|
311
335
|
"start-placeholder": "开始日期",
|
|
312
336
|
"end-placeholder": "结束日期"
|
|
313
|
-
}], [
|
|
314
|
-
type:
|
|
337
|
+
}], [t.DateRangePicker, {
|
|
338
|
+
type: t.DateRangePicker,
|
|
315
339
|
"start-placeholder": "开始日期",
|
|
316
340
|
"end-placeholder": "结束日期"
|
|
317
|
-
}], [
|
|
318
|
-
type:
|
|
341
|
+
}], [t.MonthRangePicker, {
|
|
342
|
+
type: t.MonthRangePicker,
|
|
319
343
|
"start-placeholder": "开始月份",
|
|
320
344
|
"end-placeholder": "结束月份"
|
|
321
345
|
}]]);
|
|
322
|
-
|
|
323
|
-
const i =
|
|
324
|
-
return
|
|
325
|
-
}),
|
|
346
|
+
e.schema.type && o.has(e.schema.type) && (r = Object.assign(o.get(e.schema.type) || {}, r));
|
|
347
|
+
const i = r;
|
|
348
|
+
return e.formProps.inputMaxLength && e.schema.type === t.Input && !i?.maxlength && (i.maxlength = e.formProps.inputMaxLength), L.has(e.schema.type) && (!i.options || !Array.isArray(i.options)) && (i.options = []), z.has(e.schema.type) && (!i.data || !Array.isArray(i.data)) && (i.data = []), i;
|
|
349
|
+
}), he = H(() => {
|
|
326
350
|
const {
|
|
327
|
-
disabled:
|
|
328
|
-
} =
|
|
329
|
-
dynamicDisabled:
|
|
330
|
-
} =
|
|
351
|
+
disabled: r
|
|
352
|
+
} = e.formProps, {
|
|
353
|
+
dynamicDisabled: o
|
|
354
|
+
} = e.schema, {
|
|
331
355
|
disabled: i = !1
|
|
332
|
-
} =
|
|
333
|
-
let
|
|
334
|
-
return
|
|
356
|
+
} = d(K);
|
|
357
|
+
let n = !!r || i;
|
|
358
|
+
return Z(o) && (n = o), k(o) && (n = o(d(P))), n;
|
|
335
359
|
});
|
|
336
360
|
function E() {
|
|
337
361
|
const {
|
|
338
|
-
show:
|
|
339
|
-
ifShow:
|
|
340
|
-
} =
|
|
341
|
-
let i = !0,
|
|
342
|
-
return
|
|
362
|
+
show: r,
|
|
363
|
+
ifShow: o
|
|
364
|
+
} = e.schema;
|
|
365
|
+
let i = !0, n = !0;
|
|
366
|
+
return Z(r) && (i = r), Z(o) && (n = o), k(r) && (i = r(d(P))), k(o) && (n = o(d(P))), {
|
|
343
367
|
isShow: i,
|
|
344
|
-
isIfShow:
|
|
368
|
+
isIfShow: n
|
|
345
369
|
};
|
|
346
370
|
}
|
|
347
|
-
function
|
|
371
|
+
function pe() {
|
|
348
372
|
const {
|
|
349
|
-
rules:
|
|
350
|
-
type:
|
|
373
|
+
rules: r = [],
|
|
374
|
+
type: o = t.Input,
|
|
351
375
|
rulesMessageJoinLabel: i,
|
|
352
|
-
label:
|
|
353
|
-
title:
|
|
354
|
-
dynamicRule:
|
|
355
|
-
required:
|
|
356
|
-
dynamicRuleAdd:
|
|
357
|
-
} =
|
|
358
|
-
if (!h && (xe(y) || y === "" ||
|
|
376
|
+
label: n,
|
|
377
|
+
title: a,
|
|
378
|
+
dynamicRule: m,
|
|
379
|
+
required: u,
|
|
380
|
+
dynamicRuleAdd: C = !0
|
|
381
|
+
} = e.schema, h = k(u) ? u(d(P)) : u, y = e.formModel[e.schema.field];
|
|
382
|
+
if (!h && (xe(y) || y === "" || _(y) && !y.length))
|
|
359
383
|
return [];
|
|
360
|
-
const g =
|
|
361
|
-
if (
|
|
362
|
-
return
|
|
363
|
-
let
|
|
384
|
+
const g = n || a;
|
|
385
|
+
if (k(m) && !C)
|
|
386
|
+
return m(d(P));
|
|
387
|
+
let s = Ae(_(r) ? r : [r]);
|
|
364
388
|
const {
|
|
365
389
|
rulesMessageJoinLabel: R
|
|
366
|
-
} =
|
|
367
|
-
function
|
|
368
|
-
const
|
|
369
|
-
return c === void 0 || Re(c) ||
|
|
390
|
+
} = e.formProps, b = Reflect.has(e.schema, "rulesMessageJoinLabel") ? i : R, w = ce(o, `${b ? g : ""}`);
|
|
391
|
+
function M(l, c) {
|
|
392
|
+
const x = l.message || w;
|
|
393
|
+
return c === void 0 || Re(c) || o === t.CheckboxSingle && !c || Array.isArray(c) && c.length === 0 || typeof c == "string" && c.trim() === "" || typeof c == "object" && Reflect.has(c, "checked") && Reflect.has(c, "halfChecked") && Array.isArray(c.checked) && Array.isArray(c.halfChecked) && c.checked.length === 0 && c.halfChecked.length === 0 ? Promise.reject(x) : Promise.resolve();
|
|
370
394
|
}
|
|
371
|
-
const
|
|
372
|
-
(!
|
|
395
|
+
const V = [t.Radio, t.Select, t.RadioSingle, t.RadioButton, t.Checkbox, t.CheckboxSingle, t.CheckboxButton, t.AutoComplete, t.Cascader, t.ColorPicker, t.Upload, t.Slider].includes(o);
|
|
396
|
+
(!s || s.length === 0 || h) && (s = [{
|
|
373
397
|
required: h,
|
|
374
|
-
validator:
|
|
375
|
-
trigger:
|
|
376
|
-
}, ...
|
|
377
|
-
const W =
|
|
398
|
+
validator: M,
|
|
399
|
+
trigger: V ? "change" : "blur"
|
|
400
|
+
}, ...s]);
|
|
401
|
+
const W = s.findIndex((l) => Reflect.has(l, "required") && !Reflect.has(l, "validator"));
|
|
378
402
|
if (W !== -1) {
|
|
379
|
-
const
|
|
403
|
+
const l = s[W], {
|
|
380
404
|
isShow: c
|
|
381
405
|
} = E();
|
|
382
|
-
c || (
|
|
406
|
+
c || (l.required = !1), o && (l.message = l.message || w);
|
|
383
407
|
}
|
|
384
|
-
const
|
|
385
|
-
function
|
|
386
|
-
const
|
|
387
|
-
return ["min", "all"].includes(
|
|
408
|
+
const v = s.findIndex((l) => l.min), D = s.findIndex((l) => l.max);
|
|
409
|
+
function j(l, c, x = "all") {
|
|
410
|
+
const S = s[c], B = S.isNumber ? isNaN(l) ? l?.length || 0 : Number(l) : l?.length || 0;
|
|
411
|
+
return ["min", "all"].includes(x) && B < S.min ? Promise.reject(`${g}至少为${S.min}位`) : ["max", "all"].includes(x) && B > S.max ? Promise.reject(`${g}最多${S.max}位`) : Promise.resolve();
|
|
388
412
|
}
|
|
389
|
-
(
|
|
390
|
-
const
|
|
391
|
-
if (
|
|
392
|
-
let
|
|
393
|
-
|
|
413
|
+
(v !== -1 || D !== -1) && (v !== -1 && D !== -1 && !s[v].validator && !s[v].message ? s[v].validator = (l, c) => j(c, v) : v !== -1 && !s[v].validator && !s[v].message ? s[v].validator = (l, c) => j(c, v, "min") : D !== -1 && !s[D].validator && !s[D].message && (s[D].validator = (l, c) => j(c, D, "max")));
|
|
414
|
+
const T = s.findIndex((l) => l.len);
|
|
415
|
+
if (T !== -1 && (s[T].validator = (l, c) => c?.length !== s[T].len ? Promise.reject(`${g}必须是${s[T].len}位`) : Promise.resolve()), k(m) && C) {
|
|
416
|
+
let l = m(d(P));
|
|
417
|
+
l = _(l) ? l : [l], s = s.concat(l);
|
|
394
418
|
}
|
|
395
|
-
return
|
|
419
|
+
return s;
|
|
396
420
|
}
|
|
397
421
|
const ye = () => {
|
|
398
422
|
const {
|
|
399
|
-
renderComponentContent:
|
|
400
|
-
type:
|
|
423
|
+
renderComponentContent: r,
|
|
424
|
+
type: o = t.Input,
|
|
401
425
|
field: i,
|
|
402
|
-
changeEvent:
|
|
403
|
-
valueField:
|
|
404
|
-
label:
|
|
405
|
-
title:
|
|
406
|
-
placeholderJoinLabel:
|
|
407
|
-
} =
|
|
408
|
-
let h =
|
|
409
|
-
Le(
|
|
410
|
-
const y = `on${
|
|
411
|
-
autoSetPlaceHolder:
|
|
426
|
+
changeEvent: n = "change",
|
|
427
|
+
valueField: a,
|
|
428
|
+
label: m,
|
|
429
|
+
title: u,
|
|
430
|
+
placeholderJoinLabel: C = !0
|
|
431
|
+
} = e.schema;
|
|
432
|
+
let h = n;
|
|
433
|
+
Le(o) ? h = "input" : Ve(o) || o === t.TimePicker || o === t.InputTag || o === t.AutoComplete || o === t.Cascader || o === t.ColorPicker || o === t.Slider || o === t.TreeSelect ? h = "update:modelValue" : o === t.Upload ? h = "update:fileList" : o === t.Tree && (h = "check");
|
|
434
|
+
const y = `on${we(h)}`, g = se(o), {
|
|
435
|
+
autoSetPlaceHolder: s,
|
|
412
436
|
size: R
|
|
413
|
-
} =
|
|
437
|
+
} = e.formProps, b = {
|
|
414
438
|
clearable: !0,
|
|
415
|
-
...
|
|
439
|
+
...d(K)
|
|
416
440
|
};
|
|
417
|
-
if (
|
|
418
|
-
const
|
|
419
|
-
b.placeholder =
|
|
441
|
+
if (o !== t.Search && (b.size = d(K)?.size || R, b.disabled = d(he)), !b.disabled && s && !Fe(o) && o) {
|
|
442
|
+
const l = m || u;
|
|
443
|
+
b.placeholder = d(K)?.placeholder || ce(o, C && Me(l) ? l : "");
|
|
420
444
|
}
|
|
421
|
-
const
|
|
422
|
-
[y]: (...
|
|
423
|
-
const [c] =
|
|
424
|
-
|
|
425
|
-
|
|
445
|
+
const M = b[y], I = b.onClear, V = {
|
|
446
|
+
[y]: (...l) => {
|
|
447
|
+
const [c] = l;
|
|
448
|
+
let x;
|
|
449
|
+
if (o === t.Tree && h === "check") {
|
|
450
|
+
const [, S] = l, B = d(K)?.includeHalfChecked;
|
|
451
|
+
if (B ? x = [...S?.halfCheckedKeys || [], ...S?.checkedKeys || []] : x = S?.checkedKeys || [], B) {
|
|
452
|
+
const be = Symbol.for(`${i}_checkedKeys`);
|
|
453
|
+
e.formModel[be] = S?.checkedKeys || [];
|
|
454
|
+
}
|
|
455
|
+
} else {
|
|
456
|
+
const S = c ? c.target : null;
|
|
457
|
+
x = S ? S.value : c;
|
|
458
|
+
}
|
|
459
|
+
e.setFormModel(i, x, e.schema), M && k(M) && O(() => {
|
|
460
|
+
M(...l);
|
|
426
461
|
});
|
|
427
462
|
},
|
|
428
463
|
// 监听 clear 事件,清除错误信息
|
|
429
|
-
onClear: (...
|
|
430
|
-
|
|
464
|
+
onClear: (...l) => {
|
|
465
|
+
e.updateSchema([{
|
|
431
466
|
field: i,
|
|
432
467
|
itemProps: {
|
|
433
468
|
error: ""
|
|
434
469
|
}
|
|
435
|
-
}]),
|
|
470
|
+
}]), e.formActionType?.clearValidate?.(i), I && k(I) && I(...l);
|
|
436
471
|
}
|
|
437
|
-
}, W = {
|
|
438
|
-
[
|
|
472
|
+
}, W = o === t.Tree ? {} : {
|
|
473
|
+
[a || "model-value"]: e.formModel[i]
|
|
439
474
|
}, {
|
|
440
|
-
[y]:
|
|
441
|
-
...
|
|
442
|
-
} = b,
|
|
443
|
-
...
|
|
444
|
-
...
|
|
475
|
+
[y]: v,
|
|
476
|
+
...D
|
|
477
|
+
} = b, j = {
|
|
478
|
+
...D,
|
|
479
|
+
...V,
|
|
445
480
|
...W
|
|
446
481
|
};
|
|
447
|
-
if (!
|
|
448
|
-
return
|
|
449
|
-
ref:
|
|
450
|
-
},
|
|
451
|
-
let
|
|
452
|
-
if (
|
|
453
|
-
...
|
|
454
|
-
...
|
|
455
|
-
elRef:
|
|
482
|
+
if (!r && o !== t.Upload)
|
|
483
|
+
return f(g, U({
|
|
484
|
+
ref: F
|
|
485
|
+
}, j), null);
|
|
486
|
+
let T;
|
|
487
|
+
if (T = k(r) ? {
|
|
488
|
+
...r({
|
|
489
|
+
...d(P),
|
|
490
|
+
elRef: F
|
|
456
491
|
})
|
|
457
492
|
} : {
|
|
458
|
-
default: () =>
|
|
459
|
-
},
|
|
493
|
+
default: () => r
|
|
494
|
+
}, o === t.Upload && !r) {
|
|
460
495
|
const {
|
|
461
|
-
drag:
|
|
462
|
-
} =
|
|
463
|
-
|
|
464
|
-
default: () =>
|
|
496
|
+
drag: l
|
|
497
|
+
} = d(K);
|
|
498
|
+
T = l ? {
|
|
499
|
+
default: () => f(X("vft-icon"), {
|
|
465
500
|
icon: "icon-arrow-upload"
|
|
466
501
|
}, null)
|
|
467
502
|
} : {
|
|
468
|
-
default: () =>
|
|
503
|
+
default: () => f(X("vft-button"), {
|
|
469
504
|
type: "primary"
|
|
470
505
|
}, {
|
|
471
|
-
default: () => [
|
|
506
|
+
default: () => [f(X("vft-icon"), {
|
|
472
507
|
icon: "icon-arrow-upload"
|
|
473
508
|
}, null)]
|
|
474
509
|
})
|
|
475
510
|
};
|
|
476
511
|
}
|
|
477
|
-
return
|
|
478
|
-
ref:
|
|
479
|
-
},
|
|
480
|
-
default: () => [
|
|
512
|
+
return f(g, U({
|
|
513
|
+
ref: F
|
|
514
|
+
}, j), ee(T) ? T : {
|
|
515
|
+
default: () => [T]
|
|
481
516
|
});
|
|
482
517
|
};
|
|
483
|
-
function
|
|
518
|
+
function Q() {
|
|
484
519
|
const {
|
|
485
|
-
showLabel:
|
|
486
|
-
label:
|
|
520
|
+
showLabel: r = !0,
|
|
521
|
+
label: o,
|
|
487
522
|
title: i,
|
|
488
|
-
subLabel:
|
|
489
|
-
labelRequired:
|
|
490
|
-
helpIcon:
|
|
491
|
-
helpTooltip:
|
|
492
|
-
labelSuffix:
|
|
493
|
-
} =
|
|
523
|
+
subLabel: n,
|
|
524
|
+
labelRequired: a,
|
|
525
|
+
helpIcon: m,
|
|
526
|
+
helpTooltip: u,
|
|
527
|
+
labelSuffix: C
|
|
528
|
+
} = e.schema, {
|
|
494
529
|
labelSuffix: h = ""
|
|
495
|
-
} =
|
|
530
|
+
} = e.formProps, y = C ?? h, g = o || i, s = g ? f("span", null, [a && f("span", {
|
|
496
531
|
class: "label-required"
|
|
497
|
-
}, [ie("*")]),
|
|
498
|
-
class:
|
|
532
|
+
}, [ie("*")]), f("span", null, [g]), y && f("span", {
|
|
533
|
+
class: q.m("label-suffix")
|
|
499
534
|
}, [y])]) : null, R = () => {
|
|
500
|
-
if (!
|
|
501
|
-
const b =
|
|
535
|
+
if (!m && !u) return null;
|
|
536
|
+
const b = H(() => ae(m, "icon", {
|
|
502
537
|
size: 20,
|
|
503
538
|
pointer: !0,
|
|
504
539
|
icon: "icon-help"
|
|
505
540
|
}));
|
|
506
|
-
if (
|
|
507
|
-
const
|
|
541
|
+
if (u) {
|
|
542
|
+
const w = H(() => ae(u, "content", {
|
|
508
543
|
placement: "right-start"
|
|
509
544
|
}));
|
|
510
|
-
return
|
|
545
|
+
return f(De, U({
|
|
511
546
|
className: "box-item"
|
|
512
|
-
},
|
|
513
|
-
default: () => [
|
|
547
|
+
}, w.value), {
|
|
548
|
+
default: () => [f(le, b.value, null)]
|
|
514
549
|
});
|
|
515
550
|
}
|
|
516
|
-
return
|
|
551
|
+
return f(le, b.value, null);
|
|
517
552
|
};
|
|
518
|
-
return
|
|
553
|
+
return r && s ? n ? f("div", {
|
|
519
554
|
class: "label-content"
|
|
520
|
-
}, [
|
|
555
|
+
}, [f("div", null, [s, ie(" "), f("span", {
|
|
521
556
|
class: "sub-label"
|
|
522
|
-
}, [
|
|
557
|
+
}, [n])]), R()]) : f("div", {
|
|
523
558
|
class: "label-content"
|
|
524
|
-
}, [
|
|
559
|
+
}, [f("div", null, [s]), R()]) : void 0;
|
|
525
560
|
}
|
|
526
|
-
const
|
|
527
|
-
function
|
|
528
|
-
if (!
|
|
561
|
+
const oe = ke();
|
|
562
|
+
function re(r, o = "default", i) {
|
|
563
|
+
if (!r || !Reflect.has(r, o))
|
|
529
564
|
return null;
|
|
530
|
-
if (!
|
|
531
|
-
return console.error(`${
|
|
532
|
-
const
|
|
533
|
-
return
|
|
565
|
+
if (!k(r[o]))
|
|
566
|
+
return console.error(`${o} is not a function!`), null;
|
|
567
|
+
const n = r[o];
|
|
568
|
+
return n ? n(i) : null;
|
|
534
569
|
}
|
|
535
570
|
function ge() {
|
|
536
571
|
const {
|
|
537
|
-
required:
|
|
538
|
-
itemProps:
|
|
572
|
+
required: r,
|
|
573
|
+
itemProps: o,
|
|
539
574
|
slot: i,
|
|
540
|
-
render:
|
|
541
|
-
field:
|
|
542
|
-
suffix:
|
|
543
|
-
prefix:
|
|
544
|
-
prefixParentStyle:
|
|
545
|
-
} =
|
|
575
|
+
render: n,
|
|
576
|
+
field: a,
|
|
577
|
+
suffix: m,
|
|
578
|
+
prefix: u,
|
|
579
|
+
prefixParentStyle: C
|
|
580
|
+
} = e.schema, {
|
|
546
581
|
autoCleanErrorMessage: h,
|
|
547
582
|
compFullWidth: y
|
|
548
|
-
} =
|
|
549
|
-
|
|
550
|
-
field:
|
|
583
|
+
} = e.formProps, g = () => i ? re(oe, i, d(P)) : n ? n(d(P)) : ye(), s = !!m, R = !!u, b = k(m) ? m(d(P)) : m, w = k(u) ? u(d(P)) : u, M = () => {
|
|
584
|
+
e.updateSchema([{
|
|
585
|
+
field: a,
|
|
551
586
|
itemProps: {
|
|
552
587
|
error: ""
|
|
553
588
|
}
|
|
554
589
|
}]);
|
|
555
|
-
},
|
|
590
|
+
}, I = k(r) ? r(d(P)) : r, V = () => f(Te, U({
|
|
556
591
|
style: {
|
|
557
|
-
marginRight:
|
|
592
|
+
marginRight: e.formProps.customLayout ? "10px" : 0
|
|
558
593
|
},
|
|
559
|
-
prop:
|
|
594
|
+
prop: a,
|
|
560
595
|
class: [{
|
|
561
|
-
[
|
|
596
|
+
[q.is("suffix")]: s
|
|
562
597
|
}, {
|
|
563
|
-
[
|
|
564
|
-
},
|
|
565
|
-
},
|
|
566
|
-
label:
|
|
567
|
-
"onUpdate:error": h ?
|
|
598
|
+
[q.is("comp-full-width")]: y
|
|
599
|
+
}, q.e("item")]
|
|
600
|
+
}, o, {
|
|
601
|
+
label: o?.label || o?.title,
|
|
602
|
+
"onUpdate:error": h ? M : () => {
|
|
568
603
|
},
|
|
569
|
-
rules:
|
|
570
|
-
required:
|
|
604
|
+
rules: pe(),
|
|
605
|
+
required: I
|
|
571
606
|
}), {
|
|
572
|
-
default: () => [
|
|
573
|
-
class:
|
|
574
|
-
}, [
|
|
575
|
-
class:
|
|
576
|
-
}, [g(),
|
|
577
|
-
class:
|
|
607
|
+
default: () => [f("div", {
|
|
608
|
+
class: q.e("container")
|
|
609
|
+
}, [f("div", {
|
|
610
|
+
class: q.e("content")
|
|
611
|
+
}, [g(), s && f("span", {
|
|
612
|
+
class: q.m("suffix")
|
|
578
613
|
}, [b])])])],
|
|
579
|
-
label:
|
|
614
|
+
label: Q() ? () => Q() : void 0
|
|
580
615
|
});
|
|
581
|
-
return R ?
|
|
582
|
-
style:
|
|
583
|
-
}, [
|
|
584
|
-
class:
|
|
585
|
-
}, [
|
|
616
|
+
return R ? f("div", {
|
|
617
|
+
style: C
|
|
618
|
+
}, [f("span", {
|
|
619
|
+
class: q.m("prefix")
|
|
620
|
+
}, [w]), V()]) : V();
|
|
586
621
|
}
|
|
587
622
|
return () => {
|
|
588
|
-
let
|
|
623
|
+
let r;
|
|
589
624
|
const {
|
|
590
|
-
colProps:
|
|
625
|
+
colProps: o = {},
|
|
591
626
|
colSlot: i,
|
|
592
|
-
renderColContent:
|
|
593
|
-
type:
|
|
594
|
-
render:
|
|
595
|
-
quickColSpan:
|
|
596
|
-
} =
|
|
597
|
-
if (!
|
|
627
|
+
renderColContent: n,
|
|
628
|
+
type: a = t.Input,
|
|
629
|
+
render: m,
|
|
630
|
+
quickColSpan: u
|
|
631
|
+
} = e.schema;
|
|
632
|
+
if (!se(a) && !n && !m)
|
|
598
633
|
return null;
|
|
599
634
|
const {
|
|
600
|
-
baseColProps:
|
|
635
|
+
baseColProps: C = {},
|
|
601
636
|
quickColSpan: h
|
|
602
|
-
} =
|
|
637
|
+
} = e.formProps, y = h ? {
|
|
603
638
|
span: Math.ceil(24 / h),
|
|
604
|
-
...
|
|
639
|
+
...C
|
|
605
640
|
} : {
|
|
606
|
-
...
|
|
607
|
-
}, g =
|
|
608
|
-
span: Math.ceil(24 /
|
|
609
|
-
...
|
|
641
|
+
...C
|
|
642
|
+
}, g = u ? {
|
|
643
|
+
span: Math.ceil(24 / u),
|
|
644
|
+
...o
|
|
610
645
|
} : {
|
|
611
|
-
...
|
|
612
|
-
},
|
|
646
|
+
...o
|
|
647
|
+
}, s = {
|
|
613
648
|
...y,
|
|
614
649
|
...g
|
|
615
650
|
}, {
|
|
616
651
|
isIfShow: R,
|
|
617
652
|
isShow: b
|
|
618
|
-
} = E(),
|
|
619
|
-
if (
|
|
620
|
-
let
|
|
621
|
-
return
|
|
653
|
+
} = E(), w = d(P), M = () => i ? re(oe, i, w) : n ? n(w) : ge();
|
|
654
|
+
if (a === t.Divider) {
|
|
655
|
+
let I;
|
|
656
|
+
return f(ne, U({
|
|
622
657
|
span: 24
|
|
623
658
|
}, g), {
|
|
624
|
-
default: () => [
|
|
625
|
-
default: () => [
|
|
659
|
+
default: () => [f(Ie, d(K), ee(I = Q()) ? I : {
|
|
660
|
+
default: () => [I]
|
|
626
661
|
})]
|
|
627
662
|
});
|
|
628
663
|
}
|
|
629
|
-
return R && (
|
|
630
|
-
default: () => [
|
|
631
|
-
}), [[
|
|
664
|
+
return R && (e.formProps.customLayout ? M() : Ce(f(ne, s, ee(r = M()) ? r : {
|
|
665
|
+
default: () => [r]
|
|
666
|
+
}), [[Se, b]]));
|
|
632
667
|
};
|
|
633
668
|
}
|
|
634
669
|
});
|