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