@vue-start/element-pro 0.2.6 → 0.2.7
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.d.ts +1076 -1068
- package/dist/index.es.js +248 -209
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElRow as
|
|
3
|
-
import { isString as
|
|
4
|
-
import { createGrid as
|
|
5
|
-
import { useEffect as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as s, createVNode as a, mergeProps as i, reactive as J, ref as g, toRaw as Q, isVNode as v } from "vue";
|
|
2
|
+
import { ElRow as W, ElCol as X, ElLoading as Y, ElFormItem as E, ElForm as I, ElSelect as x, ElOption as Z, ElRadioGroup as k, ElRadioButton as _, ElRadio as $, ElCheckboxGroup as R, ElCheckbox as ee, ElInput as te, ElInputNumber as re, ElDatePicker as ne, ElTimePicker as oe, ElTreeSelect as ae, ElSwitch as ue, ElCascader as le, ElButton as y, ElTableColumn as h, ElTable as B, ElPagination as ce, ElDescriptions as de, ElDescriptionsItem as ie, ElDialog as D } from "element-plus";
|
|
3
|
+
import { isString as se, keys as C, omit as c, map as P, size as me, get as F } from "lodash";
|
|
4
|
+
import { createGrid as pe, createExpose as z, createForm as fe, createSearchForm as ye, createFormItemCompFn as ge, createExposeObj as T, useProForm as Ce, createFormList as Pe, createTable as be, createCurdForm as Fe, CurdCurrentMode as Se, useProCurd as b, createCurdList as Te, createCurdDesc as ve, CurdAction as f } from "@vue-start/pro";
|
|
5
|
+
import { useEffect as K, generateId as Ee, setReactiveValue as Ie } from "@vue-start/hooks";
|
|
6
|
+
const xe = pe(W, X), N = (e = "comp") => e + "-" + Ee(), ke = () => ({
|
|
7
7
|
loading: {
|
|
8
8
|
type: Boolean
|
|
9
9
|
},
|
|
@@ -31,22 +31,22 @@ const ve = ie(H, _), M = (e = "comp") => e + "-" + Se(), Ee = () => ({
|
|
|
31
31
|
customClass: {
|
|
32
32
|
type: String
|
|
33
33
|
}
|
|
34
|
-
}),
|
|
34
|
+
}), Re = s({
|
|
35
35
|
props: {
|
|
36
|
-
...
|
|
36
|
+
...ke()
|
|
37
37
|
},
|
|
38
38
|
setup: (e, {
|
|
39
39
|
slots: t
|
|
40
40
|
}) => {
|
|
41
|
-
const
|
|
42
|
-
return
|
|
41
|
+
const n = N();
|
|
42
|
+
return K(() => {
|
|
43
43
|
if (!e.loading)
|
|
44
44
|
return;
|
|
45
|
-
let
|
|
46
|
-
if (t.default ?
|
|
45
|
+
let o = e.target;
|
|
46
|
+
if (t.default ? o = document.getElementById(n) : e.target && se(e.target) && (o = document.querySelector("#" + e.target)), !o)
|
|
47
47
|
return;
|
|
48
|
-
const
|
|
49
|
-
target:
|
|
48
|
+
const u = Y.service({
|
|
49
|
+
target: o,
|
|
50
50
|
body: e.body,
|
|
51
51
|
fullscreen: e.fullscreen,
|
|
52
52
|
lock: e.lock,
|
|
@@ -56,53 +56,53 @@ const ve = ie(H, _), M = (e = "comp") => e + "-" + Se(), Ee = () => ({
|
|
|
56
56
|
customClass: e.customClass
|
|
57
57
|
});
|
|
58
58
|
return () => {
|
|
59
|
-
|
|
59
|
+
u && u.close();
|
|
60
60
|
};
|
|
61
61
|
}, () => e.loading), () => t.default ? a("div", {
|
|
62
|
-
id:
|
|
62
|
+
id: n
|
|
63
63
|
}, [t.default()]) : null;
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), L = () => ({
|
|
66
66
|
name: {
|
|
67
67
|
type: [String, Array]
|
|
68
68
|
}
|
|
69
|
-
}),
|
|
69
|
+
}), G = s({
|
|
70
70
|
props: {
|
|
71
|
-
...
|
|
72
|
-
...
|
|
71
|
+
...E.props,
|
|
72
|
+
...L()
|
|
73
73
|
},
|
|
74
74
|
setup: (e, {
|
|
75
75
|
slots: t
|
|
76
76
|
}) => {
|
|
77
|
-
const
|
|
78
|
-
return () => a(
|
|
77
|
+
const n = C(L());
|
|
78
|
+
return () => a(E, i(c(e, ...n, "name", "prop"), {
|
|
79
79
|
prop: e.prop || e.name
|
|
80
80
|
}), t);
|
|
81
81
|
}
|
|
82
|
-
}),
|
|
82
|
+
}), S = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], he = s({
|
|
83
83
|
props: {
|
|
84
|
-
...
|
|
84
|
+
...I.props
|
|
85
85
|
},
|
|
86
86
|
setup: (e, {
|
|
87
87
|
slots: t,
|
|
88
|
-
emit:
|
|
89
|
-
expose:
|
|
88
|
+
emit: n,
|
|
89
|
+
expose: o
|
|
90
90
|
}) => {
|
|
91
|
-
const
|
|
92
|
-
return
|
|
91
|
+
const u = e.model || J({}), l = g();
|
|
92
|
+
return K(() => {
|
|
93
93
|
!l.value || (l.value.submit = () => {
|
|
94
|
-
var
|
|
95
|
-
(
|
|
96
|
-
|
|
94
|
+
var r;
|
|
95
|
+
(r = l.value) == null || r.validate((d, m) => {
|
|
96
|
+
d ? n("finish", Q(u)) : n("finishFailed", m);
|
|
97
97
|
});
|
|
98
98
|
});
|
|
99
|
-
}, []),
|
|
99
|
+
}, []), o(z(S, l)), () => a(I, i({
|
|
100
100
|
ref: l
|
|
101
|
-
},
|
|
102
|
-
model:
|
|
101
|
+
}, c(e, "model"), {
|
|
102
|
+
model: u
|
|
103
103
|
}), t);
|
|
104
104
|
}
|
|
105
|
-
}),
|
|
105
|
+
}), U = fe(he, xe, S), Be = ye(U, {
|
|
106
106
|
needRules: {
|
|
107
107
|
type: Boolean,
|
|
108
108
|
default: !1
|
|
@@ -111,43 +111,44 @@ const ve = ie(H, _), M = (e = "comp") => e + "-" + Se(), Ee = () => ({
|
|
|
111
111
|
type: Boolean,
|
|
112
112
|
default: !0
|
|
113
113
|
}
|
|
114
|
-
},
|
|
114
|
+
}, S), p = ge(G, (e, t, n) => ({
|
|
115
115
|
modelValue: e,
|
|
116
116
|
"onUpdate:modelValue": t,
|
|
117
117
|
clearable: !0,
|
|
118
|
-
disabled:
|
|
119
|
-
})),
|
|
118
|
+
disabled: n
|
|
119
|
+
})), A = () => ({
|
|
120
120
|
options: Array
|
|
121
|
-
}),
|
|
121
|
+
}), De = s({
|
|
122
122
|
name: "PSelect",
|
|
123
123
|
props: {
|
|
124
|
-
...
|
|
125
|
-
...
|
|
124
|
+
...x.props,
|
|
125
|
+
...A()
|
|
126
126
|
},
|
|
127
127
|
setup: (e, {
|
|
128
128
|
slots: t,
|
|
129
|
-
emit:
|
|
129
|
+
emit: n,
|
|
130
|
+
expose: o
|
|
130
131
|
}) => {
|
|
131
|
-
const
|
|
132
|
-
|
|
132
|
+
const u = g();
|
|
133
|
+
o(T(u));
|
|
134
|
+
const l = C(A());
|
|
135
|
+
return () => a(x, i({
|
|
136
|
+
ref: u
|
|
137
|
+
}, c(e, l), {
|
|
133
138
|
"onUpdate:modelValue": (r) => {
|
|
134
|
-
|
|
139
|
+
n("update:modelValue", r || void 0);
|
|
135
140
|
}
|
|
136
141
|
}), {
|
|
137
142
|
default: () => {
|
|
138
|
-
var r;
|
|
139
|
-
return [P(e.options, (
|
|
140
|
-
key:
|
|
141
|
-
},
|
|
143
|
+
var r, d;
|
|
144
|
+
return [(r = t.start) == null ? void 0 : r.call(t), P(e.options, (m) => a(Z, i({
|
|
145
|
+
key: m.value
|
|
146
|
+
}, m), null)), (d = t.default) == null ? void 0 : d.call(t)];
|
|
142
147
|
},
|
|
143
|
-
...
|
|
148
|
+
...c(t, "default")
|
|
144
149
|
});
|
|
145
150
|
}
|
|
146
|
-
})
|
|
147
|
-
function he(e) {
|
|
148
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !S(e);
|
|
149
|
-
}
|
|
150
|
-
const D = () => ({
|
|
151
|
+
}), V = () => ({
|
|
151
152
|
options: {
|
|
152
153
|
type: Array
|
|
153
154
|
},
|
|
@@ -155,97 +156,134 @@ const D = () => ({
|
|
|
155
156
|
type: String,
|
|
156
157
|
default: "default"
|
|
157
158
|
}
|
|
158
|
-
}),
|
|
159
|
+
}), Le = s({
|
|
159
160
|
props: {
|
|
160
|
-
...
|
|
161
|
-
...
|
|
161
|
+
...k.props,
|
|
162
|
+
...V()
|
|
162
163
|
},
|
|
163
164
|
setup: (e, {
|
|
164
|
-
|
|
165
|
+
slots: t,
|
|
166
|
+
emit: n,
|
|
167
|
+
expose: o
|
|
165
168
|
}) => {
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
169
|
+
const u = g();
|
|
170
|
+
o(T(u));
|
|
171
|
+
const l = C(V());
|
|
172
|
+
return () => a(k, i({
|
|
173
|
+
ref: u
|
|
174
|
+
}, c(e, l), {
|
|
175
|
+
"onUpdate:modelValue": (r) => {
|
|
176
|
+
n("update:modelValue", r);
|
|
177
|
+
}
|
|
178
|
+
}), {
|
|
179
|
+
default: () => [P(e.options, (r) => e.buttonStyle === "button" ? a(_, i({
|
|
174
180
|
key: r.value
|
|
175
181
|
}, r, {
|
|
176
182
|
label: r.value
|
|
177
183
|
}), {
|
|
178
184
|
default: () => [r.label]
|
|
179
|
-
}) : a(
|
|
185
|
+
}) : a($, i({
|
|
180
186
|
key: r.value
|
|
181
187
|
}, r, {
|
|
182
188
|
label: r.value
|
|
183
189
|
}), {
|
|
184
190
|
default: () => [r.label]
|
|
185
|
-
}))
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
};
|
|
191
|
+
}))],
|
|
192
|
+
...t
|
|
193
|
+
});
|
|
189
194
|
}
|
|
190
|
-
}),
|
|
191
|
-
|
|
195
|
+
}), w = () => ({
|
|
196
|
+
options: Array
|
|
197
|
+
}), Ae = s({
|
|
198
|
+
props: {
|
|
199
|
+
...R.props,
|
|
200
|
+
...w()
|
|
201
|
+
},
|
|
202
|
+
setup: (e, {
|
|
203
|
+
slots: t,
|
|
204
|
+
emit: n,
|
|
205
|
+
expose: o
|
|
206
|
+
}) => {
|
|
207
|
+
const u = g();
|
|
208
|
+
o(T(u));
|
|
209
|
+
const l = C(w());
|
|
210
|
+
return () => a(R, i({
|
|
211
|
+
ref: u
|
|
212
|
+
}, c(e, l), {
|
|
213
|
+
"onUpdate:modelValue": (r) => {
|
|
214
|
+
n("update:modelValue", r || void 0);
|
|
215
|
+
}
|
|
216
|
+
}), {
|
|
217
|
+
default: () => {
|
|
218
|
+
var r, d;
|
|
219
|
+
return [(r = t.start) == null ? void 0 : r.call(t), P(e.options, (m) => a(ee, i(m, {
|
|
220
|
+
label: m.value
|
|
221
|
+
}), {
|
|
222
|
+
default: () => [m.label]
|
|
223
|
+
})), (d = t.default) == null ? void 0 : d.call(t)];
|
|
224
|
+
},
|
|
225
|
+
...c(t, "default")
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
}), Je = p({
|
|
229
|
+
InputComp: te,
|
|
192
230
|
valueType: "text",
|
|
193
231
|
name: "PFromText"
|
|
194
|
-
}),
|
|
195
|
-
InputComp:
|
|
232
|
+
}), Qe = p({
|
|
233
|
+
InputComp: re,
|
|
196
234
|
valueType: "digit",
|
|
197
235
|
name: "PFormNumber"
|
|
198
|
-
}),
|
|
199
|
-
InputComp:
|
|
236
|
+
}), We = p({
|
|
237
|
+
InputComp: ne,
|
|
200
238
|
valueType: "date",
|
|
201
239
|
name: "PFormDate"
|
|
202
|
-
}),
|
|
203
|
-
InputComp:
|
|
240
|
+
}), Xe = p({
|
|
241
|
+
InputComp: oe,
|
|
204
242
|
valueType: "time",
|
|
205
243
|
name: "PFormTime"
|
|
206
|
-
}),
|
|
207
|
-
InputComp:
|
|
244
|
+
}), Ye = p({
|
|
245
|
+
InputComp: De,
|
|
208
246
|
valueType: "select",
|
|
209
247
|
name: "PFormSelect"
|
|
210
|
-
}),
|
|
211
|
-
InputComp:
|
|
248
|
+
}), Ze = p({
|
|
249
|
+
InputComp: ae,
|
|
212
250
|
valueType: "treeSelect",
|
|
213
251
|
name: "PFormTreeSelect"
|
|
214
|
-
}),
|
|
215
|
-
InputComp:
|
|
252
|
+
}), _e = p({
|
|
253
|
+
InputComp: Ae,
|
|
216
254
|
valueType: "checkbox",
|
|
217
255
|
name: "PFromCheckbox"
|
|
218
|
-
}),
|
|
219
|
-
InputComp:
|
|
256
|
+
}), $e = p({
|
|
257
|
+
InputComp: Le,
|
|
220
258
|
valueType: "radio",
|
|
221
259
|
name: "PFromRadio"
|
|
222
|
-
}),
|
|
223
|
-
InputComp:
|
|
260
|
+
}), et = p({
|
|
261
|
+
InputComp: ue,
|
|
224
262
|
valueType: "switch",
|
|
225
263
|
name: "PFromSwitch"
|
|
226
|
-
}),
|
|
227
|
-
InputComp:
|
|
264
|
+
}), tt = p({
|
|
265
|
+
InputComp: le,
|
|
228
266
|
valueType: "cascader",
|
|
229
267
|
name: "PFormCascader"
|
|
230
|
-
}),
|
|
268
|
+
}), rt = s({
|
|
231
269
|
props: {
|
|
232
|
-
...
|
|
270
|
+
...y.props
|
|
233
271
|
},
|
|
234
272
|
setup: (e, {
|
|
235
273
|
slots: t,
|
|
236
|
-
emit:
|
|
274
|
+
emit: n
|
|
237
275
|
}) => {
|
|
238
276
|
const {
|
|
239
|
-
formRef:
|
|
240
|
-
} =
|
|
241
|
-
var
|
|
242
|
-
|
|
277
|
+
formRef: o
|
|
278
|
+
} = Ce(), u = (l) => {
|
|
279
|
+
var r, d;
|
|
280
|
+
n("click", l), (d = (r = o.value) == null ? void 0 : r.submit) == null || d.call(r);
|
|
243
281
|
};
|
|
244
|
-
return () => a(
|
|
245
|
-
onClick:
|
|
282
|
+
return () => a(y, i({
|
|
283
|
+
onClick: u
|
|
246
284
|
}, e), t);
|
|
247
285
|
}
|
|
248
|
-
}),
|
|
286
|
+
}), O = Pe(G), M = () => ({
|
|
249
287
|
addButtonText: {
|
|
250
288
|
type: String,
|
|
251
289
|
default: "\u6DFB\u52A0\u4E00\u9879"
|
|
@@ -260,29 +298,29 @@ const D = () => ({
|
|
|
260
298
|
minusButtonProps: {
|
|
261
299
|
type: Object
|
|
262
300
|
}
|
|
263
|
-
}),
|
|
301
|
+
}), nt = s({
|
|
264
302
|
name: "PFormList",
|
|
265
303
|
props: {
|
|
266
|
-
...
|
|
267
|
-
...
|
|
304
|
+
...O.props,
|
|
305
|
+
...M()
|
|
268
306
|
},
|
|
269
307
|
setup: (e, {
|
|
270
308
|
slots: t
|
|
271
309
|
}) => {
|
|
272
|
-
const
|
|
273
|
-
return () => a(
|
|
274
|
-
itemMinus: () => a(
|
|
310
|
+
const n = C(M());
|
|
311
|
+
return () => a(O, c(e, n), {
|
|
312
|
+
itemMinus: () => a(y, e.minusButtonProps, {
|
|
275
313
|
default: () => [e.minusButtonText]
|
|
276
314
|
}),
|
|
277
|
-
add: () => a(
|
|
315
|
+
add: () => a(y, e.addButtonProps, {
|
|
278
316
|
default: () => [e.addButtonText]
|
|
279
317
|
}),
|
|
280
318
|
...t
|
|
281
319
|
});
|
|
282
320
|
}
|
|
283
|
-
}),
|
|
321
|
+
}), q = s({
|
|
284
322
|
props: {
|
|
285
|
-
...
|
|
323
|
+
...c(h.props, "label", "prop"),
|
|
286
324
|
title: {
|
|
287
325
|
type: String
|
|
288
326
|
},
|
|
@@ -296,25 +334,25 @@ const D = () => ({
|
|
|
296
334
|
type: Function
|
|
297
335
|
}
|
|
298
336
|
},
|
|
299
|
-
setup: (e) => () => a(
|
|
300
|
-
label:
|
|
301
|
-
renderHeader:
|
|
337
|
+
setup: (e) => () => a(h, i(c(e, "title", "label", "renderHeader", "prop", "dataIndex", "formatter", "customRender", "children"), {
|
|
338
|
+
label: v(e.title) ? void 0 : e.title,
|
|
339
|
+
renderHeader: v(e.title) ? () => e.title : void 0,
|
|
302
340
|
prop: e.dataIndex,
|
|
303
|
-
formatter: (t,
|
|
304
|
-
value:
|
|
305
|
-
text:
|
|
341
|
+
formatter: (t, n, o, u) => e.customRender ? e.customRender({
|
|
342
|
+
value: o,
|
|
343
|
+
text: o,
|
|
306
344
|
record: t,
|
|
307
|
-
column:
|
|
308
|
-
index:
|
|
309
|
-
}) :
|
|
345
|
+
column: n,
|
|
346
|
+
index: u
|
|
347
|
+
}) : o
|
|
310
348
|
}), {
|
|
311
|
-
default: () => [
|
|
349
|
+
default: () => [me(e.children) > 0 && P(e.children, (t) => a(q, i({
|
|
312
350
|
key: t.dataIndex
|
|
313
351
|
}, t), null))]
|
|
314
352
|
})
|
|
315
|
-
}),
|
|
353
|
+
}), H = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], Ve = s({
|
|
316
354
|
props: {
|
|
317
|
-
...
|
|
355
|
+
...B.props,
|
|
318
356
|
columns: {
|
|
319
357
|
type: Array
|
|
320
358
|
},
|
|
@@ -327,146 +365,147 @@ const D = () => ({
|
|
|
327
365
|
},
|
|
328
366
|
setup: (e, {
|
|
329
367
|
slots: t,
|
|
330
|
-
expose:
|
|
368
|
+
expose: n
|
|
331
369
|
}) => {
|
|
332
|
-
const
|
|
333
|
-
return
|
|
334
|
-
ref:
|
|
335
|
-
id:
|
|
336
|
-
},
|
|
370
|
+
const o = g(), u = N("table");
|
|
371
|
+
return n(z(H, o)), () => a(B, i({
|
|
372
|
+
ref: o,
|
|
373
|
+
id: u
|
|
374
|
+
}, c(e, "columns", "dataSource", "loading"), {
|
|
337
375
|
data: e.dataSource || e.data
|
|
338
376
|
}), {
|
|
339
377
|
default: () => {
|
|
340
|
-
var l,
|
|
341
|
-
return [(l = t.start) == null ? void 0 : l.call(t), P(e.columns, (
|
|
342
|
-
key:
|
|
343
|
-
},
|
|
344
|
-
target:
|
|
378
|
+
var l, r;
|
|
379
|
+
return [(l = t.start) == null ? void 0 : l.call(t), P(e.columns, (d) => a(q, i({
|
|
380
|
+
key: d.dataIndex
|
|
381
|
+
}, d), null)), (r = t.default) == null ? void 0 : r.call(t), e.loading && a(Re, {
|
|
382
|
+
target: u,
|
|
345
383
|
loading: !0
|
|
346
384
|
}, null)];
|
|
347
385
|
},
|
|
348
|
-
...
|
|
386
|
+
...c(t, "default", "start")
|
|
349
387
|
});
|
|
350
388
|
}
|
|
351
|
-
}),
|
|
352
|
-
hideRequiredAsterisk: e.mode ===
|
|
353
|
-
}),
|
|
389
|
+
}), we = be(Ve, void 0, H), Oe = Fe(U, y, (e) => ({
|
|
390
|
+
hideRequiredAsterisk: e.mode === Se.DETAIL
|
|
391
|
+
}), S), Me = s({
|
|
354
392
|
setup: () => {
|
|
355
393
|
const {
|
|
356
394
|
formProps: e
|
|
357
|
-
} =
|
|
358
|
-
return () => a(
|
|
395
|
+
} = b();
|
|
396
|
+
return () => a(Oe, c(e == null ? void 0 : e.value, "slots"), F(e == null ? void 0 : e.value, "slots"));
|
|
359
397
|
}
|
|
360
|
-
}),
|
|
398
|
+
}), j = Te(Be, we), je = s({
|
|
361
399
|
props: {
|
|
362
|
-
...
|
|
400
|
+
...j.props,
|
|
363
401
|
paginationProps: {
|
|
364
402
|
type: Object
|
|
365
403
|
}
|
|
366
404
|
},
|
|
367
405
|
setup: (e, {
|
|
368
406
|
slots: t
|
|
369
|
-
}) => () => a(
|
|
370
|
-
pagination: (
|
|
371
|
-
total:
|
|
372
|
-
currentPage:
|
|
373
|
-
pageSize:
|
|
407
|
+
}) => () => a(j, c(e, "paginationProps"), {
|
|
408
|
+
pagination: (n, o, u) => a(ce, i(e.paginationProps, {
|
|
409
|
+
total: o,
|
|
410
|
+
currentPage: n.page,
|
|
411
|
+
pageSize: n.pageSize,
|
|
374
412
|
onSizeChange: (l) => {
|
|
375
|
-
|
|
413
|
+
n.pageSize = l, u();
|
|
376
414
|
},
|
|
377
415
|
onCurrentChange: (l) => {
|
|
378
|
-
|
|
416
|
+
n.page = l, u();
|
|
379
417
|
}
|
|
380
418
|
}), null),
|
|
381
419
|
...t
|
|
382
420
|
})
|
|
383
|
-
}),
|
|
421
|
+
}), ot = s({
|
|
384
422
|
setup: () => {
|
|
385
423
|
const {
|
|
386
424
|
listProps: e
|
|
387
|
-
} =
|
|
388
|
-
return () => a(
|
|
425
|
+
} = b();
|
|
426
|
+
return () => a(je, c(e == null ? void 0 : e.value, "slots"), F(e == null ? void 0 : e.value, "slots"));
|
|
389
427
|
}
|
|
390
|
-
}),
|
|
428
|
+
}), ze = ve(de, ie), at = s({
|
|
391
429
|
setup: () => {
|
|
392
430
|
const {
|
|
393
431
|
descProps: e
|
|
394
|
-
} =
|
|
395
|
-
return () => a(
|
|
432
|
+
} = b();
|
|
433
|
+
return () => a(ze, c(e == null ? void 0 : e.value, "slots"), F(e == null ? void 0 : e.value, "slots"));
|
|
396
434
|
}
|
|
397
|
-
}),
|
|
435
|
+
}), Ke = s({
|
|
398
436
|
props: {
|
|
399
|
-
...
|
|
437
|
+
...D.props
|
|
400
438
|
},
|
|
401
439
|
setup: (e, {
|
|
402
440
|
slots: t
|
|
403
441
|
}) => {
|
|
404
442
|
const {
|
|
405
|
-
curdState:
|
|
406
|
-
getOperate:
|
|
407
|
-
} =
|
|
408
|
-
var
|
|
409
|
-
switch (
|
|
410
|
-
case
|
|
411
|
-
return (
|
|
412
|
-
case
|
|
413
|
-
return (
|
|
414
|
-
case
|
|
415
|
-
return (
|
|
443
|
+
curdState: n,
|
|
444
|
+
getOperate: o
|
|
445
|
+
} = b(), u = () => {
|
|
446
|
+
var r, d, m;
|
|
447
|
+
switch (n.mode) {
|
|
448
|
+
case f.ADD:
|
|
449
|
+
return (r = o(f.ADD)) == null ? void 0 : r.label;
|
|
450
|
+
case f.EDIT:
|
|
451
|
+
return (d = o(f.EDIT)) == null ? void 0 : d.label;
|
|
452
|
+
case f.DETAIL:
|
|
453
|
+
return (m = o(f.DETAIL)) == null ? void 0 : m.label;
|
|
416
454
|
}
|
|
417
455
|
}, l = () => {
|
|
418
|
-
|
|
456
|
+
n.mode = void 0, Ie(n.detailData, {}), n.detailLoading = !1, n.addAction = void 0;
|
|
419
457
|
};
|
|
420
|
-
return () => a(
|
|
458
|
+
return () => a(D, i({
|
|
421
459
|
destroyOnClose: !0,
|
|
422
|
-
title:
|
|
423
|
-
modelValue: !!
|
|
460
|
+
title: u(),
|
|
461
|
+
modelValue: !!n.mode,
|
|
424
462
|
onClose: l
|
|
425
463
|
}, e), t);
|
|
426
464
|
}
|
|
427
|
-
}),
|
|
465
|
+
}), ut = s({
|
|
428
466
|
setup: () => {
|
|
429
467
|
const {
|
|
430
468
|
modalProps: e
|
|
431
|
-
} =
|
|
432
|
-
return () => a(
|
|
433
|
-
default: () => [a(
|
|
469
|
+
} = b();
|
|
470
|
+
return () => a(Ke, c(e == null ? void 0 : e.value, "slots"), {
|
|
471
|
+
default: () => [a(Me, null, null)],
|
|
434
472
|
...F(e == null ? void 0 : e.value, "slots")
|
|
435
473
|
});
|
|
436
474
|
}
|
|
437
475
|
});
|
|
438
476
|
export {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
Ye as
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
477
|
+
S as FormMethods,
|
|
478
|
+
Ae as ProCheckbox,
|
|
479
|
+
ze as ProCurdDesc,
|
|
480
|
+
at as ProCurdDescConnect,
|
|
481
|
+
Oe as ProCurdForm,
|
|
482
|
+
Me as ProCurdFormConnect,
|
|
483
|
+
je as ProCurdList,
|
|
484
|
+
ot as ProCurdListConnect,
|
|
485
|
+
Ke as ProCurdModal,
|
|
486
|
+
ut as ProCurdModalConnect,
|
|
487
|
+
U as ProForm,
|
|
488
|
+
tt as ProFormCascader,
|
|
489
|
+
_e as ProFormCheckbox,
|
|
490
|
+
We as ProFormDatePicker,
|
|
491
|
+
G as ProFormItem,
|
|
492
|
+
nt as ProFormList,
|
|
493
|
+
$e as ProFormRadio,
|
|
494
|
+
Ye as ProFormSelect,
|
|
495
|
+
et as ProFormSwitch,
|
|
496
|
+
Je as ProFormText,
|
|
497
|
+
Qe as ProFormTextNumber,
|
|
498
|
+
Xe as ProFormTimePicker,
|
|
499
|
+
Ze as ProFormTreeSelect,
|
|
500
|
+
xe as ProGrid,
|
|
501
|
+
Re as ProLoading,
|
|
502
|
+
Le as ProRadio,
|
|
503
|
+
Be as ProSearchForm,
|
|
504
|
+
De as ProSelect,
|
|
505
|
+
rt as ProSubmitButton,
|
|
506
|
+
we as ProTable,
|
|
507
|
+
q as ProTableColumn,
|
|
508
|
+
H as TableMethods,
|
|
509
|
+
p as createFormItemComponent,
|
|
510
|
+
N as createLoadingId
|
|
472
511
|
};
|