general-basic-form 2.0.58 → 2.0.60
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/README.md +2 -2
- package/dist/index.js +313 -296
- package/dist/index.umd.cjs +1 -1
- package/package.json +64 -61
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as S, inject as y, resolveComponent as d, openBlock as s, createBlock as p, mergeProps as b, withKeys as
|
|
1
|
+
import { defineComponent as S, inject as y, resolveComponent as d, openBlock as s, createBlock as p, mergeProps as b, withKeys as te, createSlots as Y, renderList as q, withCtx as g, resolveDynamicComponent as w, createCommentVNode as _, ref as v, unref as m, onMounted as pe, createElementBlock as $, computed as N, shallowRef as O, onBeforeUnmount as me, createTextVNode as x, toDisplayString as T, h as H, normalizeProps as de, guardReactiveProps as fe, Fragment as L, provide as Q, resolveDirective as X, withDirectives as R, renderSlot as K, createVNode as ne, vShow as ye, watch as oe, normalizeStyle as he, createElementVNode as ge } from "vue";
|
|
2
2
|
import { useRoute as _e } from "vue-router";
|
|
3
|
-
const
|
|
3
|
+
const J = {
|
|
4
4
|
placeholder: "请输入",
|
|
5
5
|
style: "width: 200px",
|
|
6
6
|
clearable: !0
|
|
7
|
-
},
|
|
7
|
+
}, ve = {
|
|
8
8
|
style: "width: 227px",
|
|
9
9
|
"start-placeholder": "开始日期",
|
|
10
10
|
"end-placeholder": "结束日期",
|
|
11
11
|
type: "daterange"
|
|
12
|
-
},
|
|
12
|
+
}, re = {
|
|
13
13
|
placeholder: "请选择",
|
|
14
14
|
filterable: !0,
|
|
15
15
|
clearable: !0,
|
|
16
16
|
style: "width: 200px"
|
|
17
|
-
},
|
|
17
|
+
}, be = S({
|
|
18
18
|
components: {
|
|
19
19
|
InputArchive: (e) => {
|
|
20
|
-
const { templateEle:
|
|
21
|
-
return
|
|
20
|
+
const { templateEle: t } = e;
|
|
21
|
+
return t();
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
props: {
|
|
@@ -26,13 +26,13 @@ const W = {
|
|
|
26
26
|
// null就是any
|
|
27
27
|
},
|
|
28
28
|
setup() {
|
|
29
|
-
const e = y("queryParams", {}),
|
|
30
|
-
return { queryParams: e, getList:
|
|
29
|
+
const e = y("queryParams", {}), t = y("getList"), n = y("size", "default");
|
|
30
|
+
return { queryParams: e, getList: t, size: n };
|
|
31
31
|
},
|
|
32
32
|
data() {
|
|
33
33
|
return {
|
|
34
34
|
inputSetting: {
|
|
35
|
-
...
|
|
35
|
+
...J,
|
|
36
36
|
...this.item.inputSetting,
|
|
37
37
|
...this.item.setting
|
|
38
38
|
}
|
|
@@ -55,56 +55,56 @@ const W = {
|
|
|
55
55
|
// console.log(val);
|
|
56
56
|
// },
|
|
57
57
|
// },
|
|
58
|
-
}), B = (e,
|
|
59
|
-
const
|
|
60
|
-
for (const [
|
|
61
|
-
|
|
62
|
-
return
|
|
58
|
+
}), B = (e, t) => {
|
|
59
|
+
const n = e.__vccOpts || e;
|
|
60
|
+
for (const [i, r] of t)
|
|
61
|
+
n[i] = r;
|
|
62
|
+
return n;
|
|
63
63
|
};
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
return s(), p(
|
|
67
|
-
onKeydown:
|
|
64
|
+
function ke(e, t, n, i, r, l) {
|
|
65
|
+
const a = d("el-input");
|
|
66
|
+
return s(), p(a, b({
|
|
67
|
+
onKeydown: te(e.getList, ["enter"]),
|
|
68
68
|
modelValue: e.queryParams[e.item.prop],
|
|
69
|
-
"onUpdate:modelValue":
|
|
69
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => e.queryParams[e.item.prop] = u),
|
|
70
70
|
size: e.size
|
|
71
71
|
}, e.inputSetting), Y({ _: 2 }, [
|
|
72
72
|
q(e.item.template, (u, o) => ({
|
|
73
73
|
name: o,
|
|
74
|
-
fn:
|
|
74
|
+
fn: g(() => [
|
|
75
75
|
u ? (s(), p(w(e.currentInputComponent()), {
|
|
76
76
|
key: o,
|
|
77
77
|
templateEle: u
|
|
78
|
-
}, null, 8, ["templateEle"])) :
|
|
78
|
+
}, null, 8, ["templateEle"])) : _("", !0)
|
|
79
79
|
])
|
|
80
80
|
}))
|
|
81
81
|
]), 1040, ["onKeydown", "modelValue", "size"]);
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const A = /* @__PURE__ */ B(be, [["render", ke]]), Se = /* @__PURE__ */ S({
|
|
84
84
|
__name: "index",
|
|
85
85
|
props: {
|
|
86
86
|
item: {}
|
|
87
87
|
},
|
|
88
88
|
setup(e) {
|
|
89
|
-
const
|
|
90
|
-
...
|
|
89
|
+
const t = y("queryParams", {}), n = y("size"), i = v({
|
|
90
|
+
...J,
|
|
91
91
|
...e.item.inputSetting,
|
|
92
92
|
...e.item.setting
|
|
93
93
|
});
|
|
94
94
|
return (r, l) => {
|
|
95
|
-
const
|
|
96
|
-
return s(), p(
|
|
97
|
-
modelValue: m(
|
|
98
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => m(
|
|
99
|
-
size: m(
|
|
100
|
-
},
|
|
95
|
+
const a = d("el-input-number");
|
|
96
|
+
return s(), p(a, b({
|
|
97
|
+
modelValue: m(t)[r.item.prop],
|
|
98
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => m(t)[r.item.prop] = u),
|
|
99
|
+
size: m(n)
|
|
100
|
+
}, i.value), null, 16, ["modelValue", "size"]);
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
}),
|
|
103
|
+
}), $e = S({
|
|
104
104
|
components: {
|
|
105
105
|
InputArchive: (e) => {
|
|
106
|
-
const { templateEle:
|
|
107
|
-
return
|
|
106
|
+
const { templateEle: t } = e;
|
|
107
|
+
return t();
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
props: {
|
|
@@ -112,14 +112,14 @@ const U = /* @__PURE__ */ B(ve, [["render", be]]), ke = /* @__PURE__ */ S({
|
|
|
112
112
|
// null就是any
|
|
113
113
|
},
|
|
114
114
|
setup() {
|
|
115
|
-
const e = y("queryParams", {}),
|
|
116
|
-
}),
|
|
117
|
-
return { queryParams: e, getList:
|
|
115
|
+
const e = y("queryParams", {}), t = y("getList", () => {
|
|
116
|
+
}), n = y("size", "default"), r = y("Form").useInjectFormItemContext();
|
|
117
|
+
return { queryParams: e, getList: t, size: n, formItemContext: r };
|
|
118
118
|
},
|
|
119
119
|
data() {
|
|
120
120
|
return {
|
|
121
121
|
inputSetting: {
|
|
122
|
-
...
|
|
122
|
+
...J,
|
|
123
123
|
...this.item.inputSetting,
|
|
124
124
|
...this.item.setting
|
|
125
125
|
}
|
|
@@ -146,63 +146,63 @@ const U = /* @__PURE__ */ B(ve, [["render", be]]), ke = /* @__PURE__ */ S({
|
|
|
146
146
|
// },
|
|
147
147
|
// },
|
|
148
148
|
});
|
|
149
|
-
function
|
|
150
|
-
const
|
|
151
|
-
return s(), p(
|
|
152
|
-
onKeydown:
|
|
149
|
+
function Pe(e, t, n, i, r, l) {
|
|
150
|
+
const a = d("a-input");
|
|
151
|
+
return s(), p(a, b({
|
|
152
|
+
onKeydown: te(e.getList, ["enter"]),
|
|
153
153
|
onChange: e.onInputChange,
|
|
154
154
|
value: e.queryParams[e.item.prop],
|
|
155
155
|
size: e.size
|
|
156
156
|
}, e.inputSetting), Y({ _: 2 }, [
|
|
157
157
|
q(e.item.template, (u, o) => ({
|
|
158
158
|
name: o,
|
|
159
|
-
fn:
|
|
159
|
+
fn: g(() => [
|
|
160
160
|
u ? (s(), p(w(e.currentInputComponent()), {
|
|
161
161
|
key: o,
|
|
162
162
|
templateEle: u
|
|
163
|
-
}, null, 8, ["templateEle"])) :
|
|
163
|
+
}, null, 8, ["templateEle"])) : _("", !0)
|
|
164
164
|
])
|
|
165
165
|
}))
|
|
166
166
|
]), 1040, ["onKeydown", "onChange", "value", "size"]);
|
|
167
167
|
}
|
|
168
|
-
const
|
|
168
|
+
const se = /* @__PURE__ */ B($e, [["render", Pe]]), ae = Symbol(), Ie = /* @__PURE__ */ S({
|
|
169
169
|
__name: "index",
|
|
170
170
|
props: {
|
|
171
171
|
imgSrc: {}
|
|
172
172
|
},
|
|
173
173
|
setup(e) {
|
|
174
|
-
const
|
|
175
|
-
return
|
|
176
|
-
const
|
|
177
|
-
let
|
|
178
|
-
const o = 300, f =
|
|
179
|
-
|
|
180
|
-
f.width =
|
|
181
|
-
},
|
|
182
|
-
const
|
|
183
|
-
for (let
|
|
174
|
+
const t = v();
|
|
175
|
+
return pe(() => {
|
|
176
|
+
const n = new Image(), i = [], r = 8, l = 8;
|
|
177
|
+
let a = 0, u = 0;
|
|
178
|
+
const o = 300, f = t.value, k = f.getContext("2d");
|
|
179
|
+
n.onload = function() {
|
|
180
|
+
f.width = n.width, f.height = n.height, u = Math.floor(n.width / r), a = Math.floor(n.height / l), P(), z();
|
|
181
|
+
}, n.src = e.imgSrc;
|
|
182
|
+
const P = () => {
|
|
183
|
+
for (let I = 0; I < l; I++)
|
|
184
184
|
for (let h = 0; h < r; h++)
|
|
185
|
-
|
|
185
|
+
i.push({
|
|
186
186
|
x: u * h,
|
|
187
|
-
y:
|
|
187
|
+
y: a * I,
|
|
188
188
|
offsetX: (Math.random() - 0.5) * o,
|
|
189
189
|
offsetY: (Math.random() - 0.5) * o
|
|
190
190
|
});
|
|
191
191
|
}, z = () => {
|
|
192
192
|
k.clearRect(0, 0, f.width, f.height);
|
|
193
|
-
let
|
|
194
|
-
|
|
195
|
-
k.drawImage(
|
|
196
|
-
}),
|
|
197
|
-
|
|
193
|
+
let I = !0;
|
|
194
|
+
i.forEach((h, U) => {
|
|
195
|
+
k.drawImage(n, h.x, h.y, u, a, h.x + h.offsetX, h.y + h.offsetY, u, a), Math.abs(h.offsetX) > 0.5 && (I = !1, h.offsetX *= 0.95), Math.abs(h.offsetY) > 0.5 && (h.offsetY *= 0.95, I = !1);
|
|
196
|
+
}), I ? setTimeout(() => {
|
|
197
|
+
P(), z();
|
|
198
198
|
}, 300) : requestAnimationFrame(z);
|
|
199
199
|
};
|
|
200
|
-
}), (
|
|
200
|
+
}), (n, i) => (s(), $("canvas", {
|
|
201
201
|
ref_key: "loadingCanvas",
|
|
202
|
-
ref:
|
|
202
|
+
ref: t
|
|
203
203
|
}, null, 512));
|
|
204
204
|
}
|
|
205
|
-
}),
|
|
205
|
+
}), ze = { class: "input-graphic-verification" }, Ve = ["src", "alt"], qe = /* @__PURE__ */ S({
|
|
206
206
|
__name: "index",
|
|
207
207
|
props: {
|
|
208
208
|
item: {},
|
|
@@ -211,50 +211,50 @@ const re = /* @__PURE__ */ B(Se, [["render", $e]]), se = Symbol(), Ie = /* @__PU
|
|
|
211
211
|
},
|
|
212
212
|
setup(e) {
|
|
213
213
|
const {
|
|
214
|
-
graphicSrc:
|
|
215
|
-
graphicAlt:
|
|
216
|
-
getGraphic:
|
|
214
|
+
graphicSrc: t = "",
|
|
215
|
+
graphicAlt: n = "",
|
|
216
|
+
getGraphic: i = () => {
|
|
217
217
|
},
|
|
218
218
|
key: r
|
|
219
|
-
} = e.item, { formLoading: l } = y(
|
|
220
|
-
|
|
221
|
-
}, o =
|
|
219
|
+
} = e.item, { formLoading: l } = y(ae, !1), a = N(() => (l == null ? void 0 : l.value) || e.loading), u = async () => {
|
|
220
|
+
i && !(a != null && a.value) && await i();
|
|
221
|
+
}, o = O(A);
|
|
222
222
|
switch (e.componentType) {
|
|
223
223
|
case "Element Plus":
|
|
224
|
-
o.value =
|
|
224
|
+
o.value = A;
|
|
225
225
|
break;
|
|
226
226
|
case "Ant Design Vue":
|
|
227
|
-
o.value =
|
|
227
|
+
o.value = se;
|
|
228
228
|
break;
|
|
229
229
|
}
|
|
230
|
-
return (f, k) => (s(), $("div",
|
|
230
|
+
return (f, k) => (s(), $("div", ze, [
|
|
231
231
|
(s(), p(w(o.value), {
|
|
232
232
|
item: f.item,
|
|
233
233
|
class: "input"
|
|
234
234
|
}, null, 8, ["item"])),
|
|
235
|
-
|
|
235
|
+
a.value ? (s(), p(Ie, {
|
|
236
236
|
key: 0,
|
|
237
237
|
class: "graphic",
|
|
238
|
-
imgSrc: m(
|
|
238
|
+
imgSrc: m(t)
|
|
239
239
|
}, null, 8, ["imgSrc"])) : (s(), $("img", {
|
|
240
240
|
key: 1,
|
|
241
241
|
class: "graphic",
|
|
242
242
|
onClick: u,
|
|
243
|
-
src: m(
|
|
244
|
-
alt: m(
|
|
245
|
-
}, null, 8,
|
|
243
|
+
src: m(t),
|
|
244
|
+
alt: m(n) || `${m(r)}`
|
|
245
|
+
}, null, 8, Ve))
|
|
246
246
|
]));
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
|
-
const ie = /* @__PURE__ */ B(
|
|
249
|
+
const ie = /* @__PURE__ */ B(qe, [["__scopeId", "data-v-fb7aa300"]]), E = "获取验证码", Ce = 60, we = /* @__PURE__ */ S({
|
|
250
250
|
__name: "verification-button",
|
|
251
251
|
props: {
|
|
252
252
|
getSmscode: { type: Function },
|
|
253
253
|
componentType: { default: "Element Plus" },
|
|
254
254
|
item: {}
|
|
255
255
|
},
|
|
256
|
-
setup(e, { expose:
|
|
257
|
-
const
|
|
256
|
+
setup(e, { expose: t }) {
|
|
257
|
+
const n = v(E), i = v(null), r = N(() => n.value === E), l = O("el-button");
|
|
258
258
|
switch (e.componentType) {
|
|
259
259
|
case "Element Plus":
|
|
260
260
|
l.value = "el-button";
|
|
@@ -263,26 +263,26 @@ const ie = /* @__PURE__ */ B(Ve, [["__scopeId", "data-v-fb7aa300"]]), R = "获
|
|
|
263
263
|
l.value = "a-button";
|
|
264
264
|
break;
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
|
|
266
|
+
const a = () => {
|
|
267
|
+
i && (clearInterval(i.value), i.value = null, n.value = E);
|
|
268
268
|
}, u = async () => {
|
|
269
|
-
if (
|
|
270
|
-
if (
|
|
271
|
-
if (Number(
|
|
272
|
-
|
|
269
|
+
if (n.value === E)
|
|
270
|
+
if (n.value = Ce, i.value = setInterval(() => {
|
|
271
|
+
if (Number(n.value) <= 0 || !n.value) {
|
|
272
|
+
a();
|
|
273
273
|
return;
|
|
274
274
|
} else
|
|
275
|
-
|
|
275
|
+
n.value = Number(n.value) - 1;
|
|
276
276
|
}, 1e3), e.getSmscode)
|
|
277
|
-
await e.getSmscode() === !1 &&
|
|
277
|
+
await e.getSmscode() === !1 && a();
|
|
278
278
|
else
|
|
279
279
|
return;
|
|
280
280
|
};
|
|
281
|
-
|
|
282
|
-
|
|
281
|
+
me(() => {
|
|
282
|
+
a();
|
|
283
283
|
});
|
|
284
284
|
const o = { ...e.item.buttonSetting };
|
|
285
|
-
return
|
|
285
|
+
return t({ buttonClick: u, reset: a }), (f, k) => (s(), p(w(l.value), b({
|
|
286
286
|
class: "verifiaction-button",
|
|
287
287
|
style: {
|
|
288
288
|
color: r.value ? "var(--color-primary, #409EFF)" : "var(--text-color-placeholder, #A8ABB2)",
|
|
@@ -290,51 +290,51 @@ const ie = /* @__PURE__ */ B(Ve, [["__scopeId", "data-v-fb7aa300"]]), R = "获
|
|
|
290
290
|
},
|
|
291
291
|
onClick: u
|
|
292
292
|
}, o), {
|
|
293
|
-
default:
|
|
294
|
-
|
|
293
|
+
default: g(() => [
|
|
294
|
+
x(T(r.value ? E : n.value + "s"), 1)
|
|
295
295
|
]),
|
|
296
296
|
_: 1
|
|
297
297
|
}, 16, ["style"]));
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
|
-
const Z = /* @__PURE__ */ B(
|
|
300
|
+
const Z = /* @__PURE__ */ B(we, [["__scopeId", "data-v-aa89c1b7"]]), le = /* @__PURE__ */ S({
|
|
301
301
|
__name: "index",
|
|
302
302
|
props: {
|
|
303
303
|
item: {},
|
|
304
304
|
componentType: { default: "Element Plus" }
|
|
305
305
|
},
|
|
306
|
-
setup(e, { expose:
|
|
307
|
-
const
|
|
306
|
+
setup(e, { expose: t }) {
|
|
307
|
+
const n = e.item, i = O(A), r = v();
|
|
308
308
|
switch (e.componentType) {
|
|
309
309
|
case "Element Plus":
|
|
310
|
-
|
|
310
|
+
i.value = A, n.template = {
|
|
311
311
|
append: () => H(Z, {
|
|
312
|
-
getSmscode:
|
|
312
|
+
getSmscode: n.getSmscode,
|
|
313
313
|
item: e.item,
|
|
314
314
|
ref: r
|
|
315
315
|
})
|
|
316
316
|
};
|
|
317
317
|
break;
|
|
318
318
|
case "Ant Design Vue":
|
|
319
|
-
|
|
319
|
+
i.value = se, n.template = {
|
|
320
320
|
suffix: () => H(Z, {
|
|
321
|
-
getSmscode:
|
|
321
|
+
getSmscode: n.getSmscode,
|
|
322
322
|
item: e.item,
|
|
323
323
|
ref: r
|
|
324
324
|
})
|
|
325
325
|
};
|
|
326
326
|
break;
|
|
327
327
|
}
|
|
328
|
-
return
|
|
329
|
-
item: m(
|
|
328
|
+
return t({ VerificationButtonRef: r }), (l, a) => (s(), p(w(i.value), {
|
|
329
|
+
item: m(n),
|
|
330
330
|
class: "input"
|
|
331
331
|
}, null, 8, ["item"]));
|
|
332
332
|
}
|
|
333
|
-
}),
|
|
333
|
+
}), De = S({
|
|
334
334
|
components: {
|
|
335
335
|
slotArchive: (e) => {
|
|
336
|
-
const { templateEle:
|
|
337
|
-
return
|
|
336
|
+
const { templateEle: t } = e;
|
|
337
|
+
return t();
|
|
338
338
|
}
|
|
339
339
|
},
|
|
340
340
|
props: {
|
|
@@ -357,45 +357,45 @@ const Z = /* @__PURE__ */ B(Ce, [["__scopeId", "data-v-aa89c1b7"]]), ae = /* @__
|
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
});
|
|
360
|
-
function xe(e,
|
|
361
|
-
const
|
|
362
|
-
return s(), p(
|
|
360
|
+
function xe(e, t, n, i, r, l) {
|
|
361
|
+
const a = d("el-divider");
|
|
362
|
+
return s(), p(a, de(fe(e.dividerSetting)), Y({ _: 2 }, [
|
|
363
363
|
q(e.item.template, (u, o) => ({
|
|
364
364
|
name: o,
|
|
365
|
-
fn:
|
|
365
|
+
fn: g(() => [
|
|
366
366
|
u ? (s(), p(w(e.currentInputComponent()), {
|
|
367
367
|
key: o,
|
|
368
368
|
templateEle: u
|
|
369
|
-
}, null, 8, ["templateEle"])) :
|
|
369
|
+
}, null, 8, ["templateEle"])) : _("", !0)
|
|
370
370
|
])
|
|
371
371
|
}))
|
|
372
372
|
]), 1040);
|
|
373
373
|
}
|
|
374
|
-
const
|
|
374
|
+
const Le = /* @__PURE__ */ B(De, [["render", xe]]), Be = /* @__PURE__ */ S({
|
|
375
375
|
__name: "index",
|
|
376
376
|
props: {
|
|
377
377
|
item: {}
|
|
378
378
|
},
|
|
379
379
|
setup(e) {
|
|
380
|
-
const
|
|
380
|
+
const t = y("queryParams", {}), n = y("size"), i = v({
|
|
381
381
|
...e.item.radioGroupSetting,
|
|
382
382
|
...e.item.setting
|
|
383
383
|
});
|
|
384
384
|
return (r, l) => {
|
|
385
|
-
const
|
|
385
|
+
const a = d("el-radio"), u = d("el-radio-group");
|
|
386
386
|
return s(), p(u, b({
|
|
387
|
-
modelValue: m(
|
|
388
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) => m(
|
|
389
|
-
size: m(
|
|
390
|
-
},
|
|
391
|
-
default:
|
|
392
|
-
(s(!0), $(L, null, q(r.item.option || [], (o) => (s(), p(
|
|
393
|
-
size: m(
|
|
387
|
+
modelValue: m(t)[r.item.prop],
|
|
388
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => m(t)[r.item.prop] = o),
|
|
389
|
+
size: m(n)
|
|
390
|
+
}, i.value), {
|
|
391
|
+
default: g(() => [
|
|
392
|
+
(s(!0), $(L, null, q(r.item.option || [], (o) => (s(), p(a, b({
|
|
393
|
+
size: m(n),
|
|
394
394
|
key: o.value,
|
|
395
395
|
ref_for: !0
|
|
396
396
|
}, o), {
|
|
397
|
-
default:
|
|
398
|
-
|
|
397
|
+
default: g(() => [
|
|
398
|
+
x(T(o.label), 1)
|
|
399
399
|
]),
|
|
400
400
|
_: 2
|
|
401
401
|
}, 1040, ["size"]))), 128))
|
|
@@ -404,31 +404,31 @@ const De = /* @__PURE__ */ B(we, [["render", xe]]), Le = /* @__PURE__ */ S({
|
|
|
404
404
|
}, 16, ["modelValue", "size"]);
|
|
405
405
|
};
|
|
406
406
|
}
|
|
407
|
-
}),
|
|
407
|
+
}), Fe = /* @__PURE__ */ S({
|
|
408
408
|
__name: "index",
|
|
409
409
|
props: {
|
|
410
410
|
item: {}
|
|
411
411
|
},
|
|
412
412
|
setup(e) {
|
|
413
|
-
const
|
|
413
|
+
const t = y("queryParams", {}), n = y("size"), i = v({
|
|
414
414
|
...e.item.checkboxGroupSetting,
|
|
415
415
|
...e.item.setting
|
|
416
416
|
});
|
|
417
417
|
return (r, l) => {
|
|
418
|
-
const
|
|
418
|
+
const a = d("el-checkbox"), u = d("el-checkbox-group");
|
|
419
419
|
return s(), p(u, b({
|
|
420
|
-
modelValue: m(
|
|
421
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) => m(
|
|
422
|
-
size: m(
|
|
423
|
-
},
|
|
424
|
-
default:
|
|
425
|
-
(s(!0), $(L, null, q(r.item.option || [], (o) => (s(), p(
|
|
426
|
-
size: m(
|
|
420
|
+
modelValue: m(t)[r.item.prop],
|
|
421
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => m(t)[r.item.prop] = o),
|
|
422
|
+
size: m(n)
|
|
423
|
+
}, i.value), {
|
|
424
|
+
default: g(() => [
|
|
425
|
+
(s(!0), $(L, null, q(r.item.option || [], (o) => (s(), p(a, b({
|
|
426
|
+
size: m(n),
|
|
427
427
|
key: o.value,
|
|
428
428
|
ref_for: !0
|
|
429
429
|
}, o), {
|
|
430
|
-
default:
|
|
431
|
-
|
|
430
|
+
default: g(() => [
|
|
431
|
+
x(T(o.label), 1)
|
|
432
432
|
]),
|
|
433
433
|
_: 2
|
|
434
434
|
}, 1040, ["size"]))), 128))
|
|
@@ -437,24 +437,24 @@ const De = /* @__PURE__ */ B(we, [["render", xe]]), Le = /* @__PURE__ */ S({
|
|
|
437
437
|
}, 16, ["modelValue", "size"]);
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
}),
|
|
440
|
+
}), Te = /* @__PURE__ */ S({
|
|
441
441
|
__name: "index",
|
|
442
442
|
props: {
|
|
443
443
|
item: {}
|
|
444
444
|
},
|
|
445
445
|
setup(e) {
|
|
446
|
-
const
|
|
447
|
-
...
|
|
446
|
+
const t = y("queryParams", {}), n = y("size"), i = v({
|
|
447
|
+
...ve,
|
|
448
448
|
...e.item.datePackerSetting,
|
|
449
449
|
...e.item.setting
|
|
450
450
|
});
|
|
451
451
|
return (r, l) => {
|
|
452
|
-
const
|
|
453
|
-
return s(), p(
|
|
454
|
-
modelValue: m(
|
|
455
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => m(
|
|
456
|
-
size: m(
|
|
457
|
-
},
|
|
452
|
+
const a = d("el-date-picker");
|
|
453
|
+
return s(), p(a, b({
|
|
454
|
+
modelValue: m(t)[r.item.prop],
|
|
455
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => m(t)[r.item.prop] = u),
|
|
456
|
+
size: m(n)
|
|
457
|
+
}, i.value), null, 16, ["modelValue", "size"]);
|
|
458
458
|
};
|
|
459
459
|
}
|
|
460
460
|
}), Ee = /* @__PURE__ */ S({
|
|
@@ -463,20 +463,20 @@ const De = /* @__PURE__ */ B(we, [["render", xe]]), Le = /* @__PURE__ */ S({
|
|
|
463
463
|
item: {}
|
|
464
464
|
},
|
|
465
465
|
setup(e) {
|
|
466
|
-
const
|
|
467
|
-
...
|
|
466
|
+
const t = y("queryParams", {}), n = y("size"), i = v({
|
|
467
|
+
...re,
|
|
468
468
|
...e.item.selectSetting,
|
|
469
469
|
...e.item.setting
|
|
470
470
|
});
|
|
471
471
|
return (r, l) => {
|
|
472
|
-
const
|
|
472
|
+
const a = d("el-option"), u = d("el-select");
|
|
473
473
|
return s(), p(u, b({
|
|
474
|
-
modelValue: m(
|
|
475
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) => m(
|
|
476
|
-
size: m(
|
|
477
|
-
},
|
|
478
|
-
default:
|
|
479
|
-
(s(!0), $(L, null, q(r.item.option || [], (o) => (s(), p(
|
|
474
|
+
modelValue: m(t)[r.item.prop],
|
|
475
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => m(t)[r.item.prop] = o),
|
|
476
|
+
size: m(n)
|
|
477
|
+
}, i.value), {
|
|
478
|
+
default: g(() => [
|
|
479
|
+
(s(!0), $(L, null, q(r.item.option || [], (o) => (s(), p(a, b({
|
|
480
480
|
key: o.value,
|
|
481
481
|
ref_for: !0
|
|
482
482
|
}, o), null, 16))), 128))
|
|
@@ -491,32 +491,49 @@ const De = /* @__PURE__ */ B(we, [["render", xe]]), Le = /* @__PURE__ */ S({
|
|
|
491
491
|
item: {}
|
|
492
492
|
},
|
|
493
493
|
setup(e) {
|
|
494
|
-
const
|
|
495
|
-
...
|
|
494
|
+
const t = y("queryParams", {}), n = y("size"), i = v({
|
|
495
|
+
...re,
|
|
496
496
|
...e.item.selectSetting,
|
|
497
497
|
...e.item.setting
|
|
498
498
|
});
|
|
499
499
|
return (r, l) => {
|
|
500
|
-
const
|
|
501
|
-
return s(), p(
|
|
502
|
-
modelValue: m(
|
|
503
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => m(
|
|
504
|
-
size: m(
|
|
500
|
+
const a = d("el-cascader");
|
|
501
|
+
return s(), p(a, b({
|
|
502
|
+
modelValue: m(t)[r.item.prop],
|
|
503
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => m(t)[r.item.prop] = u),
|
|
504
|
+
size: m(n),
|
|
505
505
|
options: r.item.options || []
|
|
506
|
-
},
|
|
506
|
+
}, i.value), null, 16, ["modelValue", "size", "options"]);
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
}),
|
|
509
|
+
}), Oe = (e = {}) => {
|
|
510
|
+
for (const t in e)
|
|
511
|
+
if (Object.prototype.hasOwnProperty.call(e, t)) {
|
|
512
|
+
const n = e[t];
|
|
513
|
+
Object.prototype.toString.call(n) === "[object Object]" && (e[t] = JSON.stringify(n));
|
|
514
|
+
}
|
|
515
|
+
return e;
|
|
516
|
+
}, Ae = (e = {}) => {
|
|
517
|
+
for (const t in e)
|
|
518
|
+
if (Object.prototype.hasOwnProperty.call(e, t)) {
|
|
519
|
+
const n = e[t];
|
|
520
|
+
try {
|
|
521
|
+
e[t] = JSON.parse(n);
|
|
522
|
+
} catch {
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return e;
|
|
526
|
+
}, Ue = { paramsToQuery: Oe, queryToData: Ae }, ee = Ue, Ne = S({
|
|
510
527
|
name: "GeneralBasicForm",
|
|
511
528
|
components: {
|
|
512
|
-
Input:
|
|
513
|
-
InputNumber:
|
|
529
|
+
Input: A,
|
|
530
|
+
InputNumber: Se,
|
|
514
531
|
InputGraphicVerification: ie,
|
|
515
|
-
InputMobileVerification:
|
|
516
|
-
Divider:
|
|
517
|
-
Radio:
|
|
518
|
-
Checkbox:
|
|
519
|
-
DatePicker:
|
|
532
|
+
InputMobileVerification: le,
|
|
533
|
+
Divider: Le,
|
|
534
|
+
Radio: Be,
|
|
535
|
+
Checkbox: Fe,
|
|
536
|
+
DatePicker: Te,
|
|
520
537
|
Select: Ee,
|
|
521
538
|
Cascader: Re
|
|
522
539
|
},
|
|
@@ -587,32 +604,32 @@ const De = /* @__PURE__ */ B(we, [["render", xe]]), Le = /* @__PURE__ */ S({
|
|
|
587
604
|
};
|
|
588
605
|
},
|
|
589
606
|
setup(e) {
|
|
590
|
-
const { size:
|
|
591
|
-
...
|
|
607
|
+
const { size: t, noUrlParameters: n, getList: i } = e, r = _e(), l = v({
|
|
608
|
+
...n ? {} : ee.queryToData(r == null ? void 0 : r.query)
|
|
592
609
|
});
|
|
593
|
-
return
|
|
610
|
+
return Q(
|
|
594
611
|
/* 注入名 */
|
|
595
612
|
"queryParams",
|
|
596
613
|
/* 值 */
|
|
597
614
|
l
|
|
598
|
-
),
|
|
615
|
+
), Q(
|
|
599
616
|
/* 注入名 */
|
|
600
617
|
"size",
|
|
601
618
|
/* 值 */
|
|
602
|
-
|
|
603
|
-
),
|
|
619
|
+
t
|
|
620
|
+
), Q(
|
|
604
621
|
/* 注入名 */
|
|
605
622
|
"getList",
|
|
606
623
|
/* 值 */
|
|
607
|
-
|
|
624
|
+
i
|
|
608
625
|
), {
|
|
609
626
|
queryParams: l
|
|
610
627
|
};
|
|
611
628
|
},
|
|
612
629
|
watch: {
|
|
613
630
|
formData: {
|
|
614
|
-
handler(e,
|
|
615
|
-
JSON.stringify(e) !== JSON.stringify(
|
|
631
|
+
handler(e, t) {
|
|
632
|
+
JSON.stringify(e) !== JSON.stringify(t) && (this.queryParams = {
|
|
616
633
|
...this.noUrlParameters ? {} : this.queryParams,
|
|
617
634
|
...e
|
|
618
635
|
});
|
|
@@ -638,8 +655,8 @@ const De = /* @__PURE__ */ B(we, [["render", xe]]), Le = /* @__PURE__ */ S({
|
|
|
638
655
|
provide() {
|
|
639
656
|
return {
|
|
640
657
|
// 显式提供一个计算属性
|
|
641
|
-
[
|
|
642
|
-
formLoading:
|
|
658
|
+
[ae]: {
|
|
659
|
+
formLoading: N(() => this.formLoading),
|
|
643
660
|
updateFormLoading: (e) => {
|
|
644
661
|
this.formLoading = e;
|
|
645
662
|
}
|
|
@@ -649,135 +666,135 @@ const De = /* @__PURE__ */ B(we, [["render", xe]]), Le = /* @__PURE__ */ S({
|
|
|
649
666
|
methods: {
|
|
650
667
|
/** 搜索按钮操作 */
|
|
651
668
|
handleQuery() {
|
|
652
|
-
var
|
|
653
|
-
const e = { page: 1, limit: 10 },
|
|
654
|
-
...(
|
|
669
|
+
var n;
|
|
670
|
+
const e = { page: 1, limit: 10 }, t = ee.paramsToQuery({
|
|
671
|
+
...(n = this.$route) == null ? void 0 : n.query,
|
|
655
672
|
...this.queryParams,
|
|
656
673
|
...e
|
|
657
|
-
};
|
|
674
|
+
});
|
|
658
675
|
this.noUrlParameters || this.$router.push({
|
|
659
|
-
query: { ...
|
|
676
|
+
query: { ...t }
|
|
660
677
|
}), this.getList({
|
|
661
|
-
...
|
|
678
|
+
...t
|
|
662
679
|
});
|
|
663
680
|
},
|
|
664
681
|
/** 重置按钮操作 */
|
|
665
682
|
async resetQuery() {
|
|
666
|
-
var
|
|
683
|
+
var t;
|
|
667
684
|
this.$refs.queryFormRef.resetFields();
|
|
668
685
|
const e = { page: 1 };
|
|
669
686
|
this.noUrlParameters || await this.$router.push({
|
|
670
687
|
query: { ...e }
|
|
671
688
|
}), this.queryParams = {
|
|
672
|
-
...this.noUrlParameters ? {} : (
|
|
689
|
+
...this.noUrlParameters ? {} : (t = this.$route) == null ? void 0 : t.query
|
|
673
690
|
}, this.afterReset(), this.handleQuery();
|
|
674
691
|
},
|
|
675
692
|
getItemRules(e) {
|
|
676
|
-
const { type:
|
|
677
|
-
return this.noInputBlank &&
|
|
693
|
+
const { type: t, rules: n = [] } = e, i = [...n];
|
|
694
|
+
return this.noInputBlank && t === "input" && i.push({
|
|
678
695
|
pattern: this.trimRegex,
|
|
679
696
|
message: "请输入(不能仅输入空格)",
|
|
680
697
|
trigger: "blur"
|
|
681
|
-
}),
|
|
698
|
+
}), i;
|
|
682
699
|
}
|
|
683
700
|
}
|
|
684
701
|
});
|
|
685
|
-
function
|
|
686
|
-
const
|
|
687
|
-
return
|
|
702
|
+
function je(e, t, n, i, r, l) {
|
|
703
|
+
const a = d("Input"), u = d("Radio"), o = d("Select"), f = d("Divider"), k = d("Cascader"), P = d("Checkbox"), z = d("DatePicker"), I = d("InputNumber"), h = d("InputMobileVerification"), U = d("InputGraphicVerification"), F = d("el-form-item"), D = d("el-button"), j = d("el-form"), G = X("loading");
|
|
704
|
+
return R((s(), p(j, b({
|
|
688
705
|
model: e.queryParams,
|
|
689
706
|
ref: "queryFormRef",
|
|
690
707
|
inline: "",
|
|
691
708
|
"label-position": "left",
|
|
692
709
|
"label-width": e.labelWidth
|
|
693
710
|
}, e.$attrs), {
|
|
694
|
-
default:
|
|
711
|
+
default: g(() => [
|
|
695
712
|
(s(!0), $(L, null, q(e.formItem, (c) => (s(), p(F, {
|
|
696
713
|
label: c.label,
|
|
697
714
|
prop: c.prop,
|
|
698
715
|
key: c.prop,
|
|
699
716
|
rules: e.getItemRules(c)
|
|
700
717
|
}, {
|
|
701
|
-
default:
|
|
702
|
-
/^input$/i.test(c.type) ? (s(), p(
|
|
718
|
+
default: g(() => [
|
|
719
|
+
/^input$/i.test(c.type) ? (s(), p(a, {
|
|
703
720
|
key: 0,
|
|
704
721
|
item: c
|
|
705
|
-
}, null, 8, ["item"])) :
|
|
722
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
706
723
|
/^radio$/i.test(c.type) ? (s(), p(u, {
|
|
707
724
|
key: 1,
|
|
708
725
|
item: c
|
|
709
|
-
}, null, 8, ["item"])) :
|
|
726
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
710
727
|
/^select$/i.test(c.type) ? (s(), p(o, {
|
|
711
728
|
key: 2,
|
|
712
729
|
item: c
|
|
713
|
-
}, null, 8, ["item"])) :
|
|
730
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
714
731
|
/^divider$/i.test(c.type) ? (s(), p(f, {
|
|
715
732
|
key: 3,
|
|
716
733
|
item: c
|
|
717
|
-
}, null, 8, ["item"])) :
|
|
734
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
718
735
|
/^cascader$/i.test(c.type) ? (s(), p(k, {
|
|
719
736
|
key: 4,
|
|
720
737
|
item: c
|
|
721
|
-
}, null, 8, ["item"])) :
|
|
722
|
-
/^checkbox$/i.test(c.type) ? (s(), p(
|
|
738
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
739
|
+
/^checkbox$/i.test(c.type) ? (s(), p(P, {
|
|
723
740
|
key: 5,
|
|
724
741
|
item: c
|
|
725
|
-
}, null, 8, ["item"])) :
|
|
742
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
726
743
|
/^date-picker$/i.test(c.type) ? (s(), p(z, {
|
|
727
744
|
key: 6,
|
|
728
745
|
item: c
|
|
729
|
-
}, null, 8, ["item"])) :
|
|
730
|
-
/^input-number$/i.test(c.type) ? (s(), p(
|
|
746
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
747
|
+
/^input-number$/i.test(c.type) ? (s(), p(I, {
|
|
731
748
|
key: 7,
|
|
732
749
|
item: c
|
|
733
|
-
}, null, 8, ["item"])) :
|
|
734
|
-
/^form-item-slot$/i.test(c.type) ?
|
|
750
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
751
|
+
/^form-item-slot$/i.test(c.type) ? K(e.$slots, c.name, { key: 8 }) : _("", !0),
|
|
735
752
|
/^input-mobile-verification$/i.test(c.type) ? (s(), p(h, {
|
|
736
753
|
key: 9,
|
|
737
754
|
item: c
|
|
738
|
-
}, null, 8, ["item"])) :
|
|
739
|
-
/^input-graphic-verification$/i.test(c.type) ? (s(), p(
|
|
755
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
756
|
+
/^input-graphic-verification$/i.test(c.type) ? (s(), p(U, {
|
|
740
757
|
item: c,
|
|
741
758
|
key: c.key
|
|
742
|
-
}, null, 8, ["item"])) :
|
|
759
|
+
}, null, 8, ["item"])) : _("", !0)
|
|
743
760
|
]),
|
|
744
761
|
_: 2
|
|
745
762
|
}, 1032, ["label", "prop", "rules"]))), 128)),
|
|
746
|
-
|
|
747
|
-
e.formOnly ?
|
|
748
|
-
default:
|
|
749
|
-
|
|
763
|
+
K(e.$slots, "default"),
|
|
764
|
+
e.formOnly ? _("", !0) : (s(), p(F, { key: 0 }, {
|
|
765
|
+
default: g(() => [
|
|
766
|
+
R((s(), p(D, {
|
|
750
767
|
type: "primary",
|
|
751
768
|
size: e.size,
|
|
752
769
|
onClick: e.handleQuery
|
|
753
770
|
}, {
|
|
754
|
-
default:
|
|
755
|
-
|
|
771
|
+
default: g(() => t[0] || (t[0] = [
|
|
772
|
+
x("查询")
|
|
756
773
|
])),
|
|
757
774
|
_: 1
|
|
758
775
|
}, 8, ["size", "onClick"])), [
|
|
759
|
-
[
|
|
776
|
+
[G, e.formLoading]
|
|
760
777
|
]),
|
|
761
|
-
|
|
778
|
+
ne(D, {
|
|
762
779
|
size: e.size,
|
|
763
780
|
onClick: e.resetQuery
|
|
764
781
|
}, {
|
|
765
|
-
default:
|
|
766
|
-
|
|
782
|
+
default: g(() => t[1] || (t[1] = [
|
|
783
|
+
x("重置")
|
|
767
784
|
])),
|
|
768
785
|
_: 1
|
|
769
786
|
}, 8, ["size", "onClick"])
|
|
770
787
|
]),
|
|
771
788
|
_: 1
|
|
772
789
|
})),
|
|
773
|
-
|
|
790
|
+
K(e.$slots, "behind-the-button")
|
|
774
791
|
]),
|
|
775
792
|
_: 3
|
|
776
793
|
}, 16, ["model", "label-width"])), [
|
|
777
|
-
[
|
|
794
|
+
[ye, e.showSearch]
|
|
778
795
|
]);
|
|
779
796
|
}
|
|
780
|
-
const
|
|
797
|
+
const Ge = /* @__PURE__ */ B(Ne, [["render", je]]), Me = ["infinite-scroll-disabled"], Qe = ["infinite-scroll-disabled"], Ke = { class: "checkbox" }, Xe = /* @__PURE__ */ S({
|
|
781
798
|
__name: "InfiniteScrollList",
|
|
782
799
|
props: {
|
|
783
800
|
search: {
|
|
@@ -810,107 +827,107 @@ const Ue = /* @__PURE__ */ B(Ae, [["render", Te]]), Ge = ["infinite-scroll-disab
|
|
|
810
827
|
default: "272px"
|
|
811
828
|
}
|
|
812
829
|
},
|
|
813
|
-
setup(e, { expose:
|
|
814
|
-
const
|
|
815
|
-
const { i:
|
|
816
|
-
return
|
|
830
|
+
setup(e, { expose: t }) {
|
|
831
|
+
const n = e, { search: i, id: r, name: l, extra: a, height: u } = n, o = v([]), f = v(1), k = v(!1), P = v([]), z = v(!1), I = (c, C) => {
|
|
832
|
+
const { i: M } = c;
|
|
833
|
+
return a && a !== "false" ? a(M) : "";
|
|
817
834
|
}, h = (c) => {
|
|
818
|
-
|
|
835
|
+
P.value = c.map((C) => typeof C == "object" ? C[r] : C);
|
|
819
836
|
};
|
|
820
|
-
|
|
821
|
-
() =>
|
|
837
|
+
oe(
|
|
838
|
+
() => n.defaultSelection,
|
|
822
839
|
(c = [], C = []) => {
|
|
823
840
|
h(c);
|
|
824
841
|
},
|
|
825
842
|
{ immediate: !0 }
|
|
826
843
|
);
|
|
827
|
-
const
|
|
828
|
-
F(),
|
|
844
|
+
const U = () => {
|
|
845
|
+
F(), P.value = [];
|
|
829
846
|
}, F = () => {
|
|
830
847
|
f.value = 1, o.value = [], k.value = !1;
|
|
831
|
-
},
|
|
848
|
+
}, D = async () => {
|
|
832
849
|
if (z.value || k.value)
|
|
833
850
|
return;
|
|
834
851
|
z.value = !0;
|
|
835
|
-
const c = await
|
|
852
|
+
const c = await i(f.value);
|
|
836
853
|
c && c.length > 0 ? (o.value = [...o.value, ...c], f.value += 1) : k.value = !0, z.value = !1;
|
|
837
|
-
},
|
|
838
|
-
F(),
|
|
839
|
-
},
|
|
840
|
-
() => o.value.filter((c) =>
|
|
854
|
+
}, j = () => {
|
|
855
|
+
F(), D();
|
|
856
|
+
}, G = N(
|
|
857
|
+
() => o.value.filter((c) => P.value.includes(c[r]))
|
|
841
858
|
) || {};
|
|
842
|
-
return
|
|
843
|
-
reset:
|
|
859
|
+
return t({
|
|
860
|
+
reset: U,
|
|
844
861
|
lowReset: F,
|
|
845
|
-
loadList:
|
|
846
|
-
selectInfo:
|
|
862
|
+
loadList: D,
|
|
863
|
+
selectInfo: G,
|
|
847
864
|
list: o,
|
|
848
865
|
ifbottom: k,
|
|
849
|
-
refreshList:
|
|
866
|
+
refreshList: j,
|
|
850
867
|
loading: z
|
|
851
868
|
}), (c, C) => {
|
|
852
|
-
const
|
|
853
|
-
return
|
|
869
|
+
const M = d("el-checkbox"), ue = d("el-checkbox-group"), W = X("infinite-scroll"), ce = X("loading");
|
|
870
|
+
return n.checkbox ? R((s(), p(ue, b({
|
|
854
871
|
key: 0,
|
|
855
|
-
modelValue:
|
|
856
|
-
"onUpdate:modelValue": C[0] || (C[0] = (V) =>
|
|
857
|
-
},
|
|
858
|
-
default:
|
|
859
|
-
|
|
872
|
+
modelValue: P.value,
|
|
873
|
+
"onUpdate:modelValue": C[0] || (C[0] = (V) => P.value = V)
|
|
874
|
+
}, n), {
|
|
875
|
+
default: g(() => [
|
|
876
|
+
R((s(), $("ul", {
|
|
860
877
|
class: "list",
|
|
861
878
|
"infinite-scroll-disabled": k.value,
|
|
862
|
-
style:
|
|
879
|
+
style: he({ height: m(u) })
|
|
863
880
|
}, [
|
|
864
881
|
(s(!0), $(L, null, q(o.value, (V) => (s(), $("li", {
|
|
865
882
|
key: V[m(r)],
|
|
866
883
|
class: "list-item"
|
|
867
884
|
}, [
|
|
868
|
-
|
|
885
|
+
ne(M, {
|
|
869
886
|
value: V[m(r)],
|
|
870
887
|
class: "checkbox"
|
|
871
888
|
}, {
|
|
872
|
-
default:
|
|
873
|
-
|
|
874
|
-
|
|
889
|
+
default: g(() => [
|
|
890
|
+
x(T(V[m(l)]) + " ", 1),
|
|
891
|
+
n.extra ? (s(), p(I, {
|
|
875
892
|
key: 0,
|
|
876
893
|
i: V
|
|
877
|
-
}, null, 8, ["i"])) :
|
|
894
|
+
}, null, 8, ["i"])) : _("", !0)
|
|
878
895
|
]),
|
|
879
896
|
_: 2
|
|
880
897
|
}, 1032, ["value"])
|
|
881
898
|
]))), 128))
|
|
882
|
-
], 12,
|
|
883
|
-
[
|
|
899
|
+
], 12, Me)), [
|
|
900
|
+
[W, D]
|
|
884
901
|
])
|
|
885
902
|
]),
|
|
886
903
|
_: 1
|
|
887
904
|
}, 16, ["modelValue"])), [
|
|
888
|
-
[
|
|
889
|
-
]) :
|
|
905
|
+
[ce, z.value]
|
|
906
|
+
]) : R((s(), $("ul", b({
|
|
890
907
|
key: 1,
|
|
891
908
|
class: "list",
|
|
892
909
|
"infinite-scroll-disabled": k.value,
|
|
893
910
|
style: { height: m(u) }
|
|
894
|
-
},
|
|
911
|
+
}, n), [
|
|
895
912
|
(s(!0), $(L, null, q(o.value, (V) => (s(), $("li", {
|
|
896
913
|
key: V[m(r)],
|
|
897
914
|
class: "list-item"
|
|
898
915
|
}, [
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
916
|
+
ge("div", Ke, [
|
|
917
|
+
x(T(V[m(l)]) + " ", 1),
|
|
918
|
+
n.extra ? (s(), p(I, {
|
|
902
919
|
key: 0,
|
|
903
920
|
i: V
|
|
904
|
-
}, null, 8, ["i"])) :
|
|
921
|
+
}, null, 8, ["i"])) : _("", !0)
|
|
905
922
|
])
|
|
906
923
|
]))), 128))
|
|
907
|
-
], 16,
|
|
908
|
-
[
|
|
924
|
+
], 16, Qe)), [
|
|
925
|
+
[W, D]
|
|
909
926
|
]);
|
|
910
927
|
};
|
|
911
928
|
}
|
|
912
929
|
});
|
|
913
|
-
const
|
|
930
|
+
const Ye = /* @__PURE__ */ B(Xe, [["__scopeId", "data-v-e29b1da3"]]), Je = { key: 1 }, We = /* @__PURE__ */ S({
|
|
914
931
|
__name: "Descriptions",
|
|
915
932
|
props: {
|
|
916
933
|
formData: {
|
|
@@ -932,52 +949,52 @@ const je = /* @__PURE__ */ B(Oe, [["__scopeId", "data-v-e29b1da3"]]), Ke = { key
|
|
|
932
949
|
}
|
|
933
950
|
},
|
|
934
951
|
setup(e) {
|
|
935
|
-
const
|
|
936
|
-
|
|
937
|
-
() => [
|
|
938
|
-
([
|
|
952
|
+
const t = e, n = v([]);
|
|
953
|
+
oe(
|
|
954
|
+
() => [t.formData, t.formItem],
|
|
955
|
+
([a = {}, u = []]) => {
|
|
939
956
|
let o = u;
|
|
940
|
-
if (
|
|
941
|
-
for (const f in
|
|
942
|
-
Object.prototype.hasOwnProperty.call(
|
|
943
|
-
|
|
957
|
+
if (t.strict)
|
|
958
|
+
for (const f in a)
|
|
959
|
+
Object.prototype.hasOwnProperty.call(a, f) && (a[f] || (o = o.filter((P) => P.prop !== f || P.render)));
|
|
960
|
+
n.value = o;
|
|
944
961
|
},
|
|
945
962
|
{ immediate: !0 }
|
|
946
963
|
);
|
|
947
|
-
const
|
|
948
|
-
switch (
|
|
964
|
+
const i = O("el-descriptions-item"), r = O("descriptions-item");
|
|
965
|
+
switch (t.componentType) {
|
|
949
966
|
case "Element Plus":
|
|
950
|
-
|
|
967
|
+
i.value = "el-descriptions-item", r.value = "el-descriptions-item";
|
|
951
968
|
break;
|
|
952
969
|
case "Ant Design Vue":
|
|
953
|
-
|
|
970
|
+
i.value = "a-descriptions", r.value = "a-descriptions-item";
|
|
954
971
|
break;
|
|
955
972
|
}
|
|
956
|
-
const l = (
|
|
957
|
-
const { i: o, render: f, formData: k } =
|
|
973
|
+
const l = (a, u) => {
|
|
974
|
+
const { i: o, render: f, formData: k } = a;
|
|
958
975
|
return f({
|
|
959
976
|
row: k,
|
|
960
977
|
$index: o
|
|
961
978
|
});
|
|
962
979
|
};
|
|
963
|
-
return (
|
|
980
|
+
return (a, u) => (s(), p(w(i.value), b({
|
|
964
981
|
column: 1,
|
|
965
982
|
border: "",
|
|
966
983
|
class: "form-width"
|
|
967
|
-
},
|
|
968
|
-
default:
|
|
969
|
-
(s(!0), $(L, null, q(
|
|
984
|
+
}, a.$attrs), {
|
|
985
|
+
default: g(() => [
|
|
986
|
+
(s(!0), $(L, null, q(n.value, (o, f) => (s(), p(w(r.value), b({
|
|
970
987
|
key: o.prop,
|
|
971
988
|
label: o.label,
|
|
972
989
|
ref_for: !0
|
|
973
990
|
}, o.descriptionsItemProps), {
|
|
974
|
-
default:
|
|
991
|
+
default: g(() => [
|
|
975
992
|
o.render ? (s(), p(l, {
|
|
976
993
|
key: 0,
|
|
977
994
|
i: f,
|
|
978
995
|
render: o.render,
|
|
979
996
|
formData: e.formData
|
|
980
|
-
}, null, 8, ["i", "render", "formData"])) : (s(), $("span",
|
|
997
|
+
}, null, 8, ["i", "render", "formData"])) : (s(), $("span", Je, T(e.formData[o.prop]), 1))
|
|
981
998
|
]),
|
|
982
999
|
_: 2
|
|
983
1000
|
}, 1040, ["label"]))), 128))
|
|
@@ -985,11 +1002,11 @@ const je = /* @__PURE__ */ B(Oe, [["__scopeId", "data-v-e29b1da3"]]), Ke = { key
|
|
|
985
1002
|
_: 1
|
|
986
1003
|
}, 16));
|
|
987
1004
|
}
|
|
988
|
-
}),
|
|
1005
|
+
}), et = Ge, tt = Ye, nt = We, ot = ie, rt = le;
|
|
989
1006
|
export {
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1007
|
+
nt as VDescriptions,
|
|
1008
|
+
et as VGeneralBasicForm,
|
|
1009
|
+
tt as VInfiniteScrollList,
|
|
1010
|
+
ot as VInputGraphicVerification,
|
|
1011
|
+
rt as VInputMobilecVerification
|
|
995
1012
|
};
|