@gopowerteam/form-render 0.0.67 → 0.0.68

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/es/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { getCurrentInstance as H, inject as ye, defineComponent as E, computed as _, openBlock as C, createElementBlock as M, normalizeClass as ne, normalizeStyle as B, createElementVNode as w, shallowRef as A, ref as $, provide as me, onMounted as q, Fragment as he, renderSlot as Je, createBlock as re, Teleport as Qe, createVNode as f, TransitionGroup as Ze, withCtx as et, renderList as tt, mergeProps as ge, createCommentVNode as W, defineAsyncComponent as rt, triggerRef as Q, useCssVars as nt, onUnmounted as lt, withModifiers as at, toDisplayString as V, resolveDynamicComponent as Pe, normalizeProps as ut, guardReactiveProps as ot, watch as Z, unref as ct, isRef as le, toRefs as it, customRef as st, nextTick as De, getCurrentScope as dt, onScopeDispose as ft, pushScopeId as Ie, popScopeId as ze, isVNode as be, createTextVNode as z, h as Ye, onUpdated as mt } from "vue";
2
- import { DatePicker as ht, YearPicker as vt, QuarterPicker as pt, MonthPicker as yt, WeekPicker as gt, Input as bt, InputNumber as Ee, Select as kt, Option as wt, Switch as xt, RangePicker as St, Textarea as Ct, TreeSelect as _t, Cascader as $t, FormItem as ve, Tabs as Ot, TabPane as Yt, Divider as Mt, Button as N, Form as Ft, Grid as Tt, GridItem as oe, Space as Me, Tag as Lt } from "@arco-design/web-vue";
1
+ import { getCurrentInstance as H, inject as ye, defineComponent as R, computed as _, openBlock as C, createElementBlock as M, normalizeClass as le, normalizeStyle as B, createElementVNode as w, shallowRef as A, ref as $, provide as he, onMounted as q, Fragment as re, renderSlot as Qe, createBlock as ne, Teleport as Ze, createVNode as d, TransitionGroup as et, withCtx as tt, renderList as rt, mergeProps as ge, createCommentVNode as W, defineAsyncComponent as nt, triggerRef as Q, useCssVars as lt, onUnmounted as at, withModifiers as ut, toDisplayString as V, resolveDynamicComponent as De, normalizeProps as ot, guardReactiveProps as ct, watch as Z, unref as it, isRef as ae, toRefs as st, customRef as dt, nextTick as Ie, getCurrentScope as ft, onScopeDispose as mt, pushScopeId as ze, popScopeId as Ee, isVNode as be, createTextVNode as D, h as Ye, onUpdated as ht } from "vue";
2
+ import { DatePicker as vt, YearPicker as pt, QuarterPicker as yt, MonthPicker as gt, WeekPicker as bt, Input as kt, InputNumber as Re, Select as wt, Option as xt, Switch as St, RangePicker as Ct, Textarea as _t, TreeSelect as $t, Cascader as Ot, FormItem as ve, Divider as Me, Button as I, Tabs as Yt, TabPane as Mt, Form as Ft, Grid as Tt, GridItem as ce, Space as Fe, Tag as Lt } from "@arco-design/web-vue";
3
3
  import S from "dayjs";
4
4
  import { FormRenderResolver as yn } from "./resolver.mjs";
5
5
  const jt = Symbol("ArcoConfigProvider"), Pt = "arco", Dt = "$arco", ke = (e) => {
@@ -15,7 +15,7 @@ var xe = (e, n) => {
15
15
  e[r] = t;
16
16
  return e;
17
17
  };
18
- const zt = E({
18
+ const zt = R({
19
19
  name: "IconDown",
20
20
  props: {
21
21
  size: {
@@ -67,7 +67,7 @@ function Bt(e, n, r, t, a, u) {
67
67
  fill: "none",
68
68
  xmlns: "http://www.w3.org/2000/svg",
69
69
  stroke: "currentColor",
70
- class: ne(e.cls),
70
+ class: le(e.cls),
71
71
  style: B(e.innerStyle),
72
72
  "stroke-width": e.strokeWidth,
73
73
  "stroke-linecap": e.strokeLinecap,
@@ -75,14 +75,14 @@ function Bt(e, n, r, t, a, u) {
75
75
  onClick: n[0] || (n[0] = (...l) => e.onClick && e.onClick(...l))
76
76
  }, Nt, 14, Et);
77
77
  }
78
- var ce = /* @__PURE__ */ xe(zt, [["render", Bt]]);
79
- const Vt = Object.assign(ce, {
78
+ var ie = /* @__PURE__ */ xe(zt, [["render", Bt]]);
79
+ const Vt = Object.assign(ie, {
80
80
  install: (e, n) => {
81
81
  var r;
82
82
  const t = (r = n == null ? void 0 : n.iconPrefix) != null ? r : "";
83
- e.component(t + ce.name, ce);
83
+ e.component(t + ie.name, ie);
84
84
  }
85
- }), At = E({
85
+ }), At = R({
86
86
  name: "IconUp",
87
87
  props: {
88
88
  size: {
@@ -134,7 +134,7 @@ function Ht(e, n, r, t, a, u) {
134
134
  fill: "none",
135
135
  xmlns: "http://www.w3.org/2000/svg",
136
136
  stroke: "currentColor",
137
- class: ne(e.cls),
137
+ class: le(e.cls),
138
138
  style: B(e.innerStyle),
139
139
  "stroke-width": e.strokeWidth,
140
140
  "stroke-linecap": e.strokeLinecap,
@@ -142,14 +142,14 @@ function Ht(e, n, r, t, a, u) {
142
142
  onClick: n[0] || (n[0] = (...l) => e.onClick && e.onClick(...l))
143
143
  }, Wt, 14, Ut);
144
144
  }
145
- var ie = /* @__PURE__ */ xe(At, [["render", Ht]]);
146
- const Gt = Object.assign(ie, {
145
+ var se = /* @__PURE__ */ xe(At, [["render", Ht]]);
146
+ const Gt = Object.assign(se, {
147
147
  install: (e, n) => {
148
148
  var r;
149
149
  const t = (r = n == null ? void 0 : n.iconPrefix) != null ? r : "";
150
- e.component(t + ie.name, ie);
150
+ e.component(t + se.name, se);
151
151
  }
152
- }), Kt = E({
152
+ }), Kt = R({
153
153
  name: "IconSearch",
154
154
  props: {
155
155
  size: {
@@ -201,7 +201,7 @@ function Zt(e, n, r, t, a, u) {
201
201
  fill: "none",
202
202
  xmlns: "http://www.w3.org/2000/svg",
203
203
  stroke: "currentColor",
204
- class: ne(e.cls),
204
+ class: le(e.cls),
205
205
  style: B(e.innerStyle),
206
206
  "stroke-width": e.strokeWidth,
207
207
  "stroke-linecap": e.strokeLinecap,
@@ -209,21 +209,21 @@ function Zt(e, n, r, t, a, u) {
209
209
  onClick: n[0] || (n[0] = (...l) => e.onClick && e.onClick(...l))
210
210
  }, Qt, 14, Xt);
211
211
  }
212
- var se = /* @__PURE__ */ xe(Kt, [["render", Zt]]);
213
- const er = Object.assign(se, {
212
+ var de = /* @__PURE__ */ xe(Kt, [["render", Zt]]);
213
+ const er = Object.assign(de, {
214
214
  install: (e, n) => {
215
215
  var r;
216
216
  const t = (r = n == null ? void 0 : n.iconPrefix) != null ? r : "";
217
- e.component(t + se.name, se);
217
+ e.component(t + de.name, de);
218
218
  }
219
219
  }), Se = Symbol("__MODAL__");
220
- function Re(e) {
221
- return dt() ? (ft(e), !0) : !1;
220
+ function Ne(e) {
221
+ return ft() ? (mt(e), !0) : !1;
222
222
  }
223
223
  function Y(e) {
224
- return typeof e == "function" ? e() : ct(e);
224
+ return typeof e == "function" ? e() : it(e);
225
225
  }
226
- const Ne = typeof window < "u" && typeof document < "u";
226
+ const Be = typeof window < "u" && typeof document < "u";
227
227
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
228
228
  const tr = Object.prototype.toString, rr = (e) => tr.call(e) === "[object Object]", nr = () => {
229
229
  };
@@ -231,11 +231,11 @@ function lr(e) {
231
231
  return H();
232
232
  }
233
233
  function ar(e, n = {}) {
234
- if (!le(e))
235
- return it(e);
234
+ if (!ae(e))
235
+ return st(e);
236
236
  const r = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
237
237
  for (const t in e.value)
238
- r[t] = st(() => ({
238
+ r[t] = dt(() => ({
239
239
  get() {
240
240
  return e.value[t];
241
241
  },
@@ -256,36 +256,36 @@ function ar(e, n = {}) {
256
256
  return r;
257
257
  }
258
258
  function ur(e, n = !0, r) {
259
- lr() ? q(e, r) : n ? e() : De(e);
259
+ lr() ? q(e, r) : n ? e() : Ie(e);
260
260
  }
261
261
  function U(e) {
262
262
  var n;
263
263
  const r = Y(e);
264
264
  return (n = r == null ? void 0 : r.$el) != null ? n : r;
265
265
  }
266
- const ae = Ne ? window : void 0;
267
- function de(...e) {
266
+ const ue = Be ? window : void 0;
267
+ function fe(...e) {
268
268
  let n, r, t, a;
269
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, t, a] = e, n = ae) : [n, r, t, a] = e, !n)
269
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, t, a] = e, n = ue) : [n, r, t, a] = e, !n)
270
270
  return nr;
271
271
  Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
272
272
  const u = [], l = () => {
273
273
  u.forEach((o) => o()), u.length = 0;
274
- }, v = (o, i, s, d) => (o.addEventListener(i, s, d), () => o.removeEventListener(i, s, d)), h = Z(
274
+ }, v = (o, i, s, f) => (o.addEventListener(i, s, f), () => o.removeEventListener(i, s, f)), h = Z(
275
275
  () => [U(n), Y(a)],
276
276
  ([o, i]) => {
277
277
  if (l(), !o)
278
278
  return;
279
279
  const s = rr(i) ? { ...i } : i;
280
280
  u.push(
281
- ...r.flatMap((d) => t.map((m) => v(o, d, m, s)))
281
+ ...r.flatMap((f) => t.map((m) => v(o, f, m, s)))
282
282
  );
283
283
  },
284
284
  { immediate: !0, flush: "post" }
285
285
  ), c = () => {
286
286
  h(), l();
287
287
  };
288
- return Re(c), c;
288
+ return Ne(c), c;
289
289
  }
290
290
  function or() {
291
291
  const e = $(!1), n = H();
@@ -309,7 +309,7 @@ function ir(e, n = {}) {
309
309
  onStart: o,
310
310
  initialValue: i,
311
311
  axis: s = "both",
312
- draggingElement: d = ae,
312
+ draggingElement: f = ue,
313
313
  containerElement: m,
314
314
  handle: b = e
315
315
  } = n, y = $(
@@ -317,29 +317,29 @@ function ir(e, n = {}) {
317
317
  ), x = $(), F = (k) => a ? a.includes(k.pointerType) : !0, T = (k) => {
318
318
  Y(u) && k.preventDefault(), Y(l) && k.stopPropagation();
319
319
  }, g = (k) => {
320
- var D;
320
+ var z;
321
321
  if (Y(n.disabled) || !F(k) || Y(v) && k.target !== Y(e))
322
322
  return;
323
- const L = Y(m), I = (D = L == null ? void 0 : L.getBoundingClientRect) == null ? void 0 : D.call(L), j = Y(e).getBoundingClientRect(), ee = {
324
- x: k.clientX - (L ? j.left - I.left + L.scrollLeft : j.left),
325
- y: k.clientY - (L ? j.top - I.top + L.scrollTop : j.top)
323
+ const L = Y(m), E = (z = L == null ? void 0 : L.getBoundingClientRect) == null ? void 0 : z.call(L), j = Y(e).getBoundingClientRect(), ee = {
324
+ x: k.clientX - (L ? j.left - E.left + L.scrollLeft : j.left),
325
+ y: k.clientY - (L ? j.top - E.top + L.scrollTop : j.top)
326
326
  };
327
327
  (o == null ? void 0 : o(ee, k)) !== !1 && (x.value = ee, T(k));
328
328
  }, O = (k) => {
329
329
  if (Y(n.disabled) || !F(k) || !x.value)
330
330
  return;
331
- const D = Y(m), L = Y(e).getBoundingClientRect();
332
- let { x: I, y: j } = y.value;
333
- (s === "x" || s === "both") && (I = k.clientX - x.value.x, D && (I = Math.min(Math.max(0, I), D.scrollWidth - L.width))), (s === "y" || s === "both") && (j = k.clientY - x.value.y, D && (j = Math.min(Math.max(0, j), D.scrollHeight - L.height))), y.value = {
334
- x: I,
331
+ const z = Y(m), L = Y(e).getBoundingClientRect();
332
+ let { x: E, y: j } = y.value;
333
+ (s === "x" || s === "both") && (E = k.clientX - x.value.x, z && (E = Math.min(Math.max(0, E), z.scrollWidth - L.width))), (s === "y" || s === "both") && (j = k.clientY - x.value.y, z && (j = Math.min(Math.max(0, j), z.scrollHeight - L.height))), y.value = {
334
+ x: E,
335
335
  y: j
336
336
  }, h == null || h(y.value, k), T(k);
337
- }, R = (k) => {
337
+ }, N = (k) => {
338
338
  Y(n.disabled) || !F(k) || x.value && (x.value = void 0, c == null || c(y.value, k), T(k));
339
339
  };
340
- if (Ne) {
340
+ if (Be) {
341
341
  const k = { capture: (t = n.capture) != null ? t : !0 };
342
- de(b, "pointerdown", g, k), de(d, "pointermove", O, k), de(d, "pointerup", R, k);
342
+ fe(b, "pointerdown", g, k), fe(f, "pointermove", O, k), fe(f, "pointerup", N, k);
343
343
  }
344
344
  return {
345
345
  ...ar(y),
@@ -351,7 +351,7 @@ function ir(e, n = {}) {
351
351
  };
352
352
  }
353
353
  function sr(e, n, r = {}) {
354
- const { window: t = ae, ...a } = r;
354
+ const { window: t = ue, ...a } = r;
355
355
  let u;
356
356
  const l = cr(() => t && "ResizeObserver" in t), v = () => {
357
357
  u && (u.disconnect(), u = void 0);
@@ -368,13 +368,13 @@ function sr(e, n, r = {}) {
368
368
  ), o = () => {
369
369
  v(), c();
370
370
  };
371
- return Re(o), {
371
+ return Ne(o), {
372
372
  isSupported: l,
373
373
  stop: o
374
374
  };
375
375
  }
376
376
  function G(e, n = { width: 0, height: 0 }, r = {}) {
377
- const { window: t = ae, box: a = "content-box" } = r, u = _(() => {
377
+ const { window: t = ue, box: a = "content-box" } = r, u = _(() => {
378
378
  var i, s;
379
379
  return (s = (i = U(e)) == null ? void 0 : i.namespaceURI) == null ? void 0 : s.includes("svg");
380
380
  }), l = $(n.width), v = $(n.height), { stop: h } = sr(
@@ -382,14 +382,14 @@ function G(e, n = { width: 0, height: 0 }, r = {}) {
382
382
  ([i]) => {
383
383
  const s = a === "border-box" ? i.borderBoxSize : a === "content-box" ? i.contentBoxSize : i.devicePixelContentBoxSize;
384
384
  if (t && u.value) {
385
- const d = U(e);
386
- if (d) {
387
- const m = t.getComputedStyle(d);
385
+ const f = U(e);
386
+ if (f) {
387
+ const m = t.getComputedStyle(f);
388
388
  l.value = Number.parseFloat(m.width), v.value = Number.parseFloat(m.height);
389
389
  }
390
390
  } else if (s) {
391
- const d = Array.isArray(s) ? s : [s];
392
- l.value = d.reduce((m, { inlineSize: b }) => m + b, 0), v.value = d.reduce((m, { blockSize: b }) => m + b, 0);
391
+ const f = Array.isArray(s) ? s : [s];
392
+ l.value = f.reduce((m, { inlineSize: b }) => m + b, 0), v.value = f.reduce((m, { blockSize: b }) => m + b, 0);
393
393
  } else
394
394
  l.value = i.contentRect.width, v.value = i.contentRect.height;
395
395
  },
@@ -414,7 +414,7 @@ function G(e, n = { width: 0, height: 0 }, r = {}) {
414
414
  stop: o
415
415
  };
416
416
  }
417
- const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "title text-16px font-bold" }, mr = { class: "action" }, hr = ["form"], vr = {
417
+ const dr = (e) => (ze("data-v-9a7af353"), e = e(), Ee(), e), fr = { class: "title text-16px font-bold" }, mr = { class: "action" }, hr = ["form"], vr = {
418
418
  key: 2,
419
419
  class: "modal-loading"
420
420
  }, pr = /* @__PURE__ */ dr(() => /* @__PURE__ */ w("div", { class: "lds-ring" }, [
@@ -427,7 +427,7 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
427
427
  ], gr = {
428
428
  name: "ModalContainer",
429
429
  inheritAttrs: !0
430
- }, br = /* @__PURE__ */ E({
430
+ }, br = /* @__PURE__ */ R({
431
431
  ...gr,
432
432
  props: {
433
433
  id: {},
@@ -460,21 +460,21 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
460
460
  },
461
461
  emits: ["submit"],
462
462
  setup(e, { expose: n, emit: r }) {
463
- nt((p) => ({
463
+ lt((p) => ({
464
464
  "5751bf6b": p.zIndex
465
465
  }));
466
466
  const t = e, a = r, u = ye(Se), l = $(!1);
467
467
  let v = 0, h = 0;
468
- const c = A(), o = A(), i = A(), s = A(), d = A(), m = A(), { height: b } = G(c), { height: y } = G(i, void 0, { box: "border-box" }), { height: x } = G(s, void 0, { box: "border-box" }), { height: F } = G(d), { height: T } = G(m), { x: g, y: O } = ir(i, {
468
+ const c = A(), o = A(), i = A(), s = A(), f = A(), m = A(), { height: b } = G(c), { height: y } = G(i, void 0, { box: "border-box" }), { height: x } = G(s, void 0, { box: "border-box" }), { height: F } = G(f), { height: T } = G(m), { x: g, y: O } = ir(i, {
469
469
  initialValue: { x: 0, y: 0 }
470
470
  });
471
- function R() {
471
+ function N() {
472
472
  u == null || u.close(t.id);
473
473
  }
474
474
  function k(p) {
475
475
  return typeof p == "number" ? `${p}px` : p;
476
476
  }
477
- const D = _(() => {
477
+ const z = _(() => {
478
478
  const p = {};
479
479
  return t.mode === "dialog" && (p.justifyContent = "center"), t.mode === "drawer" && (p.justifyContent = {
480
480
  left: "flex-start",
@@ -490,7 +490,7 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
490
490
  }), L = _(() => {
491
491
  const p = {};
492
492
  return t.mode === "drawer" && ["top", "bottom"].includes(t.position) ? p.maxHeight = k(t.maxHeight) : (p.width = k(t.sizes[t.size]), p.maxWidth = k(t.maxWidth)), t.width && (p.width = k(t.width)), t.height && (p.height = k(t.height)), t.fullscreen && (p.maxWidth = "unset", p.width = "100%", p.position = "fixed", p.top = 0, p.left = 0, p.bottom = 0, p.right = 0, p.borderRadius = 0), t.draggable && !t.fullscreen && t.mode === "dialog" && (p.transform = `translate3d(${g.value - v}px, ${O.value - h}px, 0px)`), t.mode === "drawer" && (p.borderRadius = 0, ["left", "right"].includes(t.position) ? p.height = "100%" : p.width = "100%"), t.offset && t.mode === "dialog" && (p.marginLeft = `${t.offset.x || 0}px`, p.marginTop = `${t.offset.y || 0}px`), t.backgroundColor && (p.backgroundColor = t.backgroundColor), p;
493
- }), I = _(() => {
493
+ }), E = _(() => {
494
494
  const p = {};
495
495
  return t.draggable && !t.fullscreen && t.mode === "dialog" && (p.cursor = "move"), p;
496
496
  }), j = _(() => {
@@ -505,15 +505,15 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
505
505
  }
506
506
  a("submit");
507
507
  }
508
- function We() {
508
+ function He() {
509
509
  u == null || u.close(t.id);
510
510
  }
511
- function He() {
511
+ function Ge() {
512
512
  window && window.addEventListener("resize", () => {
513
513
  Q(c), Q(o), o.value && (v = o.value.offsetLeft, h = o.value.offsetTop);
514
514
  });
515
515
  }
516
- function Ge() {
516
+ function Ke() {
517
517
  if (t.closeable && t.esc) {
518
518
  const p = ({ key: P }) => {
519
519
  P === "Escape" && (u == null || u.close(t.id), window.removeEventListener("keydown", p));
@@ -521,33 +521,33 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
521
521
  window.addEventListener("keydown", p);
522
522
  }
523
523
  }
524
- function Ke() {
524
+ function Xe() {
525
525
  v = o.value.offsetLeft, h = o.value.offsetTop;
526
526
  }
527
527
  q(() => {
528
- Ge(), He();
529
- }), lt(() => {
528
+ Ke(), Ge();
529
+ }), at(() => {
530
530
  });
531
- function Xe() {
531
+ function Je() {
532
532
  return l.value = !0, () => $e();
533
533
  }
534
534
  function $e() {
535
535
  l.value = !1;
536
536
  }
537
537
  return n({
538
- showLoading: Xe,
538
+ showLoading: Je,
539
539
  hideLoading: $e
540
540
  }), (p, P) => (C(), M("div", {
541
541
  ref_key: "wrapperRef",
542
542
  ref: c,
543
543
  class: "modal-wrapper",
544
- style: B(D.value),
545
- onClick: P[0] || (P[0] = at((Oe) => p.maskClosable && R(), ["self"]))
544
+ style: B(z.value),
545
+ onClick: P[0] || (P[0] = ut((Oe) => p.maskClosable && N(), ["self"]))
546
546
  }, [
547
547
  w("div", {
548
548
  ref_key: "contentRef",
549
549
  ref: o,
550
- class: ne(["modal-content", { [`${p.mode}-mode`]: !0, [`${p.position}-position`]: !0 }]),
550
+ class: le(["modal-content", { [`${p.mode}-mode`]: !0, [`${p.position}-position`]: !0 }]),
551
551
  style: B(L.value)
552
552
  }, [
553
553
  p.header ? (C(), M("div", {
@@ -555,28 +555,28 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
555
555
  ref_key: "headerRef",
556
556
  ref: i,
557
557
  class: "modal-header",
558
- style: B(I.value),
559
- onMousedown: Ke
558
+ style: B(E.value),
559
+ onMousedown: Xe
560
560
  }, [
561
561
  w("div", fr, V(p.title), 1),
562
562
  w("div", mr, [
563
563
  p.closeable ? (C(), M("div", {
564
564
  key: 0,
565
565
  class: "i-icon-park-outline:close block cursor-pointer",
566
- onClick: R
566
+ onClick: N
567
567
  })) : W("", !0)
568
568
  ])
569
569
  ], 36)) : W("", !0),
570
570
  w("div", {
571
571
  id: "modal-header-slot",
572
572
  ref_key: "headerSlotRef",
573
- ref: d
573
+ ref: f
574
574
  }, null, 512),
575
575
  w("div", {
576
576
  class: "modal-body",
577
577
  style: B(j.value)
578
578
  }, [
579
- (C(), re(Pe(p.component), ut(ot(p.componentProps)), null, 16))
579
+ (C(), ne(De(p.component), ot(ct(p.componentProps)), null, 16))
580
580
  ], 4),
581
581
  w("div", {
582
582
  id: "modal-footer-slot",
@@ -592,7 +592,7 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
592
592
  w("button", {
593
593
  class: "cancel-button",
594
594
  type: "button",
595
- onClick: We
595
+ onClick: He
596
596
  }, V(p.cancelText), 1),
597
597
  w("button", {
598
598
  class: "submit-button",
@@ -605,12 +605,12 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
605
605
  ], 6)
606
606
  ], 4));
607
607
  }
608
- }), ue = (e, n) => {
608
+ }), oe = (e, n) => {
609
609
  const r = e.__vccOpts || e;
610
610
  for (const [t, a] of n)
611
611
  r[t] = a;
612
612
  return r;
613
- }, kr = /* @__PURE__ */ ue(br, [["__scopeId", "data-v-9a7af353"]]), wr = { class: "modal-dialog" }, xr = { class: "dialog-body" }, Sr = { class: "dialog-title" }, Cr = { class: "dialog-content" }, _r = /* @__PURE__ */ E({
613
+ }, kr = /* @__PURE__ */ oe(br, [["__scopeId", "data-v-9a7af353"]]), wr = { class: "modal-dialog" }, xr = { class: "dialog-body" }, Sr = { class: "dialog-title" }, Cr = { class: "dialog-content" }, _r = /* @__PURE__ */ R({
614
614
  __name: "modal-dialog",
615
615
  props: {
616
616
  type: {},
@@ -623,7 +623,7 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
623
623
  footer: {}
624
624
  },
625
625
  setup(e) {
626
- const n = e, r = Be(), t = _(() => n.title ? n.title : {
626
+ const n = e, r = Ve(), t = _(() => n.title ? n.title : {
627
627
  confirm: "提示",
628
628
  info: "提示",
629
629
  warning: "警告",
@@ -645,7 +645,7 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
645
645
  class: "dialog-footer space-x-2",
646
646
  style: B(l.type === "confirm" ? { "justify-content": "end" } : { "border-top": "none" })
647
647
  }, [
648
- l.footer ? (C(), re(Pe(l.footer), { key: 0 })) : (C(), M(he, { key: 1 }, [
648
+ l.footer ? (C(), ne(De(l.footer), { key: 0 })) : (C(), M(re, { key: 1 }, [
649
649
  w("button", {
650
650
  class: "submit-button",
651
651
  type: "submit",
@@ -661,14 +661,14 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
661
661
  ], 4)
662
662
  ]));
663
663
  }
664
- }), $r = /* @__PURE__ */ ue(_r, [["__scopeId", "data-v-0c6b8db2"]]), Or = (e) => (Ie("data-v-559bdf2e"), e = e(), ze(), e), Yr = { class: "flex-center" }, Mr = /* @__PURE__ */ Or(() => /* @__PURE__ */ w("div", { class: "modal-loading" }, [
664
+ }), $r = /* @__PURE__ */ oe(_r, [["__scopeId", "data-v-0c6b8db2"]]), Or = (e) => (ze("data-v-559bdf2e"), e = e(), Ee(), e), Yr = { class: "flex-center" }, Mr = /* @__PURE__ */ Or(() => /* @__PURE__ */ w("div", { class: "modal-loading" }, [
665
665
  /* @__PURE__ */ w("div", { class: "lds-ring" }, [
666
666
  /* @__PURE__ */ w("div"),
667
667
  /* @__PURE__ */ w("div"),
668
668
  /* @__PURE__ */ w("div"),
669
669
  /* @__PURE__ */ w("div")
670
670
  ])
671
- ], -1)), Fr = { class: "modal-loading-text" }, Tr = /* @__PURE__ */ E({
671
+ ], -1)), Fr = { class: "modal-loading-text" }, Tr = /* @__PURE__ */ R({
672
672
  __name: "modal-loading",
673
673
  props: {
674
674
  text: { default: "加载中" }
@@ -679,13 +679,13 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
679
679
  w("div", Fr, V(n.text), 1)
680
680
  ]));
681
681
  }
682
- }), Lr = /* @__PURE__ */ ue(Tr, [["__scopeId", "data-v-559bdf2e"]]), jr = {
682
+ }), Lr = /* @__PURE__ */ oe(Tr, [["__scopeId", "data-v-559bdf2e"]]), jr = {
683
683
  key: 0,
684
684
  class: "modal-teleport"
685
685
  }, Pr = {
686
686
  name: "ModalProvider",
687
687
  inheritAttrs: !0
688
- }, Dr = /* @__PURE__ */ E({
688
+ }, Dr = /* @__PURE__ */ R({
689
689
  ...Pr,
690
690
  props: {
691
691
  appendToBody: { type: [Boolean, String], default: !1 },
@@ -700,18 +700,18 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
700
700
  },
701
701
  setup(e, { expose: n }) {
702
702
  const r = A([]), t = $(!1), a = H();
703
- function u(s, d = {}, m = {}) {
704
- const b = rt(
703
+ function u(s, f = {}, m = {}) {
704
+ const b = nt(
705
705
  () => Promise.resolve(typeof s == "string" ? $r : s)
706
706
  );
707
- typeof s == "string" && (d.type = s, m.size = "small", m.fullscreen = !1, m.mode = "dialog", m.footer = !1, m.header = !1);
707
+ typeof s == "string" && (f.type = s, m.size = "small", m.fullscreen = !1, m.mode = "dialog", m.footer = !1, m.header = !1);
708
708
  const y = Math.random().toString(32).slice(2), x = Object.assign({
709
709
  zIndex: typeof s == "string" ? 1100 : 1e3
710
710
  }, m), F = new Promise((T, g) => {
711
711
  r.value.push({
712
712
  id: y,
713
713
  component: b,
714
- props: d || {},
714
+ props: f || {},
715
715
  options: {
716
716
  ...x,
717
717
  type: typeof s == "string" ? s : "component"
@@ -726,23 +726,23 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
726
726
  close: () => l(y)
727
727
  });
728
728
  }
729
- function l(s, d) {
729
+ function l(s, f) {
730
730
  const m = r.value.findIndex((y) => y.id === s);
731
731
  if (m < 0)
732
732
  return;
733
733
  const b = r.value[m];
734
- d === void 0 ? b == null || b.reject("CANCEL") : b == null || b.resolve(d), r.value.splice(m, 1), Q(r);
734
+ f === void 0 ? b == null || b.reject("CANCEL") : b == null || b.resolve(f), r.value.splice(m, 1), Q(r);
735
735
  }
736
736
  function v() {
737
737
  !r.value || r.value.length === 0 || (r.value.forEach((s) => {
738
738
  s == null || s.reject("CANCEL");
739
739
  }), r.value = [], Q(r));
740
740
  }
741
- function h(s, d) {
741
+ function h(s, f) {
742
742
  const m = r.value.find((y) => y.id === s);
743
743
  if (!m)
744
744
  return;
745
- const b = m.listeners.find((y) => y.event === d);
745
+ const b = m.listeners.find((y) => y.event === f);
746
746
  b && b.callback({
747
747
  open: u,
748
748
  close: (y) => l(m.id, y),
@@ -756,7 +756,7 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
756
756
  info: (y) => u("info", y)
757
757
  });
758
758
  }
759
- function c(s, d) {
759
+ function c(s, f) {
760
760
  if (!a)
761
761
  return;
762
762
  const [m] = a.refs[`modal-container_${s}`] || [];
@@ -764,36 +764,36 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
764
764
  return m.showLoading();
765
765
  {
766
766
  const { close: b } = u(Lr, {
767
- text: d == null ? void 0 : d.text
767
+ text: f == null ? void 0 : f.text
768
768
  }, {
769
769
  footer: !1,
770
770
  header: !1,
771
771
  closeable: !1,
772
772
  backgroundColor: "transparent"
773
773
  });
774
- return d != null && d.duration && setTimeout(
774
+ return f != null && f.duration && setTimeout(
775
775
  () => {
776
776
  b();
777
777
  },
778
- d == null ? void 0 : d.duration
778
+ f == null ? void 0 : f.duration
779
779
  ), b;
780
780
  }
781
781
  }
782
782
  function o(s) {
783
783
  if (!a)
784
784
  return;
785
- const [d] = a.refs[`modal-container_${s}`];
786
- if (d)
787
- return d.hideLoading();
785
+ const [f] = a.refs[`modal-container_${s}`];
786
+ if (f)
787
+ return f.hideLoading();
788
788
  }
789
- function i(s, d, m) {
789
+ function i(s, f, m) {
790
790
  const b = r.value.find((y) => y.id === s);
791
791
  b && b.listeners.push({
792
- event: d,
792
+ event: f,
793
793
  callback: m
794
794
  });
795
795
  }
796
- return me(Se, {
796
+ return he(Se, {
797
797
  open: u,
798
798
  close: l,
799
799
  closeAll: v,
@@ -807,16 +807,16 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
807
807
  closeAll: v
808
808
  }), q(() => {
809
809
  t.value = !0;
810
- }), (s, d) => (C(), M(he, null, [
811
- Je(s.$slots, "default", {}, void 0, !0),
810
+ }), (s, f) => (C(), M(re, null, [
811
+ Qe(s.$slots, "default", {}, void 0, !0),
812
812
  t.value ? (C(), M("div", jr, [
813
- (C(), re(Qe, {
813
+ (C(), ne(Ze, {
814
814
  disabled: !s.appendToBody,
815
815
  to: typeof s.appendToBody == "string" ? s.appendToBody : "body"
816
816
  }, [
817
- f(Ze, { name: "modal-fade" }, {
818
- default: et(() => [
819
- (C(!0), M(he, null, tt(r.value, (m) => (C(), re(kr, ge({
817
+ d(et, { name: "modal-fade" }, {
818
+ default: tt(() => [
819
+ (C(!0), M(re, null, rt(r.value, (m) => (C(), ne(kr, ge({
820
820
  id: m.id,
821
821
  key: m.id,
822
822
  ref_for: !0,
@@ -837,15 +837,15 @@ const dr = (e) => (Ie("data-v-9a7af353"), e = e(), ze(), e), fr = { class: "titl
837
837
  ])) : W("", !0)
838
838
  ], 64));
839
839
  }
840
- }), Ir = /* @__PURE__ */ ue(Dr, [["__scopeId", "data-v-60414811"]]);
841
- function fe(e, n) {
840
+ }), Ir = /* @__PURE__ */ oe(Dr, [["__scopeId", "data-v-60414811"]]);
841
+ function me(e, n) {
842
842
  var r, t;
843
843
  let a = e == null ? void 0 : e.parent;
844
844
  for (; a && ((r = a == null ? void 0 : a.type) == null ? void 0 : r.name) !== n; )
845
845
  a = a.parent;
846
846
  return ((t = a == null ? void 0 : a.type) == null ? void 0 : t.name) === n ? a : null;
847
847
  }
848
- function Be() {
848
+ function Ve() {
849
849
  const e = ye(Se), n = H();
850
850
  function r(t, a, u) {
851
851
  if (!e)
@@ -858,7 +858,7 @@ function Be() {
858
858
  var a;
859
859
  if (!e)
860
860
  throw new Error("Not Found Modal Provider Component");
861
- const u = fe(n, "ModalContainer"), l = (a = u == null ? void 0 : u.props) == null ? void 0 : a.id;
861
+ const u = me(n, "ModalContainer"), l = (a = u == null ? void 0 : u.props) == null ? void 0 : a.id;
862
862
  if (!l)
863
863
  throw new Error("Not Found Current Modal Container");
864
864
  e.close(l, t);
@@ -872,14 +872,14 @@ function Be() {
872
872
  var a;
873
873
  if (!e)
874
874
  throw new Error("Not Found Modal Provider Component");
875
- const u = fe(n, "ModalContainer"), l = (a = u == null ? void 0 : u.props) == null ? void 0 : a.id;
875
+ const u = me(n, "ModalContainer"), l = (a = u == null ? void 0 : u.props) == null ? void 0 : a.id;
876
876
  return e.showLoading(l, t);
877
877
  },
878
878
  hideLoading() {
879
879
  var t;
880
880
  if (!e)
881
881
  throw new Error("Not Found Modal Provider Component");
882
- const a = fe(n, "ModalContainer"), u = (t = a == null ? void 0 : a.props) == null ? void 0 : t.id;
882
+ const a = me(n, "ModalContainer"), u = (t = a == null ? void 0 : a.props) == null ? void 0 : t.id;
883
883
  return e.hideLoading(u);
884
884
  },
885
885
  confirm(t) {
@@ -899,7 +899,7 @@ function Be() {
899
899
  }
900
900
  };
901
901
  }
902
- const Fe = {
902
+ const Te = {
903
903
  id: Symbol("ID"),
904
904
  source: Symbol("Source")
905
905
  };
@@ -913,7 +913,7 @@ function zr(e, n) {
913
913
  }];
914
914
  }
915
915
  var Ce = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
916
- function Ve(e) {
916
+ function Ae(e) {
917
917
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
918
918
  }
919
919
  var Er = { exports: {} };
@@ -973,7 +973,7 @@ var Er = { exports: {} };
973
973
  return a.default.locale(u, null, !0), u;
974
974
  });
975
975
  })(Er);
976
- var Ae = { exports: {} };
976
+ var Ue = { exports: {} };
977
977
  (function(e, n) {
978
978
  (function(r, t) {
979
979
  e.exports = t();
@@ -990,17 +990,17 @@ var Ae = { exports: {} };
990
990
  if (o.isBefore(i))
991
991
  return 1;
992
992
  }
993
- var s = l(this).startOf(t).date(c).startOf(r).subtract(1, "millisecond"), d = this.diff(s, r, !0);
994
- return d < 0 ? l(this).startOf("week").week() : Math.ceil(d);
993
+ var s = l(this).startOf(t).date(c).startOf(r).subtract(1, "millisecond"), f = this.diff(s, r, !0);
994
+ return f < 0 ? l(this).startOf("week").week() : Math.ceil(f);
995
995
  }, v.weeks = function(h) {
996
996
  return h === void 0 && (h = null), this.week(h);
997
997
  };
998
998
  };
999
999
  });
1000
- })(Ae);
1001
- var Rr = Ae.exports;
1002
- const Nr = /* @__PURE__ */ Ve(Rr);
1003
- var Ue = { exports: {} };
1000
+ })(Ue);
1001
+ var Rr = Ue.exports;
1002
+ const Nr = /* @__PURE__ */ Ae(Rr);
1003
+ var qe = { exports: {} };
1004
1004
  (function(e, n) {
1005
1005
  (function(r, t) {
1006
1006
  e.exports = t();
@@ -1019,16 +1019,16 @@ var Ue = { exports: {} };
1019
1019
  l.startOf = function(c, o) {
1020
1020
  var i = this.$utils(), s = !!i.u(o) || o;
1021
1021
  if (i.p(c) === t) {
1022
- var d = this.quarter() - 1;
1023
- return s ? this.month(3 * d).startOf(r).startOf("day") : this.month(3 * d + 2).endOf(r).endOf("day");
1022
+ var f = this.quarter() - 1;
1023
+ return s ? this.month(3 * f).startOf(r).startOf("day") : this.month(3 * f + 2).endOf(r).endOf("day");
1024
1024
  }
1025
1025
  return h.bind(this)(c, o);
1026
1026
  };
1027
1027
  };
1028
1028
  });
1029
- })(Ue);
1030
- var Br = Ue.exports;
1031
- const Vr = /* @__PURE__ */ Ve(Br);
1029
+ })(qe);
1030
+ var Br = qe.exports;
1031
+ const Vr = /* @__PURE__ */ Ae(Br);
1032
1032
  S.extend(Nr);
1033
1033
  S.extend(Vr);
1034
1034
  S.locale("zh-cn", {
@@ -1043,22 +1043,22 @@ function Ar(e) {
1043
1043
  const l = r[t.key];
1044
1044
  switch (e == null ? void 0 : e.type) {
1045
1045
  case "week":
1046
- return f("span", null, [`${S(l).format("YYYY年")}${S(l).week()}周`]);
1046
+ return d("span", null, [`${S(l).format("YYYY年")}${S(l).week()}周`]);
1047
1047
  case "month":
1048
- return f("span", null, [S(l).format("YYYY年MM月")]);
1048
+ return d("span", null, [S(l).format("YYYY年MM月")]);
1049
1049
  case "quarter":
1050
- return f("span", null, [`${S(l).format("YYYY年")}${S(l).quarter()}季度`]);
1050
+ return d("span", null, [`${S(l).format("YYYY年")}${S(l).quarter()}季度`]);
1051
1051
  case "year":
1052
- return f("span", null, [S(l).format("YYYY年")]);
1052
+ return d("span", null, [S(l).format("YYYY年")]);
1053
1053
  case "date":
1054
1054
  default:
1055
- return f("span", null, [S(l).format("YYYY年MM月DD日")]);
1055
+ return d("span", null, [S(l).format("YYYY年MM月DD日")]);
1056
1056
  }
1057
1057
  }
1058
1058
  function u() {
1059
1059
  switch (e == null ? void 0 : e.type) {
1060
1060
  case "week":
1061
- return f(gt, {
1061
+ return d(bt, {
1062
1062
  "day-start-of-week": 1,
1063
1063
  modelValue: r[t.key],
1064
1064
  "onUpdate:modelValue": (l) => r[t.key] = l,
@@ -1067,7 +1067,7 @@ function Ar(e) {
1067
1067
  "value-format": e == null ? void 0 : e.valueFormat
1068
1068
  }, null);
1069
1069
  case "month":
1070
- return f(yt, {
1070
+ return d(gt, {
1071
1071
  modelValue: r[t.key],
1072
1072
  "onUpdate:modelValue": (l) => r[t.key] = l,
1073
1073
  "disabled-date": n,
@@ -1075,7 +1075,7 @@ function Ar(e) {
1075
1075
  "value-format": e == null ? void 0 : e.valueFormat
1076
1076
  }, null);
1077
1077
  case "quarter":
1078
- return f(pt, {
1078
+ return d(yt, {
1079
1079
  modelValue: r[t.key],
1080
1080
  "onUpdate:modelValue": (l) => r[t.key] = l,
1081
1081
  "disabled-date": n,
@@ -1083,7 +1083,7 @@ function Ar(e) {
1083
1083
  "value-format": e == null ? void 0 : e.valueFormat
1084
1084
  }, null);
1085
1085
  case "year":
1086
- return f(vt, {
1086
+ return d(pt, {
1087
1087
  modelValue: r[t.key],
1088
1088
  "onUpdate:modelValue": (l) => r[t.key] = l,
1089
1089
  "disabled-date": n,
@@ -1092,7 +1092,7 @@ function Ar(e) {
1092
1092
  }, null);
1093
1093
  case "date":
1094
1094
  default:
1095
- return f(ht, ge({
1095
+ return d(vt, ge({
1096
1096
  "disabled-input": !0,
1097
1097
  modelValue: r[t.key],
1098
1098
  "onUpdate:modelValue": (l) => r[t.key] = l,
@@ -1116,12 +1116,12 @@ function Ar(e) {
1116
1116
  function Ur(e) {
1117
1117
  return (n, r) => {
1118
1118
  function t() {
1119
- return f("span", null, [n[r.key]]);
1119
+ return d("span", null, [n[r.key]]);
1120
1120
  }
1121
1121
  function a() {
1122
1122
  switch (e == null ? void 0 : e.type) {
1123
1123
  case "number":
1124
- return f(Ee, {
1124
+ return d(Re, {
1125
1125
  modelValue: n[r.key],
1126
1126
  "onUpdate:modelValue": (u) => n[r.key] = u,
1127
1127
  hideButton: !0,
@@ -1131,7 +1131,7 @@ function Ur(e) {
1131
1131
  }, null);
1132
1132
  case "string":
1133
1133
  default:
1134
- return f(bt, {
1134
+ return d(kt, {
1135
1135
  modelValue: n[r.key],
1136
1136
  "onUpdate:modelValue": (u) => n[r.key] = u,
1137
1137
  placeholder: e == null ? void 0 : e.placeholder,
@@ -1151,7 +1151,7 @@ function Ur(e) {
1151
1151
  }
1152
1152
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1153
1153
  function _e(e, n, r) {
1154
- const t = Z(e, (...a) => (De(() => t()), n(...a)), r);
1154
+ const t = Z(e, (...a) => (Ie(() => t()), n(...a)), r);
1155
1155
  return t;
1156
1156
  }
1157
1157
  function qr(e) {
@@ -1198,7 +1198,7 @@ function Hr(e) {
1198
1198
  e.cache !== !1 ? v() : h();
1199
1199
  break;
1200
1200
  }
1201
- case le(e.options): {
1201
+ case ae(e.options): {
1202
1202
  _e(() => e.options, () => {
1203
1203
  a(e.options.value);
1204
1204
  }, {
@@ -1212,12 +1212,12 @@ function Hr(e) {
1212
1212
  return (c, o) => {
1213
1213
  e.default && !r && (c[o.key] = e.default, r = !0);
1214
1214
  function i() {
1215
- const d = c[o.key];
1216
- return e.multiple ? f("span", null, [d.map((m) => t.value.get(m)).join(" ,")]) : f("span", null, [t.value.get(d)]);
1215
+ const f = c[o.key];
1216
+ return e.multiple ? d("span", null, [f.map((m) => t.value.get(m)).join(" ,")]) : d("span", null, [t.value.get(f)]);
1217
1217
  }
1218
1218
  function s() {
1219
- let d;
1220
- return f(kt, {
1219
+ let f;
1220
+ return d(wt, {
1221
1221
  ref: (m) => n = m,
1222
1222
  multiple: e.multiple,
1223
1223
  modelValue: c[o.key],
@@ -1228,12 +1228,12 @@ function Hr(e) {
1228
1228
  "allow-create": e.createable,
1229
1229
  maxTagCount: e.maxTagCount ?? 2,
1230
1230
  onChange: u
1231
- }, qr(d = Array.from(t.value.entries()).map(([m, b]) => f(wt, {
1231
+ }, qr(f = Array.from(t.value.entries()).map(([m, b]) => d(xt, {
1232
1232
  key: m,
1233
1233
  value: m,
1234
1234
  label: b
1235
- }, null))) ? d : {
1236
- default: () => [d]
1235
+ }, null))) ? f : {
1236
+ default: () => [f]
1237
1237
  });
1238
1238
  }
1239
1239
  switch (o.mode) {
@@ -1259,10 +1259,10 @@ function Gr(e) {
1259
1259
  e != null && e.default && (t[a.key] = e.default);
1260
1260
  function u() {
1261
1261
  const v = t[a.key];
1262
- return f("span", null, [v ? (e == null ? void 0 : e.openLabel) ?? "是" : (e == null ? void 0 : e.closeLabel) ?? "否"]);
1262
+ return d("span", null, [v ? (e == null ? void 0 : e.openLabel) ?? "是" : (e == null ? void 0 : e.closeLabel) ?? "否"]);
1263
1263
  }
1264
1264
  function l() {
1265
- return f(xt, {
1265
+ return d(St, {
1266
1266
  ref: (v) => n = v,
1267
1267
  modelValue: t[a.key],
1268
1268
  "onUpdate:modelValue": (v) => t[a.key] = v,
@@ -1290,33 +1290,33 @@ function Kr(e) {
1290
1290
  }
1291
1291
  function u(c) {
1292
1292
  if (c && c.length === 2) {
1293
- const [o, i] = c.sort(), s = S(o).startOf("days"), d = S(i).endOf("days");
1294
- n[r.key] = [s.format((e == null ? void 0 : e.valueFormat) || "YYYY-MM-DD"), d.format((e == null ? void 0 : e.valueFormat) || "YYYY-MM-DD")];
1293
+ const [o, i] = c.sort(), s = S(o).startOf("days"), f = S(i).endOf("days");
1294
+ n[r.key] = [s.format((e == null ? void 0 : e.valueFormat) || "YYYY-MM-DD"), f.format((e == null ? void 0 : e.valueFormat) || "YYYY-MM-DD")];
1295
1295
  }
1296
1296
  }
1297
1297
  function l(c) {
1298
1298
  return e != null && e.disabledDate ? e.disabledDate(t.filter(Boolean), c) : !1;
1299
1299
  }
1300
1300
  function v() {
1301
- const c = n[r.key], [o, i] = c, s = (d) => {
1301
+ const c = n[r.key], [o, i] = c, s = (f) => {
1302
1302
  switch (e == null ? void 0 : e.type) {
1303
1303
  case "week":
1304
- return f("span", null, [`${S(d).format("YYYY年")}${S(d).week()}周`]);
1304
+ return d("span", null, [`${S(f).format("YYYY年")}${S(f).week()}周`]);
1305
1305
  case "month":
1306
- return f("span", null, [S(d).format("YYYY年MM月")]);
1306
+ return d("span", null, [S(f).format("YYYY年MM月")]);
1307
1307
  case "quarter":
1308
- return f("span", null, [`${S(d).format("YYYY年")}${S(d).quarter()}季度`]);
1308
+ return d("span", null, [`${S(f).format("YYYY年")}${S(f).quarter()}季度`]);
1309
1309
  case "year":
1310
- return f("span", null, [S(d).format("YYYY年")]);
1310
+ return d("span", null, [S(f).format("YYYY年")]);
1311
1311
  case "date":
1312
1312
  default:
1313
- return f("span", null, [S(d).format("YYYY年MM月DD日")]);
1313
+ return d("span", null, [S(f).format("YYYY年MM月DD日")]);
1314
1314
  }
1315
1315
  };
1316
- return f("span", null, [s(o), z(" - "), s(i)]);
1316
+ return d("span", null, [s(o), D(" - "), s(i)]);
1317
1317
  }
1318
1318
  function h() {
1319
- return f("div", null, [f(St, {
1319
+ return d("div", null, [d(Ct, {
1320
1320
  "disabled-input": !0,
1321
1321
  style: {
1322
1322
  width: "300px"
@@ -1345,10 +1345,10 @@ function Kr(e) {
1345
1345
  function Xr(e) {
1346
1346
  return (n, r) => {
1347
1347
  function t() {
1348
- return f("span", null, [n[r.key]]);
1348
+ return d("span", null, [n[r.key]]);
1349
1349
  }
1350
1350
  function a() {
1351
- return f(Ct, {
1351
+ return d(_t, {
1352
1352
  modelValue: n[r.key],
1353
1353
  "onUpdate:modelValue": (u) => n[r.key] = u,
1354
1354
  placeholder: e == null ? void 0 : e.placeholder,
@@ -1365,7 +1365,7 @@ function Xr(e) {
1365
1365
  }
1366
1366
  };
1367
1367
  }
1368
- function qe(e) {
1368
+ function We(e) {
1369
1369
  let n = !1;
1370
1370
  const r = [], t = (a) => {
1371
1371
  var u;
@@ -1429,7 +1429,7 @@ function Zr(e) {
1429
1429
  e.cache !== !1 ? v() : h();
1430
1430
  break;
1431
1431
  }
1432
- case le(e.options): {
1432
+ case ae(e.options): {
1433
1433
  _e(e.options, () => {
1434
1434
  a(e.options.value);
1435
1435
  }, {
@@ -1442,14 +1442,14 @@ function Zr(e) {
1442
1442
  }
1443
1443
  function c(o, i) {
1444
1444
  var m;
1445
- const s = ((m = e.fieldNames) == null ? void 0 : m.title) || "title", d = i[s];
1446
- return d ? d.toLowerCase().includes(o.toLowerCase()) : !1;
1445
+ const s = ((m = e.fieldNames) == null ? void 0 : m.title) || "title", f = i[s];
1446
+ return f ? f.toLowerCase().includes(o.toLowerCase()) : !1;
1447
1447
  }
1448
1448
  return (o, i) => {
1449
1449
  e.default && !r && (o[i.key] = e.default, r = !0);
1450
1450
  function s() {
1451
1451
  const m = o[i.key], b = (y) => {
1452
- const [x] = qe({
1452
+ const [x] = We({
1453
1453
  data: t.value,
1454
1454
  labelProp: "title",
1455
1455
  valueProp: "key",
@@ -1459,14 +1459,14 @@ function Zr(e) {
1459
1459
  };
1460
1460
  if (e.multiple) {
1461
1461
  const y = m.map((x) => b(x));
1462
- return f("span", null, [y.join(", ")]);
1462
+ return d("span", null, [y.join(", ")]);
1463
1463
  } else {
1464
1464
  const y = b(m);
1465
- return f("span", null, [y]);
1465
+ return d("span", null, [y]);
1466
1466
  }
1467
1467
  }
1468
- function d() {
1469
- return f(_t, {
1468
+ function f() {
1469
+ return d($t, {
1470
1470
  ref: (m) => n = m,
1471
1471
  multiple: e.multiple,
1472
1472
  modelValue: o[i.key],
@@ -1489,7 +1489,7 @@ function Zr(e) {
1489
1489
  return s();
1490
1490
  case "component":
1491
1491
  default:
1492
- return d();
1492
+ return f();
1493
1493
  }
1494
1494
  };
1495
1495
  }
@@ -1534,7 +1534,7 @@ function tn(e) {
1534
1534
  e.cache !== !1 ? v() : h();
1535
1535
  break;
1536
1536
  }
1537
- case le(e.options): {
1537
+ case ae(e.options): {
1538
1538
  _e(e.options, () => {
1539
1539
  a(e.options.value);
1540
1540
  }, {
@@ -1548,7 +1548,7 @@ function tn(e) {
1548
1548
  return (c, o) => {
1549
1549
  e.default && !r && (c[o.key] = e.default, r = !0);
1550
1550
  function i() {
1551
- const d = c[o.key], m = (y) => qe({
1551
+ const f = c[o.key], m = (y) => We({
1552
1552
  data: t.value,
1553
1553
  labelProp: "label",
1554
1554
  valueProp: "value",
@@ -1561,32 +1561,32 @@ function tn(e) {
1561
1561
  }).map((F) => F.label).join("/");
1562
1562
  switch (!0) {
1563
1563
  case (!e.pathMode && !e.multiple): {
1564
- const y = m(d);
1565
- return f("span", null, [y]);
1564
+ const y = m(f);
1565
+ return d("span", null, [y]);
1566
1566
  }
1567
1567
  case (!e.pathMode && e.multiple): {
1568
- const y = d.map((x) => m(x));
1569
- return f("span", null, [y.join(", ")]);
1568
+ const y = f.map((x) => m(x));
1569
+ return d("span", null, [y.join(", ")]);
1570
1570
  }
1571
1571
  case (e.pathMode && !e.multiple): {
1572
- const y = b(d);
1573
- return f("span", null, [y]);
1572
+ const y = b(f);
1573
+ return d("span", null, [y]);
1574
1574
  }
1575
1575
  case (e.pathMode && e.multiple): {
1576
- const y = d.map((x) => b(x));
1577
- return f("span", null, [y.join(", ")]);
1576
+ const y = f.map((x) => b(x));
1577
+ return d("span", null, [y.join(", ")]);
1578
1578
  }
1579
1579
  default:
1580
- return f("span", null, null);
1580
+ return d("span", null, null);
1581
1581
  }
1582
1582
  }
1583
1583
  function s() {
1584
- return f($t, {
1584
+ return d(Ot, {
1585
1585
  pathMode: e.pathMode,
1586
- ref: (d) => n = d,
1586
+ ref: (f) => n = f,
1587
1587
  multiple: e.multiple,
1588
1588
  modelValue: c[o.key],
1589
- "onUpdate:modelValue": (d) => c[o.key] = d,
1589
+ "onUpdate:modelValue": (f) => c[o.key] = f,
1590
1590
  placeholder: e.placeholder,
1591
1591
  allowClear: e.clearable,
1592
1592
  allowSearch: e.searchable,
@@ -1644,17 +1644,17 @@ function ln(e) {
1644
1644
  }, u = (l) => l.replace(/,/g, "");
1645
1645
  return (l, v) => {
1646
1646
  const h = $(n(l[v.key]));
1647
- Z(h, (d) => {
1648
- l[v.key] = r(d);
1647
+ Z(h, (f) => {
1648
+ l[v.key] = r(f);
1649
1649
  });
1650
- const c = (e == null ? void 0 : e.prefix) && (() => typeof (e == null ? void 0 : e.prefix) == "string" ? f("span", null, [e.prefix]) : e.prefix()), o = () => typeof (e == null ? void 0 : e.suffix) == "string" ? f("span", null, [e.suffix]) : typeof (e == null ? void 0 : e.suffix) == "function" ? e.suffix() : e == null ? void 0 : e.inputUnit;
1650
+ const c = (e == null ? void 0 : e.prefix) && (() => typeof (e == null ? void 0 : e.prefix) == "string" ? d("span", null, [e.prefix]) : e.prefix()), o = () => typeof (e == null ? void 0 : e.suffix) == "string" ? d("span", null, [e.suffix]) : typeof (e == null ? void 0 : e.suffix) == "function" ? e.suffix() : e == null ? void 0 : e.inputUnit;
1651
1651
  function i() {
1652
- return f("span", null, [a(h.value.toString()), o()]);
1652
+ return d("span", null, [a(h.value.toString()), o()]);
1653
1653
  }
1654
1654
  function s() {
1655
- return f(Ee, {
1655
+ return d(Re, {
1656
1656
  modelValue: h.value,
1657
- "onUpdate:modelValue": (d) => h.value = d,
1657
+ "onUpdate:modelValue": (f) => h.value = f,
1658
1658
  formatter: a,
1659
1659
  parser: u,
1660
1660
  precision: e == null ? void 0 : e.precision,
@@ -1690,7 +1690,7 @@ function an() {
1690
1690
  currency: ln
1691
1691
  };
1692
1692
  }
1693
- function Te(e, n) {
1693
+ function Le(e, n) {
1694
1694
  n.render || (n.render = (t) => t.input());
1695
1695
  const r = n.render({
1696
1696
  ...an()
@@ -1699,10 +1699,10 @@ function Te(e, n) {
1699
1699
  default: () => r(e, n)
1700
1700
  };
1701
1701
  }
1702
- function Le(e, n) {
1702
+ function je(e, n) {
1703
1703
  switch (n.mode) {
1704
1704
  case "text":
1705
- return Ye(Te(e, n).default);
1705
+ return Ye(Le(e, n).default);
1706
1706
  case "component":
1707
1707
  default:
1708
1708
  return Ye(ve, {
@@ -1711,13 +1711,13 @@ function Le(e, n) {
1711
1711
  hideLabel: n.hideLabel,
1712
1712
  labelColStyle: n.labelStyle,
1713
1713
  wrapperColStyle: n.contentStyle
1714
- }, Te(e, n));
1714
+ }, Le(e, n));
1715
1715
  }
1716
1716
  }
1717
1717
  function un(e) {
1718
1718
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !be(e);
1719
1719
  }
1720
- const on = /* @__PURE__ */ E({
1720
+ const on = /* @__PURE__ */ R({
1721
1721
  props: {
1722
1722
  form: {
1723
1723
  type: Object,
@@ -1728,7 +1728,7 @@ const on = /* @__PURE__ */ E({
1728
1728
  }
1729
1729
  },
1730
1730
  setup(e) {
1731
- const n = Be(), r = e.form.map((h) => ({
1731
+ const n = Ve(), r = e.form.map((h) => ({
1732
1732
  ...h,
1733
1733
  collapsed: !1
1734
1734
  })), t = Array.from(new Set(r.map((h) => h.group).flat().filter(Boolean))), a = r.reduce((h, c) => ((c.group ? [c.group].flat() : ["默认"]).forEach((o) => {
@@ -1763,46 +1763,62 @@ const on = /* @__PURE__ */ E({
1763
1763
  const e = this.groupForms.find((n) => n.group === this.activeTab);
1764
1764
  if (this.groups.length) {
1765
1765
  let n;
1766
- return f(Ot, {
1766
+ return d(Yt, {
1767
1767
  "active-key": this.activeTab,
1768
1768
  "onUpdate:active-key": (r) => this.activeTab = r
1769
- }, un(n = this.groupForms.map((r) => f(Yt, {
1769
+ }, un(n = this.groupForms.map((r) => d(Mt, {
1770
1770
  title: r.group,
1771
1771
  key: r.group
1772
1772
  }, {
1773
- default: () => [f(pe, {
1773
+ default: () => [d(pe, {
1774
1774
  form: r.form,
1775
1775
  value: this.value,
1776
1776
  ref: (t) => r.instance = t
1777
- }, null), f(Mt, null, null), f("div", {
1778
- class: "flex items-center justify-end space-x-2"
1779
- }, [f(N, {
1780
- type: "primary",
1781
- size: "large",
1782
- onClick: this.onSubmit
1783
- }, {
1784
- default: () => [z("搜索")]
1785
- }), f(N, {
1777
+ }, null), d(Me, null, null), d("div", {
1778
+ class: "flex items-center justify-between space-x-2"
1779
+ }, [d(I, {
1786
1780
  type: "secondary",
1787
1781
  size: "large",
1788
1782
  onClick: this.onReset
1789
1783
  }, {
1790
- default: () => [z("重置")]
1784
+ default: () => [D("重置")]
1785
+ }), d(I, {
1786
+ class: "w-100px",
1787
+ type: "primary",
1788
+ size: "large",
1789
+ onClick: this.onSubmit
1790
+ }, {
1791
+ default: () => [D("搜索")]
1791
1792
  })])]
1792
1793
  }))) ? n : {
1793
1794
  default: () => [n]
1794
1795
  });
1795
1796
  } else
1796
- return f(pe, {
1797
+ return d(re, null, [d(pe, {
1797
1798
  form: this.formItems,
1798
1799
  ref: (n) => e.instance = n
1799
- }, null);
1800
+ }, null), d(Me, null, null), d("div", {
1801
+ class: "flex items-center justify-between space-x-2"
1802
+ }, [d(I, {
1803
+ type: "secondary",
1804
+ size: "large",
1805
+ onClick: this.onReset
1806
+ }, {
1807
+ default: () => [D("重置")]
1808
+ }), d(I, {
1809
+ class: "w-100px",
1810
+ type: "primary",
1811
+ size: "large",
1812
+ onClick: this.onSubmit
1813
+ }, {
1814
+ default: () => [D("搜索")]
1815
+ })])]);
1800
1816
  }
1801
1817
  });
1802
- function je(e) {
1818
+ function Pe(e) {
1803
1819
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !be(e);
1804
1820
  }
1805
- const pe = /* @__PURE__ */ E({
1821
+ const pe = /* @__PURE__ */ R({
1806
1822
  props: {
1807
1823
  form: {
1808
1824
  type: Object,
@@ -1872,7 +1888,7 @@ const pe = /* @__PURE__ */ E({
1872
1888
  emit: n
1873
1889
  }) {
1874
1890
  const r = $(), [t, a] = zr(e.form, e.modelValue || e.value), u = $(e.columns || 0), l = $(!0), v = $(), h = () => l.value = !l.value;
1875
- me(Fe.id, e.id), me(Fe.source, t);
1891
+ he(Te.id, e.id), he(Te.source, t);
1876
1892
  const c = () => {
1877
1893
  n("submit", t.value), n("update:model-value", t.value);
1878
1894
  }, o = _(() => e.form.filter((g) => l.value ? !g.collapsed : !0).filter((g) => {
@@ -1887,10 +1903,10 @@ const pe = /* @__PURE__ */ E({
1887
1903
  })), i = _(() => {
1888
1904
  if (!u.value)
1889
1905
  return 1;
1890
- const g = o.value.reduce((O, R) => O + ((R == null ? void 0 : R.span) || 1), 0);
1906
+ const g = o.value.reduce((O, N) => O + ((N == null ? void 0 : N.span) || 1), 0);
1891
1907
  return u.value - g % u.value;
1892
1908
  }), s = _(() => e.form.reduce((g, O) => (O.rule && (g[O.key] = O.rule), g), {}));
1893
- function d() {
1909
+ function f() {
1894
1910
  var O;
1895
1911
  if (e.columns)
1896
1912
  return;
@@ -1915,7 +1931,7 @@ const pe = /* @__PURE__ */ E({
1915
1931
  });
1916
1932
  }
1917
1933
  q(() => {
1918
- d(), m();
1934
+ f(), m();
1919
1935
  });
1920
1936
  function y(g) {
1921
1937
  a({
@@ -1937,7 +1953,7 @@ const pe = /* @__PURE__ */ E({
1937
1953
  return (g = r.value) == null ? void 0 : g.validate();
1938
1954
  }
1939
1955
  return q(() => {
1940
- window && window.addEventListener("resize", d);
1956
+ window && window.addEventListener("resize", f);
1941
1957
  }), {
1942
1958
  formSource: t,
1943
1959
  formInstance: r,
@@ -1964,19 +1980,19 @@ const pe = /* @__PURE__ */ E({
1964
1980
  const a = this.formSource[t.key];
1965
1981
  return a != null;
1966
1982
  });
1967
- return f(oe, {
1983
+ return d(ce, {
1968
1984
  span: this.formColumns
1969
1985
  }, {
1970
- default: () => [f(ve, {
1986
+ default: () => [d(ve, {
1971
1987
  label: "搜索条件"
1972
1988
  }, {
1973
- default: () => [f("div", {
1989
+ default: () => [d("div", {
1974
1990
  class: "w-full mt-5px text-left"
1975
- }, [f(Me, {
1991
+ }, [d(Fe, {
1976
1992
  wrap: !0,
1977
1993
  align: "center"
1978
1994
  }, {
1979
- default: () => [r.length > 0 ? r.map((t) => f(Lt, {
1995
+ default: () => [r.length > 0 ? r.map((t) => d(Lt, {
1980
1996
  key: t.key,
1981
1997
  closable: !0,
1982
1998
  onClose: () => {
@@ -1984,20 +2000,20 @@ const pe = /* @__PURE__ */ E({
1984
2000
  return (a = this.formInstance) == null ? void 0 : a.resetFields(t.key);
1985
2001
  }
1986
2002
  }, {
1987
- default: () => [f("div", {
2003
+ default: () => [d("div", {
1988
2004
  class: "flex space-x-2"
1989
- }, [f("div", {
2005
+ }, [d("div", {
1990
2006
  class: "text-#999"
1991
- }, [t.title, z(":")]), f("div", {
2007
+ }, [t.title, D(":")]), d("div", {
1992
2008
  class: "text-#333"
1993
- }, [Le(this.formSource, {
2009
+ }, [je(this.formSource, {
1994
2010
  ...t,
1995
2011
  key: t.key,
1996
2012
  mode: "text"
1997
2013
  })])])]
1998
- })) : f("div", {
2014
+ })) : d("div", {
1999
2015
  class: "text-#999"
2000
- }, [z("暂无搜索条件")])]
2016
+ }, [D("暂无搜索条件")])]
2001
2017
  })])]
2002
2018
  })]
2003
2019
  });
@@ -2007,56 +2023,56 @@ const pe = /* @__PURE__ */ E({
2007
2023
  } : {
2008
2024
  span: this.formActiosSpan
2009
2025
  };
2010
- if (this.searchable && (r.push(f(N, {
2026
+ if (this.searchable && (r.push(d(I, {
2011
2027
  type: "primary",
2012
2028
  htmlType: "submit"
2013
2029
  }, {
2014
- default: () => [z("搜索")]
2015
- })), r.push(f(N, {
2030
+ default: () => [D("搜索")]
2031
+ })), r.push(d(I, {
2016
2032
  type: "secondary",
2017
2033
  onClick: () => {
2018
2034
  var a;
2019
2035
  return (a = this.formInstance) == null ? void 0 : a.resetFields();
2020
2036
  }
2021
2037
  }, {
2022
- default: () => [z("重置")]
2023
- }))), this.submitable && (r.push(f(N, {
2038
+ default: () => [D("重置")]
2039
+ }))), this.submitable && (r.push(d(I, {
2024
2040
  type: "primary",
2025
2041
  htmlType: "submit"
2026
2042
  }, {
2027
- default: () => [z("提交")]
2028
- })), r.push(f(N, {
2043
+ default: () => [D("提交")]
2044
+ })), r.push(d(I, {
2029
2045
  type: "secondary",
2030
2046
  onClick: () => this.$emit("cancel")
2031
2047
  }, {
2032
- default: () => [z("取消")]
2033
- }))), this.form.some((a) => !!a.collapsed) && (this.collapsedMode === "append" && r.push(f(N, {
2048
+ default: () => [D("取消")]
2049
+ }))), this.form.some((a) => !!a.collapsed) && (this.collapsedMode === "append" && r.push(d(I, {
2034
2050
  onClick: this.toggleFormCollapsed
2035
2051
  }, {
2036
2052
  default: () => this.formCollspased ? "展开" : "收起",
2037
- icon: () => this.formCollspased ? f(Vt, null, null) : f(Gt, null, null)
2038
- })), this.collapsedMode === "dialog" && r.push(f(N, {
2053
+ icon: () => this.formCollspased ? d(Vt, null, null) : d(Gt, null, null)
2054
+ })), this.collapsedMode === "dialog" && r.push(d(I, {
2039
2055
  onClick: this.openCollapsedDialog
2040
2056
  }, {
2041
2057
  default: () => "高级搜索",
2042
- icon: () => f(er, null, null)
2058
+ icon: () => d(er, null, null)
2043
2059
  }))), this.$slots.actions && r.push(...this.$slots.actions()), r.length)
2044
- return f(oe, t, {
2045
- default: () => [f(ve, {
2060
+ return d(ce, t, {
2061
+ default: () => [d(ve, {
2046
2062
  contentClass: this.footer ? "form-footer" : ""
2047
2063
  }, {
2048
- default: () => [f(Me, null, je(r) ? r : {
2064
+ default: () => [d(Fe, null, Pe(r) ? r : {
2049
2065
  default: () => [r]
2050
2066
  })]
2051
2067
  })]
2052
2068
  });
2053
2069
  };
2054
- return f("div", {
2070
+ return d("div", {
2055
2071
  class: "form-render"
2056
- }, [f(Ir, {
2072
+ }, [d(Ir, {
2057
2073
  ref: (r) => this.modalInstance = r
2058
2074
  }, {
2059
- default: () => [f(Ft, ge({
2075
+ default: () => [d(Ft, ge({
2060
2076
  name: this.name
2061
2077
  }, {
2062
2078
  labelAlign: "right",
@@ -2067,16 +2083,16 @@ const pe = /* @__PURE__ */ E({
2067
2083
  ref: (r) => this.formInstance = r,
2068
2084
  model: this.formSource
2069
2085
  }), {
2070
- default: () => [f(Tt, {
2086
+ default: () => [d(Tt, {
2071
2087
  cols: this.formColumns,
2072
2088
  "col-gap": 24,
2073
2089
  "rol-gap": 10
2074
2090
  }, {
2075
2091
  default: () => [this.formItems.filter(() => this.formColumns !== 0).map((r) => {
2076
2092
  let t;
2077
- return f(oe, {
2093
+ return d(ce, {
2078
2094
  span: r.span
2079
- }, je(t = Le(this.formSource, r)) ? t : {
2095
+ }, Pe(t = je(this.formSource, r)) ? t : {
2080
2096
  default: () => [t]
2081
2097
  });
2082
2098
  }), e(), n()]
@@ -2095,7 +2111,7 @@ function mn(e) {
2095
2111
  const a = (l = (u = n == null ? void 0 : n.proxy) == null ? void 0 : u.$refs) == null ? void 0 : l[e];
2096
2112
  a && (r.value = a);
2097
2113
  }
2098
- return q(t), mt(t), r;
2114
+ return q(t), ht(t), r;
2099
2115
  }
2100
2116
  const hn = {
2101
2117
  install(e, n) {