general-basic-form 2.0.57 → 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 +7 -3
- package/dist/index.js +315 -296
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +64 -61
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent 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
20
|
const { templateEle: t } = e;
|
|
@@ -32,7 +32,7 @@ const W = {
|
|
|
32
32
|
data() {
|
|
33
33
|
return {
|
|
34
34
|
inputSetting: {
|
|
35
|
-
...
|
|
35
|
+
...J,
|
|
36
36
|
...this.item.inputSetting,
|
|
37
37
|
...this.item.setting
|
|
38
38
|
}
|
|
@@ -57,50 +57,50 @@ const W = {
|
|
|
57
57
|
// },
|
|
58
58
|
}), B = (e, t) => {
|
|
59
59
|
const n = e.__vccOpts || e;
|
|
60
|
-
for (const [
|
|
61
|
-
n[
|
|
60
|
+
for (const [i, r] of t)
|
|
61
|
+
n[i] = r;
|
|
62
62
|
return n;
|
|
63
63
|
};
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
return
|
|
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
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:
|
|
75
|
-
u ? (
|
|
74
|
+
fn: g(() => [
|
|
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 t = y("queryParams", {}), n = y("size"),
|
|
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
|
-
return (
|
|
95
|
-
const
|
|
96
|
-
return
|
|
97
|
-
modelValue: m(t)[
|
|
98
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => m(t)[
|
|
94
|
+
return (r, l) => {
|
|
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
99
|
size: m(n)
|
|
100
|
-
},
|
|
100
|
+
}, i.value), null, 16, ["modelValue", "size"]);
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
}),
|
|
103
|
+
}), $e = S({
|
|
104
104
|
components: {
|
|
105
105
|
InputArchive: (e) => {
|
|
106
106
|
const { templateEle: t } = e;
|
|
@@ -113,13 +113,13 @@ const U = /* @__PURE__ */ B(ve, [["render", be]]), ke = /* @__PURE__ */ k({
|
|
|
113
113
|
},
|
|
114
114
|
setup() {
|
|
115
115
|
const e = y("queryParams", {}), t = y("getList", () => {
|
|
116
|
-
}), n = y("size", "default"),
|
|
117
|
-
return { queryParams: e, getList: t, size: n, formItemContext:
|
|
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__ */ k({
|
|
|
146
146
|
// },
|
|
147
147
|
// },
|
|
148
148
|
});
|
|
149
|
-
function
|
|
150
|
-
const
|
|
151
|
-
return
|
|
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:
|
|
160
|
-
u ? (
|
|
159
|
+
fn: g(() => [
|
|
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 t =
|
|
175
|
-
return
|
|
176
|
-
const n = new Image(),
|
|
177
|
-
let
|
|
178
|
-
const o = 300, f = t.value,
|
|
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
179
|
n.onload = function() {
|
|
180
|
-
f.width = n.width, f.height = n.height, u = Math.floor(n.width /
|
|
180
|
+
f.width = n.width, f.height = n.height, u = Math.floor(n.width / r), a = Math.floor(n.height / l), P(), z();
|
|
181
181
|
}, n.src = e.imgSrc;
|
|
182
|
-
const
|
|
183
|
-
for (let
|
|
184
|
-
for (let h = 0; h <
|
|
185
|
-
|
|
182
|
+
const P = () => {
|
|
183
|
+
for (let I = 0; I < l; I++)
|
|
184
|
+
for (let h = 0; h < r; h++)
|
|
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
|
-
|
|
193
|
-
let
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}),
|
|
197
|
-
|
|
192
|
+
k.clearRect(0, 0, f.width, f.height);
|
|
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
|
-
}), (n,
|
|
200
|
+
}), (n, i) => (s(), $("canvas", {
|
|
201
201
|
ref_key: "loadingCanvas",
|
|
202
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: {},
|
|
@@ -213,122 +213,124 @@ const re = /* @__PURE__ */ B(Se, [["render", $e]]), se = Symbol(), Ie = /* @__PU
|
|
|
213
213
|
const {
|
|
214
214
|
graphicSrc: t = "",
|
|
215
215
|
graphicAlt: n = "",
|
|
216
|
-
getGraphic:
|
|
216
|
+
getGraphic: i = () => {
|
|
217
217
|
},
|
|
218
|
-
key:
|
|
219
|
-
} = e.item, { formLoading: l } = y(
|
|
220
|
-
|
|
221
|
-
}, o =
|
|
218
|
+
key: r
|
|
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,
|
|
231
|
-
(
|
|
230
|
+
return (f, k) => (s(), $("div", ze, [
|
|
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
238
|
imgSrc: m(t)
|
|
239
|
-
}, null, 8, ["imgSrc"])) : (
|
|
239
|
+
}, null, 8, ["imgSrc"])) : (s(), $("img", {
|
|
240
240
|
key: 1,
|
|
241
241
|
class: "graphic",
|
|
242
242
|
onClick: u,
|
|
243
243
|
src: m(t),
|
|
244
|
-
alt: m(n) || `${m(
|
|
245
|
-
}, null, 8,
|
|
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) {
|
|
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";
|
|
261
261
|
break;
|
|
262
262
|
case "Ant Design Vue":
|
|
263
|
-
|
|
263
|
+
l.value = "a-button";
|
|
264
264
|
break;
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
|
|
268
|
-
},
|
|
269
|
-
if (
|
|
270
|
-
if (
|
|
271
|
-
if (Number(
|
|
272
|
-
|
|
266
|
+
const a = () => {
|
|
267
|
+
i && (clearInterval(i.value), i.value = null, n.value = E);
|
|
268
|
+
}, u = async () => {
|
|
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
|
-
const
|
|
285
|
-
return (
|
|
284
|
+
const o = { ...e.item.buttonSetting };
|
|
285
|
+
return t({ buttonClick: u, reset: a }), (f, k) => (s(), p(w(l.value), b({
|
|
286
286
|
class: "verifiaction-button",
|
|
287
287
|
style: {
|
|
288
|
-
color:
|
|
289
|
-
cursor:
|
|
288
|
+
color: r.value ? "var(--color-primary, #409EFF)" : "var(--text-color-placeholder, #A8ABB2)",
|
|
289
|
+
cursor: r.value ? "pointer" : "default"
|
|
290
290
|
},
|
|
291
|
-
onClick:
|
|
292
|
-
},
|
|
293
|
-
default:
|
|
294
|
-
|
|
291
|
+
onClick: u
|
|
292
|
+
}, o), {
|
|
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) {
|
|
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:
|
|
313
|
-
item: e.item
|
|
312
|
+
getSmscode: n.getSmscode,
|
|
313
|
+
item: e.item,
|
|
314
|
+
ref: r
|
|
314
315
|
})
|
|
315
316
|
};
|
|
316
317
|
break;
|
|
317
318
|
case "Ant Design Vue":
|
|
318
|
-
|
|
319
|
+
i.value = se, n.template = {
|
|
319
320
|
suffix: () => H(Z, {
|
|
320
|
-
getSmscode:
|
|
321
|
-
item: e.item
|
|
321
|
+
getSmscode: n.getSmscode,
|
|
322
|
+
item: e.item,
|
|
323
|
+
ref: r
|
|
322
324
|
})
|
|
323
325
|
};
|
|
324
326
|
break;
|
|
325
327
|
}
|
|
326
|
-
return (
|
|
327
|
-
item: m(
|
|
328
|
+
return t({ VerificationButtonRef: r }), (l, a) => (s(), p(w(i.value), {
|
|
329
|
+
item: m(n),
|
|
328
330
|
class: "input"
|
|
329
331
|
}, null, 8, ["item"]));
|
|
330
332
|
}
|
|
331
|
-
}),
|
|
333
|
+
}), De = S({
|
|
332
334
|
components: {
|
|
333
335
|
slotArchive: (e) => {
|
|
334
336
|
const { templateEle: t } = e;
|
|
@@ -355,45 +357,45 @@ const Z = /* @__PURE__ */ B(Ce, [["__scopeId", "data-v-f5cd774b"]]), ae = /* @__
|
|
|
355
357
|
}
|
|
356
358
|
}
|
|
357
359
|
});
|
|
358
|
-
function
|
|
359
|
-
const
|
|
360
|
-
return
|
|
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 }, [
|
|
361
363
|
q(e.item.template, (u, o) => ({
|
|
362
364
|
name: o,
|
|
363
|
-
fn:
|
|
364
|
-
u ? (
|
|
365
|
+
fn: g(() => [
|
|
366
|
+
u ? (s(), p(w(e.currentInputComponent()), {
|
|
365
367
|
key: o,
|
|
366
368
|
templateEle: u
|
|
367
|
-
}, null, 8, ["templateEle"])) :
|
|
369
|
+
}, null, 8, ["templateEle"])) : _("", !0)
|
|
368
370
|
])
|
|
369
371
|
}))
|
|
370
372
|
]), 1040);
|
|
371
373
|
}
|
|
372
|
-
const Le = /* @__PURE__ */ B(
|
|
374
|
+
const Le = /* @__PURE__ */ B(De, [["render", xe]]), Be = /* @__PURE__ */ S({
|
|
373
375
|
__name: "index",
|
|
374
376
|
props: {
|
|
375
377
|
item: {}
|
|
376
378
|
},
|
|
377
379
|
setup(e) {
|
|
378
|
-
const t = y("queryParams", {}), n = y("size"),
|
|
380
|
+
const t = y("queryParams", {}), n = y("size"), i = v({
|
|
379
381
|
...e.item.radioGroupSetting,
|
|
380
382
|
...e.item.setting
|
|
381
383
|
});
|
|
382
|
-
return (
|
|
383
|
-
const
|
|
384
|
-
return
|
|
385
|
-
modelValue: m(t)[
|
|
386
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) => m(t)[
|
|
384
|
+
return (r, l) => {
|
|
385
|
+
const a = d("el-radio"), u = d("el-radio-group");
|
|
386
|
+
return s(), p(u, b({
|
|
387
|
+
modelValue: m(t)[r.item.prop],
|
|
388
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => m(t)[r.item.prop] = o),
|
|
387
389
|
size: m(n)
|
|
388
|
-
},
|
|
389
|
-
default:
|
|
390
|
-
(
|
|
390
|
+
}, i.value), {
|
|
391
|
+
default: g(() => [
|
|
392
|
+
(s(!0), $(L, null, q(r.item.option || [], (o) => (s(), p(a, b({
|
|
391
393
|
size: m(n),
|
|
392
394
|
key: o.value,
|
|
393
395
|
ref_for: !0
|
|
394
396
|
}, o), {
|
|
395
|
-
default:
|
|
396
|
-
|
|
397
|
+
default: g(() => [
|
|
398
|
+
x(T(o.label), 1)
|
|
397
399
|
]),
|
|
398
400
|
_: 2
|
|
399
401
|
}, 1040, ["size"]))), 128))
|
|
@@ -402,31 +404,31 @@ const Le = /* @__PURE__ */ B(we, [["render", De]]), xe = /* @__PURE__ */ k({
|
|
|
402
404
|
}, 16, ["modelValue", "size"]);
|
|
403
405
|
};
|
|
404
406
|
}
|
|
405
|
-
}),
|
|
407
|
+
}), Fe = /* @__PURE__ */ S({
|
|
406
408
|
__name: "index",
|
|
407
409
|
props: {
|
|
408
410
|
item: {}
|
|
409
411
|
},
|
|
410
412
|
setup(e) {
|
|
411
|
-
const t = y("queryParams", {}), n = y("size"),
|
|
413
|
+
const t = y("queryParams", {}), n = y("size"), i = v({
|
|
412
414
|
...e.item.checkboxGroupSetting,
|
|
413
415
|
...e.item.setting
|
|
414
416
|
});
|
|
415
|
-
return (
|
|
416
|
-
const
|
|
417
|
-
return
|
|
418
|
-
modelValue: m(t)[
|
|
419
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) => m(t)[
|
|
417
|
+
return (r, l) => {
|
|
418
|
+
const a = d("el-checkbox"), u = d("el-checkbox-group");
|
|
419
|
+
return s(), p(u, b({
|
|
420
|
+
modelValue: m(t)[r.item.prop],
|
|
421
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => m(t)[r.item.prop] = o),
|
|
420
422
|
size: m(n)
|
|
421
|
-
},
|
|
422
|
-
default:
|
|
423
|
-
(
|
|
423
|
+
}, i.value), {
|
|
424
|
+
default: g(() => [
|
|
425
|
+
(s(!0), $(L, null, q(r.item.option || [], (o) => (s(), p(a, b({
|
|
424
426
|
size: m(n),
|
|
425
427
|
key: o.value,
|
|
426
428
|
ref_for: !0
|
|
427
429
|
}, o), {
|
|
428
|
-
default:
|
|
429
|
-
|
|
430
|
+
default: g(() => [
|
|
431
|
+
x(T(o.label), 1)
|
|
430
432
|
]),
|
|
431
433
|
_: 2
|
|
432
434
|
}, 1040, ["size"]))), 128))
|
|
@@ -435,46 +437,46 @@ const Le = /* @__PURE__ */ B(we, [["render", De]]), xe = /* @__PURE__ */ k({
|
|
|
435
437
|
}, 16, ["modelValue", "size"]);
|
|
436
438
|
};
|
|
437
439
|
}
|
|
438
|
-
}),
|
|
440
|
+
}), Te = /* @__PURE__ */ S({
|
|
439
441
|
__name: "index",
|
|
440
442
|
props: {
|
|
441
443
|
item: {}
|
|
442
444
|
},
|
|
443
445
|
setup(e) {
|
|
444
|
-
const t = y("queryParams", {}), n = y("size"),
|
|
445
|
-
...
|
|
446
|
+
const t = y("queryParams", {}), n = y("size"), i = v({
|
|
447
|
+
...ve,
|
|
446
448
|
...e.item.datePackerSetting,
|
|
447
449
|
...e.item.setting
|
|
448
450
|
});
|
|
449
|
-
return (
|
|
450
|
-
const
|
|
451
|
-
return
|
|
452
|
-
modelValue: m(t)[
|
|
453
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => m(t)[
|
|
451
|
+
return (r, l) => {
|
|
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),
|
|
454
456
|
size: m(n)
|
|
455
|
-
},
|
|
457
|
+
}, i.value), null, 16, ["modelValue", "size"]);
|
|
456
458
|
};
|
|
457
459
|
}
|
|
458
|
-
}), Ee = /* @__PURE__ */
|
|
460
|
+
}), Ee = /* @__PURE__ */ S({
|
|
459
461
|
__name: "index",
|
|
460
462
|
props: {
|
|
461
463
|
item: {}
|
|
462
464
|
},
|
|
463
465
|
setup(e) {
|
|
464
|
-
const t = y("queryParams", {}), n = y("size"),
|
|
465
|
-
...
|
|
466
|
+
const t = y("queryParams", {}), n = y("size"), i = v({
|
|
467
|
+
...re,
|
|
466
468
|
...e.item.selectSetting,
|
|
467
469
|
...e.item.setting
|
|
468
470
|
});
|
|
469
|
-
return (
|
|
470
|
-
const
|
|
471
|
-
return
|
|
472
|
-
modelValue: m(t)[
|
|
473
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) => m(t)[
|
|
471
|
+
return (r, l) => {
|
|
472
|
+
const a = d("el-option"), u = d("el-select");
|
|
473
|
+
return s(), p(u, b({
|
|
474
|
+
modelValue: m(t)[r.item.prop],
|
|
475
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => m(t)[r.item.prop] = o),
|
|
474
476
|
size: m(n)
|
|
475
|
-
},
|
|
476
|
-
default:
|
|
477
|
-
(
|
|
477
|
+
}, i.value), {
|
|
478
|
+
default: g(() => [
|
|
479
|
+
(s(!0), $(L, null, q(r.item.option || [], (o) => (s(), p(a, b({
|
|
478
480
|
key: o.value,
|
|
479
481
|
ref_for: !0
|
|
480
482
|
}, o), null, 16))), 128))
|
|
@@ -483,38 +485,55 @@ const Le = /* @__PURE__ */ B(we, [["render", De]]), xe = /* @__PURE__ */ k({
|
|
|
483
485
|
}, 16, ["modelValue", "size"]);
|
|
484
486
|
};
|
|
485
487
|
}
|
|
486
|
-
}), Re = /* @__PURE__ */
|
|
488
|
+
}), Re = /* @__PURE__ */ S({
|
|
487
489
|
__name: "index",
|
|
488
490
|
props: {
|
|
489
491
|
item: {}
|
|
490
492
|
},
|
|
491
493
|
setup(e) {
|
|
492
|
-
const t = y("queryParams", {}), n = y("size"),
|
|
493
|
-
...
|
|
494
|
+
const t = y("queryParams", {}), n = y("size"), i = v({
|
|
495
|
+
...re,
|
|
494
496
|
...e.item.selectSetting,
|
|
495
497
|
...e.item.setting
|
|
496
498
|
});
|
|
497
|
-
return (
|
|
498
|
-
const
|
|
499
|
-
return
|
|
500
|
-
modelValue: m(t)[
|
|
501
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => m(t)[
|
|
499
|
+
return (r, l) => {
|
|
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),
|
|
502
504
|
size: m(n),
|
|
503
|
-
options:
|
|
504
|
-
},
|
|
505
|
+
options: r.item.options || []
|
|
506
|
+
}, i.value), null, 16, ["modelValue", "size", "options"]);
|
|
505
507
|
};
|
|
506
508
|
}
|
|
507
|
-
}),
|
|
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({
|
|
508
527
|
name: "GeneralBasicForm",
|
|
509
528
|
components: {
|
|
510
|
-
Input:
|
|
511
|
-
InputNumber:
|
|
529
|
+
Input: A,
|
|
530
|
+
InputNumber: Se,
|
|
512
531
|
InputGraphicVerification: ie,
|
|
513
|
-
InputMobileVerification:
|
|
532
|
+
InputMobileVerification: le,
|
|
514
533
|
Divider: Le,
|
|
515
|
-
Radio:
|
|
516
|
-
Checkbox:
|
|
517
|
-
DatePicker:
|
|
534
|
+
Radio: Be,
|
|
535
|
+
Checkbox: Fe,
|
|
536
|
+
DatePicker: Te,
|
|
518
537
|
Select: Ee,
|
|
519
538
|
Cascader: Re
|
|
520
539
|
},
|
|
@@ -585,24 +604,24 @@ const Le = /* @__PURE__ */ B(we, [["render", De]]), xe = /* @__PURE__ */ k({
|
|
|
585
604
|
};
|
|
586
605
|
},
|
|
587
606
|
setup(e) {
|
|
588
|
-
const { size: t, noUrlParameters: n, getList:
|
|
589
|
-
...n ? {} :
|
|
607
|
+
const { size: t, noUrlParameters: n, getList: i } = e, r = _e(), l = v({
|
|
608
|
+
...n ? {} : ee.queryToData(r == null ? void 0 : r.query)
|
|
590
609
|
});
|
|
591
|
-
return
|
|
610
|
+
return Q(
|
|
592
611
|
/* 注入名 */
|
|
593
612
|
"queryParams",
|
|
594
613
|
/* 值 */
|
|
595
614
|
l
|
|
596
|
-
),
|
|
615
|
+
), Q(
|
|
597
616
|
/* 注入名 */
|
|
598
617
|
"size",
|
|
599
618
|
/* 值 */
|
|
600
619
|
t
|
|
601
|
-
),
|
|
620
|
+
), Q(
|
|
602
621
|
/* 注入名 */
|
|
603
622
|
"getList",
|
|
604
623
|
/* 值 */
|
|
605
|
-
|
|
624
|
+
i
|
|
606
625
|
), {
|
|
607
626
|
queryParams: l
|
|
608
627
|
};
|
|
@@ -636,8 +655,8 @@ const Le = /* @__PURE__ */ B(we, [["render", De]]), xe = /* @__PURE__ */ k({
|
|
|
636
655
|
provide() {
|
|
637
656
|
return {
|
|
638
657
|
// 显式提供一个计算属性
|
|
639
|
-
[
|
|
640
|
-
formLoading:
|
|
658
|
+
[ae]: {
|
|
659
|
+
formLoading: N(() => this.formLoading),
|
|
641
660
|
updateFormLoading: (e) => {
|
|
642
661
|
this.formLoading = e;
|
|
643
662
|
}
|
|
@@ -648,11 +667,11 @@ const Le = /* @__PURE__ */ B(we, [["render", De]]), xe = /* @__PURE__ */ k({
|
|
|
648
667
|
/** 搜索按钮操作 */
|
|
649
668
|
handleQuery() {
|
|
650
669
|
var n;
|
|
651
|
-
const e = { page: 1, limit: 10 }, t = {
|
|
670
|
+
const e = { page: 1, limit: 10 }, t = ee.paramsToQuery({
|
|
652
671
|
...(n = this.$route) == null ? void 0 : n.query,
|
|
653
672
|
...this.queryParams,
|
|
654
673
|
...e
|
|
655
|
-
};
|
|
674
|
+
});
|
|
656
675
|
this.noUrlParameters || this.$router.push({
|
|
657
676
|
query: { ...t }
|
|
658
677
|
}), this.getList({
|
|
@@ -671,111 +690,111 @@ const Le = /* @__PURE__ */ B(we, [["render", De]]), xe = /* @__PURE__ */ k({
|
|
|
671
690
|
}, this.afterReset(), this.handleQuery();
|
|
672
691
|
},
|
|
673
692
|
getItemRules(e) {
|
|
674
|
-
const { type: t, rules: n = [] } = e,
|
|
675
|
-
return this.noInputBlank && t === "input" &&
|
|
693
|
+
const { type: t, rules: n = [] } = e, i = [...n];
|
|
694
|
+
return this.noInputBlank && t === "input" && i.push({
|
|
676
695
|
pattern: this.trimRegex,
|
|
677
696
|
message: "请输入(不能仅输入空格)",
|
|
678
697
|
trigger: "blur"
|
|
679
|
-
}),
|
|
698
|
+
}), i;
|
|
680
699
|
}
|
|
681
700
|
}
|
|
682
701
|
});
|
|
683
|
-
function
|
|
684
|
-
const
|
|
685
|
-
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({
|
|
686
705
|
model: e.queryParams,
|
|
687
706
|
ref: "queryFormRef",
|
|
688
707
|
inline: "",
|
|
689
708
|
"label-position": "left",
|
|
690
709
|
"label-width": e.labelWidth
|
|
691
710
|
}, e.$attrs), {
|
|
692
|
-
default:
|
|
693
|
-
(
|
|
711
|
+
default: g(() => [
|
|
712
|
+
(s(!0), $(L, null, q(e.formItem, (c) => (s(), p(F, {
|
|
694
713
|
label: c.label,
|
|
695
714
|
prop: c.prop,
|
|
696
715
|
key: c.prop,
|
|
697
716
|
rules: e.getItemRules(c)
|
|
698
717
|
}, {
|
|
699
|
-
default:
|
|
700
|
-
/^input$/i.test(c.type) ? (
|
|
718
|
+
default: g(() => [
|
|
719
|
+
/^input$/i.test(c.type) ? (s(), p(a, {
|
|
701
720
|
key: 0,
|
|
702
721
|
item: c
|
|
703
|
-
}, null, 8, ["item"])) :
|
|
704
|
-
/^radio$/i.test(c.type) ? (
|
|
722
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
723
|
+
/^radio$/i.test(c.type) ? (s(), p(u, {
|
|
705
724
|
key: 1,
|
|
706
725
|
item: c
|
|
707
|
-
}, null, 8, ["item"])) :
|
|
708
|
-
/^select$/i.test(c.type) ? (
|
|
726
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
727
|
+
/^select$/i.test(c.type) ? (s(), p(o, {
|
|
709
728
|
key: 2,
|
|
710
729
|
item: c
|
|
711
|
-
}, null, 8, ["item"])) :
|
|
712
|
-
/^divider$/i.test(c.type) ? (
|
|
730
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
731
|
+
/^divider$/i.test(c.type) ? (s(), p(f, {
|
|
713
732
|
key: 3,
|
|
714
733
|
item: c
|
|
715
|
-
}, null, 8, ["item"])) :
|
|
716
|
-
/^cascader$/i.test(c.type) ? (
|
|
734
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
735
|
+
/^cascader$/i.test(c.type) ? (s(), p(k, {
|
|
717
736
|
key: 4,
|
|
718
737
|
item: c
|
|
719
|
-
}, null, 8, ["item"])) :
|
|
720
|
-
/^checkbox$/i.test(c.type) ? (
|
|
738
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
739
|
+
/^checkbox$/i.test(c.type) ? (s(), p(P, {
|
|
721
740
|
key: 5,
|
|
722
741
|
item: c
|
|
723
|
-
}, null, 8, ["item"])) :
|
|
724
|
-
/^date-picker$/i.test(c.type) ? (
|
|
742
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
743
|
+
/^date-picker$/i.test(c.type) ? (s(), p(z, {
|
|
725
744
|
key: 6,
|
|
726
745
|
item: c
|
|
727
|
-
}, null, 8, ["item"])) :
|
|
728
|
-
/^input-number$/i.test(c.type) ? (
|
|
746
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
747
|
+
/^input-number$/i.test(c.type) ? (s(), p(I, {
|
|
729
748
|
key: 7,
|
|
730
749
|
item: c
|
|
731
|
-
}, null, 8, ["item"])) :
|
|
732
|
-
/^form-item-slot$/i.test(c.type) ?
|
|
733
|
-
/^input-mobile-verification$/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),
|
|
752
|
+
/^input-mobile-verification$/i.test(c.type) ? (s(), p(h, {
|
|
734
753
|
key: 9,
|
|
735
754
|
item: c
|
|
736
|
-
}, null, 8, ["item"])) :
|
|
737
|
-
/^input-graphic-verification$/i.test(c.type) ? (
|
|
755
|
+
}, null, 8, ["item"])) : _("", !0),
|
|
756
|
+
/^input-graphic-verification$/i.test(c.type) ? (s(), p(U, {
|
|
738
757
|
item: c,
|
|
739
758
|
key: c.key
|
|
740
|
-
}, null, 8, ["item"])) :
|
|
759
|
+
}, null, 8, ["item"])) : _("", !0)
|
|
741
760
|
]),
|
|
742
761
|
_: 2
|
|
743
762
|
}, 1032, ["label", "prop", "rules"]))), 128)),
|
|
744
|
-
|
|
745
|
-
e.formOnly ?
|
|
746
|
-
default:
|
|
747
|
-
|
|
763
|
+
K(e.$slots, "default"),
|
|
764
|
+
e.formOnly ? _("", !0) : (s(), p(F, { key: 0 }, {
|
|
765
|
+
default: g(() => [
|
|
766
|
+
R((s(), p(D, {
|
|
748
767
|
type: "primary",
|
|
749
768
|
size: e.size,
|
|
750
769
|
onClick: e.handleQuery
|
|
751
770
|
}, {
|
|
752
|
-
default:
|
|
753
|
-
|
|
771
|
+
default: g(() => t[0] || (t[0] = [
|
|
772
|
+
x("查询")
|
|
754
773
|
])),
|
|
755
774
|
_: 1
|
|
756
775
|
}, 8, ["size", "onClick"])), [
|
|
757
|
-
[
|
|
776
|
+
[G, e.formLoading]
|
|
758
777
|
]),
|
|
759
|
-
|
|
778
|
+
ne(D, {
|
|
760
779
|
size: e.size,
|
|
761
780
|
onClick: e.resetQuery
|
|
762
781
|
}, {
|
|
763
|
-
default:
|
|
764
|
-
|
|
782
|
+
default: g(() => t[1] || (t[1] = [
|
|
783
|
+
x("重置")
|
|
765
784
|
])),
|
|
766
785
|
_: 1
|
|
767
786
|
}, 8, ["size", "onClick"])
|
|
768
787
|
]),
|
|
769
788
|
_: 1
|
|
770
789
|
})),
|
|
771
|
-
|
|
790
|
+
K(e.$slots, "behind-the-button")
|
|
772
791
|
]),
|
|
773
792
|
_: 3
|
|
774
793
|
}, 16, ["model", "label-width"])), [
|
|
775
|
-
[
|
|
794
|
+
[ye, e.showSearch]
|
|
776
795
|
]);
|
|
777
796
|
}
|
|
778
|
-
const
|
|
797
|
+
const Ge = /* @__PURE__ */ B(Ne, [["render", je]]), Me = ["infinite-scroll-disabled"], Qe = ["infinite-scroll-disabled"], Ke = { class: "checkbox" }, Xe = /* @__PURE__ */ S({
|
|
779
798
|
__name: "InfiniteScrollList",
|
|
780
799
|
props: {
|
|
781
800
|
search: {
|
|
@@ -809,106 +828,106 @@ const Ue = /* @__PURE__ */ B(Ae, [["render", Te]]), Ge = ["infinite-scroll-disab
|
|
|
809
828
|
}
|
|
810
829
|
},
|
|
811
830
|
setup(e, { expose: t }) {
|
|
812
|
-
const n = e, { search:
|
|
813
|
-
const { i:
|
|
814
|
-
return
|
|
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) : "";
|
|
815
834
|
}, h = (c) => {
|
|
816
|
-
|
|
835
|
+
P.value = c.map((C) => typeof C == "object" ? C[r] : C);
|
|
817
836
|
};
|
|
818
|
-
|
|
837
|
+
oe(
|
|
819
838
|
() => n.defaultSelection,
|
|
820
839
|
(c = [], C = []) => {
|
|
821
840
|
h(c);
|
|
822
841
|
},
|
|
823
842
|
{ immediate: !0 }
|
|
824
843
|
);
|
|
825
|
-
const
|
|
826
|
-
F(),
|
|
844
|
+
const U = () => {
|
|
845
|
+
F(), P.value = [];
|
|
827
846
|
}, F = () => {
|
|
828
|
-
f.value = 1, o.value = [],
|
|
847
|
+
f.value = 1, o.value = [], k.value = !1;
|
|
829
848
|
}, D = async () => {
|
|
830
|
-
if (z.value ||
|
|
849
|
+
if (z.value || k.value)
|
|
831
850
|
return;
|
|
832
851
|
z.value = !0;
|
|
833
|
-
const c = await
|
|
834
|
-
c && c.length > 0 ? (o.value = [...o.value, ...c], f.value += 1) :
|
|
835
|
-
},
|
|
852
|
+
const c = await i(f.value);
|
|
853
|
+
c && c.length > 0 ? (o.value = [...o.value, ...c], f.value += 1) : k.value = !0, z.value = !1;
|
|
854
|
+
}, j = () => {
|
|
836
855
|
F(), D();
|
|
837
|
-
},
|
|
838
|
-
() => o.value.filter((c) =>
|
|
856
|
+
}, G = N(
|
|
857
|
+
() => o.value.filter((c) => P.value.includes(c[r]))
|
|
839
858
|
) || {};
|
|
840
859
|
return t({
|
|
841
|
-
reset:
|
|
860
|
+
reset: U,
|
|
842
861
|
lowReset: F,
|
|
843
862
|
loadList: D,
|
|
844
|
-
selectInfo:
|
|
863
|
+
selectInfo: G,
|
|
845
864
|
list: o,
|
|
846
|
-
ifbottom:
|
|
847
|
-
refreshList:
|
|
865
|
+
ifbottom: k,
|
|
866
|
+
refreshList: j,
|
|
848
867
|
loading: z
|
|
849
868
|
}), (c, C) => {
|
|
850
|
-
const
|
|
851
|
-
return n.checkbox ?
|
|
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({
|
|
852
871
|
key: 0,
|
|
853
|
-
modelValue:
|
|
854
|
-
"onUpdate:modelValue": C[0] || (C[0] = (V) =>
|
|
872
|
+
modelValue: P.value,
|
|
873
|
+
"onUpdate:modelValue": C[0] || (C[0] = (V) => P.value = V)
|
|
855
874
|
}, n), {
|
|
856
|
-
default:
|
|
857
|
-
|
|
875
|
+
default: g(() => [
|
|
876
|
+
R((s(), $("ul", {
|
|
858
877
|
class: "list",
|
|
859
|
-
"infinite-scroll-disabled":
|
|
860
|
-
style:
|
|
878
|
+
"infinite-scroll-disabled": k.value,
|
|
879
|
+
style: he({ height: m(u) })
|
|
861
880
|
}, [
|
|
862
|
-
(
|
|
863
|
-
key: V[m(
|
|
881
|
+
(s(!0), $(L, null, q(o.value, (V) => (s(), $("li", {
|
|
882
|
+
key: V[m(r)],
|
|
864
883
|
class: "list-item"
|
|
865
884
|
}, [
|
|
866
|
-
|
|
867
|
-
value: V[m(
|
|
885
|
+
ne(M, {
|
|
886
|
+
value: V[m(r)],
|
|
868
887
|
class: "checkbox"
|
|
869
888
|
}, {
|
|
870
|
-
default:
|
|
871
|
-
|
|
872
|
-
n.extra ? (
|
|
889
|
+
default: g(() => [
|
|
890
|
+
x(T(V[m(l)]) + " ", 1),
|
|
891
|
+
n.extra ? (s(), p(I, {
|
|
873
892
|
key: 0,
|
|
874
893
|
i: V
|
|
875
|
-
}, null, 8, ["i"])) :
|
|
894
|
+
}, null, 8, ["i"])) : _("", !0)
|
|
876
895
|
]),
|
|
877
896
|
_: 2
|
|
878
897
|
}, 1032, ["value"])
|
|
879
898
|
]))), 128))
|
|
880
|
-
], 12,
|
|
881
|
-
[
|
|
899
|
+
], 12, Me)), [
|
|
900
|
+
[W, D]
|
|
882
901
|
])
|
|
883
902
|
]),
|
|
884
903
|
_: 1
|
|
885
904
|
}, 16, ["modelValue"])), [
|
|
886
|
-
[
|
|
887
|
-
]) :
|
|
905
|
+
[ce, z.value]
|
|
906
|
+
]) : R((s(), $("ul", b({
|
|
888
907
|
key: 1,
|
|
889
908
|
class: "list",
|
|
890
|
-
"infinite-scroll-disabled":
|
|
909
|
+
"infinite-scroll-disabled": k.value,
|
|
891
910
|
style: { height: m(u) }
|
|
892
911
|
}, n), [
|
|
893
|
-
(
|
|
894
|
-
key: V[m(
|
|
912
|
+
(s(!0), $(L, null, q(o.value, (V) => (s(), $("li", {
|
|
913
|
+
key: V[m(r)],
|
|
895
914
|
class: "list-item"
|
|
896
915
|
}, [
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
n.extra ? (
|
|
916
|
+
ge("div", Ke, [
|
|
917
|
+
x(T(V[m(l)]) + " ", 1),
|
|
918
|
+
n.extra ? (s(), p(I, {
|
|
900
919
|
key: 0,
|
|
901
920
|
i: V
|
|
902
|
-
}, null, 8, ["i"])) :
|
|
921
|
+
}, null, 8, ["i"])) : _("", !0)
|
|
903
922
|
])
|
|
904
923
|
]))), 128))
|
|
905
|
-
], 16,
|
|
906
|
-
[
|
|
924
|
+
], 16, Qe)), [
|
|
925
|
+
[W, D]
|
|
907
926
|
]);
|
|
908
927
|
};
|
|
909
928
|
}
|
|
910
929
|
});
|
|
911
|
-
const
|
|
930
|
+
const Ye = /* @__PURE__ */ B(Xe, [["__scopeId", "data-v-e29b1da3"]]), Je = { key: 1 }, We = /* @__PURE__ */ S({
|
|
912
931
|
__name: "Descriptions",
|
|
913
932
|
props: {
|
|
914
933
|
formData: {
|
|
@@ -930,52 +949,52 @@ const je = /* @__PURE__ */ B(Oe, [["__scopeId", "data-v-e29b1da3"]]), Ke = { key
|
|
|
930
949
|
}
|
|
931
950
|
},
|
|
932
951
|
setup(e) {
|
|
933
|
-
const t = e, n =
|
|
934
|
-
|
|
952
|
+
const t = e, n = v([]);
|
|
953
|
+
oe(
|
|
935
954
|
() => [t.formData, t.formItem],
|
|
936
|
-
([
|
|
955
|
+
([a = {}, u = []]) => {
|
|
937
956
|
let o = u;
|
|
938
957
|
if (t.strict)
|
|
939
|
-
for (const f in
|
|
940
|
-
Object.prototype.hasOwnProperty.call(
|
|
958
|
+
for (const f in a)
|
|
959
|
+
Object.prototype.hasOwnProperty.call(a, f) && (a[f] || (o = o.filter((P) => P.prop !== f || P.render)));
|
|
941
960
|
n.value = o;
|
|
942
961
|
},
|
|
943
962
|
{ immediate: !0 }
|
|
944
963
|
);
|
|
945
|
-
const
|
|
964
|
+
const i = O("el-descriptions-item"), r = O("descriptions-item");
|
|
946
965
|
switch (t.componentType) {
|
|
947
966
|
case "Element Plus":
|
|
948
|
-
|
|
967
|
+
i.value = "el-descriptions-item", r.value = "el-descriptions-item";
|
|
949
968
|
break;
|
|
950
969
|
case "Ant Design Vue":
|
|
951
|
-
|
|
970
|
+
i.value = "a-descriptions", r.value = "a-descriptions-item";
|
|
952
971
|
break;
|
|
953
972
|
}
|
|
954
|
-
const l = (
|
|
955
|
-
const { i: o, render: f, formData:
|
|
973
|
+
const l = (a, u) => {
|
|
974
|
+
const { i: o, render: f, formData: k } = a;
|
|
956
975
|
return f({
|
|
957
|
-
row:
|
|
976
|
+
row: k,
|
|
958
977
|
$index: o
|
|
959
978
|
});
|
|
960
979
|
};
|
|
961
|
-
return (
|
|
980
|
+
return (a, u) => (s(), p(w(i.value), b({
|
|
962
981
|
column: 1,
|
|
963
982
|
border: "",
|
|
964
983
|
class: "form-width"
|
|
965
|
-
},
|
|
966
|
-
default:
|
|
967
|
-
(
|
|
984
|
+
}, a.$attrs), {
|
|
985
|
+
default: g(() => [
|
|
986
|
+
(s(!0), $(L, null, q(n.value, (o, f) => (s(), p(w(r.value), b({
|
|
968
987
|
key: o.prop,
|
|
969
988
|
label: o.label,
|
|
970
989
|
ref_for: !0
|
|
971
990
|
}, o.descriptionsItemProps), {
|
|
972
|
-
default:
|
|
973
|
-
o.render ? (
|
|
991
|
+
default: g(() => [
|
|
992
|
+
o.render ? (s(), p(l, {
|
|
974
993
|
key: 0,
|
|
975
994
|
i: f,
|
|
976
995
|
render: o.render,
|
|
977
996
|
formData: e.formData
|
|
978
|
-
}, null, 8, ["i", "render", "formData"])) : (
|
|
997
|
+
}, null, 8, ["i", "render", "formData"])) : (s(), $("span", Je, T(e.formData[o.prop]), 1))
|
|
979
998
|
]),
|
|
980
999
|
_: 2
|
|
981
1000
|
}, 1040, ["label"]))), 128))
|
|
@@ -983,11 +1002,11 @@ const je = /* @__PURE__ */ B(Oe, [["__scopeId", "data-v-e29b1da3"]]), Ke = { key
|
|
|
983
1002
|
_: 1
|
|
984
1003
|
}, 16));
|
|
985
1004
|
}
|
|
986
|
-
}),
|
|
1005
|
+
}), et = Ge, tt = Ye, nt = We, ot = ie, rt = le;
|
|
987
1006
|
export {
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1007
|
+
nt as VDescriptions,
|
|
1008
|
+
et as VGeneralBasicForm,
|
|
1009
|
+
tt as VInfiniteScrollList,
|
|
1010
|
+
ot as VInputGraphicVerification,
|
|
1011
|
+
rt as VInputMobilecVerification
|
|
993
1012
|
};
|