disguise-ui 0.2.8 → 0.2.9

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.
@@ -1,4 +1,4 @@
1
- import { i as e, r as t, t as n } from "./picture-cell-DApeh9FW.js";
1
+ import { i as e, r as t, t as n } from "./picture-cell-BhKqFZUx.js";
2
2
  import { t as r } from "./modal-CHOpDVLd.js";
3
3
  import { d as i, i as a, l as o, n as s, r as c, t as l, u } from "./context-DqlD6qDJ.js";
4
4
  import { t as d } from "./i18n-DejVnxC8.js";
@@ -6,10 +6,10 @@ import { t as f } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
6
6
  import { t as p } from "./use-image-url-Bs5WMZ6L.js";
7
7
  import { t as m } from "./user-avatar-info-SD6OE607.js";
8
8
  import { t as h } from "./use-file-type-rNstoxXw.js";
9
- import { t as g } from "./file-upload-CeqibzK8.js";
10
- import { r as _ } from "./use-multiple-file-upload-BFNkLVy-.js";
11
- import { t as v } from "./picture-upload-E97PfpUU.js";
12
- import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, defineAsyncComponent as O, defineComponent as k, guardReactiveProps as A, h as j, isRef as M, mergeModels as N, mergeProps as P, nextTick as ee, normalizeClass as F, normalizeProps as I, normalizeStyle as L, onUnmounted as te, openBlock as R, reactive as z, ref as B, renderList as V, renderSlot as H, resolveComponent as ne, resolveDirective as re, resolveDynamicComponent as U, shallowReactive as ie, toDisplayString as W, toHandlers as ae, toValue as G, unref as K, useModel as oe, useSlots as se, vModelSelect as ce, vModelText as le, watch as q, withCtx as J, withDirectives as ue, withKeys as de, withModifiers as fe } from "vue";
9
+ import { t as g } from "./file-upload-1BQ7D3G-.js";
10
+ import { r as _ } from "./use-multiple-file-upload-BYN5Ddr9.js";
11
+ import { t as v } from "./picture-upload-ByEVub_1.js";
12
+ import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, defineAsyncComponent as O, defineComponent as k, guardReactiveProps as A, h as j, isRef as M, mergeModels as N, mergeProps as P, nextTick as ee, normalizeClass as F, normalizeProps as I, normalizeStyle as L, onUnmounted as te, openBlock as R, reactive as ne, ref as z, renderList as B, renderSlot as V, resolveComponent as H, resolveDirective as re, resolveDynamicComponent as U, shallowReactive as ie, toDisplayString as W, toHandlers as ae, toValue as G, unref as K, useModel as oe, useSlots as se, vModelSelect as ce, vModelText as le, watch as q, withCtx as J, withDirectives as ue, withKeys as de, withModifiers as fe } from "vue";
13
13
  import { ElButton as Y, ElCard as X, ElCascader as pe, ElCheckbox as me, ElCheckboxGroup as he, ElCol as ge, ElDatePicker as _e, ElDrawer as ve, ElDropdown as ye, ElDropdownItem as be, ElDropdownMenu as xe, ElForm as Se, ElFormItem as Ce, ElIcon as Z, ElImageViewer as we, ElInput as Te, ElInputNumber as Ee, ElMessage as Q, ElMessageBox as De, ElOption as $, ElPagination as Oe, ElPopover as ke, ElProgress as Ae, ElRadio as je, ElRadioGroup as Me, ElRow as Ne, ElSelect as Pe, ElSelectV2 as Fe, ElSwitch as Ie, ElTabPane as Le, ElTable as Re, ElTableColumn as ze, ElTableV2 as Be, ElTabs as Ve, ElTooltip as He, ElUpload as Ue, TableV2FixedDir as We } from "element-plus";
14
14
  import Ge from "dayjs";
15
15
  import Ke from "dayjs/plugin/timezone.js";
@@ -142,7 +142,7 @@ var Sn = {
142
142
  setup(e, { emit: t }) {
143
143
  let n = e, i = t, [a, o] = r({ onOpenChange: (e) => {
144
144
  e !== n.modelValue && i("update:modelValue", e);
145
- } }), s = B(), c = B("upload"), l = B(n.defaultMode), u = B(null), f = B(""), p = B([]), m = B(""), h = B([]), g = B([]), _ = B(0), v = B([]), T = B(!1), O = B(!1), k = B(!1), A = B(0), j = B(""), M = B(null), N = B(0), P = b(() => n.title || d("components.importDialog.title")), ee = b(() => !!n.api), I = b(() => n.modes?.length ? n.modes : [{
145
+ } }), s = z(), c = z("upload"), l = z(n.defaultMode), u = z(null), f = z(""), p = z([]), m = z(""), h = z([]), g = z([]), _ = z(0), v = z([]), T = z(!1), O = z(!1), k = z(!1), A = z(0), j = z(""), M = z(null), N = z(0), P = b(() => n.title || d("components.importDialog.title")), ee = b(() => !!n.api), I = b(() => n.modes?.length ? n.modes : [{
146
146
  label: d("components.importDialog.modeCreate"),
147
147
  value: "create"
148
148
  }, {
@@ -154,7 +154,7 @@ var Sn = {
154
154
  d("components.importDialog.tipFormula"),
155
155
  d("components.importDialog.tipArea"),
156
156
  d("components.importDialog.tipRelation")
157
- ]), te = b(() => n.accept.join(",")), z = b(() => n.accept.map((e) => e.replace(/^\./, "").toUpperCase()).join("、")), H = b(() => M.value !== null), ne = b(() => !H.value && !ee.value), U = b(() => d("components.importDialog.previewSummary", {
157
+ ]), te = b(() => n.accept.join(",")), ne = b(() => n.accept.map((e) => e.replace(/^\./, "").toUpperCase()).join("、")), V = b(() => M.value !== null), H = b(() => !V.value && !ee.value), U = b(() => d("components.importDialog.previewSummary", {
158
158
  total: _.value,
159
159
  count: Math.min(g.value.length, n.maxPreviewCount)
160
160
  })), ie = b(() => f.value || u.value?.name || ""), ae = b(() => h.value.map((e) => ({
@@ -176,7 +176,7 @@ var Sn = {
176
176
  p.value = [], m.value = "", h.value = [], g.value = [], _.value = 0, v.value = [], M.value = null;
177
177
  }
178
178
  function fe() {
179
- H.value || i("cancel"), i("update:modelValue", !1);
179
+ V.value || i("cancel"), i("update:modelValue", !1);
180
180
  }
181
181
  function X() {
182
182
  k.value = !k.value, o.setState({ fullscreen: k.value });
@@ -223,7 +223,7 @@ var Sn = {
223
223
  return n.accept.some((e) => {
224
224
  let n = e.toLowerCase();
225
225
  return n.startsWith(".") ? t.endsWith(n) : r === n;
226
- }) ? !0 : (Q.error(d("components.importDialog.fileTypeInvalid", { types: z.value })), !1);
226
+ }) ? !0 : (Q.error(d("components.importDialog.fileTypeInvalid", { types: ne.value })), !1);
227
227
  }
228
228
  function be(e) {
229
229
  let t = new Map((e ?? []).map((e) => [e.targetField, e]));
@@ -412,7 +412,7 @@ var Sn = {
412
412
  default: J(() => [E(W(K(d)("common.close")), 1)]),
413
413
  _: 1
414
414
  }))])]),
415
- default: J(() => [w("div", En, [ne.value ? (R(), C("div", Dn, [(R(!0), C(y, null, V(ce.value, (e, t) => (R(), C("div", {
415
+ default: J(() => [w("div", En, [H.value ? (R(), C("div", Dn, [(R(!0), C(y, null, B(ce.value, (e, t) => (R(), C("div", {
416
416
  key: e,
417
417
  class: "import-dialog__step"
418
418
  }, [
@@ -441,7 +441,7 @@ var Sn = {
441
441
  class: "import-dialog__mode-group",
442
442
  "onUpdate:modelValue": Ee
443
443
  }, {
444
- default: J(() => [(R(!0), C(y, null, V(I.value, (e) => (R(), x(K(je), {
444
+ default: J(() => [(R(!0), C(y, null, B(I.value, (e) => (R(), x(K(je), {
445
445
  key: e.value,
446
446
  label: e.value,
447
447
  disabled: e.disabled
@@ -467,7 +467,7 @@ var Sn = {
467
467
  _: 1
468
468
  })]),
469
469
  w("div", Nn, [E(W(K(d)("components.importDialog.uploadPlaceholder")) + " ", 1), w("span", Pn, W(K(d)("components.importDialog.selectUpload")), 1)]),
470
- w("div", Fn, W(K(d)("components.importDialog.supportedTypes", { types: z.value })), 1),
470
+ w("div", Fn, W(K(d)("components.importDialog.supportedTypes", { types: ne.value })), 1),
471
471
  ie.value ? (R(), C("div", In, W(ie.value), 1)) : S("", !0)
472
472
  ])]),
473
473
  _: 1
@@ -484,7 +484,7 @@ var Sn = {
484
484
  onClick: pe
485
485
  }, W(K(d)("components.importDialog.downloadTemplate")), 1)
486
486
  ]),
487
- w("div", Rn, [(R(!0), C(y, null, V(L.value, (e) => (R(), C("div", {
487
+ w("div", Rn, [(R(!0), C(y, null, B(L.value, (e) => (R(), C("div", {
488
488
  key: e,
489
489
  class: "import-dialog__tip-item"
490
490
  }, W(e), 1))), 128))])
@@ -499,7 +499,7 @@ var Sn = {
499
499
  disabled: T.value,
500
500
  onChange: De
501
501
  }, {
502
- default: J(() => [(R(!0), C(y, null, V(p.value, (e) => (R(), x(K($), {
502
+ default: J(() => [(R(!0), C(y, null, B(p.value, (e) => (R(), x(K($), {
503
503
  key: e.value,
504
504
  label: e.label,
505
505
  value: e.value
@@ -512,7 +512,7 @@ var Sn = {
512
512
  height: "352",
513
513
  class: "import-dialog__table"
514
514
  }, {
515
- default: J(() => [(R(!0), C(y, null, V(h.value, (e) => (R(), x(K(ze), {
515
+ default: J(() => [(R(!0), C(y, null, B(h.value, (e) => (R(), x(K(ze), {
516
516
  key: e.prop,
517
517
  prop: e.prop,
518
518
  label: e.label,
@@ -533,7 +533,7 @@ var Sn = {
533
533
  t[1] ||= w("div", null, null, -1),
534
534
  w("div", null, W(K(d)("components.importDialog.mappingTargetField")), 1),
535
535
  w("div", null, W(K(d)("components.importDialog.mappingDuplicateLabel")), 1)
536
- ]), w("div", Kn, [(R(!0), C(y, null, V(v.value, (e) => (R(), C("div", {
536
+ ]), w("div", Kn, [(R(!0), C(y, null, B(v.value, (e) => (R(), C("div", {
537
537
  key: e.targetField,
538
538
  class: "import-dialog__mapping-row"
539
539
  }, [
@@ -543,7 +543,7 @@ var Sn = {
543
543
  clearable: "",
544
544
  placeholder: K(d)("common.pleaseSelect")
545
545
  }, {
546
- default: J(() => [(R(!0), C(y, null, V(ae.value, (e) => (R(), x(K($), {
546
+ default: J(() => [(R(!0), C(y, null, B(ae.value, (e) => (R(), x(K($), {
547
547
  key: e.value,
548
548
  label: e.label,
549
549
  value: e.value
@@ -568,7 +568,7 @@ var Sn = {
568
568
  "onUpdate:modelValue",
569
569
  "disabled"
570
570
  ])])
571
- ]))), 128))])], 64)) : H.value ? (R(), C(y, { key: 4 }, [
571
+ ]))), 128))])], 64)) : V.value ? (R(), C(y, { key: 4 }, [
572
572
  w("div", { class: F(["import-dialog__result-illustration", {
573
573
  "is-success": M.value?.success,
574
574
  "is-error": !M.value?.success
@@ -616,7 +616,7 @@ var Sn = {
616
616
  "reset"
617
617
  ],
618
618
  setup(e, { emit: t }) {
619
- let n = e, r = t, i = B([...n.settings]);
619
+ let n = e, r = t, i = z([...n.settings]);
620
620
  q(() => n.settings, (e) => {
621
621
  i.value = e.map((e) => ({ ...e }));
622
622
  }, { deep: !0 });
@@ -659,7 +659,7 @@ var Sn = {
659
659
  "ghost-class": "column-settings-panel__ghost",
660
660
  onUpdate: o
661
661
  }, {
662
- default: J(() => [(R(!0), C(y, null, V(i.value, (e) => (R(), C("div", {
662
+ default: J(() => [(R(!0), C(y, null, B(i.value, (e) => (R(), C("div", {
663
663
  key: e.key,
664
664
  class: F(["column-settings-panel__item", { "column-settings-panel__item--hidden": !e.visible }])
665
665
  }, [
@@ -760,7 +760,7 @@ var Sn = {
760
760
  }), [["__scopeId", "data-v-a07ab19c"]]);
761
761
  // src/components/table-entity/composables/use-column-fixed.ts
762
762
  function gr(e) {
763
- let t = B({});
763
+ let t = z({});
764
764
  function n(e) {
765
765
  return e.fixed === !0 || e.fixed === "left" ? "left" : e.fixed === "right" && "right";
766
766
  }
@@ -831,7 +831,7 @@ function _r(e) {
831
831
  }
832
832
  // src/components/table-entity/composables/use-column-resize.ts
833
833
  function vr(e = 50) {
834
- let t = z({}), n = z({
834
+ let t = ne({}), n = ne({
835
835
  active: !1,
836
836
  colKey: null,
837
837
  startX: 0,
@@ -884,7 +884,7 @@ function vr(e = 50) {
884
884
  }
885
885
  // src/components/table-entity/composables/use-column-settings.ts
886
886
  function yr(e) {
887
- let t = B([]), n = B(/* @__PURE__ */ new Set()), r = B({}), i = B({}), a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = {};
887
+ let t = z([]), n = z(/* @__PURE__ */ new Set()), r = z({}), i = z({}), a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = {};
888
888
  function c(e) {
889
889
  return e.filter((e) => !!e).filter((e) => !!xr(e)).map((e) => xr(e));
890
890
  }
@@ -1019,7 +1019,7 @@ function Tr(e, t, n) {
1019
1019
  return i === void 0 ? e : (r.splice(n, 0, i), r);
1020
1020
  }
1021
1021
  function Er(e) {
1022
- let t = B(null), n = B(null), r = 0, i = 0, a = !1, o = "", s = "";
1022
+ let t = z(null), n = z(null), r = 0, i = 0, a = !1, o = "", s = "";
1023
1023
  function c(t, n, r) {
1024
1024
  let i = e.getRows();
1025
1025
  if (t < 0 || t >= i.length) return null;
@@ -1128,7 +1128,7 @@ function Er(e) {
1128
1128
  // src/components/table-entity/composables/use-table-selection.ts
1129
1129
  var Dr = 40;
1130
1130
  function Or(e, t, n, r = n) {
1131
- let i = B(/* @__PURE__ */ new Set()), a = B(/* @__PURE__ */ new Map()), o = B(-1), s = () => e.rowKey ?? "id";
1131
+ let i = z(/* @__PURE__ */ new Set()), a = z(/* @__PURE__ */ new Map()), o = z(-1), s = () => e.rowKey ?? "id";
1132
1132
  q(() => e.selectedKeys, (e) => {
1133
1133
  i.value = new Set(e ?? []);
1134
1134
  }, { immediate: !0 }), q(() => r.value, (e) => {
@@ -1380,7 +1380,7 @@ var Ir = /*#__PURE__*/ f(/* @__PURE__ */ k({
1380
1380
  size: 26,
1381
1381
  "image-list-props": {}
1382
1382
  }, null, 8, ["urls", "max-preview-count"])) : S("", !0),
1383
- (R(!0), C(y, null, V(m.value, (e) => (R(), x(K(He), {
1383
+ (R(!0), C(y, null, B(m.value, (e) => (R(), x(K(He), {
1384
1384
  key: e.fileUrl,
1385
1385
  placement: "top",
1386
1386
  effect: "light",
@@ -1441,7 +1441,7 @@ var Ir = /*#__PURE__*/ f(/* @__PURE__ */ k({
1441
1441
  function c(e) {
1442
1442
  e.stopPropagation(), r("toggle");
1443
1443
  }
1444
- return (t, n) => e.items.length > 0 ? (R(), C("div", Qr, [(R(!0), C(y, null, V(o.value, (t, n) => (R(), C("div", {
1444
+ return (t, n) => e.items.length > 0 ? (R(), C("div", Qr, [(R(!0), C(y, null, B(o.value, (t, n) => (R(), C("div", {
1445
1445
  key: `${n}-${t}`,
1446
1446
  class: "list-expand-cell__item"
1447
1447
  }, [w("span", null, W(n + 1) + ".", 1), e.html ? (R(), C("span", {
@@ -1538,7 +1538,7 @@ function _i(e, t = "name") {
1538
1538
  }).filter(Boolean);
1539
1539
  }
1540
1540
  // src/components/table-entity/utils/column-slots.ts
1541
- var vi = O(() => Promise.resolve().then(() => Xr)), yi = O(() => import("./picture-cell-DApeh9FW.js").then((e) => e.n)), bi = O(() => import("./avatar-cell-BPzpEjQT.js")), { resolveImageUrl: xi } = p();
1541
+ var vi = O(() => Promise.resolve().then(() => Xr)), yi = O(() => import("./picture-cell-BhKqFZUx.js").then((e) => e.n)), bi = O(() => import("./avatar-cell-BPzpEjQT.js")), { resolveImageUrl: xi } = p();
1542
1542
  function Si(e) {
1543
1543
  return e == null || e === "" ? [] : (Array.isArray(e) ? e : typeof e == "string" ? e.split(",") : [e]).map((e) => e && typeof e == "object" ? e.fileUrl ?? e.url : e).map((e) => xi(e)).filter(Boolean);
1544
1544
  }
@@ -1769,7 +1769,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1769
1769
  "rowSort"
1770
1770
  ],
1771
1771
  setup(e, { expose: t, emit: n }) {
1772
- let r = e, i = n, a = B(!1), s = B(!1), c = {
1772
+ let r = e, i = n, a = z(!1), s = z(!1), c = {
1773
1773
  view: {
1774
1774
  label: d("components.tableEntity.view"),
1775
1775
  type: "primary"
@@ -1786,7 +1786,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1786
1786
  label: d("components.tableEntity.delete"),
1787
1787
  type: "danger"
1788
1788
  }
1789
- }, l = B(0), u = o(), f = b(() => {
1789
+ }, l = z(0), u = o(), f = b(() => {
1790
1790
  let e = (u.value.pageSizes ?? []).map((e) => Number(e)).filter((e) => Number.isFinite(e) && e > 0);
1791
1791
  return e.length > 0 ? e : [
1792
1792
  10,
@@ -1794,7 +1794,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1794
1794
  50,
1795
1795
  100
1796
1796
  ];
1797
- }), p = se(), { hasAccessByCodes: m } = pn(), h = B([]), g = B(/* @__PURE__ */ new Set()), _ = B(!1), v = B([...r.defaultExpandedRowKeys ?? []]), y = B(), { width: T } = _t(y), E = z({
1797
+ }), p = se(), { hasAccessByCodes: m } = pn(), h = z([]), g = z(/* @__PURE__ */ new Set()), _ = z(!1), v = z([...r.defaultExpandedRowKeys ?? []]), y = z(), { width: T } = _t(y), E = ne({
1798
1798
  current_page: r.current_page,
1799
1799
  per_page: r.per_page
1800
1800
  }), O = b(() => Math.max(1, Math.floor(r.width ?? T.value))), k = b(() => r.total == null ? l.value : Number(r.total)), A = b(() => r.showColumnSettings || typeof r.data == "function");
@@ -1809,13 +1809,13 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1809
1809
  let t = new Set(g.value);
1810
1810
  t.has(e) ? t.delete(e) : t.add(e), g.value = t;
1811
1811
  }
1812
- let V = b(() => Ei(N.value, p, {
1812
+ let B = b(() => Ei(N.value, p, {
1813
1813
  expandedKeys: g.value,
1814
1814
  onToggle: te,
1815
1815
  rowKey: r.rowKey ?? "id"
1816
- })), ne = r.columns.find((e) => e.sortOrder), U = B({
1817
- field: ne && String(ne.dataKey ?? ne.dataIndex ?? ne.key ?? "") || void 0,
1818
- order: ne?.sortOrder
1816
+ })), H = r.columns.find((e) => e.sortOrder), U = z({
1817
+ field: H && String(H.dataKey ?? H.dataIndex ?? H.key ?? "") || void 0,
1818
+ order: H?.sortOrder
1819
1819
  });
1820
1820
  function ie(e) {
1821
1821
  let t = e.dataKey ?? e.dataIndex ?? e.key;
@@ -1840,17 +1840,17 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1840
1840
  sortOrder: U.value.order
1841
1841
  });
1842
1842
  }
1843
- let G = yr(V), oe = gr(V);
1843
+ let G = yr(B), oe = gr(B);
1844
1844
  function ce() {
1845
1845
  G.reset(), oe.reset();
1846
1846
  }
1847
1847
  let { applyColumnWidths: le, resizeLineStyle: de, onViewportMouseDown: fe } = vr(r.minColumnWidth), X = b(() => {
1848
- let e = r.showColumnSettings ? G.visibleColumns.value : V.value;
1848
+ let e = r.showColumnSettings ? G.visibleColumns.value : B.value;
1849
1849
  return oe.applyFixed(G.applyAlign(le(e)));
1850
1850
  }), pe = b(() => {
1851
1851
  if (!r.tree) return;
1852
1852
  if (r.expandColumnKey) return r.expandColumnKey;
1853
- let e = V.value.find((e) => {
1853
+ let e = B.value.find((e) => {
1854
1854
  let t = e.key ?? e.dataKey;
1855
1855
  return t != null && String(t) !== "";
1856
1856
  }), t = e?.key ?? e?.dataKey;
@@ -2195,7 +2195,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2195
2195
  w("div", {
2196
2196
  class: "table-entity__toolbar",
2197
2197
  style: L({ width: `${e.width}px` })
2198
- }, [w("div", Di, [w("div", Oi, [H(t.$slots, "buttons", {}, void 0, !0)])]), A.value ? (R(), C("div", ki, [
2198
+ }, [w("div", Di, [w("div", Oi, [V(t.$slots, "buttons", {}, void 0, !0)])]), A.value ? (R(), C("div", ki, [
2199
2199
  D(K(He), {
2200
2200
  content: K(d)("components.tableEntity.refresh"),
2201
2201
  placement: "top"
@@ -2391,7 +2391,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2391
2391
  onOpenChange: (e) => {
2392
2392
  e !== i.visible && a("update:visible", e);
2393
2393
  }
2394
- }), c = B(), l = B(""), u = B(1), f = B(i.perPage), p = B([]), m = b(() => [
2394
+ }), c = z(), l = z(""), u = z(1), f = z(i.perPage), p = z([]), m = b(() => [
2395
2395
  "__dialog-list__",
2396
2396
  i.rowKey,
2397
2397
  u.value,
@@ -2444,7 +2444,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2444
2444
  a("update:modelValue", t), a("confirm", e), s.close();
2445
2445
  }
2446
2446
  return t({ tableRef: c }), (t, n) => {
2447
- let r = ne("el-button"), i = ne("el-input"), a = re("loading");
2447
+ let r = H("el-button"), i = H("el-input"), a = re("loading");
2448
2448
  return R(), x(K(o), {
2449
2449
  title: e.dialogTitle || K(d)("components.asyncSelect.placeholder"),
2450
2450
  class: F(`dialog-list__modal w-[${e.dialogWidth}]`),
@@ -2557,7 +2557,7 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2557
2557
  if (r.labelKey) return r.labelKey;
2558
2558
  let e = r.columns?.[0];
2559
2559
  return e?.dataKey ? e.dataKey : "label";
2560
- }), c = B([]), l = B([]), u = B(0), f = B(!1), p = B(!0), m = B(""), h = B(!1), g = b(() => typeof r.fetcher == "function"), _ = /* @__PURE__ */ new Map(), v = null, y = b({
2560
+ }), c = z([]), l = z([]), u = z(0), f = z(!1), p = z(!0), m = z(""), h = z(!1), g = b(() => typeof r.fetcher == "function"), _ = /* @__PURE__ */ new Map(), v = null, y = b({
2561
2561
  get: () => r.modelValue,
2562
2562
  set: (e) => i("update:modelValue", e)
2563
2563
  }), T = b(() => Array.isArray(r.modelValue) ? r.modelValue.filter((e) => e != null) : r.modelValue == null ? [] : [r.modelValue]);
@@ -2623,7 +2623,7 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2623
2623
  return;
2624
2624
  }
2625
2625
  u.value = 1, c.value = [], p.value = !0;
2626
- let i = z(1, t);
2626
+ let i = ne(1, t);
2627
2627
  _.set(n, i);
2628
2628
  try {
2629
2629
  await i, (m.value || void 0) === t && (v = n);
@@ -2632,9 +2632,9 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2632
2632
  }
2633
2633
  }
2634
2634
  async function te() {
2635
- !f.value && p.value && await z(u.value + 1);
2635
+ !f.value && p.value && await ne(u.value + 1);
2636
2636
  }
2637
- async function z(e, t = m.value || void 0) {
2637
+ async function ne(e, t = m.value || void 0) {
2638
2638
  if (r.fetcher) {
2639
2639
  f.value = !0;
2640
2640
  try {
@@ -2651,7 +2651,7 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2651
2651
  }
2652
2652
  }
2653
2653
  }
2654
- async function V(e) {
2654
+ async function B(e) {
2655
2655
  h.value = e, e && g.value && c.value.length === 0 && await L();
2656
2656
  }
2657
2657
  q([T, o], async ([e, t]) => {
@@ -2667,9 +2667,9 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2667
2667
  toOption: A
2668
2668
  })));
2669
2669
  }, { immediate: !0 });
2670
- let H = B(!1);
2671
- function ne() {
2672
- r.disabled || (H.value = !0);
2670
+ let V = z(!1);
2671
+ function H() {
2672
+ r.disabled || (V.value = !0);
2673
2673
  }
2674
2674
  function re(e) {
2675
2675
  ee(e.map(A));
@@ -2712,7 +2712,7 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2712
2712
  placeholder: ie.value,
2713
2713
  disabled: e.disabled
2714
2714
  }, t.$attrs, {
2715
- onVisibleChange: V,
2715
+ onVisibleChange: B,
2716
2716
  onEndReached: te
2717
2717
  }), {
2718
2718
  label: J((e) => [w("span", Hi, [e?.label?.flag ? (R(), C("img", {
@@ -2744,7 +2744,7 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2744
2744
  class: F(["async-select__inner-trigger", { "is-disabled": e.disabled }]),
2745
2745
  title: K(d)("components.asyncSelect.dialogSelect"),
2746
2746
  onMousedown: n[1] ||= fe(() => {}, ["prevent"]),
2747
- onClick: fe(ne, ["stop"])
2747
+ onClick: fe(H, ["stop"])
2748
2748
  }, [D(K(Z), null, {
2749
2749
  default: J(() => [w("img", {
2750
2750
  src: K(fn),
@@ -2754,7 +2754,7 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2754
2754
  })], 42, Xi)) : S("", !0),
2755
2755
  e.columns.length > 0 ? (R(), x(zi, {
2756
2756
  key: 1,
2757
- visible: H.value,
2757
+ visible: V.value,
2758
2758
  columns: e.columns,
2759
2759
  "model-value": e.modelValue,
2760
2760
  multiple: e.multiple,
@@ -2762,7 +2762,7 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2762
2762
  "row-key": e.valueKey,
2763
2763
  "dialog-title": ae.value,
2764
2764
  "per-page": e.perPage,
2765
- "onUpdate:visible": n[2] ||= (e) => H.value = e,
2765
+ "onUpdate:visible": n[2] ||= (e) => V.value = e,
2766
2766
  onConfirm: re
2767
2767
  }, null, 8, [
2768
2768
  "visible",
@@ -2783,9 +2783,9 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2783
2783
  __name: "index",
2784
2784
  setup(e) {
2785
2785
  let t = b(() => ta.theme.cardShadow);
2786
- return (e, n) => (R(), x(K(X), P({ class: "box-card" }, e.$attrs, { shadow: t.value }), T({ _: 2 }, [V(e.$slots, (t, n) => ({
2786
+ return (e, n) => (R(), x(K(X), P({ class: "box-card" }, e.$attrs, { shadow: t.value }), T({ _: 2 }, [B(e.$slots, (t, n) => ({
2787
2787
  name: n,
2788
- fn: J((t) => [H(e.$slots, n, I(A(t ?? {})), void 0, !0)])
2788
+ fn: J((t) => [V(e.$slots, n, I(A(t ?? {})), void 0, !0)])
2789
2789
  }))]), 1040, ["shadow"]));
2790
2790
  }
2791
2791
  }), [["__scopeId", "data-v-ed977a22"]]), ra = /* @__PURE__ */ new Map();
@@ -2898,7 +2898,23 @@ function Sa(e, t) {
2898
2898
  required: !0,
2899
2899
  message: xa(e),
2900
2900
  trigger: ga(e) ? "change" : "blur"
2901
- }), n;
2901
+ }), n.map((e) => {
2902
+ if (e.asyncValidator) {
2903
+ let n = e.asyncValidator;
2904
+ return {
2905
+ ...e,
2906
+ asyncValidator: (e, r, i, a, o) => n(e, r, i, t.values, o)
2907
+ };
2908
+ }
2909
+ if (e.validator) {
2910
+ let n = e.validator;
2911
+ return {
2912
+ ...e,
2913
+ validator: (e, r, i, a, o) => n(e, r, i, t.values, o)
2914
+ };
2915
+ }
2916
+ return e;
2917
+ });
2902
2918
  }
2903
2919
  // src/components/rich-text-editor/index.vue?vue&type=script&setup=true&lang.ts
2904
2920
  var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disabled"], Oa = { value: "" }, ka = ["title"], Aa = ["title"], ja = ["title"], Ma = ["title"], Na = ["title"], Pa = ["title"], Fa = ["disabled"], Ia = ["value"], La = ["disabled"], Ra = ["value"], za = ["disabled"], Ba = { value: "paragraph" }, Va = { value: "h1" }, Ha = { value: "h2" }, Ua = { value: "h3" }, Wa = { value: "blockquote" }, Ga = ["title"], Ka = ["title"], qa = ["title"], Ja = ["title"], Ya = ["title"], Xa = ["title"], Za = ["title"], Qa = ["title"], $a = ["title"], eo = ["title"], to = ["title"], no = ["disabled"], ro = { value: "" }, io = { value: "insertTable" }, ao = { value: "addColumnBefore" }, oo = { value: "addColumnAfter" }, so = { value: "deleteColumn" }, co = { value: "addRowBefore" }, lo = { value: "addRowAfter" }, uo = { value: "deleteRow" }, fo = { value: "deleteTable" }, po = ["title"], mo = ["title"], ho = ["title"], go = ["title"], _o = ["title"], vo = [
@@ -2949,7 +2965,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
2949
2965
  "20px",
2950
2966
  "24px",
2951
2967
  "32px"
2952
- ], s = B(r.modelValue), c = B(!1), l = B(!1), u = B(0), f = b(() => r.placeholder || d("components.richTextEditor.placeholder")), p = dn({
2968
+ ], s = z(r.modelValue), c = z(!1), l = z(!1), u = z(0), f = b(() => r.placeholder || d("components.richTextEditor.placeholder")), p = dn({
2953
2969
  content: r.modelValue,
2954
2970
  editable: r.editable,
2955
2971
  extensions: [
@@ -3070,14 +3086,14 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3070
3086
  function te() {
3071
3087
  c.value ? I() : s.value = p.value?.getHTML() ?? r.modelValue, c.value = !c.value;
3072
3088
  }
3073
- function z() {
3089
+ function ne() {
3074
3090
  if (m.value) return;
3075
3091
  let e = p.value?.getAttributes("link").href, t = window.prompt(d("components.richTextEditor.linkPrompt"), e ?? "");
3076
3092
  if (t === null) return;
3077
3093
  let n = t.trim();
3078
3094
  n ? p.value?.chain().focus().extendMarkRange("link").setLink({ href: re(n) }).run() : p.value?.chain().focus().extendMarkRange("link").unsetLink().run();
3079
3095
  }
3080
- function ne() {
3096
+ function H() {
3081
3097
  if (m.value) return;
3082
3098
  let e = window.prompt(d("components.richTextEditor.imagePrompt"));
3083
3099
  e && p.value?.chain().focus().setImage({ src: e.trim() }).run();
@@ -3154,7 +3170,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3154
3170
  w("button", {
3155
3171
  type: "button",
3156
3172
  title: K(d)("components.richTextEditor.insertImage"),
3157
- onClick: ne
3173
+ onClick: H
3158
3174
  }, [D(K(kt), { size: 17 })], 8, Ta),
3159
3175
  w("label", {
3160
3176
  class: "rich-text-select-wrap rich-text-select-wrap--line",
@@ -3215,7 +3231,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3215
3231
  "onUpdate:modelValue": n[6] ||= (e) => j.value = e,
3216
3232
  class: "rich-text-select rich-text-select--font",
3217
3233
  disabled: m.value
3218
- }, [(R(), C(y, null, V(a, (e) => w("option", {
3234
+ }, [(R(), C(y, null, B(a, (e) => w("option", {
3219
3235
  key: e.label,
3220
3236
  value: e.value
3221
3237
  }, W(e.label), 9, Ia)), 64))], 8, Fa), [[ce, j.value]]),
@@ -3223,7 +3239,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3223
3239
  "onUpdate:modelValue": n[7] ||= (e) => M.value = e,
3224
3240
  class: "rich-text-select rich-text-select--size",
3225
3241
  disabled: m.value
3226
- }, [(R(), C(y, null, V(o, (e) => w("option", {
3242
+ }, [(R(), C(y, null, B(o, (e) => w("option", {
3227
3243
  key: e,
3228
3244
  value: e
3229
3245
  }, W(e), 9, Ra)), 64))], 8, La), [[ce, M.value]]),
@@ -3295,7 +3311,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3295
3311
  w("button", {
3296
3312
  type: "button",
3297
3313
  title: K(d)("components.richTextEditor.insertLink"),
3298
- onClick: z
3314
+ onClick: ne
3299
3315
  }, [D(K(Pt), { size: 17 })], 8, eo),
3300
3316
  w("label", {
3301
3317
  class: "rich-text-select-wrap rich-text-select-wrap--table",
@@ -3347,8 +3363,8 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3347
3363
  key: 0,
3348
3364
  class: "rich-text-toolbar-extension",
3349
3365
  onMousedown: n[18] ||= fe(() => {}, ["stop"])
3350
- }, [H(t.$slots, "toolbar-append", {}, void 0, !0)], 32)) : S("", !0),
3351
- (R(!0), C(y, null, V(T.value, (e) => (R(), C(y, { key: e.key }, [e.component ? (R(), C("div", {
3366
+ }, [V(t.$slots, "toolbar-append", {}, void 0, !0)], 32)) : S("", !0),
3367
+ (R(!0), C(y, null, B(T.value, (e) => (R(), C(y, { key: e.key }, [e.component ? (R(), C("div", {
3352
3368
  key: 0,
3353
3369
  class: "rich-text-toolbar-extension",
3354
3370
  title: e.label,
@@ -3476,7 +3492,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3476
3492
  class: "translate-toolbar__language-select",
3477
3493
  "onUpdate:modelValue": n[0] ||= (e) => r("update:sourceLanguage", String(e))
3478
3494
  }, {
3479
- default: J(() => [(R(!0), C(y, null, V(e.languages, (e) => (R(), x(K($), {
3495
+ default: J(() => [(R(!0), C(y, null, B(e.languages, (e) => (R(), x(K($), {
3480
3496
  key: e.code,
3481
3497
  label: e.label,
3482
3498
  value: e.code
@@ -3498,7 +3514,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3498
3514
  class: "translate-toolbar__language-select",
3499
3515
  "onUpdate:modelValue": n[1] ||= (e) => r("update:targetLanguage", String(e))
3500
3516
  }, {
3501
- default: J(() => [(R(!0), C(y, null, V(i.value, (e) => (R(), x(K($), {
3517
+ default: J(() => [(R(!0), C(y, null, B(i.value, (e) => (R(), x(K($), {
3502
3518
  key: e.code,
3503
3519
  label: e.label,
3504
3520
  value: e.code
@@ -3558,7 +3574,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3558
3574
  class: "translate-toolbar__language-select",
3559
3575
  "onUpdate:modelValue": n[3] ||= (e) => r("update:sourceLanguage", String(e))
3560
3576
  }, {
3561
- default: J(() => [(R(!0), C(y, null, V(e.languages, (e) => (R(), x(K($), {
3577
+ default: J(() => [(R(!0), C(y, null, B(e.languages, (e) => (R(), x(K($), {
3562
3578
  key: e.code,
3563
3579
  label: e.label,
3564
3580
  value: e.code
@@ -3580,7 +3596,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3580
3596
  class: "translate-toolbar__language-select",
3581
3597
  "onUpdate:modelValue": n[4] ||= (e) => r("update:targetLanguage", String(e))
3582
3598
  }, {
3583
- default: J(() => [(R(!0), C(y, null, V(i.value, (e) => (R(), x(K($), {
3599
+ default: J(() => [(R(!0), C(y, null, B(i.value, (e) => (R(), x(K($), {
3584
3600
  key: e.code,
3585
3601
  label: e.label,
3586
3602
  value: e.code
@@ -3644,7 +3660,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3644
3660
  "rich-text",
3645
3661
  "text",
3646
3662
  "textarea"
3647
- ].includes(n.field.type) ? "tabs" : "grid")), s = b(() => i.value.find(({ code: e }) => e === l.value)?.label ?? ""), c = b(() => n.modelValue && typeof n.modelValue == "object" && !Array.isArray(n.modelValue) ? n.modelValue : typeof n.modelValue == "string" ? { [i.value[0]?.code ?? "en"]: n.modelValue } : {}), l = B("en"), u = B("en"), f = B("all"), p = B(!1), m = b(() => n.disabled || n.readonly || p.value);
3663
+ ].includes(n.field.type) ? "tabs" : "grid")), s = b(() => i.value.find(({ code: e }) => e === l.value)?.label ?? ""), c = b(() => n.modelValue && typeof n.modelValue == "object" && !Array.isArray(n.modelValue) ? n.modelValue : typeof n.modelValue == "string" ? { [i.value[0]?.code ?? "en"]: n.modelValue } : {}), l = z("en"), u = z("en"), f = z("all"), p = z(!1), m = b(() => n.disabled || n.readonly || p.value);
3648
3664
  q(a, (e) => {
3649
3665
  e.includes(l.value) || (l.value = e.includes("en") ? "en" : e[0] ?? ""), e.includes(u.value) || (u.value = e.includes("en") ? "en" : e[0] ?? ""), f.value === "all" || e.includes(f.value) && f.value !== u.value || (f.value = "all");
3650
3666
  }, { immediate: !0 });
@@ -3712,7 +3728,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3712
3728
  "onUpdate:modelValue": n[0] ||= (e) => l.value = e,
3713
3729
  class: "translate-field__tabs"
3714
3730
  }, {
3715
- default: J(() => [(R(!0), C(y, null, V(i.value, (e) => (R(), x(K(Le), {
3731
+ default: J(() => [(R(!0), C(y, null, B(i.value, (e) => (R(), x(K(Le), {
3716
3732
  key: e.code,
3717
3733
  label: e.label,
3718
3734
  name: e.code
@@ -3766,7 +3782,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3766
3782
  "rows",
3767
3783
  "placeholder",
3768
3784
  "disabled"
3769
- ]))], 64)) : (R(), C("div", jo, [(R(!0), C(y, null, V(i.value, (t) => (R(), C("div", {
3785
+ ]))], 64)) : (R(), C("div", jo, [(R(!0), C(y, null, B(i.value, (t) => (R(), C("div", {
3770
3786
  key: t.code,
3771
3787
  class: "translate-field__entry"
3772
3788
  }, [w("label", {
@@ -3864,12 +3880,12 @@ var Fo = {
3864
3880
  },
3865
3881
  emits: ["update:modelValue"],
3866
3882
  setup(e, { emit: t }) {
3867
- let r = e, i = t, a = O(() => Promise.resolve().then(() => $i)), o = O(() => import("./file-upload-BkRSvBlx.js")), s = O(() => import("./picture-upload-uc9FsqEo.js")), c = O(() => Promise.resolve().then(() => So)), l = b(() => r.context ?? {
3883
+ let r = e, i = t, a = O(() => Promise.resolve().then(() => $i)), o = O(() => import("./file-upload-CBlPpZss.js")), s = O(() => import("./picture-upload-CDuDFsAh.js")), c = O(() => Promise.resolve().then(() => So)), l = b(() => r.context ?? {
3868
3884
  mode: "create",
3869
3885
  values: {}
3870
3886
  }), u = Po(() => r.field, l), d = b(() => ({
3871
3887
  ...l.value,
3872
- updateValue: z
3888
+ updateValue: H
3873
3889
  })), f = b(() => typeof r.field.props == "function" ? r.field.props(d.value) : r.field.props), p = b(() => Sa(r.field, l.value)), m = b(() => xa(r.field)), h = b(() => r.field.copyable ?? !!r.field.readonly), g = b(() => !!r.field.translateConfig && [
3874
3890
  "rich-text",
3875
3891
  "text",
@@ -3930,7 +3946,7 @@ var Fo = {
3930
3946
  } : {};
3931
3947
  }), N = b(() => {
3932
3948
  let e = j.value;
3933
- return e ? { [e.updateEvent ?? `update:${e.modelProp ?? "modelValue"}`]: (t) => z(e.valueExtractor?.(t) ?? t) } : {};
3949
+ return e ? { [e.updateEvent ?? `update:${e.modelProp ?? "modelValue"}`]: (t) => H(e.valueExtractor?.(t) ?? t) } : {};
3934
3950
  }), ee = b(() => ({
3935
3951
  ...f.value,
3936
3952
  editable: !r.disabled && !r.readonly && f.value?.editable !== !1,
@@ -3941,6 +3957,9 @@ var Fo = {
3941
3957
  mode: l.value.mode
3942
3958
  }
3943
3959
  })), I = b(() => r.field.apiOptions), L = b(() => I.value ? aa(I.value.entityKey) : void 0), te = b(() => {
3960
+ let e = I.value?.params;
3961
+ return typeof e == "function" ? e(l.value) : e;
3962
+ }), ne = b(() => JSON.stringify(te.value ?? {})), z = b(() => {
3944
3963
  let e = L.value, t = I.value;
3945
3964
  return !e || !t ? null : {
3946
3965
  columns: e.columns ?? [],
@@ -3951,22 +3970,20 @@ var Fo = {
3951
3970
  valueKey: t.valueKey ?? e.valueKey
3952
3971
  };
3953
3972
  });
3954
- function z(e) {
3973
+ function H(e) {
3955
3974
  i("update:modelValue", e);
3956
3975
  }
3957
- function B(e) {
3976
+ function re(e) {
3958
3977
  let t = L.value;
3959
- if (!t) return Promise.resolve({
3978
+ return t ? t.fetch({
3979
+ ...e,
3980
+ params: te.value
3981
+ }) : Promise.resolve({
3960
3982
  items: [],
3961
3983
  total: 0
3962
3984
  });
3963
- let n = I.value?.params;
3964
- return t.fetch({
3965
- ...e,
3966
- params: typeof n == "function" ? n(l.value) : n
3967
- });
3968
3985
  }
3969
- function ne(e) {
3986
+ function ie(e) {
3970
3987
  let t = u.value.map((e) => ({
3971
3988
  label: e.label,
3972
3989
  value: e.value,
@@ -4000,7 +4017,7 @@ var Fo = {
4000
4017
  "model-value": e.modelValue,
4001
4018
  placeholder: m.value,
4002
4019
  readonly: e.readonly,
4003
- "onUpdate:modelValue": z
4020
+ "onUpdate:modelValue": H
4004
4021
  }, null, 8, [
4005
4022
  "config",
4006
4023
  "context",
@@ -4015,7 +4032,7 @@ var Fo = {
4015
4032
  key: 1,
4016
4033
  "model-value": e.modelValue,
4017
4034
  placeholder: m.value
4018
- }, ee.value), null, 16, ["model-value", "placeholder"])) : e.readonly && e.field.optionSource === "dict" && e.field.dictCode ? (R(), C("span", Fo, [(R(!0), C(y, null, V(T.value, (t, n) => (R(), x(Ir, {
4035
+ }, ee.value), null, 16, ["model-value", "placeholder"])) : e.readonly && e.field.optionSource === "dict" && e.field.dictCode ? (R(), C("span", Fo, [(R(!0), C(y, null, B(T.value, (t, n) => (R(), x(Ir, {
4019
4036
  key: `${e.field.prop}-${n}`,
4020
4037
  code: e.field.dictCode,
4021
4038
  value: t
@@ -4037,7 +4054,7 @@ var Fo = {
4037
4054
  placeholder: e.field.placeholder,
4038
4055
  disabled: e.disabled || e.readonly,
4039
4056
  "show-remove": !e.readonly
4040
- }, f.value, { "onUpdate:modelValue": z }), null, 16, [
4057
+ }, f.value, { "onUpdate:modelValue": H }), null, 16, [
4041
4058
  "model-value",
4042
4059
  "placeholder",
4043
4060
  "disabled",
@@ -4047,7 +4064,7 @@ var Fo = {
4047
4064
  "model-value": e.modelValue,
4048
4065
  disabled: e.disabled || e.readonly,
4049
4066
  "show-remove": !e.readonly
4050
- }, f.value, { "onUpdate:modelValue": z }), null, 16, [
4067
+ }, f.value, { "onUpdate:modelValue": H }), null, 16, [
4051
4068
  "model-value",
4052
4069
  "disabled",
4053
4070
  "show-remove"
@@ -4057,23 +4074,23 @@ var Fo = {
4057
4074
  placeholder: e.field.placeholder,
4058
4075
  disabled: e.disabled || e.readonly,
4059
4076
  "show-remove": !e.readonly
4060
- }, f.value, { "onUpdate:modelValue": z }), null, 16, [
4077
+ }, f.value, { "onUpdate:modelValue": H }), null, 16, [
4061
4078
  "model-value",
4062
4079
  "placeholder",
4063
4080
  "disabled",
4064
4081
  "show-remove"
4065
- ])) : e.field.type === "slot" ? H(t.$slots, "default", {
4082
+ ])) : e.field.type === "slot" ? V(t.$slots, "default", {
4066
4083
  field: e.field,
4067
4084
  value: e.modelValue,
4068
4085
  disabled: e.disabled,
4069
- updateValue: z
4086
+ updateValue: H
4070
4087
  }, void 0, !0, 10) : e.field.type === "text" ? (R(), x(K(Te), P({
4071
4088
  key: 11,
4072
4089
  "model-value": e.modelValue,
4073
4090
  placeholder: m.value,
4074
4091
  disabled: e.disabled,
4075
4092
  clearable: ""
4076
- }, f.value, { "onUpdate:modelValue": z }), null, 16, [
4093
+ }, f.value, { "onUpdate:modelValue": H }), null, 16, [
4077
4094
  "model-value",
4078
4095
  "placeholder",
4079
4096
  "disabled"
@@ -4084,7 +4101,7 @@ var Fo = {
4084
4101
  "model-value": e.modelValue,
4085
4102
  placeholder: m.value,
4086
4103
  disabled: e.disabled
4087
- }, f.value, { "onUpdate:modelValue": z }), null, 16, [
4104
+ }, f.value, { "onUpdate:modelValue": H }), null, 16, [
4088
4105
  "model-value",
4089
4106
  "placeholder",
4090
4107
  "disabled"
@@ -4092,12 +4109,12 @@ var Fo = {
4092
4109
  key: 13,
4093
4110
  "model-value": e.modelValue,
4094
4111
  placeholder: m.value
4095
- }, ee.value, { "onUpdate:modelValue": z }), null, 16, ["model-value", "placeholder"])) : e.field.type === "number" ? (R(), x(K(Ee), P({
4112
+ }, ee.value, { "onUpdate:modelValue": H }), null, 16, ["model-value", "placeholder"])) : e.field.type === "number" ? (R(), x(K(Ee), P({
4096
4113
  key: 14,
4097
4114
  "model-value": e.modelValue,
4098
4115
  placeholder: m.value,
4099
4116
  disabled: e.disabled
4100
- }, f.value, { "onUpdate:modelValue": z }), null, 16, [
4117
+ }, f.value, { "onUpdate:modelValue": H }), null, 16, [
4101
4118
  "model-value",
4102
4119
  "placeholder",
4103
4120
  "disabled"
@@ -4107,7 +4124,7 @@ var Fo = {
4107
4124
  placeholder: m.value,
4108
4125
  disabled: e.disabled,
4109
4126
  filterable: ""
4110
- }, f.value, { "onUpdate:modelValue": z }), null, 16, [
4127
+ }, f.value, { "onUpdate:modelValue": H }), null, 16, [
4111
4128
  "model-value",
4112
4129
  "placeholder",
4113
4130
  "disabled"
@@ -4116,10 +4133,10 @@ var Fo = {
4116
4133
  "model-value": e.modelValue,
4117
4134
  placeholder: m.value,
4118
4135
  disabled: e.disabled,
4119
- fetcher: ne,
4136
+ fetcher: ie,
4120
4137
  "label-key": "label",
4121
4138
  "value-key": "value"
4122
- }, f.value, { "onUpdate:modelValue": z }), null, 16, [
4139
+ }, f.value, { "onUpdate:modelValue": H }), null, 16, [
4123
4140
  "model-value",
4124
4141
  "placeholder",
4125
4142
  "disabled"
@@ -4127,8 +4144,8 @@ var Fo = {
4127
4144
  key: 17,
4128
4145
  "model-value": e.modelValue,
4129
4146
  disabled: e.disabled
4130
- }, f.value, { "onUpdate:modelValue": z }), {
4131
- default: J(() => [(R(!0), C(y, null, V(K(u), (e) => (R(), x(K(je), {
4147
+ }, f.value, { "onUpdate:modelValue": H }), {
4148
+ default: J(() => [(R(!0), C(y, null, B(K(u), (e) => (R(), x(K(je), {
4132
4149
  key: e.value,
4133
4150
  value: e.value
4134
4151
  }, {
@@ -4140,8 +4157,8 @@ var Fo = {
4140
4157
  key: 18,
4141
4158
  "model-value": e.modelValue,
4142
4159
  disabled: e.disabled
4143
- }, f.value, { "onUpdate:modelValue": z }), {
4144
- default: J(() => [(R(!0), C(y, null, V(K(u), (e) => (R(), x(K(me), {
4160
+ }, f.value, { "onUpdate:modelValue": H }), {
4161
+ default: J(() => [(R(!0), C(y, null, B(K(u), (e) => (R(), x(K(me), {
4145
4162
  key: e.value,
4146
4163
  value: e.value
4147
4164
  }, {
@@ -4153,30 +4170,30 @@ var Fo = {
4153
4170
  key: 19,
4154
4171
  "model-value": e.modelValue,
4155
4172
  disabled: e.disabled
4156
- }, f.value, { "onUpdate:modelValue": z }), null, 16, ["model-value", "disabled"])) : e.field.type === "date" || e.field.type === "datetime" ? (R(), x(K(_e), P({
4173
+ }, f.value, { "onUpdate:modelValue": H }), null, 16, ["model-value", "disabled"])) : e.field.type === "date" || e.field.type === "datetime" ? (R(), x(K(_e), P({
4157
4174
  key: 20,
4158
4175
  type: e.field.type,
4159
4176
  "model-value": e.modelValue,
4160
4177
  placeholder: m.value,
4161
4178
  disabled: e.disabled,
4162
4179
  "value-format": e.field.type === "date" ? "YYYY-MM-DD" : "YYYY-MM-DD HH:mm:ss"
4163
- }, f.value, { "onUpdate:modelValue": z }), null, 16, [
4180
+ }, f.value, { "onUpdate:modelValue": H }), null, 16, [
4164
4181
  "type",
4165
4182
  "model-value",
4166
4183
  "placeholder",
4167
4184
  "disabled",
4168
4185
  "value-format"
4169
- ])) : e.field.type === "async-select" && (te.value || e.field.optionSource === "dict") ? (R(), x(K(a), P({
4170
- key: 21,
4186
+ ])) : e.field.type === "async-select" && (z.value || e.field.optionSource === "dict") ? (R(), x(K(a), P({
4187
+ key: ne.value,
4171
4188
  "model-value": e.modelValue,
4172
4189
  placeholder: m.value,
4173
4190
  disabled: e.disabled,
4174
- fetcher: L.value ? B : void 0,
4191
+ fetcher: L.value ? re : void 0,
4175
4192
  options: L.value ? void 0 : K(u)
4176
4193
  }, {
4177
- ...te.value,
4194
+ ...z.value,
4178
4195
  ...f.value
4179
- }, { "onUpdate:modelValue": z }), null, 16, [
4196
+ }, { "onUpdate:modelValue": H }), null, 16, [
4180
4197
  "model-value",
4181
4198
  "placeholder",
4182
4199
  "disabled",
@@ -4195,7 +4212,7 @@ var Fo = {
4195
4212
  "rules"
4196
4213
  ]));
4197
4214
  }
4198
- }), [["__scopeId", "data-v-7c6ce428"]]), Ro = { class: "schema-form-root" }, zo = {
4215
+ }), [["__scopeId", "data-v-e1d8b24d"]]), Ro = { class: "schema-form-root" }, zo = {
4199
4216
  key: 0,
4200
4217
  class: "schema-form__row-break",
4201
4218
  "aria-hidden": "true"
@@ -4238,7 +4255,7 @@ var Fo = {
4238
4255
  }),
4239
4256
  emits: ["update:modelValue"],
4240
4257
  setup(e, { expose: t }) {
4241
- let n = e, r = oe(e, "modelValue"), i = B(), a = b(() => n.schema), o = b(() => ({
4258
+ let n = e, r = oe(e, "modelValue"), i = z(), a = b(() => n.schema), o = b(() => ({
4242
4259
  mode: n.mode,
4243
4260
  values: r.value ?? {}
4244
4261
  })), s = b(() => a.value.filter((e) => ba(e, o.value) ? !1 : !_a(e) || c(e).length > 0));
@@ -4294,8 +4311,9 @@ var Fo = {
4294
4311
  if (!i.value) return !1;
4295
4312
  try {
4296
4313
  return await i.value.validate(), !0;
4297
- } catch {
4298
- return !1;
4314
+ } catch (e) {
4315
+ let t = new Set(e && typeof e == "object" ? Object.keys(e) : []), n = l.value.find((e) => t.has(e.prop))?.prop ?? t.values().next().value;
4316
+ return n && (await ee(), i.value?.scrollToField(n)), !1;
4299
4317
  }
4300
4318
  }
4301
4319
  return t({
@@ -4315,7 +4333,7 @@ var Fo = {
4315
4333
  "label-position": f.value
4316
4334
  }, {
4317
4335
  default: J(() => [D(K(Ne), { gutter: 16 }, {
4318
- default: J(() => [(R(!0), C(y, null, V(s.value, (e, n) => (R(), C(y, { key: h(e, n) }, [e.newRow ? (R(), C("div", zo)) : S("", !0), D(K(ge), {
4336
+ default: J(() => [(R(!0), C(y, null, B(s.value, (e, n) => (R(), C(y, { key: h(e, n) }, [e.newRow ? (R(), C("div", zo)) : S("", !0), D(K(ge), {
4319
4337
  span: e.span ?? (e.type === "group" ? 24 : u.value),
4320
4338
  class: F({
4321
4339
  "schema-form-col--anchor-group": e.type === "group" && e.anchor,
@@ -4333,7 +4351,7 @@ var Fo = {
4333
4351
  w("span", Ho, [w("strong", null, W(e.label), 1), e.description ? (R(), C("small", Uo, W(e.description), 1)) : S("", !0)]),
4334
4352
  _(e) ? (R(), C("span", Wo, " 为必填项 ")) : S("", !0)
4335
4353
  ])) : (R(), C("span", Go, W(e.label), 1))]),
4336
- default: J(() => [w("div", { class: F(["schema-form-group__body", { "schema-form-group__body--grid": e.anchor }]) }, [(R(!0), C(y, null, V(c(e), (n) => (R(), x(Lo, {
4354
+ default: J(() => [w("div", { class: F(["schema-form-group__body", { "schema-form-group__body--grid": e.anchor }]) }, [(R(!0), C(y, null, B(c(e), (n) => (R(), x(Lo, {
4337
4355
  key: n.prop,
4338
4356
  style: L(g(n, e.anchor)),
4339
4357
  "hide-label": !e.anchor,
@@ -4345,7 +4363,7 @@ var Fo = {
4345
4363
  readonly: E(n),
4346
4364
  "onUpdate:modelValue": (e) => O(n.prop, e)
4347
4365
  }, {
4348
- default: J((e) => [H(t.$slots, n.prop, P({ ref_for: !0 }, e), void 0, !0)]),
4366
+ default: J((e) => [V(t.$slots, n.prop, P({ ref_for: !0 }, e), void 0, !0)]),
4349
4367
  _: 2
4350
4368
  }, 1032, [
4351
4369
  "style",
@@ -4373,7 +4391,7 @@ var Fo = {
4373
4391
  readonly: E(e),
4374
4392
  "onUpdate:modelValue": (t) => O(e.prop, t)
4375
4393
  }, {
4376
- default: J((n) => [H(t.$slots, e.prop, P({ ref_for: !0 }, n), void 0, !0)]),
4394
+ default: J((n) => [V(t.$slots, e.prop, P({ ref_for: !0 }, n), void 0, !0)]),
4377
4395
  _: 2
4378
4396
  }, 1032, [
4379
4397
  "field",
@@ -4398,7 +4416,7 @@ var Fo = {
4398
4416
  ])), [[l, e.loading]])]);
4399
4417
  };
4400
4418
  }
4401
- }), [["__scopeId", "data-v-38d44833"]]), Jo = { class: "drawer-form-page__header" }, Yo = { class: "drawer-form-page__header-main" }, Xo = { class: "drawer-form-page__title-stack" }, Zo = { class: "drawer-form-page__title" }, Qo = { class: "drawer-form-page__header-actions" }, $o = { class: "drawer-form-page__status" }, es = {
4419
+ }), [["__scopeId", "data-v-4dad298a"]]), Jo = { class: "drawer-form-page__header" }, Yo = { class: "drawer-form-page__header-main" }, Xo = { class: "drawer-form-page__title-stack" }, Zo = { class: "drawer-form-page__title" }, Qo = { class: "drawer-form-page__header-actions" }, $o = { class: "drawer-form-page__status" }, es = {
4402
4420
  key: 0,
4403
4421
  class: "drawer-form-page__anchors",
4404
4422
  "aria-label": "表单分区"
@@ -4486,7 +4504,7 @@ var Fo = {
4486
4504
  "closed"
4487
4505
  ],
4488
4506
  setup(e, { expose: t, emit: n }) {
4489
- let r = e, i = n, a = B(0), o = se(), s = B(), c = B(), l = B(r.fullscreen), u = b({
4507
+ let r = e, i = n, a = z(0), o = se(), s = z(), c = z(), l = z(r.fullscreen), u = b({
4490
4508
  get: () => r.modelValue,
4491
4509
  set: (e) => i("update:modelValue", e)
4492
4510
  }), d = b({
@@ -4531,10 +4549,10 @@ var Fo = {
4531
4549
  async function te() {
4532
4550
  return r.mode === "view" || r.submitting || r.loading || !await N() ? !1 : (i("submit", L()), !0);
4533
4551
  }
4534
- function z() {
4552
+ function ne() {
4535
4553
  s.value?.resetFields();
4536
4554
  }
4537
- function ne() {
4555
+ function H() {
4538
4556
  i("closed");
4539
4557
  }
4540
4558
  function U() {
@@ -4553,7 +4571,7 @@ var Fo = {
4553
4571
  return t({
4554
4572
  close: j,
4555
4573
  getValues: L,
4556
- resetFields: z,
4574
+ resetFields: ne,
4557
4575
  submit: te,
4558
4576
  toggleFullscreen: O,
4559
4577
  validate: N
@@ -4573,9 +4591,9 @@ var Fo = {
4573
4591
  "lock-scroll": r.lockScroll,
4574
4592
  class: ["drawer-form-page", { "drawer-form-page--fullscreen": f.value }],
4575
4593
  onOpen: U,
4576
- onClosed: ne
4594
+ onClosed: H
4577
4595
  }), T({
4578
- header: J(() => [H(e.$slots, "header", {
4596
+ header: J(() => [V(e.$slots, "header", {
4579
4597
  fullscreen: f.value,
4580
4598
  title: r.title,
4581
4599
  toggleFullscreen: O
@@ -4610,7 +4628,7 @@ var Fo = {
4610
4628
  _: 1
4611
4629
  })
4612
4630
  ]),
4613
- v.value.length ? (R(), C("nav", es, [(R(!0), C(y, null, V(v.value, ({ entry: e, index: t }) => (R(), C("button", {
4631
+ v.value.length ? (R(), C("nav", es, [(R(!0), C(y, null, B(v.value, ({ entry: e, index: t }) => (R(), C("button", {
4614
4632
  key: t,
4615
4633
  type: "button",
4616
4634
  class: F(["drawer-form-page__anchor", { "is-active": a.value === t }]),
@@ -4635,9 +4653,9 @@ var Fo = {
4635
4653
  columns: m.value,
4636
4654
  disabled: r.disabled,
4637
4655
  loading: r.loading
4638
- }), T({ _: 2 }, [V(_.value, (t) => ({
4656
+ }), T({ _: 2 }, [B(_.value, (t) => ({
4639
4657
  name: t,
4640
- fn: J((n) => [H(e.$slots, t, I(A(n)), void 0, !0)])
4658
+ fn: J((n) => [V(e.$slots, t, I(A(n)), void 0, !0)])
4641
4659
  }))]), 1040, [
4642
4660
  "modelValue",
4643
4661
  "schema",
@@ -4645,11 +4663,11 @@ var Fo = {
4645
4663
  "columns",
4646
4664
  "disabled",
4647
4665
  "loading"
4648
- ]), H(e.$slots, "default", {}, void 0, !0)], 32)), [[n, r.loading]])]),
4666
+ ]), V(e.$slots, "default", {}, void 0, !0)], 32)), [[n, r.loading]])]),
4649
4667
  _: 2
4650
4668
  }, [r.showFooter ? {
4651
4669
  name: "footer",
4652
- fn: J(() => [H(e.$slots, "footer", {
4670
+ fn: J(() => [V(e.$slots, "footer", {
4653
4671
  cancel: M,
4654
4672
  submit: te,
4655
4673
  submitting: r.submitting
@@ -4687,7 +4705,7 @@ var Fo = {
4687
4705
  }), [["__scopeId", "data-v-e07a25ed"]]);
4688
4706
  // src/components/drawer-form-page/use-drawer-form-page.ts
4689
4707
  function is(e = {}) {
4690
- let { closeOnSubmit: t = !0, initialValues: n, onCancel: r, onOpenChange: i, onSubmit: a, values: o, ...s } = e, c = B(!1), l = B(as(o ?? n ?? {})), u = z({ ...s }), d = B(), f;
4708
+ let { closeOnSubmit: t = !0, initialValues: n, onCancel: r, onOpenChange: i, onSubmit: a, values: o, ...s } = e, c = z(!1), l = z(as(o ?? n ?? {})), u = ne({ ...s }), d = z(), f;
4691
4709
  function p(e = {}) {
4692
4710
  let { values: t, ...r } = e;
4693
4711
  Object.assign(u, r), l.value = as(t ?? n ?? {}), c.value = !0;
@@ -4792,7 +4810,7 @@ var os = {
4792
4810
  }),
4793
4811
  emits: /*@__PURE__*/ N(["reset", "search"], ["update:modelValue"]),
4794
4812
  setup(e, { expose: t, emit: n }) {
4795
- let r = e, i = n, a = oe(e, "modelValue"), o = se(), s = B(!1), c = B(), l = b(() => r.schema), u = b(() => ({
4813
+ let r = e, i = n, a = oe(e, "modelValue"), o = se(), s = z(!1), c = z(), l = b(() => r.schema), u = b(() => ({
4796
4814
  mode: r.mode,
4797
4815
  values: a.value ?? {}
4798
4816
  })), d = b(() => l.value.filter((e) => ba(e, u.value) ? !1 : !_a(e) || g(e).length > 0)), f = b(() => Math.max(r.columns * r.collapsedRows, r.columns)), p = b(() => r.showActions && d.value.length > f.value), m = b(() => !p.value || s.value ? d.value : d.value.slice(0, f.value)), h = b(() => Object.keys(o));
@@ -4841,9 +4859,9 @@ var os = {
4841
4859
  "label-position": "left",
4842
4860
  "label-width": e.labelWidth,
4843
4861
  "item-gap": 12
4844
- }, T({ _: 2 }, [V(h.value, (e) => ({
4862
+ }, T({ _: 2 }, [B(h.value, (e) => ({
4845
4863
  name: e,
4846
- fn: J((n) => [H(t.$slots, e, I(A(n)), void 0, !0)])
4864
+ fn: J((n) => [V(t.$slots, e, I(A(n)), void 0, !0)])
4847
4865
  }))]), 1032, [
4848
4866
  "modelValue",
4849
4867
  "columns",
@@ -4945,9 +4963,9 @@ var os = {
4945
4963
  "toolbarAction"
4946
4964
  ],
4947
4965
  setup(e, { expose: t, emit: n }) {
4948
- let r = e, i = n, a = se(), o = B(), s = B("create"), c = B({}), l = B(0), u = B([]), f = B({}), p = B({}), m = b(() => r.fields.filter((e) => e.form !== !1)), h = b(() => {
4966
+ let r = e, i = n, a = se(), o = z(), s = z("create"), c = z({}), l = z(0), u = z([]), f = z({}), p = z({}), m = b(() => r.fields.filter((e) => e.form !== !1)), h = b(() => {
4949
4967
  let e = r.searchFormProps?.schema;
4950
- return e?.length ? e : r.fields.filter((e) => e.search).map((e) => z(e)).filter((e) => !!e);
4968
+ return e?.length ? e : r.fields.filter((e) => e.search).map((e) => ne(e)).filter((e) => !!e);
4951
4969
  }), g = b(() => h.value.length > 0), _ = b(() => r.fields.filter((e) => e.table !== !1).filter((e) => e.type !== "group").map((e) => {
4952
4970
  let t = typeof e.table == "object" ? e.table : {}, n = t.type ?? (e.type === "picture" || e.type === "file" ? e.type : void 0), r = t.valueType ?? (e.type === "date" || e.type === "datetime" ? e.type : void 0);
4953
4971
  return {
@@ -5005,10 +5023,10 @@ var os = {
5005
5023
  "tip",
5006
5024
  "type"
5007
5025
  ]);
5008
- function z(e) {
5009
- return e.type === "group" ? ne(e) : U(e);
5010
- }
5011
5026
  function ne(e) {
5027
+ return e.type === "group" ? H(e) : U(e);
5028
+ }
5029
+ function H(e) {
5012
5030
  let t = e.search;
5013
5031
  if (!t) return null;
5014
5032
  let n = typeof t == "object" ? t : {}, r = Array.isArray(n.children) ? n.children : e.children;
@@ -5243,8 +5261,8 @@ var os = {
5243
5261
  let n = re("access");
5244
5262
  return R(), C(y, null, [D(na, null, {
5245
5263
  default: J(() => [
5246
- H(e.$slots, "prepend", {}, void 0, !0),
5247
- e.$slots.search ? H(e.$slots, "search", {
5264
+ V(e.$slots, "prepend", {}, void 0, !0),
5265
+ e.$slots.search ? V(e.$slots, "search", {
5248
5266
  values: f.value,
5249
5267
  search: q,
5250
5268
  reset: de
@@ -5257,9 +5275,9 @@ var os = {
5257
5275
  schema: h.value,
5258
5276
  onSearch: ce,
5259
5277
  onReset: le
5260
- }), T({ _: 2 }, [V(w.value, (t) => ({
5278
+ }), T({ _: 2 }, [B(w.value, (t) => ({
5261
5279
  name: t,
5262
- fn: J((n) => [H(e.$slots, t, I(A(n)), void 0, !0)])
5280
+ fn: J((n) => [V(e.$slots, t, I(A(n)), void 0, !0)])
5263
5281
  }))]), 1040, ["modelValue", "schema"])) : S("", !0),
5264
5282
  D(Pi, P({
5265
5283
  ref_key: "tableRef",
@@ -5276,7 +5294,7 @@ var os = {
5276
5294
  onHandleAction: Oe,
5277
5295
  onRowSort: t[2] ||= (e) => i("rowSort", e)
5278
5296
  }), T({
5279
- buttons: J(() => [H(e.$slots, "buttons", { selectedRows: u.value }, () => [
5297
+ buttons: J(() => [V(e.$slots, "buttons", { selectedRows: u.value }, () => [
5280
5298
  r.onCreate ? ue((R(), x(K(Y), {
5281
5299
  key: 0,
5282
5300
  type: "primary",
@@ -5311,9 +5329,9 @@ var os = {
5311
5329
  D(K($))
5312
5330
  ], !0)]),
5313
5331
  _: 2
5314
- }, [V(v.value, (t) => ({
5332
+ }, [B(v.value, (t) => ({
5315
5333
  name: t,
5316
- fn: J((n) => [H(e.$slots, t, I(A(n)), void 0, !0)])
5334
+ fn: J((n) => [V(e.$slots, t, I(A(n)), void 0, !0)])
5317
5335
  }))]), 1040, [
5318
5336
  "row-key",
5319
5337
  "columns",
@@ -5326,21 +5344,21 @@ var os = {
5326
5344
  ]),
5327
5345
  _: 3
5328
5346
  }), D(K(fe), null, T({
5329
- default: J(() => [e.$slots.default ? H(e.$slots, "default", {}, void 0, !0, 0) : S("", !0)]),
5347
+ default: J(() => [e.$slots.default ? V(e.$slots, "default", {}, void 0, !0, 0) : S("", !0)]),
5330
5348
  _: 2
5331
5349
  }, [
5332
- V(w.value, (t) => ({
5350
+ B(w.value, (t) => ({
5333
5351
  name: t,
5334
- fn: J((n) => [H(e.$slots, t, I(A(n)), void 0, !0)])
5352
+ fn: J((n) => [V(e.$slots, t, I(A(n)), void 0, !0)])
5335
5353
  })),
5336
5354
  e.$slots.header ? {
5337
5355
  name: "header",
5338
- fn: J((t) => [H(e.$slots, "header", I(A(t)), void 0, !0)]),
5356
+ fn: J((t) => [V(e.$slots, "header", I(A(t)), void 0, !0)]),
5339
5357
  key: "0"
5340
5358
  } : void 0,
5341
5359
  e.$slots.footer ? {
5342
5360
  name: "footer",
5343
- fn: J((t) => [H(e.$slots, "footer", I(A(t)), void 0, !0)]),
5361
+ fn: J((t) => [V(e.$slots, "footer", I(A(t)), void 0, !0)]),
5344
5362
  key: "1"
5345
5363
  } : void 0
5346
5364
  ]), 1024)], 64);
@@ -5378,7 +5396,7 @@ var os = {
5378
5396
  }),
5379
5397
  emits: ["update:modelValue"],
5380
5398
  setup(e) {
5381
- let t = e, n = oe(e, "modelValue"), { resolveImageUrl: r } = p(), i = B(!1), a = B(!1), o = b(() => r(n.value)), s = b(() => ({
5399
+ let t = e, n = oe(e, "modelValue"), { resolveImageUrl: r } = p(), i = z(!1), a = z(!1), o = b(() => r(n.value)), s = b(() => ({
5382
5400
  width: `${t.width}px`,
5383
5401
  height: `${t.height}px`
5384
5402
  }));