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