@gopowerteam/form-render 0.0.48 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +1 -1
- package/dist/es/index.mjs +603 -602
- package/package.json +2 -2
package/dist/es/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { getCurrentInstance as W, inject as te, defineComponent as R, computed as
|
|
2
|
-
import { DatePicker as ot, YearPicker as at, QuarterPicker as ut, MonthPicker as it, WeekPicker as ct, Input as st, InputNumber as dt, Select as ft, Option as mt, Switch as ht, RangePicker as pt, Textarea as vt, TreeSelect as yt, Cascader as gt, FormItem as Me, Tabs as bt, TabPane as kt, Form as wt, Grid as xt, GridItem as Se, Button as
|
|
1
|
+
import { getCurrentInstance as W, inject as te, defineComponent as R, computed as S, openBlock as C, createElementBlock as F, normalizeClass as ne, normalizeStyle as P, createElementVNode as w, shallowRef as V, ref as $, provide as fe, onMounted as B, Fragment as me, renderSlot as Ve, createBlock as ee, Teleport as Ae, createVNode as p, TransitionGroup as De, withCtx as Be, renderList as We, mergeProps as Oe, createCommentVNode as H, defineAsyncComponent as qe, triggerRef as K, useCssVars as Ue, onUnmounted as He, withModifiers as Ge, toDisplayString as A, resolveDynamicComponent as _e, normalizeProps as Ye, guardReactiveProps as Xe, watch as re, unref as Ze, isRef as le, toRefs as Ke, customRef as Je, nextTick as Ie, getCurrentScope as Qe, onScopeDispose as et, pushScopeId as tt, popScopeId as nt, isVNode as pe, h as rt, createTextVNode as J, onUpdated as lt } from "vue";
|
|
2
|
+
import { DatePicker as ot, YearPicker as at, QuarterPicker as ut, MonthPicker as it, WeekPicker as ct, Input as st, InputNumber as dt, Select as ft, Option as mt, Switch as ht, RangePicker as pt, Textarea as vt, TreeSelect as yt, Cascader as gt, FormItem as Me, Tabs as bt, TabPane as kt, Form as wt, Grid as xt, GridItem as Se, Button as U, Space as St } from "@arco-design/web-vue";
|
|
3
3
|
import Ce from "dayjs";
|
|
4
4
|
import { FormRenderResolver as Zn } from "./resolver.mjs";
|
|
5
5
|
const Ct = Symbol("ArcoConfigProvider"), $t = "arco", Ft = "$arco", ve = (e) => {
|
|
6
|
-
var
|
|
7
|
-
const
|
|
6
|
+
var r, t, n;
|
|
7
|
+
const l = W(), a = te(Ct, void 0), o = (n = (t = a == null ? void 0 : a.prefixCls) != null ? t : (r = l == null ? void 0 : l.appContext.config.globalProperties[Ft]) == null ? void 0 : r.classPrefix) != null ? n : $t;
|
|
8
8
|
return e ? `${o}-${e}` : o;
|
|
9
9
|
}, Ot = Object.prototype.toString;
|
|
10
10
|
function ye(e) {
|
|
11
11
|
return Ot.call(e) === "[object Number]" && e === e;
|
|
12
12
|
}
|
|
13
|
-
var ge = (e,
|
|
14
|
-
for (const [t, n] of
|
|
13
|
+
var ge = (e, r) => {
|
|
14
|
+
for (const [t, n] of r)
|
|
15
15
|
e[t] = n;
|
|
16
16
|
return e;
|
|
17
17
|
};
|
|
@@ -42,27 +42,27 @@ const _t = R({
|
|
|
42
42
|
click: (e) => !0
|
|
43
43
|
},
|
|
44
44
|
setup(e, {
|
|
45
|
-
emit:
|
|
45
|
+
emit: r
|
|
46
46
|
}) {
|
|
47
|
-
const t = ve("icon"), n =
|
|
47
|
+
const t = ve("icon"), n = S(() => [t, `${t}-down`, {
|
|
48
48
|
[`${t}-spin`]: e.spin
|
|
49
|
-
}]),
|
|
49
|
+
}]), l = S(() => {
|
|
50
50
|
const o = {};
|
|
51
51
|
return e.size && (o.fontSize = ye(e.size) ? `${e.size}px` : e.size), e.rotate && (o.transform = `rotate(${e.rotate}deg)`), o;
|
|
52
52
|
});
|
|
53
53
|
return {
|
|
54
54
|
cls: n,
|
|
55
|
-
innerStyle:
|
|
55
|
+
innerStyle: l,
|
|
56
56
|
onClick: (o) => {
|
|
57
|
-
|
|
57
|
+
r("click", o);
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
}), It = ["stroke-width", "stroke-linecap", "stroke-linejoin"], Mt = /* @__PURE__ */
|
|
61
|
+
}), It = ["stroke-width", "stroke-linecap", "stroke-linejoin"], Mt = /* @__PURE__ */ w("path", {
|
|
62
62
|
d: "M39.6 17.443 24.043 33 8.487 17.443"
|
|
63
63
|
}, null, -1), jt = [Mt];
|
|
64
|
-
function zt(e,
|
|
65
|
-
return
|
|
64
|
+
function zt(e, r, t, n, l, a) {
|
|
65
|
+
return C(), F("svg", {
|
|
66
66
|
viewBox: "0 0 48 48",
|
|
67
67
|
fill: "none",
|
|
68
68
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -72,14 +72,14 @@ function zt(e, l, t, n, r, i) {
|
|
|
72
72
|
"stroke-width": e.strokeWidth,
|
|
73
73
|
"stroke-linecap": e.strokeLinecap,
|
|
74
74
|
"stroke-linejoin": e.strokeLinejoin,
|
|
75
|
-
onClick:
|
|
75
|
+
onClick: r[0] || (r[0] = (...o) => e.onClick && e.onClick(...o))
|
|
76
76
|
}, jt, 14, It);
|
|
77
77
|
}
|
|
78
78
|
var ie = /* @__PURE__ */ ge(_t, [["render", zt]]);
|
|
79
79
|
const Lt = Object.assign(ie, {
|
|
80
|
-
install: (e,
|
|
80
|
+
install: (e, r) => {
|
|
81
81
|
var t;
|
|
82
|
-
const n = (t =
|
|
82
|
+
const n = (t = r == null ? void 0 : r.iconPrefix) != null ? t : "";
|
|
83
83
|
e.component(n + ie.name, ie);
|
|
84
84
|
}
|
|
85
85
|
}), Tt = R({
|
|
@@ -109,27 +109,27 @@ const Lt = Object.assign(ie, {
|
|
|
109
109
|
click: (e) => !0
|
|
110
110
|
},
|
|
111
111
|
setup(e, {
|
|
112
|
-
emit:
|
|
112
|
+
emit: r
|
|
113
113
|
}) {
|
|
114
|
-
const t = ve("icon"), n =
|
|
114
|
+
const t = ve("icon"), n = S(() => [t, `${t}-up`, {
|
|
115
115
|
[`${t}-spin`]: e.spin
|
|
116
|
-
}]),
|
|
116
|
+
}]), l = S(() => {
|
|
117
117
|
const o = {};
|
|
118
118
|
return e.size && (o.fontSize = ye(e.size) ? `${e.size}px` : e.size), e.rotate && (o.transform = `rotate(${e.rotate}deg)`), o;
|
|
119
119
|
});
|
|
120
120
|
return {
|
|
121
121
|
cls: n,
|
|
122
|
-
innerStyle:
|
|
122
|
+
innerStyle: l,
|
|
123
123
|
onClick: (o) => {
|
|
124
|
-
|
|
124
|
+
r("click", o);
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
}),
|
|
128
|
+
}), Pt = ["stroke-width", "stroke-linecap", "stroke-linejoin"], Rt = /* @__PURE__ */ w("path", {
|
|
129
129
|
d: "M39.6 30.557 24.043 15 8.487 30.557"
|
|
130
|
-
}, null, -1),
|
|
131
|
-
function Nt(e,
|
|
132
|
-
return
|
|
130
|
+
}, null, -1), Et = [Rt];
|
|
131
|
+
function Nt(e, r, t, n, l, a) {
|
|
132
|
+
return C(), F("svg", {
|
|
133
133
|
viewBox: "0 0 48 48",
|
|
134
134
|
fill: "none",
|
|
135
135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -139,14 +139,14 @@ function Nt(e, l, t, n, r, i) {
|
|
|
139
139
|
"stroke-width": e.strokeWidth,
|
|
140
140
|
"stroke-linecap": e.strokeLinecap,
|
|
141
141
|
"stroke-linejoin": e.strokeLinejoin,
|
|
142
|
-
onClick:
|
|
143
|
-
},
|
|
142
|
+
onClick: r[0] || (r[0] = (...o) => e.onClick && e.onClick(...o))
|
|
143
|
+
}, Et, 14, Pt);
|
|
144
144
|
}
|
|
145
145
|
var ce = /* @__PURE__ */ ge(Tt, [["render", Nt]]);
|
|
146
146
|
const Vt = Object.assign(ce, {
|
|
147
|
-
install: (e,
|
|
147
|
+
install: (e, r) => {
|
|
148
148
|
var t;
|
|
149
|
-
const n = (t =
|
|
149
|
+
const n = (t = r == null ? void 0 : r.iconPrefix) != null ? t : "";
|
|
150
150
|
e.component(n + ce.name, ce);
|
|
151
151
|
}
|
|
152
152
|
}), At = R({
|
|
@@ -176,27 +176,27 @@ const Vt = Object.assign(ce, {
|
|
|
176
176
|
click: (e) => !0
|
|
177
177
|
},
|
|
178
178
|
setup(e, {
|
|
179
|
-
emit:
|
|
179
|
+
emit: r
|
|
180
180
|
}) {
|
|
181
|
-
const t = ve("icon"), n =
|
|
181
|
+
const t = ve("icon"), n = S(() => [t, `${t}-search`, {
|
|
182
182
|
[`${t}-spin`]: e.spin
|
|
183
|
-
}]),
|
|
183
|
+
}]), l = S(() => {
|
|
184
184
|
const o = {};
|
|
185
185
|
return e.size && (o.fontSize = ye(e.size) ? `${e.size}px` : e.size), e.rotate && (o.transform = `rotate(${e.rotate}deg)`), o;
|
|
186
186
|
});
|
|
187
187
|
return {
|
|
188
188
|
cls: n,
|
|
189
|
-
innerStyle:
|
|
189
|
+
innerStyle: l,
|
|
190
190
|
onClick: (o) => {
|
|
191
|
-
|
|
191
|
+
r("click", o);
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
|
-
}), Dt = ["stroke-width", "stroke-linecap", "stroke-linejoin"], Bt = /* @__PURE__ */
|
|
195
|
+
}), Dt = ["stroke-width", "stroke-linecap", "stroke-linejoin"], Bt = /* @__PURE__ */ w("path", {
|
|
196
196
|
d: "M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485"
|
|
197
197
|
}, null, -1), Wt = [Bt];
|
|
198
|
-
function
|
|
199
|
-
return
|
|
198
|
+
function qt(e, r, t, n, l, a) {
|
|
199
|
+
return C(), F("svg", {
|
|
200
200
|
viewBox: "0 0 48 48",
|
|
201
201
|
fill: "none",
|
|
202
202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -206,14 +206,14 @@ function Ut(e, l, t, n, r, i) {
|
|
|
206
206
|
"stroke-width": e.strokeWidth,
|
|
207
207
|
"stroke-linecap": e.strokeLinecap,
|
|
208
208
|
"stroke-linejoin": e.strokeLinejoin,
|
|
209
|
-
onClick:
|
|
209
|
+
onClick: r[0] || (r[0] = (...o) => e.onClick && e.onClick(...o))
|
|
210
210
|
}, Wt, 14, Dt);
|
|
211
211
|
}
|
|
212
|
-
var se = /* @__PURE__ */ ge(At, [["render",
|
|
213
|
-
const
|
|
214
|
-
install: (e,
|
|
212
|
+
var se = /* @__PURE__ */ ge(At, [["render", qt]]);
|
|
213
|
+
const Ut = Object.assign(se, {
|
|
214
|
+
install: (e, r) => {
|
|
215
215
|
var t;
|
|
216
|
-
const n = (t =
|
|
216
|
+
const n = (t = r == null ? void 0 : r.iconPrefix) != null ? t : "";
|
|
217
217
|
e.component(n + se.name, se);
|
|
218
218
|
}
|
|
219
219
|
}), oe = Symbol("__MODAL__");
|
|
@@ -225,201 +225,201 @@ function I(e) {
|
|
|
225
225
|
}
|
|
226
226
|
const ze = typeof window < "u" && typeof document < "u";
|
|
227
227
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
228
|
-
const
|
|
228
|
+
const Ht = Object.prototype.toString, Gt = (e) => Ht.call(e) === "[object Object]", Yt = () => {
|
|
229
229
|
};
|
|
230
|
-
function Xt(e,
|
|
231
|
-
if (!
|
|
232
|
-
return
|
|
230
|
+
function Xt(e, r = {}) {
|
|
231
|
+
if (!le(e))
|
|
232
|
+
return Ke(e);
|
|
233
233
|
const t = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
|
|
234
234
|
for (const n in e.value)
|
|
235
|
-
t[n] =
|
|
235
|
+
t[n] = Je(() => ({
|
|
236
236
|
get() {
|
|
237
237
|
return e.value[n];
|
|
238
238
|
},
|
|
239
|
-
set(
|
|
240
|
-
var
|
|
241
|
-
if ((
|
|
239
|
+
set(l) {
|
|
240
|
+
var a;
|
|
241
|
+
if ((a = I(r.replaceRef)) == null || a)
|
|
242
242
|
if (Array.isArray(e.value)) {
|
|
243
243
|
const o = [...e.value];
|
|
244
|
-
o[n] =
|
|
244
|
+
o[n] = l, e.value = o;
|
|
245
245
|
} else {
|
|
246
|
-
const o = { ...e.value, [n]:
|
|
246
|
+
const o = { ...e.value, [n]: l };
|
|
247
247
|
Object.setPrototypeOf(o, Object.getPrototypeOf(e.value)), e.value = o;
|
|
248
248
|
}
|
|
249
249
|
else
|
|
250
|
-
e.value[n] =
|
|
250
|
+
e.value[n] = l;
|
|
251
251
|
}
|
|
252
252
|
}));
|
|
253
253
|
return t;
|
|
254
254
|
}
|
|
255
|
-
function Zt(e,
|
|
256
|
-
W() ? B(e) :
|
|
255
|
+
function Zt(e, r = !0) {
|
|
256
|
+
W() ? B(e) : r ? e() : Ie(e);
|
|
257
257
|
}
|
|
258
258
|
function D(e) {
|
|
259
|
-
var
|
|
259
|
+
var r;
|
|
260
260
|
const t = I(e);
|
|
261
|
-
return (
|
|
261
|
+
return (r = t == null ? void 0 : t.$el) != null ? r : t;
|
|
262
262
|
}
|
|
263
263
|
const ae = ze ? window : void 0;
|
|
264
264
|
function de(...e) {
|
|
265
|
-
let
|
|
266
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, n,
|
|
267
|
-
return
|
|
265
|
+
let r, t, n, l;
|
|
266
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, n, l] = e, r = ae) : [r, t, n, l] = e, !r)
|
|
267
|
+
return Yt;
|
|
268
268
|
Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
},
|
|
272
|
-
() => [D(
|
|
273
|
-
([
|
|
274
|
-
if (o(), !
|
|
269
|
+
const a = [], o = () => {
|
|
270
|
+
a.forEach((u) => u()), a.length = 0;
|
|
271
|
+
}, f = (u, c, i, h) => (u.addEventListener(c, i, h), () => u.removeEventListener(c, i, h)), b = re(
|
|
272
|
+
() => [D(r), I(l)],
|
|
273
|
+
([u, c]) => {
|
|
274
|
+
if (o(), !u)
|
|
275
275
|
return;
|
|
276
|
-
const
|
|
277
|
-
|
|
278
|
-
...t.flatMap((
|
|
276
|
+
const i = Gt(c) ? { ...c } : c;
|
|
277
|
+
a.push(
|
|
278
|
+
...t.flatMap((h) => n.map((m) => f(u, h, m, i)))
|
|
279
279
|
);
|
|
280
280
|
},
|
|
281
281
|
{ immediate: !0, flush: "post" }
|
|
282
|
-
),
|
|
282
|
+
), s = () => {
|
|
283
283
|
b(), o();
|
|
284
284
|
};
|
|
285
|
-
return je(
|
|
285
|
+
return je(s), s;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
const e =
|
|
287
|
+
function Kt() {
|
|
288
|
+
const e = $(!1);
|
|
289
289
|
return W() && B(() => {
|
|
290
290
|
e.value = !0;
|
|
291
291
|
}), e;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
const
|
|
295
|
-
return
|
|
293
|
+
function Jt(e) {
|
|
294
|
+
const r = Kt();
|
|
295
|
+
return S(() => (r.value, !!e()));
|
|
296
296
|
}
|
|
297
|
-
function Qt(e,
|
|
297
|
+
function Qt(e, r = {}) {
|
|
298
298
|
var t, n;
|
|
299
299
|
const {
|
|
300
|
-
pointerTypes:
|
|
301
|
-
preventDefault:
|
|
300
|
+
pointerTypes: l,
|
|
301
|
+
preventDefault: a,
|
|
302
302
|
stopPropagation: o,
|
|
303
|
-
exact:
|
|
303
|
+
exact: f,
|
|
304
304
|
onMove: b,
|
|
305
|
-
onEnd:
|
|
306
|
-
onStart:
|
|
307
|
-
initialValue:
|
|
308
|
-
axis:
|
|
309
|
-
draggingElement:
|
|
310
|
-
containerElement:
|
|
311
|
-
handle:
|
|
312
|
-
} =
|
|
313
|
-
(t = I(
|
|
314
|
-
),
|
|
315
|
-
I(
|
|
316
|
-
}, x = (
|
|
305
|
+
onEnd: s,
|
|
306
|
+
onStart: u,
|
|
307
|
+
initialValue: c,
|
|
308
|
+
axis: i = "both",
|
|
309
|
+
draggingElement: h = ae,
|
|
310
|
+
containerElement: m,
|
|
311
|
+
handle: k = e
|
|
312
|
+
} = r, v = $(
|
|
313
|
+
(t = I(c)) != null ? t : { x: 0, y: 0 }
|
|
314
|
+
), O = $(), z = (g) => l ? l.includes(g.pointerType) : !0, y = (g) => {
|
|
315
|
+
I(a) && g.preventDefault(), I(o) && g.stopPropagation();
|
|
316
|
+
}, x = (g) => {
|
|
317
317
|
var j;
|
|
318
|
-
if (!z(
|
|
318
|
+
if (!z(g) || I(f) && g.target !== I(e))
|
|
319
319
|
return;
|
|
320
|
-
const _ = I(
|
|
321
|
-
x:
|
|
322
|
-
y:
|
|
320
|
+
const _ = I(m), N = (j = _ == null ? void 0 : _.getBoundingClientRect) == null ? void 0 : j.call(_), L = I(e).getBoundingClientRect(), T = {
|
|
321
|
+
x: g.clientX - (_ ? L.left - N.left : L.left),
|
|
322
|
+
y: g.clientY - (_ ? L.top - N.top : L.top)
|
|
323
323
|
};
|
|
324
|
-
(
|
|
325
|
-
},
|
|
324
|
+
(u == null ? void 0 : u(T, g)) !== !1 && (O.value = T, y(g));
|
|
325
|
+
}, E = (g) => {
|
|
326
326
|
var j;
|
|
327
|
-
if (!z(
|
|
327
|
+
if (!z(g) || !O.value)
|
|
328
328
|
return;
|
|
329
|
-
const _ = I(
|
|
330
|
-
let { x:
|
|
331
|
-
(
|
|
332
|
-
x:
|
|
333
|
-
y:
|
|
334
|
-
}, b == null || b(
|
|
335
|
-
}, ue = (
|
|
336
|
-
z(
|
|
329
|
+
const _ = I(m), N = (j = _ == null ? void 0 : _.getBoundingClientRect) == null ? void 0 : j.call(_), L = I(e).getBoundingClientRect();
|
|
330
|
+
let { x: T, y: q } = v.value;
|
|
331
|
+
(i === "x" || i === "both") && (T = g.clientX - O.value.x, _ && (T = Math.min(Math.max(0, T), N.width - L.width))), (i === "y" || i === "both") && (q = g.clientY - O.value.y, _ && (q = Math.min(Math.max(0, q), N.height - L.height))), v.value = {
|
|
332
|
+
x: T,
|
|
333
|
+
y: q
|
|
334
|
+
}, b == null || b(v.value, g), y(g);
|
|
335
|
+
}, ue = (g) => {
|
|
336
|
+
z(g) && O.value && (O.value = void 0, s == null || s(v.value, g), y(g));
|
|
337
337
|
};
|
|
338
338
|
if (ze) {
|
|
339
|
-
const
|
|
340
|
-
de(
|
|
339
|
+
const g = { capture: (n = r.capture) != null ? n : !0 };
|
|
340
|
+
de(k, "pointerdown", x, g), de(h, "pointermove", E, g), de(h, "pointerup", ue, g);
|
|
341
341
|
}
|
|
342
342
|
return {
|
|
343
|
-
...Xt(
|
|
344
|
-
position:
|
|
345
|
-
isDragging:
|
|
346
|
-
style:
|
|
347
|
-
() => `left:${
|
|
343
|
+
...Xt(v),
|
|
344
|
+
position: v,
|
|
345
|
+
isDragging: S(() => !!O.value),
|
|
346
|
+
style: S(
|
|
347
|
+
() => `left:${v.value.x}px;top:${v.value.y}px;`
|
|
348
348
|
)
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
function en(e,
|
|
352
|
-
const { window: n = ae, ...
|
|
353
|
-
let
|
|
354
|
-
const o =
|
|
355
|
-
|
|
356
|
-
}, b =
|
|
351
|
+
function en(e, r, t = {}) {
|
|
352
|
+
const { window: n = ae, ...l } = t;
|
|
353
|
+
let a;
|
|
354
|
+
const o = Jt(() => n && "ResizeObserver" in n), f = () => {
|
|
355
|
+
a && (a.disconnect(), a = void 0);
|
|
356
|
+
}, b = S(() => Array.isArray(e) ? e.map((c) => D(c)) : [D(e)]), s = re(
|
|
357
357
|
b,
|
|
358
|
-
(
|
|
359
|
-
if (
|
|
360
|
-
|
|
361
|
-
for (const
|
|
362
|
-
|
|
358
|
+
(c) => {
|
|
359
|
+
if (f(), o.value && n) {
|
|
360
|
+
a = new ResizeObserver(r);
|
|
361
|
+
for (const i of c)
|
|
362
|
+
i && a.observe(i, l);
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
365
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
366
|
-
),
|
|
367
|
-
|
|
366
|
+
), u = () => {
|
|
367
|
+
f(), s();
|
|
368
368
|
};
|
|
369
|
-
return je(
|
|
369
|
+
return je(u), {
|
|
370
370
|
isSupported: o,
|
|
371
|
-
stop:
|
|
371
|
+
stop: u
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
function G(e,
|
|
375
|
-
const { window: n = ae, box:
|
|
376
|
-
var
|
|
377
|
-
return (
|
|
378
|
-
}), o =
|
|
374
|
+
function G(e, r = { width: 0, height: 0 }, t = {}) {
|
|
375
|
+
const { window: n = ae, box: l = "content-box" } = t, a = S(() => {
|
|
376
|
+
var c, i;
|
|
377
|
+
return (i = (c = D(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : i.includes("svg");
|
|
378
|
+
}), o = $(r.width), f = $(r.height), { stop: b } = en(
|
|
379
379
|
e,
|
|
380
|
-
([
|
|
381
|
-
const
|
|
382
|
-
if (n &&
|
|
383
|
-
const
|
|
384
|
-
if (
|
|
385
|
-
const
|
|
386
|
-
o.value = Number.parseFloat(
|
|
380
|
+
([c]) => {
|
|
381
|
+
const i = l === "border-box" ? c.borderBoxSize : l === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
|
|
382
|
+
if (n && a.value) {
|
|
383
|
+
const h = D(e);
|
|
384
|
+
if (h) {
|
|
385
|
+
const m = n.getComputedStyle(h);
|
|
386
|
+
o.value = Number.parseFloat(m.width), f.value = Number.parseFloat(m.height);
|
|
387
387
|
}
|
|
388
|
-
} else if (
|
|
389
|
-
const
|
|
390
|
-
o.value =
|
|
388
|
+
} else if (i) {
|
|
389
|
+
const h = Array.isArray(i) ? i : [i];
|
|
390
|
+
o.value = h.reduce((m, { inlineSize: k }) => m + k, 0), f.value = h.reduce((m, { blockSize: k }) => m + k, 0);
|
|
391
391
|
} else
|
|
392
|
-
o.value =
|
|
392
|
+
o.value = c.contentRect.width, f.value = c.contentRect.height;
|
|
393
393
|
},
|
|
394
394
|
t
|
|
395
395
|
);
|
|
396
396
|
Zt(() => {
|
|
397
|
-
const
|
|
398
|
-
|
|
397
|
+
const c = D(e);
|
|
398
|
+
c && (o.value = "offsetWidth" in c ? c.offsetWidth : r.width, f.value = "offsetHeight" in c ? c.offsetHeight : r.height);
|
|
399
399
|
});
|
|
400
|
-
const
|
|
400
|
+
const s = re(
|
|
401
401
|
() => D(e),
|
|
402
|
-
(
|
|
403
|
-
o.value =
|
|
402
|
+
(c) => {
|
|
403
|
+
o.value = c ? r.width : 0, f.value = c ? r.height : 0;
|
|
404
404
|
}
|
|
405
405
|
);
|
|
406
|
-
function
|
|
407
|
-
b(),
|
|
406
|
+
function u() {
|
|
407
|
+
b(), s();
|
|
408
408
|
}
|
|
409
409
|
return {
|
|
410
410
|
width: o,
|
|
411
|
-
height:
|
|
412
|
-
stop:
|
|
411
|
+
height: f,
|
|
412
|
+
stop: u
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
|
-
const tn = (e) => (tt("data-v-8dfa7cd4"), e = e(), nt(), e), nn = { class: "title text-16px font-bold" },
|
|
415
|
+
const tn = (e) => (tt("data-v-8dfa7cd4"), e = e(), nt(), e), nn = { class: "title text-16px font-bold" }, rn = { class: "action" }, ln = ["form"], on = {
|
|
416
416
|
key: 2,
|
|
417
417
|
class: "modal-loading"
|
|
418
|
-
}, an = /* @__PURE__ */ tn(() => /* @__PURE__ */
|
|
419
|
-
/* @__PURE__ */
|
|
420
|
-
/* @__PURE__ */
|
|
421
|
-
/* @__PURE__ */
|
|
422
|
-
/* @__PURE__ */
|
|
418
|
+
}, an = /* @__PURE__ */ tn(() => /* @__PURE__ */ w("div", { class: "lds-ring" }, [
|
|
419
|
+
/* @__PURE__ */ w("div"),
|
|
420
|
+
/* @__PURE__ */ w("div"),
|
|
421
|
+
/* @__PURE__ */ w("div"),
|
|
422
|
+
/* @__PURE__ */ w("div")
|
|
423
423
|
], -1)), un = [
|
|
424
424
|
an
|
|
425
425
|
], cn = {
|
|
@@ -455,65 +455,65 @@ const tn = (e) => (tt("data-v-8dfa7cd4"), e = e(), nt(), e), nn = { class: "titl
|
|
|
455
455
|
zIndex: { default: 1e3 }
|
|
456
456
|
},
|
|
457
457
|
emits: ["submit"],
|
|
458
|
-
setup(e, { expose:
|
|
459
|
-
|
|
460
|
-
"359e2d1e":
|
|
458
|
+
setup(e, { expose: r, emit: t }) {
|
|
459
|
+
Ue((d) => ({
|
|
460
|
+
"359e2d1e": d.zIndex,
|
|
461
461
|
"635715bb": x.value
|
|
462
462
|
}));
|
|
463
|
-
const n = e,
|
|
464
|
-
let
|
|
465
|
-
const
|
|
463
|
+
const n = e, l = t, a = te(oe), o = $(!1);
|
|
464
|
+
let f = 0, b = 0;
|
|
465
|
+
const s = V(), u = V(), c = V(), i = V(), h = V(), m = V(), { height: k } = G(s), { height: v } = G(c, void 0, { box: "border-box" }), { height: O } = G(i, void 0, { box: "border-box" }), { height: z } = G(h), { height: y } = G(m), x = S(() => n.zIndex + 100), { x: E, y: ue } = Qt(c, {
|
|
466
466
|
initialValue: { x: 0, y: 0 }
|
|
467
467
|
});
|
|
468
|
-
function
|
|
469
|
-
|
|
468
|
+
function g() {
|
|
469
|
+
a == null || a.close(n.id);
|
|
470
470
|
}
|
|
471
|
-
function j(
|
|
472
|
-
return typeof
|
|
471
|
+
function j(d) {
|
|
472
|
+
return typeof d == "number" ? `${d}px` : d;
|
|
473
473
|
}
|
|
474
|
-
const _ =
|
|
475
|
-
const
|
|
476
|
-
return n.mode === "dialog" && (
|
|
477
|
-
}), N =
|
|
478
|
-
const
|
|
479
|
-
return n.size && (
|
|
480
|
-
}),
|
|
481
|
-
const
|
|
482
|
-
return n.draggable && !n.fullscreen && n.mode === "dialog" && (
|
|
483
|
-
}),
|
|
484
|
-
const
|
|
485
|
-
return n.maxHeight && (
|
|
474
|
+
const _ = S(() => {
|
|
475
|
+
const d = {};
|
|
476
|
+
return n.mode === "dialog" && (d.justifyContent = "center"), n.mode === "drawer" && (d.justifyContent = "flex-end"), d;
|
|
477
|
+
}), N = S(() => {
|
|
478
|
+
const d = {};
|
|
479
|
+
return n.size && (d.width = j(n.sizes[n.size])), n.width && (d.width = j(n.width)), n.maxWidth && (d.maxWidth = j(n.maxWidth)), n.fullscreen && (d.maxWidth = "unset", d.width = "100%", d.position = "fixed", d.top = 0, d.left = 0, d.bottom = 0, d.right = 0, d.borderRadius = 0), n.draggable && !n.fullscreen && n.mode === "dialog" && (d.transform = `translate3d(${E.value - f}px, ${ue.value - b}px, 0px)`), n.mode === "drawer" && (d.borderRadius = 0, d.height = "100%"), n.offset && n.mode === "dialog" && (d.marginLeft = `${n.offset.x || 0}px`, d.marginTop = `${n.offset.y || 0}px`), n.backgroundColor && (d.backgroundColor = n.backgroundColor), d;
|
|
480
|
+
}), L = S(() => {
|
|
481
|
+
const d = {};
|
|
482
|
+
return n.draggable && !n.fullscreen && n.mode === "dialog" && (d.cursor = "move"), d;
|
|
483
|
+
}), T = S(() => {
|
|
484
|
+
const d = {}, M = z.value + y.value + v.value + O.value, xe = Math.floor(k.value * (Number(j(n.maxHeight).replace("%", "")) / 100));
|
|
485
|
+
return n.maxHeight && (d.maxHeight = `${xe - M}px`), n.mode === "drawer" && (d.maxHeight = "unset", d.height = `${k.value - M}px`), n.fullscreen && (d.maxHeight = "unset", d.height = `calc(100% - ${M}px)`), n.type !== "component" && (d.padding = "0"), n.bodyStyle && Object.assign(d, n.bodyStyle), d;
|
|
486
486
|
});
|
|
487
|
-
function
|
|
488
|
-
const
|
|
489
|
-
if (n.form &&
|
|
490
|
-
const M =
|
|
487
|
+
function q() {
|
|
488
|
+
const d = u.value;
|
|
489
|
+
if (n.form && d) {
|
|
490
|
+
const M = d.querySelector(`form[name="${n.form}"]`);
|
|
491
491
|
M && M.dispatchEvent(new Event("submit"));
|
|
492
492
|
}
|
|
493
|
-
|
|
493
|
+
l("submit");
|
|
494
494
|
}
|
|
495
495
|
function Te() {
|
|
496
|
-
|
|
496
|
+
a == null || a.close(n.id);
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Pe() {
|
|
499
499
|
window && window.addEventListener("resize", () => {
|
|
500
|
-
|
|
500
|
+
K(s), K(u), u.value && (f = u.value.offsetLeft, b = u.value.offsetTop);
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Re() {
|
|
504
504
|
if (n.closeable && n.esc) {
|
|
505
|
-
const
|
|
506
|
-
M === "Escape" && (
|
|
505
|
+
const d = ({ key: M }) => {
|
|
506
|
+
M === "Escape" && (a == null || a.close(n.id), window.removeEventListener("keydown", d));
|
|
507
507
|
};
|
|
508
|
-
window.addEventListener("keydown",
|
|
508
|
+
window.addEventListener("keydown", d);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
|
-
function
|
|
512
|
-
|
|
511
|
+
function Ee() {
|
|
512
|
+
f = u.value.offsetLeft, b = u.value.offsetTop;
|
|
513
513
|
}
|
|
514
514
|
B(() => {
|
|
515
|
-
|
|
516
|
-
}),
|
|
515
|
+
Re(), Pe();
|
|
516
|
+
}), He(() => {
|
|
517
517
|
});
|
|
518
518
|
function Ne() {
|
|
519
519
|
return o.value = !0, () => we();
|
|
@@ -521,81 +521,81 @@ const tn = (e) => (tt("data-v-8dfa7cd4"), e = e(), nt(), e), nn = { class: "titl
|
|
|
521
521
|
function we() {
|
|
522
522
|
o.value = !1;
|
|
523
523
|
}
|
|
524
|
-
return
|
|
524
|
+
return r({
|
|
525
525
|
showLoading: Ne,
|
|
526
526
|
hideLoading: we
|
|
527
|
-
}), (
|
|
527
|
+
}), (d, M) => (C(), F("div", {
|
|
528
528
|
ref_key: "wrapperRef",
|
|
529
|
-
ref:
|
|
529
|
+
ref: s,
|
|
530
530
|
class: "modal-wrapper",
|
|
531
531
|
style: P(_.value),
|
|
532
|
-
onClick: M[0] || (M[0] = Ge((xe) =>
|
|
532
|
+
onClick: M[0] || (M[0] = Ge((xe) => d.maskClosable && g(), ["self"]))
|
|
533
533
|
}, [
|
|
534
|
-
|
|
534
|
+
w("div", {
|
|
535
535
|
ref_key: "contentRef",
|
|
536
|
-
ref:
|
|
537
|
-
class: ne(["modal-content", { [`${
|
|
536
|
+
ref: u,
|
|
537
|
+
class: ne(["modal-content", { [`${d.mode}-mode`]: !0 }]),
|
|
538
538
|
style: P(N.value)
|
|
539
539
|
}, [
|
|
540
|
-
|
|
540
|
+
d.header ? (C(), F("div", {
|
|
541
541
|
key: 0,
|
|
542
542
|
ref_key: "headerRef",
|
|
543
|
-
ref:
|
|
543
|
+
ref: c,
|
|
544
544
|
class: "modal-header",
|
|
545
|
-
style: P(
|
|
546
|
-
onMousedown:
|
|
545
|
+
style: P(L.value),
|
|
546
|
+
onMousedown: Ee
|
|
547
547
|
}, [
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
548
|
+
w("div", nn, A(d.title), 1),
|
|
549
|
+
w("div", rn, [
|
|
550
|
+
d.closeable ? (C(), F("div", {
|
|
551
551
|
key: 0,
|
|
552
552
|
class: "i-icon-park-outline:close block cursor-pointer",
|
|
553
|
-
onClick:
|
|
554
|
-
})) :
|
|
553
|
+
onClick: g
|
|
554
|
+
})) : H("", !0)
|
|
555
555
|
])
|
|
556
|
-
], 36)) :
|
|
557
|
-
|
|
556
|
+
], 36)) : H("", !0),
|
|
557
|
+
w("div", {
|
|
558
558
|
id: "modal-header-slot",
|
|
559
559
|
ref_key: "headerSlotRef",
|
|
560
|
-
ref:
|
|
560
|
+
ref: h
|
|
561
561
|
}, null, 512),
|
|
562
|
-
|
|
562
|
+
w("div", {
|
|
563
563
|
class: "modal-body",
|
|
564
|
-
style: P(
|
|
564
|
+
style: P(T.value)
|
|
565
565
|
}, [
|
|
566
|
-
(
|
|
566
|
+
(C(), ee(_e(d.component), Ye(Xe(d.componentProps)), null, 16))
|
|
567
567
|
], 4),
|
|
568
|
-
|
|
568
|
+
w("div", {
|
|
569
569
|
id: "modal-footer-slot",
|
|
570
570
|
ref_key: "footerSlotRef",
|
|
571
|
-
ref:
|
|
571
|
+
ref: m
|
|
572
572
|
}, null, 512),
|
|
573
|
-
|
|
573
|
+
d.footer ? (C(), F("div", {
|
|
574
574
|
key: 1,
|
|
575
575
|
ref_key: "footerRef",
|
|
576
|
-
ref:
|
|
576
|
+
ref: i,
|
|
577
577
|
class: "modal-footer space-x-2"
|
|
578
578
|
}, [
|
|
579
|
-
|
|
579
|
+
w("button", {
|
|
580
580
|
class: "cancel-button",
|
|
581
581
|
type: "button",
|
|
582
582
|
onClick: Te
|
|
583
|
-
}, A(
|
|
584
|
-
|
|
583
|
+
}, A(d.cancelText), 1),
|
|
584
|
+
w("button", {
|
|
585
585
|
class: "submit-button",
|
|
586
|
-
form:
|
|
586
|
+
form: d.form,
|
|
587
587
|
type: "submit",
|
|
588
|
-
onClick:
|
|
589
|
-
}, A(
|
|
590
|
-
], 512)) :
|
|
591
|
-
o.value ? (
|
|
588
|
+
onClick: q
|
|
589
|
+
}, A(d.submitText), 9, ln)
|
|
590
|
+
], 512)) : H("", !0),
|
|
591
|
+
o.value ? (C(), F("div", on, un)) : H("", !0)
|
|
592
592
|
], 6)
|
|
593
593
|
], 4));
|
|
594
594
|
}
|
|
595
|
-
}), be = (e,
|
|
595
|
+
}), be = (e, r) => {
|
|
596
596
|
const t = e.__vccOpts || e;
|
|
597
|
-
for (const [n,
|
|
598
|
-
t[n] =
|
|
597
|
+
for (const [n, l] of r)
|
|
598
|
+
t[n] = l;
|
|
599
599
|
return t;
|
|
600
600
|
}, dn = /* @__PURE__ */ be(sn, [["__scopeId", "data-v-8dfa7cd4"]]), fn = { class: "modal-dialog" }, mn = { class: "dialog-body" }, hn = { class: "dialog-title" }, pn = { class: "dialog-content" }, vn = /* @__PURE__ */ R({
|
|
601
601
|
__name: "modal-dialog",
|
|
@@ -610,40 +610,40 @@ const tn = (e) => (tt("data-v-8dfa7cd4"), e = e(), nt(), e), nn = { class: "titl
|
|
|
610
610
|
footer: {}
|
|
611
611
|
},
|
|
612
612
|
setup(e) {
|
|
613
|
-
const
|
|
613
|
+
const r = e, t = Le(), n = S(() => r.title ? r.title : {
|
|
614
614
|
confirm: "提示",
|
|
615
615
|
info: "提示",
|
|
616
616
|
warning: "警告",
|
|
617
617
|
error: "错误",
|
|
618
618
|
success: "成功"
|
|
619
|
-
}[
|
|
620
|
-
async function
|
|
621
|
-
|
|
619
|
+
}[r.type]);
|
|
620
|
+
async function l() {
|
|
621
|
+
r.onOk && await r.onOk(), t.close();
|
|
622
622
|
}
|
|
623
|
-
async function
|
|
624
|
-
|
|
623
|
+
async function a() {
|
|
624
|
+
r.onCancel && await r.onCancel(), t.close();
|
|
625
625
|
}
|
|
626
|
-
return (o,
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
626
|
+
return (o, f) => (C(), F("section", fn, [
|
|
627
|
+
w("div", mn, [
|
|
628
|
+
w("div", hn, A(n.value), 1),
|
|
629
|
+
w("div", pn, A(o.content), 1)
|
|
630
630
|
]),
|
|
631
|
-
|
|
631
|
+
w("div", {
|
|
632
632
|
class: "dialog-footer space-x-2",
|
|
633
633
|
style: P(o.type === "confirm" ? { "justify-content": "end" } : { "border-top": "none" })
|
|
634
634
|
}, [
|
|
635
|
-
o.footer ? (
|
|
636
|
-
|
|
635
|
+
o.footer ? (C(), ee(_e(o.footer), { key: 0 })) : (C(), F(me, { key: 1 }, [
|
|
636
|
+
w("button", {
|
|
637
637
|
class: "submit-button",
|
|
638
638
|
type: "submit",
|
|
639
|
-
onClick:
|
|
639
|
+
onClick: l
|
|
640
640
|
}, A(o.okText), 1),
|
|
641
|
-
o.type === "confirm" ? (
|
|
641
|
+
o.type === "confirm" ? (C(), F("button", {
|
|
642
642
|
key: 0,
|
|
643
643
|
class: "cancel-button",
|
|
644
644
|
type: "button",
|
|
645
|
-
onClick:
|
|
646
|
-
}, A(o.cancelText), 1)) :
|
|
645
|
+
onClick: a
|
|
646
|
+
}, A(o.cancelText), 1)) : H("", !0)
|
|
647
647
|
], 64))
|
|
648
648
|
], 4)
|
|
649
649
|
]));
|
|
@@ -667,148 +667,149 @@ const tn = (e) => (tt("data-v-8dfa7cd4"), e = e(), nt(), e), nn = { class: "titl
|
|
|
667
667
|
maxHeight: { default: "90%" },
|
|
668
668
|
offset: { default: () => ({ x: 0, y: 0 }) }
|
|
669
669
|
},
|
|
670
|
-
setup(e, { expose:
|
|
671
|
-
const t = V([]), n =
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
() => Promise.resolve(typeof f == "string" ? yn : f)
|
|
670
|
+
setup(e, { expose: r }) {
|
|
671
|
+
const t = V([]), n = $(!1), l = W();
|
|
672
|
+
function a(i, h = {}, m = {}) {
|
|
673
|
+
const k = qe(
|
|
674
|
+
() => Promise.resolve(typeof i == "string" ? yn : i)
|
|
676
675
|
);
|
|
677
|
-
typeof
|
|
678
|
-
const
|
|
676
|
+
typeof i == "string" && (h.type = i, m.size = "small", m.fullscreen = !1, m.mode = "dialog", m.footer = !1, m.header = !1);
|
|
677
|
+
const v = Math.random().toString(32).slice(2), O = Object.assign({
|
|
678
|
+
zIndex: typeof i == "string" ? 1e3 : 1100
|
|
679
|
+
}, m), z = new Promise((y, x) => {
|
|
679
680
|
t.value.push({
|
|
680
|
-
id:
|
|
681
|
-
component:
|
|
682
|
-
props:
|
|
681
|
+
id: v,
|
|
682
|
+
component: k,
|
|
683
|
+
props: h || {},
|
|
683
684
|
options: {
|
|
684
|
-
...
|
|
685
|
-
type: typeof
|
|
685
|
+
...O,
|
|
686
|
+
type: typeof i == "string" ? i : "component"
|
|
686
687
|
},
|
|
687
|
-
resolve:
|
|
688
|
-
reject:
|
|
688
|
+
resolve: y,
|
|
689
|
+
reject: x,
|
|
689
690
|
listeners: []
|
|
690
|
-
}),
|
|
691
|
-
}).catch((
|
|
692
|
-
}) : Promise.reject(
|
|
693
|
-
return Object.assign(
|
|
694
|
-
close: () =>
|
|
691
|
+
}), K(t);
|
|
692
|
+
}).catch((y) => y === "CANCEL" ? new Promise(() => {
|
|
693
|
+
}) : Promise.reject(y));
|
|
694
|
+
return Object.assign(z, {
|
|
695
|
+
close: () => o(v)
|
|
695
696
|
});
|
|
696
697
|
}
|
|
697
|
-
function
|
|
698
|
-
const
|
|
699
|
-
if (
|
|
698
|
+
function o(i, h) {
|
|
699
|
+
const m = t.value.findIndex((v) => v.id === i);
|
|
700
|
+
if (m < 0)
|
|
700
701
|
return;
|
|
701
|
-
const
|
|
702
|
-
|
|
702
|
+
const k = t.value[m];
|
|
703
|
+
h === void 0 ? k == null || k.reject("CANCEL") : k == null || k.resolve(h), t.value.splice(m, 1), K(t);
|
|
703
704
|
}
|
|
704
|
-
function
|
|
705
|
-
!t.value || t.value.length === 0 || (t.value.forEach((
|
|
706
|
-
|
|
707
|
-
}), t.value = [],
|
|
705
|
+
function f() {
|
|
706
|
+
!t.value || t.value.length === 0 || (t.value.forEach((i) => {
|
|
707
|
+
i == null || i.reject("CANCEL");
|
|
708
|
+
}), t.value = [], K(t));
|
|
708
709
|
}
|
|
709
|
-
function
|
|
710
|
-
const
|
|
711
|
-
if (!
|
|
710
|
+
function b(i, h) {
|
|
711
|
+
const m = t.value.find((v) => v.id === i);
|
|
712
|
+
if (!m)
|
|
712
713
|
return;
|
|
713
|
-
const
|
|
714
|
-
|
|
715
|
-
open:
|
|
716
|
-
close: (
|
|
717
|
-
closeAll:
|
|
718
|
-
showLoading: () =>
|
|
719
|
-
hideLoading: () => u(
|
|
720
|
-
confirm: (
|
|
721
|
-
success: (
|
|
722
|
-
error: (
|
|
723
|
-
warning: (
|
|
724
|
-
info: (
|
|
714
|
+
const k = m.listeners.find((v) => v.event === h);
|
|
715
|
+
k && k.callback({
|
|
716
|
+
open: a,
|
|
717
|
+
close: (v) => o(m.id, v),
|
|
718
|
+
closeAll: f,
|
|
719
|
+
showLoading: () => s(m.id),
|
|
720
|
+
hideLoading: () => u(m.id),
|
|
721
|
+
confirm: (v) => a("confirm", v),
|
|
722
|
+
success: (v) => a("success", v),
|
|
723
|
+
error: (v) => a("error", v),
|
|
724
|
+
warning: (v) => a("warning", v),
|
|
725
|
+
info: (v) => a("info", v)
|
|
725
726
|
});
|
|
726
727
|
}
|
|
727
|
-
function
|
|
728
|
-
if (!
|
|
728
|
+
function s(i) {
|
|
729
|
+
if (!l)
|
|
729
730
|
return;
|
|
730
|
-
const [
|
|
731
|
-
if (
|
|
732
|
-
return
|
|
731
|
+
const [h] = l.refs[`modal-container_${i}`];
|
|
732
|
+
if (h)
|
|
733
|
+
return h.showLoading();
|
|
733
734
|
}
|
|
734
|
-
function u(
|
|
735
|
-
if (!
|
|
735
|
+
function u(i) {
|
|
736
|
+
if (!l)
|
|
736
737
|
return;
|
|
737
|
-
const [
|
|
738
|
-
if (
|
|
739
|
-
return
|
|
738
|
+
const [h] = l.refs[`modal-container_${i}`];
|
|
739
|
+
if (h)
|
|
740
|
+
return h.hideLoading();
|
|
740
741
|
}
|
|
741
|
-
function
|
|
742
|
-
const
|
|
743
|
-
|
|
744
|
-
event:
|
|
745
|
-
callback:
|
|
742
|
+
function c(i, h, m) {
|
|
743
|
+
const k = t.value.find((v) => v.id === i);
|
|
744
|
+
k && k.listeners.push({
|
|
745
|
+
event: h,
|
|
746
|
+
callback: m
|
|
746
747
|
});
|
|
747
748
|
}
|
|
748
749
|
return fe(oe, {
|
|
749
|
-
open:
|
|
750
|
-
close:
|
|
751
|
-
closeAll:
|
|
752
|
-
addEventListener:
|
|
753
|
-
}),
|
|
750
|
+
open: a,
|
|
751
|
+
close: o,
|
|
752
|
+
closeAll: f,
|
|
753
|
+
addEventListener: c
|
|
754
|
+
}), r({
|
|
754
755
|
elements: t,
|
|
755
|
-
open:
|
|
756
|
-
close:
|
|
757
|
-
closeAll:
|
|
756
|
+
open: a,
|
|
757
|
+
close: o,
|
|
758
|
+
closeAll: f
|
|
758
759
|
}), B(() => {
|
|
759
760
|
n.value = !0;
|
|
760
|
-
}), (
|
|
761
|
-
Ve(
|
|
762
|
-
n.value ? (
|
|
763
|
-
(
|
|
764
|
-
disabled: !
|
|
765
|
-
to: typeof
|
|
761
|
+
}), (i, h) => (C(), F(me, null, [
|
|
762
|
+
Ve(i.$slots, "default", {}, void 0, !0),
|
|
763
|
+
n.value ? (C(), F("div", gn, [
|
|
764
|
+
(C(), ee(Ae, {
|
|
765
|
+
disabled: !i.appendToBody,
|
|
766
|
+
to: typeof i.appendToBody == "string" ? i.appendToBody : "body"
|
|
766
767
|
}, [
|
|
767
768
|
p(De, { name: "modal-fade" }, {
|
|
768
769
|
default: Be(() => [
|
|
769
|
-
(
|
|
770
|
-
id:
|
|
771
|
-
key:
|
|
770
|
+
(C(!0), F(me, null, We(t.value, (m) => (C(), ee(dn, Oe({
|
|
771
|
+
id: m.id,
|
|
772
|
+
key: m.id,
|
|
772
773
|
ref_for: !0,
|
|
773
|
-
ref: `modal-container_${
|
|
774
|
-
component:
|
|
775
|
-
"component-props":
|
|
776
|
-
"max-height":
|
|
777
|
-
"max-width":
|
|
778
|
-
offset:
|
|
779
|
-
sizes:
|
|
780
|
-
},
|
|
781
|
-
onSubmit: () =>
|
|
774
|
+
ref: `modal-container_${m.id}`,
|
|
775
|
+
component: m.component,
|
|
776
|
+
"component-props": m.props,
|
|
777
|
+
"max-height": i.maxHeight,
|
|
778
|
+
"max-width": i.maxWidth,
|
|
779
|
+
offset: i.offset,
|
|
780
|
+
sizes: i.sizes
|
|
781
|
+
}, m.options, {
|
|
782
|
+
onSubmit: () => b(m.id, "submit")
|
|
782
783
|
}), null, 16, ["id", "component", "component-props", "max-height", "max-width", "offset", "sizes", "onSubmit"]))), 128))
|
|
783
784
|
]),
|
|
784
785
|
_: 1
|
|
785
786
|
})
|
|
786
787
|
], 8, ["disabled", "to"]))
|
|
787
|
-
])) :
|
|
788
|
+
])) : H("", !0)
|
|
788
789
|
], 64));
|
|
789
790
|
}
|
|
790
|
-
}), wn = /* @__PURE__ */ be(kn, [["__scopeId", "data-v-
|
|
791
|
-
function Q(e,
|
|
791
|
+
}), wn = /* @__PURE__ */ be(kn, [["__scopeId", "data-v-c32d730b"]]);
|
|
792
|
+
function Q(e, r) {
|
|
792
793
|
var t, n;
|
|
793
|
-
let
|
|
794
|
-
for (;
|
|
795
|
-
|
|
796
|
-
return ((n =
|
|
794
|
+
let l = e == null ? void 0 : e.parent;
|
|
795
|
+
for (; l && ((t = l == null ? void 0 : l.type) == null ? void 0 : t.name) !== r; )
|
|
796
|
+
l = l.parent;
|
|
797
|
+
return ((n = l == null ? void 0 : l.type) == null ? void 0 : n.name) === r ? l : null;
|
|
797
798
|
}
|
|
798
799
|
function Le() {
|
|
799
|
-
const e = te(oe),
|
|
800
|
-
function t(n,
|
|
800
|
+
const e = te(oe), r = W();
|
|
801
|
+
function t(n, l, a) {
|
|
801
802
|
if (!e)
|
|
802
803
|
throw new Error("Not Found Modal Provider Component");
|
|
803
|
-
return e.open(n,
|
|
804
|
+
return e.open(n, l, a);
|
|
804
805
|
}
|
|
805
806
|
return {
|
|
806
807
|
open: t,
|
|
807
808
|
close(n) {
|
|
808
|
-
var
|
|
809
|
+
var l;
|
|
809
810
|
if (!e)
|
|
810
811
|
throw new Error("Not Found Modal Provider Component");
|
|
811
|
-
const
|
|
812
|
+
const a = Q(r, "ModalContainer"), o = (l = a == null ? void 0 : a.props) == null ? void 0 : l.id;
|
|
812
813
|
if (!o)
|
|
813
814
|
throw new Error("Not Found Current Modal Container");
|
|
814
815
|
e.close(o, n);
|
|
@@ -822,19 +823,19 @@ function Le() {
|
|
|
822
823
|
var n;
|
|
823
824
|
if (!e)
|
|
824
825
|
throw new Error("Not Found Modal Provider Component");
|
|
825
|
-
const
|
|
826
|
-
if (!((n =
|
|
826
|
+
const l = Q(r, "ModalContainer");
|
|
827
|
+
if (!((n = l == null ? void 0 : l.props) != null && n.id))
|
|
827
828
|
throw new Error("Not Found Current Modal Container");
|
|
828
|
-
|
|
829
|
+
l != null && l.exposed && (l == null || l.exposed.showLoading());
|
|
829
830
|
},
|
|
830
831
|
hideLoading() {
|
|
831
832
|
var n;
|
|
832
833
|
if (!e)
|
|
833
834
|
throw new Error("Not Found Modal Provider Component");
|
|
834
|
-
const
|
|
835
|
-
if (!((n =
|
|
835
|
+
const l = Q(r, "ModalContainer");
|
|
836
|
+
if (!((n = l == null ? void 0 : l.props) != null && n.id))
|
|
836
837
|
throw new Error("Not Found Current Modal Container");
|
|
837
|
-
|
|
838
|
+
l != null && l.exposed && (l == null || l.exposed.hideLoading());
|
|
838
839
|
},
|
|
839
840
|
confirm(n) {
|
|
840
841
|
return this.open("confirm", n);
|
|
@@ -854,25 +855,25 @@ function Le() {
|
|
|
854
855
|
};
|
|
855
856
|
}
|
|
856
857
|
function xn(e) {
|
|
857
|
-
var
|
|
858
|
-
const t = te(oe), n = W(),
|
|
859
|
-
t &&
|
|
858
|
+
var r;
|
|
859
|
+
const t = te(oe), n = W(), l = Q(n, "ModalContainer"), a = (r = l == null ? void 0 : l.props) == null ? void 0 : r.id;
|
|
860
|
+
t && a && t.addEventListener(a, "submit", e);
|
|
860
861
|
}
|
|
861
862
|
const $e = {
|
|
862
863
|
id: Symbol("ID"),
|
|
863
864
|
source: Symbol("Source")
|
|
864
865
|
};
|
|
865
|
-
function Sn(e,
|
|
866
|
-
const t =
|
|
867
|
-
return e == null || e.forEach((
|
|
868
|
-
let
|
|
869
|
-
|
|
870
|
-
}), [t, (
|
|
871
|
-
t.value =
|
|
866
|
+
function Sn(e, r) {
|
|
867
|
+
const t = $({});
|
|
868
|
+
return e == null || e.forEach((l) => {
|
|
869
|
+
let a = null;
|
|
870
|
+
l.default && (a = (typeof l.default == "function" ? l.default() : l.default) || null), r && r[l.key] !== void 0 && (a = r[l.key]), t.value[l.key] = a;
|
|
871
|
+
}), [t, (l) => {
|
|
872
|
+
t.value = l;
|
|
872
873
|
}];
|
|
873
874
|
}
|
|
874
875
|
function Cn(e) {
|
|
875
|
-
function
|
|
876
|
+
function r(t, n) {
|
|
876
877
|
return e != null && e.disabledDate ? e.disabledDate(t, n) : !1;
|
|
877
878
|
}
|
|
878
879
|
return (t, n) => {
|
|
@@ -880,32 +881,32 @@ function Cn(e) {
|
|
|
880
881
|
case "week":
|
|
881
882
|
return p(ct, {
|
|
882
883
|
modelValue: t[n.key],
|
|
883
|
-
"onUpdate:modelValue": (
|
|
884
|
-
"disabled-date":
|
|
884
|
+
"onUpdate:modelValue": (l) => t[n.key] = l,
|
|
885
|
+
"disabled-date": r,
|
|
885
886
|
format: e == null ? void 0 : e.labelFormat,
|
|
886
887
|
"value-format": e == null ? void 0 : e.valueFormat
|
|
887
888
|
}, null);
|
|
888
889
|
case "month":
|
|
889
890
|
return p(it, {
|
|
890
891
|
modelValue: t[n.key],
|
|
891
|
-
"onUpdate:modelValue": (
|
|
892
|
-
"disabled-date":
|
|
892
|
+
"onUpdate:modelValue": (l) => t[n.key] = l,
|
|
893
|
+
"disabled-date": r,
|
|
893
894
|
format: e == null ? void 0 : e.labelFormat,
|
|
894
895
|
"value-format": e == null ? void 0 : e.valueFormat
|
|
895
896
|
}, null);
|
|
896
897
|
case "quarter":
|
|
897
898
|
return p(ut, {
|
|
898
899
|
modelValue: t[n.key],
|
|
899
|
-
"onUpdate:modelValue": (
|
|
900
|
-
"disabled-date":
|
|
900
|
+
"onUpdate:modelValue": (l) => t[n.key] = l,
|
|
901
|
+
"disabled-date": r,
|
|
901
902
|
format: e == null ? void 0 : e.labelFormat,
|
|
902
903
|
"value-format": e == null ? void 0 : e.valueFormat
|
|
903
904
|
}, null);
|
|
904
905
|
case "year":
|
|
905
906
|
return p(at, {
|
|
906
907
|
modelValue: t[n.key],
|
|
907
|
-
"onUpdate:modelValue": (
|
|
908
|
-
"disabled-date":
|
|
908
|
+
"onUpdate:modelValue": (l) => t[n.key] = l,
|
|
909
|
+
"disabled-date": r,
|
|
909
910
|
format: e == null ? void 0 : e.labelFormat,
|
|
910
911
|
"value-format": e == null ? void 0 : e.valueFormat
|
|
911
912
|
}, null);
|
|
@@ -914,8 +915,8 @@ function Cn(e) {
|
|
|
914
915
|
return p(ot, {
|
|
915
916
|
"disabled-input": !0,
|
|
916
917
|
modelValue: t[n.key],
|
|
917
|
-
"onUpdate:modelValue": (
|
|
918
|
-
"disabled-date":
|
|
918
|
+
"onUpdate:modelValue": (l) => t[n.key] = l,
|
|
919
|
+
"disabled-date": r,
|
|
919
920
|
format: e == null ? void 0 : e.labelFormat,
|
|
920
921
|
"value-format": e == null ? void 0 : e.valueFormat
|
|
921
922
|
}, null);
|
|
@@ -923,12 +924,12 @@ function Cn(e) {
|
|
|
923
924
|
};
|
|
924
925
|
}
|
|
925
926
|
function $n(e) {
|
|
926
|
-
return (
|
|
927
|
+
return (r, t) => {
|
|
927
928
|
switch (e == null ? void 0 : e.type) {
|
|
928
929
|
case "number":
|
|
929
930
|
return p(dt, {
|
|
930
|
-
modelValue:
|
|
931
|
-
"onUpdate:modelValue": (n) =>
|
|
931
|
+
modelValue: r[t.key],
|
|
932
|
+
"onUpdate:modelValue": (n) => r[t.key] = n,
|
|
932
933
|
hideButton: !0,
|
|
933
934
|
"read-only": e == null ? void 0 : e.readonly,
|
|
934
935
|
placeholder: e == null ? void 0 : e.placeholder,
|
|
@@ -937,8 +938,8 @@ function $n(e) {
|
|
|
937
938
|
case "string":
|
|
938
939
|
default:
|
|
939
940
|
return p(st, {
|
|
940
|
-
modelValue:
|
|
941
|
-
"onUpdate:modelValue": (n) =>
|
|
941
|
+
modelValue: r[t.key],
|
|
942
|
+
"onUpdate:modelValue": (n) => r[t.key] = n,
|
|
942
943
|
placeholder: e == null ? void 0 : e.placeholder,
|
|
943
944
|
readonly: e == null ? void 0 : e.readonly,
|
|
944
945
|
allowClear: e == null ? void 0 : e.clearable
|
|
@@ -947,57 +948,57 @@ function $n(e) {
|
|
|
947
948
|
};
|
|
948
949
|
}
|
|
949
950
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
950
|
-
function ke(e,
|
|
951
|
-
const n =
|
|
951
|
+
function ke(e, r, t) {
|
|
952
|
+
const n = re(e, (...l) => (Ie(() => n()), r(...l)), t);
|
|
952
953
|
return n;
|
|
953
954
|
}
|
|
954
955
|
function Fn(e) {
|
|
955
956
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !pe(e);
|
|
956
957
|
}
|
|
957
|
-
const
|
|
958
|
+
const Y = /* @__PURE__ */ new WeakMap();
|
|
958
959
|
function On() {
|
|
959
|
-
const e =
|
|
960
|
+
const e = $(/* @__PURE__ */ new Map());
|
|
960
961
|
return [e, (t) => e.value = t];
|
|
961
962
|
}
|
|
962
963
|
function _n(e) {
|
|
963
|
-
let
|
|
964
|
-
const [n,
|
|
965
|
-
if (!e.autoSumbit || !
|
|
964
|
+
let r, t = !1;
|
|
965
|
+
const [n, l] = On(), a = () => {
|
|
966
|
+
if (!e.autoSumbit || !r)
|
|
966
967
|
return;
|
|
967
|
-
let
|
|
968
|
-
for (;
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
}, o = (
|
|
972
|
-
const
|
|
973
|
-
|
|
974
|
-
},
|
|
975
|
-
const
|
|
976
|
-
switch (typeof
|
|
968
|
+
let s = r;
|
|
969
|
+
for (; s && s.$el.tagName !== "FORM"; )
|
|
970
|
+
s = s.$parent;
|
|
971
|
+
s && s.$el && s.$el.dispatchEvent(new Event("submit"));
|
|
972
|
+
}, o = (s, u) => {
|
|
973
|
+
const c = s();
|
|
974
|
+
c instanceof Promise ? c.then(u) : u(c);
|
|
975
|
+
}, f = async () => {
|
|
976
|
+
const s = Y.get(e.options);
|
|
977
|
+
switch (typeof s) {
|
|
977
978
|
case "function":
|
|
978
|
-
|
|
979
|
+
Y.set(e.options, l);
|
|
979
980
|
return;
|
|
980
981
|
case "object":
|
|
981
|
-
|
|
982
|
+
l(s);
|
|
982
983
|
return;
|
|
983
984
|
}
|
|
984
|
-
|
|
985
|
-
const
|
|
986
|
-
|
|
985
|
+
Y.set(e.options, l), o(e.options, (u) => {
|
|
986
|
+
const c = Y.get(e.options);
|
|
987
|
+
Y.set(e.options, u), c(u);
|
|
987
988
|
});
|
|
988
989
|
}, b = () => {
|
|
989
|
-
o(e.options, (
|
|
990
|
-
|
|
990
|
+
o(e.options, (s) => {
|
|
991
|
+
l(s);
|
|
991
992
|
});
|
|
992
993
|
};
|
|
993
994
|
switch (!0) {
|
|
994
995
|
case e.options instanceof Function: {
|
|
995
|
-
e.cache !== !1 ?
|
|
996
|
+
e.cache !== !1 ? f() : b();
|
|
996
997
|
break;
|
|
997
998
|
}
|
|
998
|
-
case
|
|
999
|
+
case le(e.options): {
|
|
999
1000
|
ke(e.options, () => {
|
|
1000
|
-
|
|
1001
|
+
l(e.options.value);
|
|
1001
1002
|
}, {
|
|
1002
1003
|
immediate: !0
|
|
1003
1004
|
});
|
|
@@ -1006,65 +1007,65 @@ function _n(e) {
|
|
|
1006
1007
|
default:
|
|
1007
1008
|
n.value = e.options;
|
|
1008
1009
|
}
|
|
1009
|
-
return (
|
|
1010
|
-
let
|
|
1011
|
-
return e.default && !t && (
|
|
1012
|
-
ref: (
|
|
1010
|
+
return (s, u) => {
|
|
1011
|
+
let c;
|
|
1012
|
+
return e.default && !t && (s[u.key] = e.default, t = !0), p(ft, {
|
|
1013
|
+
ref: (i) => r = i,
|
|
1013
1014
|
multiple: e.multiple,
|
|
1014
|
-
modelValue:
|
|
1015
|
-
"onUpdate:modelValue": (
|
|
1015
|
+
modelValue: s[u.key],
|
|
1016
|
+
"onUpdate:modelValue": (i) => s[u.key] = i,
|
|
1016
1017
|
placeholder: e.placeholder,
|
|
1017
1018
|
allowClear: e.clearable,
|
|
1018
1019
|
allowSearch: e.searchable,
|
|
1019
1020
|
maxTagCount: e.maxTagCount ?? 2,
|
|
1020
|
-
onChange:
|
|
1021
|
-
}, Fn(
|
|
1022
|
-
key:
|
|
1023
|
-
value:
|
|
1024
|
-
label:
|
|
1025
|
-
}, null))) ?
|
|
1026
|
-
default: () => [
|
|
1021
|
+
onChange: a
|
|
1022
|
+
}, Fn(c = Array.from(n.value.entries()).map(([i, h]) => p(mt, {
|
|
1023
|
+
key: i,
|
|
1024
|
+
value: i,
|
|
1025
|
+
label: h
|
|
1026
|
+
}, null))) ? c : {
|
|
1027
|
+
default: () => [c]
|
|
1027
1028
|
});
|
|
1028
1029
|
};
|
|
1029
1030
|
}
|
|
1030
1031
|
function In(e) {
|
|
1031
|
-
function
|
|
1032
|
+
function r() {
|
|
1032
1033
|
e != null && e.autoSumbit;
|
|
1033
1034
|
}
|
|
1034
1035
|
return (t, n) => (e != null && e.default && (t[n.key] = e.default), p(ht, {
|
|
1035
1036
|
modelValue: t[n.key],
|
|
1036
|
-
"onUpdate:modelValue": (
|
|
1037
|
+
"onUpdate:modelValue": (l) => t[n.key] = l,
|
|
1037
1038
|
checkedText: (e == null ? void 0 : e.openLabel) ?? "是",
|
|
1038
1039
|
uncheckedText: (e == null ? void 0 : e.closeLabel) ?? "否",
|
|
1039
1040
|
checkedValue: (e == null ? void 0 : e.openValue) ?? !0,
|
|
1040
1041
|
uncheckedValue: (e == null ? void 0 : e.closeValue) ?? !1,
|
|
1041
|
-
onChange:
|
|
1042
|
+
onChange: r
|
|
1042
1043
|
}, null));
|
|
1043
1044
|
}
|
|
1044
1045
|
function Mn(e) {
|
|
1045
|
-
return (
|
|
1046
|
+
return (r, t) => {
|
|
1046
1047
|
let n = [];
|
|
1047
|
-
function
|
|
1048
|
-
n =
|
|
1048
|
+
function l(f) {
|
|
1049
|
+
n = f;
|
|
1049
1050
|
}
|
|
1050
|
-
function
|
|
1051
|
-
if (
|
|
1052
|
-
const [b,
|
|
1053
|
-
|
|
1051
|
+
function a(f) {
|
|
1052
|
+
if (f && f.length === 2) {
|
|
1053
|
+
const [b, s] = f.sort(), u = Ce(b).startOf("days"), c = Ce(s).endOf("days");
|
|
1054
|
+
r[t.key] = [u.format((e == null ? void 0 : e.valueFormat) || "YYYY-MM-DD"), c.format((e == null ? void 0 : e.valueFormat) || "YYYY-MM-DD")];
|
|
1054
1055
|
}
|
|
1055
1056
|
}
|
|
1056
|
-
function o(
|
|
1057
|
-
return e != null && e.disabledDate ? e.disabledDate(n,
|
|
1057
|
+
function o(f) {
|
|
1058
|
+
return e != null && e.disabledDate ? e.disabledDate(n, f) : !1;
|
|
1058
1059
|
}
|
|
1059
1060
|
return p("div", null, [p(pt, {
|
|
1060
1061
|
"disabled-input": !0,
|
|
1061
1062
|
style: {
|
|
1062
1063
|
width: "300px"
|
|
1063
1064
|
},
|
|
1064
|
-
modelValue:
|
|
1065
|
-
"onUpdate:modelValue": (
|
|
1066
|
-
onSelect:
|
|
1067
|
-
onChange:
|
|
1065
|
+
modelValue: r[t.key],
|
|
1066
|
+
"onUpdate:modelValue": (f) => r[t.key] = f,
|
|
1067
|
+
onSelect: l,
|
|
1068
|
+
onChange: a,
|
|
1068
1069
|
mode: e == null ? void 0 : e.type,
|
|
1069
1070
|
allowClear: e == null ? void 0 : e.clearable,
|
|
1070
1071
|
"disabled-date": o,
|
|
@@ -1074,9 +1075,9 @@ function Mn(e) {
|
|
|
1074
1075
|
};
|
|
1075
1076
|
}
|
|
1076
1077
|
function jn(e) {
|
|
1077
|
-
return (
|
|
1078
|
-
modelValue:
|
|
1079
|
-
"onUpdate:modelValue": (n) =>
|
|
1078
|
+
return (r, t) => p(vt, {
|
|
1079
|
+
modelValue: r[t.key],
|
|
1080
|
+
"onUpdate:modelValue": (n) => r[t.key] = n,
|
|
1080
1081
|
placeholder: e == null ? void 0 : e.placeholder,
|
|
1081
1082
|
autoSize: e == null ? void 0 : e.autosize,
|
|
1082
1083
|
maxLength: e == null ? void 0 : e.maxLength
|
|
@@ -1084,48 +1085,48 @@ function jn(e) {
|
|
|
1084
1085
|
}
|
|
1085
1086
|
const X = /* @__PURE__ */ new WeakMap();
|
|
1086
1087
|
function zn() {
|
|
1087
|
-
const e =
|
|
1088
|
+
const e = $([]);
|
|
1088
1089
|
return [e, (t) => e.value = t];
|
|
1089
1090
|
}
|
|
1090
1091
|
function Ln(e) {
|
|
1091
|
-
let
|
|
1092
|
-
const [n,
|
|
1093
|
-
if (!e.autoSumbit || !
|
|
1092
|
+
let r, t = !1;
|
|
1093
|
+
const [n, l] = zn(), a = () => {
|
|
1094
|
+
if (!e.autoSumbit || !r)
|
|
1094
1095
|
return;
|
|
1095
|
-
let
|
|
1096
|
-
for (;
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
}, o = (
|
|
1100
|
-
const
|
|
1101
|
-
|
|
1102
|
-
},
|
|
1103
|
-
const
|
|
1104
|
-
switch (typeof
|
|
1096
|
+
let u = r;
|
|
1097
|
+
for (; u && u.$el.tagName !== "FORM"; )
|
|
1098
|
+
u = u.$parent;
|
|
1099
|
+
u && u.$el && u.$el.dispatchEvent(new Event("submit"));
|
|
1100
|
+
}, o = (u, c) => {
|
|
1101
|
+
const i = u();
|
|
1102
|
+
i instanceof Promise ? i.then(c) : c(i);
|
|
1103
|
+
}, f = async () => {
|
|
1104
|
+
const u = X.get(e.options);
|
|
1105
|
+
switch (typeof u) {
|
|
1105
1106
|
case "function":
|
|
1106
|
-
X.set(e.options,
|
|
1107
|
+
X.set(e.options, l);
|
|
1107
1108
|
return;
|
|
1108
1109
|
case "object":
|
|
1109
|
-
|
|
1110
|
+
l(u);
|
|
1110
1111
|
return;
|
|
1111
1112
|
}
|
|
1112
|
-
X.set(e.options,
|
|
1113
|
-
const
|
|
1114
|
-
X.set(e.options,
|
|
1113
|
+
X.set(e.options, l), o(e.options, (c) => {
|
|
1114
|
+
const i = X.get(e.options);
|
|
1115
|
+
X.set(e.options, c), i(c);
|
|
1115
1116
|
});
|
|
1116
1117
|
}, b = () => {
|
|
1117
|
-
o(e.options, (
|
|
1118
|
-
|
|
1118
|
+
o(e.options, (u) => {
|
|
1119
|
+
l(u);
|
|
1119
1120
|
});
|
|
1120
1121
|
};
|
|
1121
1122
|
switch (!0) {
|
|
1122
1123
|
case e.options instanceof Function: {
|
|
1123
|
-
e.cache !== !1 ?
|
|
1124
|
+
e.cache !== !1 ? f() : b();
|
|
1124
1125
|
break;
|
|
1125
1126
|
}
|
|
1126
|
-
case
|
|
1127
|
+
case le(e.options): {
|
|
1127
1128
|
ke(e.options, () => {
|
|
1128
|
-
|
|
1129
|
+
l(e.options.value);
|
|
1129
1130
|
}, {
|
|
1130
1131
|
immediate: !0
|
|
1131
1132
|
});
|
|
@@ -1134,22 +1135,22 @@ function Ln(e) {
|
|
|
1134
1135
|
default:
|
|
1135
1136
|
n.value = e.options;
|
|
1136
1137
|
}
|
|
1137
|
-
function
|
|
1138
|
-
var
|
|
1139
|
-
const
|
|
1140
|
-
return
|
|
1138
|
+
function s(u, c) {
|
|
1139
|
+
var m;
|
|
1140
|
+
const i = ((m = e.fieldNames) == null ? void 0 : m.title) || "title", h = c[i];
|
|
1141
|
+
return h ? h.toLowerCase().includes(u.toLowerCase()) : !1;
|
|
1141
1142
|
}
|
|
1142
|
-
return (
|
|
1143
|
-
ref: (
|
|
1143
|
+
return (u, c) => (e.default && !t && (u[c.key] = e.default, t = !0), p(yt, {
|
|
1144
|
+
ref: (i) => r = i,
|
|
1144
1145
|
multiple: e.multiple,
|
|
1145
|
-
modelValue:
|
|
1146
|
-
"onUpdate:modelValue": (
|
|
1146
|
+
modelValue: u[c.key],
|
|
1147
|
+
"onUpdate:modelValue": (i) => u[c.key] = i,
|
|
1147
1148
|
placeholder: e.placeholder,
|
|
1148
1149
|
allowClear: e.clearable,
|
|
1149
1150
|
allowSearch: e.searchable,
|
|
1150
1151
|
maxTagCount: e.maxTagCount ?? 2,
|
|
1151
|
-
onChange:
|
|
1152
|
-
filterTreeNode:
|
|
1152
|
+
onChange: a,
|
|
1153
|
+
filterTreeNode: s,
|
|
1153
1154
|
data: n.value,
|
|
1154
1155
|
fieldNames: e.fieldNames,
|
|
1155
1156
|
treeProps: e.treeProps
|
|
@@ -1159,48 +1160,48 @@ function Ln(e) {
|
|
|
1159
1160
|
}
|
|
1160
1161
|
const Z = /* @__PURE__ */ new WeakMap();
|
|
1161
1162
|
function Tn() {
|
|
1162
|
-
const e =
|
|
1163
|
+
const e = $([]);
|
|
1163
1164
|
return [e, (t) => e.value = t];
|
|
1164
1165
|
}
|
|
1165
|
-
function
|
|
1166
|
-
let
|
|
1167
|
-
const [n,
|
|
1168
|
-
if (!e.autoSumbit || !
|
|
1166
|
+
function Pn(e) {
|
|
1167
|
+
let r, t = !1;
|
|
1168
|
+
const [n, l] = Tn(), a = () => {
|
|
1169
|
+
if (!e.autoSumbit || !r)
|
|
1169
1170
|
return;
|
|
1170
|
-
let
|
|
1171
|
-
for (;
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
}, o = (
|
|
1175
|
-
const
|
|
1176
|
-
|
|
1177
|
-
},
|
|
1178
|
-
const
|
|
1179
|
-
switch (typeof
|
|
1171
|
+
let s = r;
|
|
1172
|
+
for (; s && s.$el.tagName !== "FORM"; )
|
|
1173
|
+
s = s.$parent;
|
|
1174
|
+
s && s.$el && s.$el.dispatchEvent(new Event("submit"));
|
|
1175
|
+
}, o = (s, u) => {
|
|
1176
|
+
const c = s();
|
|
1177
|
+
c instanceof Promise ? c.then(u) : u(c);
|
|
1178
|
+
}, f = async () => {
|
|
1179
|
+
const s = Z.get(e.options);
|
|
1180
|
+
switch (typeof s) {
|
|
1180
1181
|
case "function":
|
|
1181
|
-
Z.set(e.options,
|
|
1182
|
+
Z.set(e.options, l);
|
|
1182
1183
|
return;
|
|
1183
1184
|
case "object":
|
|
1184
|
-
|
|
1185
|
+
l(s);
|
|
1185
1186
|
return;
|
|
1186
1187
|
}
|
|
1187
|
-
Z.set(e.options,
|
|
1188
|
-
const
|
|
1189
|
-
Z.set(e.options,
|
|
1188
|
+
Z.set(e.options, l), o(e.options, (u) => {
|
|
1189
|
+
const c = Z.get(e.options);
|
|
1190
|
+
Z.set(e.options, u), c(u);
|
|
1190
1191
|
});
|
|
1191
1192
|
}, b = () => {
|
|
1192
|
-
o(e.options, (
|
|
1193
|
-
|
|
1193
|
+
o(e.options, (s) => {
|
|
1194
|
+
l(s);
|
|
1194
1195
|
});
|
|
1195
1196
|
};
|
|
1196
1197
|
switch (!0) {
|
|
1197
1198
|
case e.options instanceof Function: {
|
|
1198
|
-
e.cache !== !1 ?
|
|
1199
|
+
e.cache !== !1 ? f() : b();
|
|
1199
1200
|
break;
|
|
1200
1201
|
}
|
|
1201
|
-
case
|
|
1202
|
+
case le(e.options): {
|
|
1202
1203
|
ke(e.options, () => {
|
|
1203
|
-
|
|
1204
|
+
l(e.options.value);
|
|
1204
1205
|
}, {
|
|
1205
1206
|
immediate: !0
|
|
1206
1207
|
});
|
|
@@ -1209,24 +1210,24 @@ function En(e) {
|
|
|
1209
1210
|
default:
|
|
1210
1211
|
n.value = e.options;
|
|
1211
1212
|
}
|
|
1212
|
-
return (
|
|
1213
|
+
return (s, u) => (e.default && !t && (s[u.key] = e.default, t = !0), p(gt, {
|
|
1213
1214
|
pathMode: e.pathMode,
|
|
1214
|
-
ref: (
|
|
1215
|
+
ref: (c) => r = c,
|
|
1215
1216
|
multiple: e.multiple,
|
|
1216
|
-
modelValue:
|
|
1217
|
-
"onUpdate:modelValue": (
|
|
1217
|
+
modelValue: s[u.key],
|
|
1218
|
+
"onUpdate:modelValue": (c) => s[u.key] = c,
|
|
1218
1219
|
placeholder: e.placeholder,
|
|
1219
1220
|
allowClear: e.clearable,
|
|
1220
1221
|
allowSearch: e.searchable,
|
|
1221
1222
|
maxTagCount: e.maxTagCount ?? 2,
|
|
1222
|
-
onChange:
|
|
1223
|
+
onChange: a,
|
|
1223
1224
|
options: n.value
|
|
1224
1225
|
}, null));
|
|
1225
1226
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return (
|
|
1227
|
+
function Rn(e) {
|
|
1228
|
+
return (r) => e(r);
|
|
1228
1229
|
}
|
|
1229
|
-
function
|
|
1230
|
+
function En() {
|
|
1230
1231
|
return {
|
|
1231
1232
|
input: $n,
|
|
1232
1233
|
textarea: jn,
|
|
@@ -1235,24 +1236,24 @@ function Rn() {
|
|
|
1235
1236
|
date: Cn,
|
|
1236
1237
|
switch: In,
|
|
1237
1238
|
dateRange: Mn,
|
|
1238
|
-
render:
|
|
1239
|
-
cascader:
|
|
1239
|
+
render: Rn,
|
|
1240
|
+
cascader: Pn
|
|
1240
1241
|
};
|
|
1241
1242
|
}
|
|
1242
|
-
function Nn(e,
|
|
1243
|
-
|
|
1244
|
-
const t =
|
|
1245
|
-
...
|
|
1243
|
+
function Nn(e, r) {
|
|
1244
|
+
r.render || (r.render = (n) => n.input());
|
|
1245
|
+
const t = r.render({
|
|
1246
|
+
...En()
|
|
1246
1247
|
});
|
|
1247
1248
|
return {
|
|
1248
|
-
default: () => t(e,
|
|
1249
|
+
default: () => t(e, r)
|
|
1249
1250
|
};
|
|
1250
1251
|
}
|
|
1251
|
-
function Vn(e,
|
|
1252
|
-
return
|
|
1253
|
-
field:
|
|
1254
|
-
label:
|
|
1255
|
-
}, Nn(e,
|
|
1252
|
+
function Vn(e, r) {
|
|
1253
|
+
return rt(Me, {
|
|
1254
|
+
field: r.key,
|
|
1255
|
+
label: r.title
|
|
1256
|
+
}, Nn(e, r));
|
|
1256
1257
|
}
|
|
1257
1258
|
function An(e) {
|
|
1258
1259
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !pe(e);
|
|
@@ -1265,40 +1266,40 @@ const Dn = /* @__PURE__ */ R({
|
|
|
1265
1266
|
}
|
|
1266
1267
|
},
|
|
1267
1268
|
setup(e) {
|
|
1268
|
-
const
|
|
1269
|
+
const r = Le(), t = e.form.map((o) => ({
|
|
1269
1270
|
...o,
|
|
1270
1271
|
collapsed: !1
|
|
1271
|
-
})), n = Array.from(new Set(t.map((o) => o.group).flat().filter(Boolean))),
|
|
1272
|
-
let
|
|
1273
|
-
|
|
1272
|
+
})), n = Array.from(new Set(t.map((o) => o.group).flat().filter(Boolean))), l = t.reduce((o, f) => ((f.group ? [f.group].flat() : ["默认"]).forEach((b) => {
|
|
1273
|
+
let s = o.find((u) => u.group === b);
|
|
1274
|
+
s || (s = {
|
|
1274
1275
|
group: b,
|
|
1275
1276
|
instance: void 0,
|
|
1276
1277
|
form: []
|
|
1277
|
-
}, o.push(
|
|
1278
|
-
}), o), []).sort((o,
|
|
1278
|
+
}, o.push(s)), s.form.push(f);
|
|
1279
|
+
}), o), []).sort((o, f) => o.group === "默认" ? -1 : f.group === "默认" ? 1 : o.group > f.group ? -1 : 1), a = $("默认");
|
|
1279
1280
|
return xn(() => {
|
|
1280
|
-
const o =
|
|
1281
|
+
const o = l.find((f) => f.group === a.value);
|
|
1281
1282
|
if (o && o.instance) {
|
|
1282
|
-
const
|
|
1283
|
+
const f = o.instance.formSource;
|
|
1283
1284
|
o.instance.validate().then(() => {
|
|
1284
|
-
|
|
1285
|
+
r.close(f);
|
|
1285
1286
|
});
|
|
1286
1287
|
}
|
|
1287
1288
|
}), {
|
|
1288
1289
|
formItems: t,
|
|
1289
1290
|
groups: n,
|
|
1290
|
-
groupForms:
|
|
1291
|
-
activeTab:
|
|
1291
|
+
groupForms: l,
|
|
1292
|
+
activeTab: a
|
|
1292
1293
|
};
|
|
1293
1294
|
},
|
|
1294
1295
|
render() {
|
|
1295
|
-
const e = this.groupForms.find((
|
|
1296
|
+
const e = this.groupForms.find((r) => r.group === this.activeTab);
|
|
1296
1297
|
if (this.groups.length) {
|
|
1297
|
-
let
|
|
1298
|
+
let r;
|
|
1298
1299
|
return p(bt, {
|
|
1299
1300
|
"active-key": this.activeTab,
|
|
1300
1301
|
"onUpdate:active-key": (t) => this.activeTab = t
|
|
1301
|
-
}, An(
|
|
1302
|
+
}, An(r = this.groupForms.map((t) => p(kt, {
|
|
1302
1303
|
title: t.group,
|
|
1303
1304
|
key: t.group
|
|
1304
1305
|
}, {
|
|
@@ -1306,13 +1307,13 @@ const Dn = /* @__PURE__ */ R({
|
|
|
1306
1307
|
form: t.form,
|
|
1307
1308
|
ref: (n) => t.instance = n
|
|
1308
1309
|
}, null)]
|
|
1309
|
-
}))) ?
|
|
1310
|
-
default: () => [
|
|
1310
|
+
}))) ? r : {
|
|
1311
|
+
default: () => [r]
|
|
1311
1312
|
});
|
|
1312
1313
|
} else
|
|
1313
1314
|
return p(he, {
|
|
1314
1315
|
form: this.formItems,
|
|
1315
|
-
ref: (
|
|
1316
|
+
ref: (r) => e.instance = r
|
|
1316
1317
|
}, null);
|
|
1317
1318
|
}
|
|
1318
1319
|
});
|
|
@@ -1381,80 +1382,80 @@ const he = /* @__PURE__ */ R({
|
|
|
1381
1382
|
emits: ["submit", "cancel", "update:model-value"],
|
|
1382
1383
|
expose: ["formSource", "updateFormField", "updateFormSource", "reset", "validate"],
|
|
1383
1384
|
setup(e, {
|
|
1384
|
-
emit:
|
|
1385
|
+
emit: r
|
|
1385
1386
|
}) {
|
|
1386
|
-
const t =
|
|
1387
|
+
const t = $(), [n, l] = Sn(e.form, e.modelValue || e.value), a = $(e.columns || 0), o = $(!0), f = $(), b = () => o.value = !o.value;
|
|
1387
1388
|
fe($e.id, e.id), fe($e.source, n);
|
|
1388
|
-
const
|
|
1389
|
-
|
|
1390
|
-
},
|
|
1391
|
-
if (!
|
|
1389
|
+
const s = () => {
|
|
1390
|
+
r("submit", n), r("update:model-value", n);
|
|
1391
|
+
}, u = S(() => {
|
|
1392
|
+
if (!a.value)
|
|
1392
1393
|
return 1;
|
|
1393
|
-
const
|
|
1394
|
-
return
|
|
1395
|
-
}),
|
|
1396
|
-
function
|
|
1394
|
+
const y = e.form.reduce((x, E) => x + ((E == null ? void 0 : E.span) || 1), 0);
|
|
1395
|
+
return a.value - y % a.value;
|
|
1396
|
+
}), c = S(() => e.form.reduce((y, x) => (x.rule && (y[x.key] = x.rule), y), {}));
|
|
1397
|
+
function i() {
|
|
1397
1398
|
var x;
|
|
1398
1399
|
if (e.columns)
|
|
1399
1400
|
return;
|
|
1400
|
-
const
|
|
1401
|
-
|
|
1401
|
+
const y = (x = t.value) == null ? void 0 : x.$el;
|
|
1402
|
+
y && (a.value = Math.floor(y.offsetWidth / e.minWidth));
|
|
1402
1403
|
}
|
|
1403
|
-
function
|
|
1404
|
+
function h() {
|
|
1404
1405
|
var x;
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1406
|
+
const y = (x = t.value) == null ? void 0 : x.$el;
|
|
1407
|
+
y && (y.id = e.id);
|
|
1407
1408
|
}
|
|
1408
|
-
function
|
|
1409
|
-
|
|
1409
|
+
function m() {
|
|
1410
|
+
f.value.open(Dn, {
|
|
1410
1411
|
form: e.form
|
|
1411
1412
|
}, {
|
|
1412
1413
|
title: "高级搜索",
|
|
1413
1414
|
footer: !0,
|
|
1414
1415
|
submitText: "搜索"
|
|
1415
|
-
}).then((
|
|
1416
|
-
|
|
1416
|
+
}).then((y) => {
|
|
1417
|
+
y && (k(y), s());
|
|
1417
1418
|
});
|
|
1418
1419
|
}
|
|
1419
1420
|
B(() => {
|
|
1420
|
-
|
|
1421
|
+
i(), h();
|
|
1421
1422
|
});
|
|
1422
|
-
function
|
|
1423
|
-
|
|
1423
|
+
function k(y) {
|
|
1424
|
+
l({
|
|
1424
1425
|
...n.value,
|
|
1425
|
-
...
|
|
1426
|
+
...y || {}
|
|
1426
1427
|
});
|
|
1427
1428
|
}
|
|
1428
|
-
function
|
|
1429
|
-
n.value[
|
|
1429
|
+
function v(y, x) {
|
|
1430
|
+
n.value[y] = x, k({
|
|
1430
1431
|
...n.value
|
|
1431
1432
|
});
|
|
1432
1433
|
}
|
|
1433
|
-
function
|
|
1434
|
-
var
|
|
1435
|
-
(
|
|
1434
|
+
function O() {
|
|
1435
|
+
var y;
|
|
1436
|
+
(y = t.value) == null || y.resetFields();
|
|
1436
1437
|
}
|
|
1437
1438
|
function z() {
|
|
1438
|
-
var
|
|
1439
|
-
return (
|
|
1439
|
+
var y;
|
|
1440
|
+
return (y = t.value) == null ? void 0 : y.validate();
|
|
1440
1441
|
}
|
|
1441
1442
|
return B(() => {
|
|
1442
|
-
window && window.addEventListener("resize",
|
|
1443
|
+
window && window.addEventListener("resize", i);
|
|
1443
1444
|
}), {
|
|
1444
1445
|
formSource: n,
|
|
1445
1446
|
formInstance: t,
|
|
1446
|
-
formColumns:
|
|
1447
|
-
formRules:
|
|
1447
|
+
formColumns: a,
|
|
1448
|
+
formRules: c,
|
|
1448
1449
|
formCollspased: o,
|
|
1449
|
-
formActiosSpan:
|
|
1450
|
+
formActiosSpan: u,
|
|
1450
1451
|
toggleFormCollapsed: b,
|
|
1451
|
-
updateFormField:
|
|
1452
|
-
updateFormSource:
|
|
1453
|
-
reset:
|
|
1452
|
+
updateFormField: v,
|
|
1453
|
+
updateFormSource: k,
|
|
1454
|
+
reset: O,
|
|
1454
1455
|
validate: z,
|
|
1455
|
-
onSubmitSuccess:
|
|
1456
|
-
openCollapsedDialog:
|
|
1457
|
-
modalInstance:
|
|
1456
|
+
onSubmitSuccess: s,
|
|
1457
|
+
openCollapsedDialog: m,
|
|
1458
|
+
modalInstance: f
|
|
1458
1459
|
};
|
|
1459
1460
|
},
|
|
1460
1461
|
render() {
|
|
@@ -1464,39 +1465,39 @@ const he = /* @__PURE__ */ R({
|
|
|
1464
1465
|
} : {
|
|
1465
1466
|
span: this.formActiosSpan
|
|
1466
1467
|
};
|
|
1467
|
-
if (this.searchable && (t.push(p(
|
|
1468
|
+
if (this.searchable && (t.push(p(U, {
|
|
1468
1469
|
type: "primary",
|
|
1469
1470
|
htmlType: "submit"
|
|
1470
1471
|
}, {
|
|
1471
|
-
default: () => [
|
|
1472
|
-
})), t.push(p(
|
|
1472
|
+
default: () => [J("搜索")]
|
|
1473
|
+
})), t.push(p(U, {
|
|
1473
1474
|
type: "secondary",
|
|
1474
1475
|
onClick: () => {
|
|
1475
|
-
var
|
|
1476
|
-
return (
|
|
1476
|
+
var l;
|
|
1477
|
+
return (l = this.formInstance) == null ? void 0 : l.resetFields();
|
|
1477
1478
|
}
|
|
1478
1479
|
}, {
|
|
1479
|
-
default: () => [
|
|
1480
|
-
}))), this.submitable && (t.push(p(
|
|
1480
|
+
default: () => [J("重置")]
|
|
1481
|
+
}))), this.submitable && (t.push(p(U, {
|
|
1481
1482
|
type: "primary",
|
|
1482
1483
|
htmlType: "submit"
|
|
1483
1484
|
}, {
|
|
1484
|
-
default: () => [
|
|
1485
|
-
})), t.push(p(
|
|
1485
|
+
default: () => [J("提交")]
|
|
1486
|
+
})), t.push(p(U, {
|
|
1486
1487
|
type: "secondary",
|
|
1487
1488
|
onClick: () => this.$emit("cancel")
|
|
1488
1489
|
}, {
|
|
1489
|
-
default: () => [
|
|
1490
|
-
}))), this.form.some((
|
|
1490
|
+
default: () => [J("取消")]
|
|
1491
|
+
}))), this.form.some((l) => !!l.collapsed) && (this.collapsedMode === "append" && t.push(p(U, {
|
|
1491
1492
|
onClick: this.toggleFormCollapsed
|
|
1492
1493
|
}, {
|
|
1493
1494
|
default: () => this.formCollspased ? "展开" : "收起",
|
|
1494
1495
|
icon: () => this.formCollspased ? p(Lt, null, null) : p(Vt, null, null)
|
|
1495
|
-
})), this.collapsedMode === "dialog" && t.push(p(
|
|
1496
|
+
})), this.collapsedMode === "dialog" && t.push(p(U, {
|
|
1496
1497
|
onClick: this.openCollapsedDialog
|
|
1497
1498
|
}, {
|
|
1498
1499
|
default: () => "高级搜索",
|
|
1499
|
-
icon: () => p(
|
|
1500
|
+
icon: () => p(Ut, null, null)
|
|
1500
1501
|
}))), this.$slots.actions && t.push(...this.$slots.actions()), t.length)
|
|
1501
1502
|
return p(Se, n, {
|
|
1502
1503
|
default: () => [p(Me, {
|
|
@@ -1507,7 +1508,7 @@ const he = /* @__PURE__ */ R({
|
|
|
1507
1508
|
})]
|
|
1508
1509
|
})]
|
|
1509
1510
|
});
|
|
1510
|
-
},
|
|
1511
|
+
}, r = this.form.filter((t) => this.formCollspased ? !t.collapsed : !0).filter((t) => {
|
|
1511
1512
|
switch (!0) {
|
|
1512
1513
|
case typeof t.visiable == "boolean":
|
|
1513
1514
|
return t.visiable;
|
|
@@ -1538,7 +1539,7 @@ const he = /* @__PURE__ */ R({
|
|
|
1538
1539
|
"col-gap": 24,
|
|
1539
1540
|
"rol-gap": 10
|
|
1540
1541
|
}, {
|
|
1541
|
-
default: () => [
|
|
1542
|
+
default: () => [r.filter(() => this.formColumns !== 0).map((t) => {
|
|
1542
1543
|
let n;
|
|
1543
1544
|
return p(Se, {
|
|
1544
1545
|
span: t.span
|
|
@@ -1551,20 +1552,20 @@ const he = /* @__PURE__ */ R({
|
|
|
1551
1552
|
})]);
|
|
1552
1553
|
}
|
|
1553
1554
|
});
|
|
1554
|
-
function
|
|
1555
|
+
function Un(e) {
|
|
1555
1556
|
return e;
|
|
1556
1557
|
}
|
|
1557
|
-
function
|
|
1558
|
-
const
|
|
1558
|
+
function Hn(e) {
|
|
1559
|
+
const r = W(), t = $();
|
|
1559
1560
|
function n() {
|
|
1560
|
-
var
|
|
1561
|
-
const
|
|
1562
|
-
|
|
1561
|
+
var a, o;
|
|
1562
|
+
const l = (o = (a = r == null ? void 0 : r.proxy) == null ? void 0 : a.$refs) == null ? void 0 : o[e];
|
|
1563
|
+
l && (t.value = l);
|
|
1563
1564
|
}
|
|
1564
|
-
return B(n),
|
|
1565
|
+
return B(n), lt(n), t;
|
|
1565
1566
|
}
|
|
1566
1567
|
const Gn = {
|
|
1567
|
-
install(e,
|
|
1568
|
+
install(e, r) {
|
|
1568
1569
|
e.component("FormRender", he);
|
|
1569
1570
|
}
|
|
1570
1571
|
};
|
|
@@ -1572,6 +1573,6 @@ export {
|
|
|
1572
1573
|
he as FormRender,
|
|
1573
1574
|
Zn as FormRenderResolver,
|
|
1574
1575
|
Gn as default,
|
|
1575
|
-
|
|
1576
|
-
|
|
1576
|
+
Un as defineForm,
|
|
1577
|
+
Hn as useForm
|
|
1577
1578
|
};
|