@sunny-base-web/ui 0.3.5 → 0.3.7

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/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { getCurrentInstance as dt, inject as Pe, defineComponent as O, computed as C, openBlock as w, createElementBlock as N, normalizeStyle as se, normalizeClass as J, createElementVNode as A, useAttrs as _e, ref as j, createBlock as Q, unref as c, mergeProps as T, withModifiers as ve, withCtx as I, renderSlot as z, createTextVNode as _, toDisplayString as R, createCommentVNode as q, createVNode as k, reactive as ft, h as Ve, shallowRef as ot, onErrorCaptured as Dt, markRaw as zt, createStaticVNode as Ut, resolveDynamicComponent as $e, normalizeProps as ne, watch as X, withDirectives as qe, vShow as nt, Fragment as le, renderList as Z, resolveComponent as re, createSlots as ie, guardReactiveProps as ae, onMounted as Se, isRef as ye, toRaw as ue, provide as Re, useSlots as we, defineAsyncComponent as $t, nextTick as me, onBeforeUnmount as pt, withKeys as mt, isReactive as qt, vModelText as Wt } from "vue";
1
+ import { getCurrentInstance as dt, inject as Pe, defineComponent as O, computed as C, openBlock as w, createElementBlock as N, normalizeStyle as se, normalizeClass as J, createElementVNode as A, useAttrs as _e, ref as j, createBlock as Q, unref as c, mergeProps as T, withModifiers as ve, withCtx as I, renderSlot as z, createTextVNode as _, toDisplayString as R, createCommentVNode as $, createVNode as x, reactive as ft, h as Ve, shallowRef as ot, onErrorCaptured as Dt, markRaw as zt, createStaticVNode as Ut, resolveDynamicComponent as $e, normalizeProps as ne, watch as X, withDirectives as qe, vShow as nt, Fragment as le, renderList as Z, resolveComponent as re, createSlots as ie, guardReactiveProps as ae, onMounted as Se, isRef as ye, toRaw as ue, provide as Re, useSlots as we, defineAsyncComponent as $t, nextTick as me, onBeforeUnmount as pt, withKeys as mt, isReactive as qt, vModelText as Wt } from "vue";
2
2
  import { Modal as We, Button as he, Tooltip as ht, Upload as Ye, Checkbox as Ie, Progress as Yt, Message as K, Select as Ce, Option as gt, TimePicker as rt, DatePicker as Je, Switch as Ge, Radio as st, TreeSelect as Jt, Cascader as Gt, Slider as Kt, Rate as Ht, RangePicker as vt, RadioGroup as _t, CheckboxGroup as Xt, Textarea as yt, InputNumber as Xe, InputPassword as Zt, Input as Fe, MonthPicker as eo, Popover as to, WeekPicker as oo, YearPicker as no, Tree as ro, Dropdown as so, Doption as lo, Pagination as ao } from "@arco-design/web-vue";
3
3
  import { useI18n as io, $t as Y } from "@sunny-base-web/locales";
4
4
  import { IconifyIcon as co, IconDefault as uo } from "@sunny-base-web/icons";
5
5
  import { isString as Ae, isHttpUrl as fo, isObject as ee, isFunction as oe, cn as Ze, cloneDeep as Ee, is as po, isBoolean as Te, get as lt, isEqual as mo, set as ho } from "@sunny-base-web/utils";
6
- import { patterns as Pl, startProgress as Vl, stopProgress as Rl } from "@sunny-base-web/utils";
6
+ import { patterns as Vl, startProgress as Rl, stopProgress as Fl } from "@sunny-base-web/utils";
7
7
  import { ScrollAreaRoot as go, ScrollAreaViewport as vo, ScrollAreaCorner as yo, ScrollAreaScrollbar as bo, ScrollAreaThumb as Ao } from "reka-ui";
8
8
  import ge from "axios";
9
9
  import { debounce as Co, toString as So, set as at, isArray as Ke, hasIn as wo, cloneDeep as ko, get as xo } from "lodash-es";
@@ -12,7 +12,7 @@ import { Store as Bo } from "@tanstack/store";
12
12
  import { useBreakpoints as Io, useDebounceFn as Po } from "@vueuse/core";
13
13
  import { useForm as bt, defineRule as At, useFormValues as Ct, Field as Vo, useFormContext as Ro } from "vee-validate";
14
14
  import { toTypedSchema as Fo } from "@vee-validate/zod";
15
- import * as il from "zod";
15
+ import * as cl from "zod";
16
16
  import { VxeGrid as St, VxeUI as No } from "vxe-table";
17
17
  import { VxeSelect as To, VxeInput as Lo, VxeButton as He, VxePager as Mo } from "vxe-pc-ui";
18
18
  const jo = /* @__PURE__ */ Symbol("ArcoConfigProvider"), Qo = "arco", Oo = "$arco", de = (e) => {
@@ -620,23 +620,23 @@ const gn = Object.assign(Ue, {
620
620
  }, {
621
621
  default: I(() => [
622
622
  A("div", An, [
623
- k(c(kt))
623
+ x(c(kt))
624
624
  ])
625
625
  ]),
626
626
  _: 1
627
- }, 8, ["content"])) : q("", !0),
627
+ }, 8, ["content"])) : $("", !0),
628
628
  n.fullscreen ? (w(), N("div", {
629
629
  key: 1,
630
630
  class: "cursor-pointer text-[var(--color-text-2)] flex items-center justify-center transition-colors duration-200 text-base hover:text-[var(--color-text-1)]",
631
631
  onClick: ve(g, ["stop"])
632
632
  }, [
633
633
  v.value ? (w(), Q(c(fn), { key: 0 })) : (w(), Q(c(gn), { key: 1 }))
634
- ])) : q("", !0),
634
+ ])) : $("", !0),
635
635
  A("div", {
636
636
  class: "cursor-pointer text-[var(--color-text-2)] flex items-center justify-center transition-colors duration-200 text-base hover:text-[rgb(var(--red-6))]",
637
637
  onClick: ve(i, ["stop"])
638
638
  }, [
639
- k(c(wt))
639
+ x(c(wt))
640
640
  ])
641
641
  ])
642
642
  ], 32)
@@ -644,14 +644,14 @@ const gn = Object.assign(Ue, {
644
644
  footer: I(() => [
645
645
  m.$slots.footer ? z(m.$slots, "footer", { key: 0 }) : (w(), N("div", Cn, [
646
646
  z(m.$slots, "insertFooter"),
647
- c(s).hideCancel ? q("", !0) : (w(), Q(c(he), T({ key: 0 }, c(s).cancelButtonProps, { onClick: c(d) }), {
647
+ c(s).hideCancel ? $("", !0) : (w(), Q(c(he), T({ key: 0 }, c(s).cancelButtonProps, { onClick: c(d) }), {
648
648
  default: I(() => [
649
649
  _(R(c(s).cancelText || c(t)("common.modal.cancel")), 1)
650
650
  ]),
651
651
  _: 1
652
652
  }, 16, ["onClick"])),
653
653
  z(m.$slots, "centerFooter"),
654
- k(c(he), T({
654
+ x(c(he), T({
655
655
  type: "primary",
656
656
  loading: l.value || c(s).okLoading || c(s).confirmLoading
657
657
  }, c(s).okButtonProps, { onClick: u }), {
@@ -696,7 +696,7 @@ class Sn {
696
696
  return this;
697
697
  }
698
698
  }
699
- function dl(e = {}) {
699
+ function fl(e = {}) {
700
700
  const o = new Sn(e);
701
701
  return [O({
702
702
  name: "SunnyConnectedModal",
@@ -716,7 +716,7 @@ function dl(e = {}) {
716
716
  }
717
717
  }), o];
718
718
  }
719
- const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
719
+ const pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
720
720
  __proto__: null
721
721
  }, Symbol.toStringTag, { value: "Module" })), wn = {
722
722
  key: 0,
@@ -724,7 +724,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
724
724
  }, kn = { class: "max-w-[520px] w-full text-center" }, xn = { class: "mb-3 text-lg font-semibold text-[var(--color-text-1)]" }, En = { class: "mb-6 text-sm text-[var(--color-text-2)] leading-relaxed" }, Bn = {
725
725
  key: 0,
726
726
  class: "mt-6 mb-6 text-left bg-[var(--color-fill-1)] border border-[var(--color-border-2)] rounded-md overflow-hidden"
727
- }, In = { class: "flex items-center gap-2 px-4 py-3 bg-[var(--color-fill-2)] border-b border-[var(--color-border-2)] text-sm font-medium text-[var(--color-text-2)]" }, Pn = { class: "p-4" }, Vn = { class: "mb-3" }, Rn = { class: "block mb-1 text-xs text-[var(--color-text-3)]" }, Fn = { class: "p-2 bg-[var(--color-fill-1)] rounded text-xs text-[var(--color-text-2)] font-mono break-all" }, Nn = { class: "block mb-1 text-xs text-[var(--color-text-3)]" }, Tn = { class: "mt-2 p-3 bg-[var(--color-fill-2)] rounded text-xs text-[var(--color-text-2)] font-mono leading-relaxed overflow-x-auto whitespace-pre-wrap break-all max-h-[240px]" }, Ln = { class: "flex gap-3 justify-center flex-wrap" }, pl = /* @__PURE__ */ O({
727
+ }, In = { class: "flex items-center gap-2 px-4 py-3 bg-[var(--color-fill-2)] border-b border-[var(--color-border-2)] text-sm font-medium text-[var(--color-text-2)]" }, Pn = { class: "p-4" }, Vn = { class: "mb-3" }, Rn = { class: "block mb-1 text-xs text-[var(--color-text-3)]" }, Fn = { class: "p-2 bg-[var(--color-fill-1)] rounded text-xs text-[var(--color-text-2)] font-mono break-all" }, Nn = { class: "block mb-1 text-xs text-[var(--color-text-3)]" }, Tn = { class: "mt-2 p-3 bg-[var(--color-fill-2)] rounded text-xs text-[var(--color-text-2)] font-mono leading-relaxed overflow-x-auto whitespace-pre-wrap break-all max-h-[240px]" }, Ln = { class: "flex gap-3 justify-center flex-wrap" }, ml = /* @__PURE__ */ O({
728
728
  name: "ErrorBoundary",
729
729
  __name: "ErrorBoundary",
730
730
  props: {
@@ -793,23 +793,23 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
793
793
  A("pre", Tn, R(s.value?.stack), 1)
794
794
  ])
795
795
  ])
796
- ])) : q("", !0),
796
+ ])) : $("", !0),
797
797
  A("div", Ln, [
798
798
  e.showRetry ? (w(), N("button", {
799
799
  key: 0,
800
800
  class: "px-4 py-2 bg-[rgb(var(--primary-6))] text-white rounded hover:bg-[rgb(var(--primary-7))]",
801
801
  onClick: a
802
- }, R(l.value.retry), 1)) : q("", !0),
802
+ }, R(l.value.retry), 1)) : $("", !0),
803
803
  e.showRefresh ? (w(), N("button", {
804
804
  key: 1,
805
805
  class: "px-4 py-2 bg-[var(--color-bg-5)] text-[var(--color-text-1)] rounded hover:bg-[var(--color-bg-4)] border border-[var(--color-border)]",
806
806
  onClick: h
807
- }, R(l.value.refresh), 1)) : q("", !0),
807
+ }, R(l.value.refresh), 1)) : $("", !0),
808
808
  e.showReport ? (w(), N("button", {
809
809
  key: 2,
810
810
  class: "px-4 py-2 bg-[var(--color-danger-6)] text-white rounded hover:bg-[var(--color-danger-7)]",
811
811
  onClick: v
812
- }, R(l.value.report), 1)) : q("", !0)
812
+ }, R(l.value.report), 1)) : $("", !0)
813
813
  ])
814
814
  ])
815
815
  ])) : z(g.$slots, "default", { key: 1 });
@@ -831,7 +831,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
831
831
  src: e.icon
832
832
  }, r.$attrs), null, 16, Mn)) : e.icon ? (w(), Q(c(co), T({ key: 2 }, r.$attrs, {
833
833
  icon: e.icon
834
- }), null, 16, ["icon"])) : e.fallback ? (w(), Q(c(uo), ne(T({ key: 3 }, r.$attrs)), null, 16)) : q("", !0);
834
+ }), null, 16, ["icon"])) : e.fallback ? (w(), Q(c(uo), ne(T({ key: 3 }, r.$attrs)), null, 16)) : $("", !0);
835
835
  }
836
836
  }), Qn = /* @__PURE__ */ O({
837
837
  name: "SunnyScrollArea",
@@ -855,7 +855,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
855
855
  class: c(Ze)("relative overflow-hidden", o.class)
856
856
  }), {
857
857
  default: I(() => [
858
- k(c(vo), {
858
+ x(c(vo), {
859
859
  "as-child": "",
860
860
  class: "h-full w-full rounded-[inherit] focus:outline-none",
861
861
  onScroll: e.onScroll
@@ -865,8 +865,8 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
865
865
  ]),
866
866
  _: 3
867
867
  }, 8, ["onScroll"]),
868
- k(c(Et)),
869
- k(c(yo))
868
+ x(c(Et)),
869
+ x(c(yo))
870
870
  ]),
871
871
  _: 3
872
872
  }, 16, ["class"]));
@@ -895,7 +895,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
895
895
  )
896
896
  }), {
897
897
  default: I(() => [
898
- k(c(Ao), { class: "relative flex-1 rounded-full bg-border" })
898
+ x(c(Ao), { class: "relative flex-1 rounded-full bg-border" })
899
899
  ]),
900
900
  _: 1
901
901
  }, 16, ["class"]));
@@ -941,7 +941,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
941
941
  "opacity-100": !r.value,
942
942
  "border-t border-border": e.shadowBorder && !r.value
943
943
  }, "scrollbar-top-shadow pointer-events-none absolute top-0 z-10 h-12 w-full opacity-0 transition-opacity duration-300 ease-in-out will-change-[opacity]"])
944
- }, null, 2)) : q("", !0),
944
+ }, null, 2)) : $("", !0),
945
945
  z(m.$slots, "default", {}, void 0, !0),
946
946
  v.value ? (w(), N("div", {
947
947
  key: 1,
@@ -949,12 +949,12 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
949
949
  "opacity-100": !r.value && !l.value,
950
950
  "border-b border-border": e.shadowBorder && !r.value && !l.value
951
951
  }, "scrollbar-bottom-shadow pointer-events-none absolute bottom-0 z-10 h-12 w-full opacity-0 transition-opacity duration-300 ease-in-out will-change-[opacity]"])
952
- }, null, 2)) : q("", !0),
952
+ }, null, 2)) : $("", !0),
953
953
  e.horizontal ? (w(), Q(c(Et), {
954
954
  key: 2,
955
955
  class: J(e.scrollBarClass),
956
956
  orientation: "horizontal"
957
- }, null, 8, ["class"])) : q("", !0)
957
+ }, null, 8, ["class"])) : $("", !0)
958
958
  ]),
959
959
  _: 3
960
960
  }, 8, ["class"]));
@@ -964,7 +964,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
964
964
  for (const [n, r] of o)
965
965
  t[n] = r;
966
966
  return t;
967
- }, ml = /* @__PURE__ */ Ne(On, [["__scopeId", "data-v-299d4e0d"]]), Dn = { class: "sunny-file-upload" }, zn = { class: "font-bold text-gray-700 mb-2" }, Un = { class: "flex flex-wrap items-center text-sm mb-3 select-none" }, $n = { class: "cursor-pointer text-blue-600 hover:text-blue-700 flex items-center mr-4 transition-colors" }, qn = { class: "text-xs text-blue-600" }, Wn = { class: "text-xs text-gray-400" }, Yn = { class: "border border-dashed border-gray-300 rounded-lg p-4 transition-all duration-300" }, Jn = { class: "grid grid-cols-1 sm:grid-cols-2 gap-4" }, Gn = { class: "flex-1 min-w-0 pr-8" }, Kn = ["title"], Hn = { class: "flex items-center text-xs text-gray-500" }, _n = { class: "mr-3 min-w-[3em]" }, Xn = { class: "ml-2 w-8 text-right" }, ct = 1024, hl = /* @__PURE__ */ O({
967
+ }, hl = /* @__PURE__ */ Ne(On, [["__scopeId", "data-v-299d4e0d"]]), Dn = { class: "sunny-file-upload" }, zn = { class: "font-bold text-gray-700 mb-2" }, Un = { class: "flex flex-wrap items-center text-sm mb-3 select-none" }, $n = { class: "cursor-pointer text-blue-600 hover:text-blue-700 flex items-center mr-4 transition-colors" }, qn = { class: "text-xs text-blue-600" }, Wn = { class: "text-xs text-gray-400" }, Yn = { class: "border border-dashed border-gray-300 rounded-lg p-4 transition-all duration-300" }, Jn = { class: "grid grid-cols-1 sm:grid-cols-2 gap-4" }, Gn = { class: "flex-1 min-w-0 pr-8" }, Kn = ["title"], Hn = { class: "flex items-center text-xs text-gray-500" }, _n = { class: "mr-3 min-w-[3em]" }, Xn = { class: "ml-2 w-8 text-right" }, ct = 1024, gl = /* @__PURE__ */ O({
968
968
  __name: "index",
969
969
  props: {
970
970
  modelValue: { default: "" },
@@ -1016,9 +1016,9 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1016
1016
  K.error(`最多上传${n.limit}个文件`);
1017
1017
  return;
1018
1018
  }
1019
- const x = n.maxSize * 1024 * 1024;
1020
- if (p.file.size > x) {
1021
- K.error(`文件最大限制${d(x)}`);
1019
+ const k = n.maxSize * 1024 * 1024;
1020
+ if (p.file.size > k) {
1021
+ K.error(`文件最大限制${d(k)}`);
1022
1022
  return;
1023
1023
  }
1024
1024
  a.value.push({
@@ -1034,10 +1034,10 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1034
1034
  if (a.value.length === 0) return;
1035
1035
  const B = a.value.filter((p) => !p.url);
1036
1036
  for (const p of B) {
1037
- const x = new FormData();
1038
- x.append("fileName", p.file), x.append("encryptFile", l.value ? "1" : "0"), n.storeType && x.append("storeType", n.storeType), n.s3FileDir && x.append("s3FileDir", n.s3FileDir), n.preSigned && x.append("preSigned", n.preSigned), n.preSignedExpire && x.append("preSignedExpire", n.preSignedExpire);
1037
+ const k = new FormData();
1038
+ k.append("fileName", p.file), k.append("encryptFile", l.value ? "1" : "0"), n.storeType && k.append("storeType", n.storeType), n.s3FileDir && k.append("s3FileDir", n.s3FileDir), n.preSigned && k.append("preSigned", n.preSigned), n.preSignedExpire && k.append("preSignedExpire", n.preSignedExpire);
1039
1039
  try {
1040
- const F = await ge.post(n.action, x, {
1040
+ const F = await ge.post(n.action, k, {
1041
1041
  onUploadProgress: (G) => {
1042
1042
  if (G.total) {
1043
1043
  const P = Math.floor(G.loaded / G.total * 100);
@@ -1052,7 +1052,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1052
1052
  }
1053
1053
  m();
1054
1054
  }, E = (B) => {
1055
- const p = a.value.findIndex((x) => x.uid === B);
1055
+ const p = a.value.findIndex((k) => k.uid === B);
1056
1056
  p > -1 && a.value.splice(p, 1);
1057
1057
  }, y = (B, p) => {
1058
1058
  B.url ? We.confirm({
@@ -1062,8 +1062,8 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1062
1062
  ge.post(n.delAction, {
1063
1063
  filePathList: [B.url],
1064
1064
  storeType: n.storeType
1065
- }).then((x) => {
1066
- const { data: F } = x;
1065
+ }).then((k) => {
1066
+ const { data: F } = k;
1067
1067
  K[F.success ? "success" : "error"](F.message), F.code === 200 && (a.value.splice(p, 1), m());
1068
1068
  });
1069
1069
  }
@@ -1078,23 +1078,23 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1078
1078
  content: i("是否删除选中的文件?"),
1079
1079
  onOk: () => {
1080
1080
  h.value = !0;
1081
- const p = B.map((x) => x.url).filter(Boolean);
1081
+ const p = B.map((k) => k.url).filter(Boolean);
1082
1082
  p.length > 0 ? ge.post(n.delAction, {
1083
1083
  filePathList: p,
1084
1084
  storeType: n.storeType
1085
- }).then((x) => {
1086
- const { data: F } = x;
1085
+ }).then((k) => {
1086
+ const { data: F } = k;
1087
1087
  K[F.success ? "success" : "error"](F.message), F.code === 200 && (a.value = a.value.filter((D) => !D.checked), m());
1088
1088
  }).finally(() => {
1089
1089
  h.value = !1;
1090
- }) : (a.value = a.value.filter((x) => !x.checked), m(), h.value = !1);
1090
+ }) : (a.value = a.value.filter((k) => !k.checked), m(), h.value = !1);
1091
1091
  }
1092
1092
  });
1093
1093
  };
1094
1094
  return (B, p) => (w(), N("div", Dn, [
1095
1095
  A("div", zn, R(i("附件")), 1),
1096
1096
  qe(A("div", Un, [
1097
- k(c(Ye), {
1097
+ x(c(Ye), {
1098
1098
  "show-file-list": !1,
1099
1099
  "auto-upload": !1,
1100
1100
  multiple: "",
@@ -1103,7 +1103,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1103
1103
  }, {
1104
1104
  "upload-button": I(() => [
1105
1105
  A("span", $n, [
1106
- k(c(rn), { class: "mr-1 w-4 h-4" }),
1106
+ x(c(rn), { class: "mr-1 w-4 h-4" }),
1107
1107
  _(" " + R(i("选择附件")), 1)
1108
1108
  ])
1109
1109
  ]),
@@ -1111,9 +1111,9 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1111
1111
  }, 8, ["accept"]),
1112
1112
  A("span", {
1113
1113
  class: J(["flex items-center mr-4 transition-colors", v.value ? "text-gray-300 cursor-not-allowed" : "cursor-pointer text-gray-600 hover:text-gray-800"]),
1114
- onClick: p[0] || (p[0] = (x) => !v.value && b())
1114
+ onClick: p[0] || (p[0] = (k) => !v.value && b())
1115
1115
  }, [
1116
- k(c(en), { class: "mr-1 w-4 h-4" }),
1116
+ x(c(en), { class: "mr-1 w-4 h-4" }),
1117
1117
  _(" " + R(i("上传附件")), 1)
1118
1118
  ], 2),
1119
1119
  A("span", {
@@ -1127,59 +1127,59 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1127
1127
  e.showEncrypt ? (w(), Q(c(Ie), {
1128
1128
  key: 0,
1129
1129
  modelValue: l.value,
1130
- "onUpdate:modelValue": p[1] || (p[1] = (x) => l.value = x),
1130
+ "onUpdate:modelValue": p[1] || (p[1] = (k) => l.value = k),
1131
1131
  class: "mr-4"
1132
1132
  }, {
1133
1133
  default: I(() => [
1134
1134
  A("span", qn, R(i("是否加密")), 1)
1135
1135
  ]),
1136
1136
  _: 1
1137
- }, 8, ["modelValue"])) : q("", !0),
1137
+ }, 8, ["modelValue"])) : $("", !0),
1138
1138
  A("span", Wn, " (" + R(i("单个文件最大")) + R(e.maxSize) + "MB," + R(i("最多上传")) + R(e.limit) + R(i("个")) + ") ", 1),
1139
1139
  A("span", {
1140
1140
  class: "ml-auto cursor-pointer text-blue-600 text-xs hover:text-blue-700 transition-colors",
1141
- onClick: p[2] || (p[2] = (x) => s.value = !s.value)
1141
+ onClick: p[2] || (p[2] = (k) => s.value = !s.value)
1142
1142
  }, R(s.value ? i("隐藏") : i("展开")), 1)
1143
1143
  ], 512), [
1144
1144
  [nt, !e.readonly]
1145
1145
  ]),
1146
1146
  qe(A("div", Yn, [
1147
1147
  A("div", Jn, [
1148
- (w(!0), N(le, null, Z(a.value, (x, F) => (w(), N("div", {
1149
- key: x.uid || F,
1148
+ (w(!0), N(le, null, Z(a.value, (k, F) => (w(), N("div", {
1149
+ key: k.uid || F,
1150
1150
  class: "bg-gray-50 hover:bg-gray-100 rounded p-3 relative flex items-center border border-transparent hover:border-gray-200 transition-colors group"
1151
1151
  }, [
1152
- k(c(jn), {
1153
- icon: u(x),
1152
+ x(c(jn), {
1153
+ icon: u(k),
1154
1154
  class: "w-10 h-10 mr-3 flex-shrink-0"
1155
1155
  }, null, 8, ["icon"]),
1156
1156
  A("div", Gn, [
1157
1157
  A("div", {
1158
1158
  class: "text-sm truncate font-medium text-gray-700 mb-1",
1159
- title: x.name
1160
- }, R(x.name), 9, Kn),
1159
+ title: k.name
1160
+ }, R(k.name), 9, Kn),
1161
1161
  A("div", Hn, [
1162
- A("span", _n, R(d(x.size)), 1),
1163
- k(c(Yt), {
1164
- percent: x.percentage / 100,
1162
+ A("span", _n, R(d(k.size)), 1),
1163
+ x(c(Yt), {
1164
+ percent: k.percentage / 100,
1165
1165
  size: "small",
1166
1166
  "show-text": !1,
1167
- color: x.percentage === 100 ? "#00b42a" : "#165dff",
1167
+ color: k.percentage === 100 ? "#00b42a" : "#165dff",
1168
1168
  class: "flex-1"
1169
1169
  }, null, 8, ["percent", "color"]),
1170
- A("span", Xn, R(x.percentage) + "%", 1)
1170
+ A("span", Xn, R(k.percentage) + "%", 1)
1171
1171
  ])
1172
1172
  ]),
1173
- e.readonly ? q("", !0) : (w(), Q(c(Ie), {
1173
+ e.readonly ? $("", !0) : (w(), Q(c(Ie), {
1174
1174
  key: 0,
1175
- modelValue: x.checked,
1176
- "onUpdate:modelValue": (D) => x.checked = D,
1175
+ modelValue: k.checked,
1176
+ "onUpdate:modelValue": (D) => k.checked = D,
1177
1177
  class: "absolute top-3 right-3"
1178
1178
  }, null, 8, ["modelValue", "onUpdate:modelValue"])),
1179
- e.readonly ? q("", !0) : (w(), Q(c(xt), {
1179
+ e.readonly ? $("", !0) : (w(), Q(c(xt), {
1180
1180
  key: 1,
1181
1181
  class: "absolute bottom-3 right-3 w-4 h-4 cursor-pointer text-gray-400 hover:text-red-500 transition-colors",
1182
- onClick: (D) => y(x, F)
1182
+ onClick: (D) => y(k, F)
1183
1183
  }, null, 8, ["onClick"]))
1184
1184
  ]))), 128))
1185
1185
  ])
@@ -1286,13 +1286,13 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1286
1286
  return (a, h) => {
1287
1287
  const v = re("a-button"), g = re("a-upload"), i = re("a-tag");
1288
1288
  return w(), N("div", Zn, [
1289
- k(g, {
1289
+ x(g, {
1290
1290
  "show-file-list": !1,
1291
1291
  action: e.action,
1292
1292
  "custom-request": s
1293
1293
  }, {
1294
1294
  "upload-button": I(() => [
1295
- k(v, {
1295
+ x(v, {
1296
1296
  type: "primary",
1297
1297
  size: "mini"
1298
1298
  }, {
@@ -1366,11 +1366,11 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1366
1366
  const l = (a) => {
1367
1367
  o("update:modelValue", a);
1368
1368
  };
1369
- return () => k(Ce, T(n, {
1369
+ return () => x(Ce, T(n, {
1370
1370
  modelValue: s.value,
1371
1371
  "onUpdate:modelValue": l
1372
1372
  }), {
1373
- default: () => e.options.map((a) => r(a) ? k(gt, T({
1373
+ default: () => e.options.map((a) => r(a) ? x(gt, T({
1374
1374
  key: a.value
1375
1375
  }, a), {
1376
1376
  default: () => t.option ? t.option({
@@ -1380,7 +1380,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1380
1380
  ...Object.fromEntries(Object.entries(t).filter(([a]) => a !== "option" && a !== "default"))
1381
1381
  });
1382
1382
  }
1383
- }), nr = { class: "flex items-center justify-between px-3 py-2 border-b border-[var(--color-neutral-3)] bg-[var(--color-bg-popup)] select-none" }, rr = { class: "flex items-center gap-1" }, sr = { class: "w-6 h-6 flex items-center justify-center rounded cursor-help text-[var(--color-text-3)] hover:text-[var(--color-text-1)] hover:bg-[var(--color-fill-3)] transition-all" }, gl = /* @__PURE__ */ O({
1383
+ }), nr = { class: "flex items-center justify-between px-3 py-2 border-b border-[var(--color-neutral-3)] bg-[var(--color-bg-popup)] select-none" }, rr = { class: "flex items-center gap-1" }, sr = { class: "w-6 h-6 flex items-center justify-center rounded cursor-help text-[var(--color-text-3)] hover:text-[var(--color-text-1)] hover:bg-[var(--color-fill-3)] transition-all" }, vl = /* @__PURE__ */ O({
1384
1384
  name: "SunnyBatchSelect",
1385
1385
  inheritAttrs: !1,
1386
1386
  __name: "BatchSelect",
@@ -1471,7 +1471,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1471
1471
  }), ie({
1472
1472
  header: I(() => [
1473
1473
  A("div", nr, [
1474
- k(u, {
1474
+ x(u, {
1475
1475
  "model-value": s.value,
1476
1476
  indeterminate: l.value,
1477
1477
  onChange: h,
@@ -1483,25 +1483,25 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1483
1483
  _: 1
1484
1484
  }, 8, ["model-value", "indeterminate"]),
1485
1485
  A("div", rr, [
1486
- k(m, { content: "清除所有选中项" }, {
1486
+ x(m, { content: "清除所有选中项" }, {
1487
1487
  default: I(() => [
1488
1488
  A("div", {
1489
1489
  class: "w-6 h-6 flex items-center justify-center rounded cursor-pointer text-[var(--color-text-3)] hover:bg-[var(--color-fill-3)] transition-all",
1490
1490
  onClick: v
1491
1491
  }, [
1492
- k(c(xt))
1492
+ x(c(xt))
1493
1493
  ])
1494
1494
  ]),
1495
1495
  _: 1
1496
1496
  }),
1497
1497
  d[1] || (d[1] = A("div", { class: "w-[1px] h-3 bg-[var(--color-neutral-3)] mx-1" }, null, -1)),
1498
- k(m, {
1498
+ x(m, {
1499
1499
  content: "支持从 Excel 或文本编辑器(↓列数据)复制多行数据,粘贴至搜索框即可自动匹配并选中。",
1500
1500
  position: "left"
1501
1501
  }, {
1502
1502
  default: I(() => [
1503
1503
  A("div", sr, [
1504
- k(c(kt))
1504
+ x(c(kt))
1505
1505
  ])
1506
1506
  ]),
1507
1507
  _: 1
@@ -1523,7 +1523,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1523
1523
  }), lr = { class: "w-full" }, ar = {
1524
1524
  key: 0,
1525
1525
  class: "flex justify-between items-center w-full"
1526
- }, ir = { class: "text-[var(--color-text-3)] text-xs" }, vl = /* @__PURE__ */ O({
1526
+ }, ir = { class: "text-[var(--color-text-3)] text-xs" }, yl = /* @__PURE__ */ O({
1527
1527
  name: "SunnyCustomizeSelect",
1528
1528
  inheritAttrs: !0,
1529
1529
  __name: "CustomizeSelect",
@@ -1594,7 +1594,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1594
1594
  ), Se(() => {
1595
1595
  r.defaultQuery && r.defaultQuery === !0 ? u() : r.cNum && r.defaultQuery === !1 && (a.value = Object.assign({}, a.value, r.defaultConfig));
1596
1596
  }), (E, y) => (w(), N("div", lr, [
1597
- k(c(t), T({
1597
+ x(c(t), T({
1598
1598
  modelValue: d.value,
1599
1599
  "onUpdate:modelValue": y[0] || (y[0] = (S) => d.value = S),
1600
1600
  "allow-clear": "",
@@ -1619,7 +1619,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1619
1619
  a.value.cLabelslotcol ? (w(), N("div", ar, [
1620
1620
  A("span", null, R(S.cKeyname), 1),
1621
1621
  A("span", ir, R(S.cSlot), 1)
1622
- ])) : q("", !0)
1622
+ ])) : $("", !0)
1623
1623
  ]),
1624
1624
  _: 2
1625
1625
  }, 1032, ["label", "value"]))), 128))
@@ -1678,7 +1678,7 @@ const fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1678
1678
  ]]),
1679
1679
  onClick: ve(g, ["stop"])
1680
1680
  }, [
1681
- k(c(Ho), { class: "transition-colors group-hover:text-[var(--color-primary-6)]" })
1681
+ x(c(Ho), { class: "transition-colors group-hover:text-[var(--color-primary-6)]" })
1682
1682
  ], 2)
1683
1683
  ]),
1684
1684
  _: 2
@@ -2410,7 +2410,7 @@ const wr = {
2410
2410
  SunnyUpload: Ye,
2411
2411
  SunnyBusinessSearch: Sr
2412
2412
  }, Ft = {};
2413
- function yl(e) {
2413
+ function bl(e) {
2414
2414
  const { config: o, defineRules: t } = e, {
2415
2415
  // 默认禁用 change 事件监听 (Arco 组件通常不需要手动监听 change)
2416
2416
  // Default disable change listener (Arco components usually don't need manual change listener)
@@ -2511,7 +2511,7 @@ const xr = /* @__PURE__ */ O({
2511
2511
  }), b = (P, U) => {
2512
2512
  const L = o.schema.fieldName;
2513
2513
  if (!L || !l || !l[L]) return null;
2514
- const $ = l[L], M = (W) => {
2514
+ const q = l[L], M = (W) => {
2515
2515
  P.onInput(W);
2516
2516
  }, ce = {
2517
2517
  // 整个表单的值 (支持双向绑定)
@@ -2529,7 +2529,7 @@ const xr = /* @__PURE__ */ O({
2529
2529
  // 组件属性
2530
2530
  componentProps: p.value
2531
2531
  };
2532
- return $(ce);
2532
+ return q(ce);
2533
2533
  }, E = O({
2534
2534
  name: "FieldSlotRenderer",
2535
2535
  props: {
@@ -2551,8 +2551,8 @@ const xr = /* @__PURE__ */ O({
2551
2551
  const P = ue(S.value);
2552
2552
  let U = P?.isOptional?.();
2553
2553
  if (P?._def?.typeName === "ZodDefault") {
2554
- const $ = P?._def.innerType;
2555
- $ && (U = $.isOptional?.());
2554
+ const q = P?._def.innerType;
2555
+ q && (U = q.isOptional?.());
2556
2556
  }
2557
2557
  return !U;
2558
2558
  }), B = C(() => {
@@ -2575,10 +2575,10 @@ const xr = /* @__PURE__ */ O({
2575
2575
  ...L,
2576
2576
  ...a.value
2577
2577
  };
2578
- }), x = (P) => {
2578
+ }), k = (P) => {
2579
2579
  const U = p.value, L = (M, ce) => (...W) => {
2580
2580
  oe(M) && M(...W), ce(...W);
2581
- }, $ = (M) => {
2581
+ }, q = (M) => {
2582
2582
  oe(U?.onInput) && U.onInput(M), P.onInput(M);
2583
2583
  };
2584
2584
  return {
@@ -2590,7 +2590,7 @@ const xr = /* @__PURE__ */ O({
2590
2590
  // model-value 绑定
2591
2591
  modelValue: P.value,
2592
2592
  // update:modelValue 事件
2593
- "onUpdate:modelValue": $
2593
+ "onUpdate:modelValue": q
2594
2594
  };
2595
2595
  };
2596
2596
  X(
@@ -2629,8 +2629,8 @@ const xr = /* @__PURE__ */ O({
2629
2629
  rules: B.value,
2630
2630
  label: e.schema.label
2631
2631
  }, {
2632
- default: I(({ field: $, errorMessage: M }) => [
2633
- k(L, T({
2632
+ default: I(({ field: q, errorMessage: M }) => [
2633
+ x(L, T({
2634
2634
  label: e.schema.label,
2635
2635
  help: M || e.schema.help,
2636
2636
  "validate-status": M ? "error" : void 0,
@@ -2641,15 +2641,15 @@ const xr = /* @__PURE__ */ O({
2641
2641
  default: I(() => [
2642
2642
  f.value ? (w(), Q($e(c(E)), {
2643
2643
  key: 0,
2644
- field: $,
2644
+ field: q,
2645
2645
  "error-message": M
2646
- }, null, 8, ["field", "error-message"])) : (w(), Q($e(u.value), T({ key: 1 }, x($), { disabled: F.value }), null, 16, ["disabled"]))
2646
+ }, null, 8, ["field", "error-message"])) : (w(), Q($e(u.value), T({ key: 1 }, k(q), { disabled: F.value }), null, 16, ["disabled"]))
2647
2647
  ]),
2648
2648
  _: 2
2649
2649
  }, 1040, ["label", "help", "validate-status", "required", "label-col-props", "wrapper-col-props"])
2650
2650
  ]),
2651
2651
  _: 1
2652
- }, 8, ["name", "rules", "label"])) : q("", !0);
2652
+ }, 8, ["name", "rules", "label"])) : $("", !0);
2653
2653
  };
2654
2654
  }
2655
2655
  }), Nt = /* @__PURE__ */ O({
@@ -2740,7 +2740,7 @@ const xr = /* @__PURE__ */ O({
2740
2740
  }), (u, m) => (w(), N("div", {
2741
2741
  class: J(d.value)
2742
2742
  }, [
2743
- c(c(s)).actionButtonsReverse ? q("", !0) : (w(), N(le, { key: 0 }, [
2743
+ c(c(s)).actionButtonsReverse ? $("", !0) : (w(), N(le, { key: 0 }, [
2744
2744
  z(u.$slots, "submit-before"),
2745
2745
  v.value.show ? (w(), Q(c(he), T({
2746
2746
  key: 0,
@@ -2752,7 +2752,7 @@ const xr = /* @__PURE__ */ O({
2752
2752
  _(R(v.value.content), 1)
2753
2753
  ]),
2754
2754
  _: 1
2755
- }, 16, ["size"])) : q("", !0)
2755
+ }, 16, ["size"])) : $("", !0)
2756
2756
  ], 64)),
2757
2757
  z(u.$slots, "reset-before"),
2758
2758
  h.value.show ? (w(), Q(c(he), T({
@@ -2764,7 +2764,7 @@ const xr = /* @__PURE__ */ O({
2764
2764
  _(R(h.value.content), 1)
2765
2765
  ]),
2766
2766
  _: 1
2767
- }, 16, ["size"])) : q("", !0),
2767
+ }, 16, ["size"])) : $("", !0),
2768
2768
  c(c(s)).actionButtonsReverse ? (w(), N(le, { key: 2 }, [
2769
2769
  z(u.$slots, "submit-before"),
2770
2770
  v.value.show ? (w(), Q(c(he), T({
@@ -2777,8 +2777,8 @@ const xr = /* @__PURE__ */ O({
2777
2777
  _(R(v.value.content), 1)
2778
2778
  ]),
2779
2779
  _: 1
2780
- }, 16, ["size"])) : q("", !0)
2781
- ], 64)) : q("", !0),
2780
+ }, 16, ["size"])) : $("", !0)
2781
+ ], 64)) : $("", !0),
2782
2782
  z(u.$slots, "expand-before"),
2783
2783
  c(c(s)).showCollapseButton ? (w(), N("div", {
2784
2784
  key: 3,
@@ -2786,7 +2786,7 @@ const xr = /* @__PURE__ */ O({
2786
2786
  onClick: m[0] || (m[0] = (f) => a.value = !a.value)
2787
2787
  }, [
2788
2788
  A("span", null, R(a.value ? "展开" : "收起"), 1)
2789
- ])) : q("", !0),
2789
+ ])) : $("", !0),
2790
2790
  z(u.$slots, "expand-after")
2791
2791
  ], 2));
2792
2792
  }
@@ -2856,14 +2856,14 @@ const Br = { class: "h-full flex flex-col justify-end" }, Tt = /* @__PURE__ */ O
2856
2856
  const { spans: h, actionSpan: v } = Er(a), g = C(() => {
2857
2857
  const {
2858
2858
  commonConfig: p = {},
2859
- labelWidth: x,
2859
+ labelWidth: k,
2860
2860
  schema: F = []
2861
2861
  } = a, {
2862
2862
  componentProps: D = {},
2863
2863
  formFieldProps: G = {},
2864
2864
  ...P
2865
2865
  } = p, U = { ...P };
2866
- return x !== void 0 && Object.assign(U, { labelWidth: x }), F.map((L) => ({
2866
+ return k !== void 0 && Object.assign(U, { labelWidth: k }), F.map((L) => ({
2867
2867
  // 合并策略:全局配置 (Global) < 表单项自身配置 (Item)
2868
2868
  ...U,
2869
2869
  ...L,
@@ -2884,7 +2884,7 @@ const Br = { class: "h-full flex flex-col justify-end" }, Tt = /* @__PURE__ */ O
2884
2884
  }));
2885
2885
  }), i = C(() => a.layout === "inline"), { handleSubmit: d, resetForm: u, setValues: m, values: f, validate: b, errors: E, meta: y } = n.form || bt({
2886
2886
  // 提取默认值构建初始状态
2887
- initialValues: g.value.reduce((p, x) => (x.fieldName && (p[x.fieldName] = x.defaultValue), p), {})
2887
+ initialValues: g.value.reduce((p, k) => (k.fieldName && (p[k.fieldName] = k.defaultValue), p), {})
2888
2888
  });
2889
2889
  o({
2890
2890
  /**
@@ -2915,20 +2915,20 @@ const Br = { class: "h-full flex flex-col justify-end" }, Tt = /* @__PURE__ */ O
2915
2915
  }), V = (p) => {
2916
2916
  a.collapsed = p, a.handleCollapsedChange?.(p), n.formApi && n.formApi.setState({ collapsed: p });
2917
2917
  }, B = C(() => {
2918
- const { compact: p, gridProps: x } = a, F = p ? 8 : 16, D = x?.xGap ?? x?.["x-gap"] ?? F, G = x?.yGap ?? x?.["y-gap"] ?? F;
2918
+ const { compact: p, gridProps: k } = a, F = p ? 8 : 16, D = k?.xGap ?? k?.["x-gap"] ?? F, G = k?.yGap ?? k?.["y-gap"] ?? F;
2919
2919
  return { x: D, y: G };
2920
2920
  });
2921
- return (p, x) => {
2921
+ return (p, k) => {
2922
2922
  const F = re("a-col"), D = re("a-row"), G = re("a-form");
2923
2923
  return w(), Q(G, {
2924
2924
  model: {},
2925
2925
  layout: c(l).layout || "horizontal",
2926
2926
  size: c(l).size || "small",
2927
2927
  class: "arco-form",
2928
- onSubmit: x[0] || (x[0] = (P, U) => c(S)(U))
2928
+ onSubmit: k[0] || (k[0] = (P, U) => c(S)(U))
2929
2929
  }, {
2930
2930
  default: I(() => [
2931
- k(D, {
2931
+ x(D, {
2932
2932
  gutter: [B.value.x, B.value.y],
2933
2933
  class: J(a.wrapperClass),
2934
2934
  align: (a.layout || "horizontal") === "vertical" ? "stretch" : void 0
@@ -2942,10 +2942,10 @@ const Br = { class: "h-full flex flex-col justify-end" }, Tt = /* @__PURE__ */ O
2942
2942
  span: c(h)[P.fieldName] ?? (i.value ? void 0 : 24)
2943
2943
  }, {
2944
2944
  default: I(() => [
2945
- k(xr, { schema: P }, null, 8, ["schema"])
2945
+ x(xr, { schema: P }, null, 8, ["schema"])
2946
2946
  ]),
2947
2947
  _: 2
2948
- }, 1032, ["span"])) : q("", !0)
2948
+ }, 1032, ["span"])) : $("", !0)
2949
2949
  ], 64))), 128)),
2950
2950
  a.showDefaultActions || c(s).actions ? (w(), Q(F, {
2951
2951
  key: 0,
@@ -2996,7 +2996,7 @@ const Br = { class: "h-full flex flex-col justify-end" }, Tt = /* @__PURE__ */ O
2996
2996
  ])
2997
2997
  ]),
2998
2998
  _: 3
2999
- }, 8, ["span", "style"])) : q("", !0)
2999
+ }, 8, ["span", "style"])) : $("", !0)
3000
3000
  ]),
3001
3001
  _: 3
3002
3002
  }, 8, ["gutter", "class", "align"])
@@ -3083,7 +3083,7 @@ const Br = { class: "h-full flex flex-col justify-end" }, Tt = /* @__PURE__ */ O
3083
3083
  return (g, i) => (w(), N("div", {
3084
3084
  class: J(n.value.wrapperClass)
3085
3085
  }, [
3086
- k(Tt, T(n.value, {
3086
+ x(Tt, T(n.value, {
3087
3087
  form: c(l),
3088
3088
  "form-api": o.formApi,
3089
3089
  onKeydown: mt(v, ["enter"])
@@ -3195,7 +3195,7 @@ const Pr = /* @__PURE__ */ O({
3195
3195
  }), (i, d) => (w(), N("div", {
3196
3196
  class: J(n.wrapperClass)
3197
3197
  }, [
3198
- k(Tt, {
3198
+ x(Tt, {
3199
3199
  ref_key: "formRenderRef",
3200
3200
  ref: l,
3201
3201
  onSubmit: v
@@ -3220,7 +3220,7 @@ const Pr = /* @__PURE__ */ O({
3220
3220
  z(i.$slots, "expand-after")
3221
3221
  ]),
3222
3222
  _: 3
3223
- }, 8, ["model-value"])) : q("", !0)
3223
+ }, 8, ["model-value"])) : $("", !0)
3224
3224
  ]),
3225
3225
  _: 2
3226
3226
  }, [
@@ -3317,7 +3317,7 @@ const Rr = /* @__PURE__ */ O({
3317
3317
  const s = re("a-config-provider");
3318
3318
  return w(), Q(s, { size: "small" }, {
3319
3319
  default: I(() => [
3320
- k(c(St), T({
3320
+ x(c(St), T({
3321
3321
  ref_key: "gridRef",
3322
3322
  ref: t
3323
3323
  }, n.$attrs), ie({ _: 2 }, [
@@ -3334,7 +3334,7 @@ const Rr = /* @__PURE__ */ O({
3334
3334
  };
3335
3335
  }
3336
3336
  });
3337
- function Al(e) {
3337
+ function Cl(e) {
3338
3338
  const o = j(), t = new Vr(o, e);
3339
3339
  return [O(
3340
3340
  (r, { attrs: s, slots: l }) => {
@@ -3354,7 +3354,7 @@ const Fr = {
3354
3354
  column: o
3355
3355
  }) => {
3356
3356
  const t = e[o.field], r = o.params?.options?.find((s) => s.value === t);
3357
- return [k("span", null, [r?.label ?? t])];
3357
+ return [x("span", null, [r?.label ?? t])];
3358
3358
  }
3359
3359
  }
3360
3360
  }, Nr = {
@@ -3363,7 +3363,7 @@ const Fr = {
3363
3363
  default: ({
3364
3364
  row: e,
3365
3365
  column: o
3366
- }) => [k("span", null, [e[o.field]])]
3366
+ }) => [x("span", null, [e[o.field]])]
3367
3367
  }
3368
3368
  }, Tr = {
3369
3369
  editRender: {},
@@ -3371,11 +3371,11 @@ const Fr = {
3371
3371
  default: ({
3372
3372
  row: e,
3373
3373
  column: o
3374
- }) => [k("span", null, [e[o.field]])],
3374
+ }) => [x("span", null, [e[o.field]])],
3375
3375
  edit: ({
3376
3376
  row: e,
3377
3377
  column: o
3378
- }) => [k(Fe, T({
3378
+ }) => [x(Fe, T({
3379
3379
  modelValue: e[o.field],
3380
3380
  "onUpdate:modelValue": (t) => {
3381
3381
  e[o.field] = t;
@@ -3390,12 +3390,12 @@ const Fr = {
3390
3390
  column: o
3391
3391
  }) => {
3392
3392
  const t = e[o.field], r = o.params?.options?.find((s) => s.value === t);
3393
- return [k("span", null, [r?.label ?? t])];
3393
+ return [x("span", null, [r?.label ?? t])];
3394
3394
  },
3395
3395
  edit: ({
3396
3396
  row: e,
3397
3397
  column: o
3398
- }) => [k(Ce, T({
3398
+ }) => [x(Ce, T({
3399
3399
  modelValue: e[o.field],
3400
3400
  "onUpdate:modelValue": (t) => {
3401
3401
  e[o.field] = t;
@@ -3408,11 +3408,11 @@ const Fr = {
3408
3408
  default: ({
3409
3409
  row: e,
3410
3410
  column: o
3411
- }) => [k("span", null, [e[o.field]])],
3411
+ }) => [x("span", null, [e[o.field]])],
3412
3412
  edit: ({
3413
3413
  row: e,
3414
3414
  column: o
3415
- }) => [k(Je, T({
3415
+ }) => [x(Je, T({
3416
3416
  modelValue: e[o.field],
3417
3417
  "onUpdate:modelValue": (t) => {
3418
3418
  e[o.field] = t;
@@ -3425,11 +3425,11 @@ const Fr = {
3425
3425
  default: ({
3426
3426
  row: e,
3427
3427
  column: o
3428
- }) => [k("span", null, [e[o.field]])],
3428
+ }) => [x("span", null, [e[o.field]])],
3429
3429
  edit: ({
3430
3430
  row: e,
3431
3431
  column: o
3432
- }) => [k(eo, T({
3432
+ }) => [x(eo, T({
3433
3433
  modelValue: e[o.field],
3434
3434
  "onUpdate:modelValue": (t) => {
3435
3435
  e[o.field] = t;
@@ -3442,11 +3442,11 @@ const Fr = {
3442
3442
  default: ({
3443
3443
  row: e,
3444
3444
  column: o
3445
- }) => [k("span", null, [e[o.field]])],
3445
+ }) => [x("span", null, [e[o.field]])],
3446
3446
  edit: ({
3447
3447
  row: e,
3448
3448
  column: o
3449
- }) => [k(no, T({
3449
+ }) => [x(no, T({
3450
3450
  modelValue: e[o.field],
3451
3451
  "onUpdate:modelValue": (t) => {
3452
3452
  e[o.field] = t;
@@ -3459,11 +3459,11 @@ const Fr = {
3459
3459
  default: ({
3460
3460
  row: e,
3461
3461
  column: o
3462
- }) => [k("span", null, [e[o.field]])],
3462
+ }) => [x("span", null, [e[o.field]])],
3463
3463
  edit: ({
3464
3464
  row: e,
3465
3465
  column: o
3466
- }) => [k(oo, T({
3466
+ }) => [x(oo, T({
3467
3467
  modelValue: e[o.field],
3468
3468
  "onUpdate:modelValue": (t) => {
3469
3469
  e[o.field] = t;
@@ -3484,7 +3484,7 @@ const Fr = {
3484
3484
  n = [r, s];
3485
3485
  } else
3486
3486
  n = e[o.field];
3487
- return [k("span", null, [Ke(n) ? n.join(" / ") : n])];
3487
+ return [x("span", null, [Ke(n) ? n.join(" / ") : n])];
3488
3488
  },
3489
3489
  edit: ({
3490
3490
  row: e,
@@ -3497,7 +3497,7 @@ const Fr = {
3497
3497
  n = [r, s];
3498
3498
  } else
3499
3499
  n = e[o.field];
3500
- return [k(vt, T({
3500
+ return [x(vt, T({
3501
3501
  modelValue: n,
3502
3502
  "onUpdate:modelValue": (r) => {
3503
3503
  t ? Ke(r) && r.length === 2 ? (e[t.start] = r[0], e[t.end] = r[1]) : (e[t.start] = void 0, e[t.end] = void 0) : e[o.field] = r;
@@ -3518,12 +3518,12 @@ const Fr = {
3518
3518
  uncheckedValue: r,
3519
3519
  uncheckedText: s
3520
3520
  } = o.params || {}, l = e[o.field];
3521
- return t !== void 0 && n !== void 0 && l === t ? [k("span", null, [n])] : r !== void 0 && s !== void 0 && l === r ? [k("span", null, [s])] : [k("span", null, [l])];
3521
+ return t !== void 0 && n !== void 0 && l === t ? [x("span", null, [n])] : r !== void 0 && s !== void 0 && l === r ? [x("span", null, [s])] : [x("span", null, [l])];
3522
3522
  },
3523
3523
  edit: ({
3524
3524
  row: e,
3525
3525
  column: o
3526
- }) => [k(Ge, T({
3526
+ }) => [x(Ge, T({
3527
3527
  modelValue: e[o.field],
3528
3528
  "onUpdate:modelValue": (t) => {
3529
3529
  e[o.field] = t;
@@ -3536,13 +3536,13 @@ const Fr = {
3536
3536
  default: ({
3537
3537
  row: e,
3538
3538
  column: o
3539
- }) => [k("span", null, [e[o.field]])],
3539
+ }) => [x("span", null, [e[o.field]])],
3540
3540
  edit: ({
3541
3541
  row: e,
3542
3542
  column: o
3543
3543
  }) => {
3544
3544
  const t = e[o.field], n = typeof t == "string" && t !== "" ? Number(t) : t;
3545
- return [k(Xe, T({
3545
+ return [x(Xe, T({
3546
3546
  modelValue: n,
3547
3547
  "onUpdate:modelValue": (r) => {
3548
3548
  typeof t == "string" && r !== null && r !== void 0 ? e[o.field] = String(r) : e[o.field] = r;
@@ -3564,7 +3564,7 @@ const Fr = {
3564
3564
  n = [r, s];
3565
3565
  } else
3566
3566
  n = e[o.field];
3567
- return [k("span", null, [Ke(n) ? n.join(" ~ ") : n])];
3567
+ return [x("span", null, [Ke(n) ? n.join(" ~ ") : n])];
3568
3568
  },
3569
3569
  edit: ({
3570
3570
  row: e,
@@ -3573,18 +3573,18 @@ const Fr = {
3573
3573
  const t = o.params?.fieldNames, n = o.params?.inputType || "input", r = n === "number" ? Xe : Fe;
3574
3574
  if (t) {
3575
3575
  const a = e[t.start], h = e[t.end], v = n === "number" && typeof a == "string" && a !== "" ? Number(a) : a, g = n === "number" && typeof h == "string" && h !== "" ? Number(h) : h;
3576
- return [k("div", {
3576
+ return [x("div", {
3577
3577
  style: {
3578
3578
  display: "flex",
3579
3579
  alignItems: "center",
3580
3580
  gap: "8px"
3581
3581
  }
3582
- }, [k(r, T({
3582
+ }, [x(r, T({
3583
3583
  modelValue: v,
3584
3584
  "onUpdate:modelValue": (i) => {
3585
3585
  n === "number" && typeof a == "string" && i !== null && i !== void 0 ? e[t.start] = String(i) : e[t.start] = i;
3586
3586
  }
3587
- }, o.params), null), k("span", null, [_("~")]), k(r, T({
3587
+ }, o.params), null), x("span", null, [_("~")]), x(r, T({
3588
3588
  modelValue: g,
3589
3589
  "onUpdate:modelValue": (i) => {
3590
3590
  n === "number" && typeof h == "string" && i !== null && i !== void 0 ? e[t.end] = String(i) : e[t.end] = i;
@@ -3592,7 +3592,7 @@ const Fr = {
3592
3592
  }, o.params), null)])];
3593
3593
  }
3594
3594
  const s = e[o.field], l = n === "number" && typeof s == "string" && s !== "" ? Number(s) : s;
3595
- return [k(r, T({
3595
+ return [x(r, T({
3596
3596
  modelValue: l,
3597
3597
  "onUpdate:modelValue": (a) => {
3598
3598
  n === "number" && typeof s == "string" && a !== null && a !== void 0 ? e[o.field] = String(a) : e[o.field] = a;
@@ -3606,19 +3606,19 @@ const Fr = {
3606
3606
  default: ({
3607
3607
  row: e,
3608
3608
  column: o
3609
- }) => [k("span", null, [e[o.field]])],
3609
+ }) => [x("span", null, [e[o.field]])],
3610
3610
  edit: ({
3611
3611
  row: e,
3612
3612
  column: o
3613
3613
  }) => {
3614
3614
  const t = j(!1), n = j(e[o.field] || "");
3615
- return [k(to, {
3615
+ return [x(to, {
3616
3616
  popupVisible: t.value,
3617
3617
  "onUpdate:popupVisible": (r) => t.value = r,
3618
3618
  trigger: "click",
3619
3619
  position: "top"
3620
3620
  }, {
3621
- default: () => [k(Fe, T({
3621
+ default: () => [x(Fe, T({
3622
3622
  modelValue: n.value,
3623
3623
  "onUpdate:modelValue": (r) => {
3624
3624
  n.value = r, e[o.field] = r;
@@ -3627,7 +3627,7 @@ const Fr = {
3627
3627
  t.value = !0;
3628
3628
  }
3629
3629
  }, o.params), null)],
3630
- content: () => [k(yt, T({
3630
+ content: () => [x(yt, T({
3631
3631
  modelValue: n.value,
3632
3632
  "onUpdate:modelValue": (r) => {
3633
3633
  n.value = r, e[o.field] = r;
@@ -3647,11 +3647,11 @@ const Fr = {
3647
3647
  default: ({
3648
3648
  row: e,
3649
3649
  column: o
3650
- }) => [k("span", null, [e[o.field] ? JSON.stringify(e[o.field]) : ""])],
3650
+ }) => [x("span", null, [e[o.field] ? JSON.stringify(e[o.field]) : ""])],
3651
3651
  edit: ({
3652
3652
  row: e,
3653
3653
  column: o
3654
- }) => [k(ks, T({
3654
+ }) => [x(ks, T({
3655
3655
  modelValue: e[o.field],
3656
3656
  "onUpdate:modelValue": (t) => {
3657
3657
  e[o.field] = t;
@@ -3664,18 +3664,18 @@ const Fr = {
3664
3664
  default: ({
3665
3665
  row: e,
3666
3666
  column: o
3667
- }) => [k("span", null, [e[o.field] ? JSON.stringify(e[o.field]) : ""])],
3667
+ }) => [x("span", null, [e[o.field] ? JSON.stringify(e[o.field]) : ""])],
3668
3668
  edit: ({
3669
3669
  row: e,
3670
3670
  column: o
3671
- }) => [k(tr, T({
3671
+ }) => [x(tr, T({
3672
3672
  modelValue: e[o.field],
3673
3673
  "onUpdate:modelValue": (t) => {
3674
3674
  e[o.field] = t;
3675
3675
  }
3676
3676
  }, o.params), null)]
3677
3677
  }
3678
- }, Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3678
+ }, Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3679
3679
  __proto__: null,
3680
3680
  BusinessSearchRender: Wr,
3681
3681
  DatePickerRender: Mr,
@@ -3696,7 +3696,7 @@ const Fr = {
3696
3696
  const t = e[o.field];
3697
3697
  if (t == null || t === "")
3698
3698
  return new Error(o.message);
3699
- }, Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3699
+ }, wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3700
3700
  __proto__: null,
3701
3701
  requiredValidator: Jr
3702
3702
  }, Symbol.toStringTag, { value: "Module" }));
@@ -3794,8 +3794,8 @@ function Kr(e, o) {
3794
3794
  if ((!s || !r) && u(), s && r && l) {
3795
3795
  const B = r.scrollWidth, p = r.clientWidth;
3796
3796
  if (B > p) {
3797
- const x = window.innerHeight;
3798
- b.bottom > x && b.top < x ? (s.style.display = "block", s.style.width = `${b.width}px`, s.style.left = `${b.left}px`, l.style.width = `${B}px`, Math.abs(s.scrollLeft - r.scrollLeft) > 1 && (s.scrollLeft = r.scrollLeft)) : s.style.display = "none";
3797
+ const k = window.innerHeight;
3798
+ b.bottom > k && b.top < k ? (s.style.display = "block", s.style.width = `${b.width}px`, s.style.left = `${b.left}px`, l.style.width = `${B}px`, Math.abs(s.scrollLeft - r.scrollLeft) > 1 && (s.scrollLeft = r.scrollLeft)) : s.style.display = "none";
3799
3799
  } else
3800
3800
  s.style.display = "none";
3801
3801
  }
@@ -3889,15 +3889,15 @@ const Hr = { class: "my-filter-complex" }, _r = {
3889
3889
  onKeyup: mt(v, ["enter"]),
3890
3890
  onInput: a
3891
3891
  }, null, 8, ["modelValue"]))
3892
- ])) : q("", !0),
3892
+ ])) : $("", !0),
3893
3893
  A("div", Xr, [
3894
- k(c(He), { onClick: g }, {
3894
+ x(c(He), { onClick: g }, {
3895
3895
  default: I(() => [...d[2] || (d[2] = [
3896
3896
  _("重置", -1)
3897
3897
  ])]),
3898
3898
  _: 1
3899
3899
  }),
3900
- k(c(He), {
3900
+ x(c(He), {
3901
3901
  status: "primary",
3902
3902
  onClick: v
3903
3903
  }, {
@@ -3915,7 +3915,7 @@ No.renderer.add("MyFilterComplex", {
3915
3915
  showTableFilterFooter: !1,
3916
3916
  // 自定义筛选模板
3917
3917
  renderTableFilter(e, o) {
3918
- return k(es, {
3918
+ return x(es, {
3919
3919
  renderOpts: e,
3920
3920
  renderParams: o
3921
3921
  }, null);
@@ -3949,7 +3949,7 @@ const Mt = /* @__PURE__ */ O({
3949
3949
  ]), 1040, ["size"]));
3950
3950
  }
3951
3951
  });
3952
- function wl(e) {
3952
+ function kl(e) {
3953
3953
  const o = j(), t = new Gr(o);
3954
3954
  return [O(
3955
3955
  (r, { attrs: s, slots: l }) => {
@@ -4036,7 +4036,7 @@ const os = { class: "sunny-resource-tree" }, ns = { class: "sunny-resource-tree_
4036
4036
  expandAll: (b) => f("expandAll", b),
4037
4037
  expandNode: (b, E) => f("expandNode", b, E)
4038
4038
  }), (b, E) => (w(), N("div", os, [
4039
- k(c(ro), T({
4039
+ x(c(ro), T({
4040
4040
  ref_key: "treeRef",
4041
4041
  ref: a
4042
4042
  }, b.$attrs), ie({
@@ -4084,7 +4084,7 @@ const os = { class: "sunny-resource-tree" }, ns = { class: "sunny-resource-tree_
4084
4084
  ]), 1040)
4085
4085
  ]));
4086
4086
  }
4087
- }), kl = /* @__PURE__ */ Ne(rs, [["__scopeId", "data-v-d8fa1bbf"]]);
4087
+ }), xl = /* @__PURE__ */ Ne(rs, [["__scopeId", "data-v-d8fa1bbf"]]);
4088
4088
  function ss(e) {
4089
4089
  if (!e || !Array.isArray(e)) return {};
4090
4090
  const o = {};
@@ -4118,18 +4118,18 @@ function ls(e, o) {
4118
4118
  if (e.searchApi) {
4119
4119
  p && (n.value = { ...p }), t.value = !0;
4120
4120
  try {
4121
- const x = {
4121
+ const k = {
4122
4122
  pageNo: s.value.current,
4123
4123
  pageSize: s.value.pageSize,
4124
4124
  ...n.value
4125
4125
  };
4126
4126
  let F;
4127
- if (typeof e.searchApi == "function" && (F = await e.searchApi(x)), F) {
4127
+ if (typeof e.searchApi == "function" && (F = await e.searchApi(k)), F) {
4128
4128
  const D = F.list || F.records || [], G = F.total || F.totalCount || 0;
4129
4129
  l.value = D, s.value.total = G;
4130
4130
  }
4131
- } catch (x) {
4132
- console.error("Search failed:", x), K.error("查询失败");
4131
+ } catch (k) {
4132
+ console.error("Search failed:", k), K.error("查询失败");
4133
4133
  } finally {
4134
4134
  t.value = !1;
4135
4135
  }
@@ -4138,9 +4138,9 @@ function ls(e, o) {
4138
4138
  s.value.current = p, i();
4139
4139
  }, u = (p) => {
4140
4140
  s.value.pageSize = p, s.value.current = 1, i();
4141
- }, m = (p, x) => {
4141
+ }, m = (p, k) => {
4142
4142
  const F = v(p), D = r.value.findIndex((G) => v(G) === F);
4143
- x ? D === -1 && (e.multiple ? r.value.push(p) : r.value = [p]) : D > -1 && r.value.splice(D, 1);
4143
+ k ? D === -1 && (e.multiple ? r.value.push(p) : r.value = [p]) : D > -1 && r.value.splice(D, 1);
4144
4144
  };
4145
4145
  return {
4146
4146
  loading: t,
@@ -4155,16 +4155,16 @@ function ls(e, o) {
4155
4155
  handlePageChange: d,
4156
4156
  handlePageSizeChange: u,
4157
4157
  handleCheckboxChange: (p) => {
4158
- const { row: x, checked: F } = p;
4159
- m(x, F);
4158
+ const { row: k, checked: F } = p;
4159
+ m(k, F);
4160
4160
  },
4161
4161
  handleCheckboxAll: (p) => {
4162
- const { checked: x, records: F } = p;
4163
- x ? F.forEach((D) => m(D, !0)) : l.value.forEach((D) => m(D, !1));
4162
+ const { checked: k, records: F } = p;
4163
+ k ? F.forEach((D) => m(D, !0)) : l.value.forEach((D) => m(D, !1));
4164
4164
  },
4165
4165
  handleRadioChange: (p) => {
4166
- const { row: x } = p;
4167
- r.value = [x];
4166
+ const { row: k } = p;
4167
+ r.value = [k];
4168
4168
  },
4169
4169
  removeRow: (p) => {
4170
4170
  m(p, !1);
@@ -4227,7 +4227,7 @@ const as = { class: "flex flex-col h-full" }, is = { class: "mb-4 border-b borde
4227
4227
  handleCheckboxChange: V,
4228
4228
  handleCheckboxAll: B,
4229
4229
  handleRadioChange: p,
4230
- removeRow: x,
4230
+ removeRow: k,
4231
4231
  handleOk: F,
4232
4232
  handleCancel: D,
4233
4233
  toggleRowSelection: G,
@@ -4247,7 +4247,7 @@ const as = { class: "flex flex-col h-full" }, is = { class: "mb-4 border-b borde
4247
4247
  } catch (W) {
4248
4248
  return console.error("Form validation failed:", W), !1;
4249
4249
  }
4250
- }, $ = async (W) => {
4250
+ }, q = async (W) => {
4251
4251
  d.value.current = 1, r.clearOnSearch && (i.value = []), E(W);
4252
4252
  }, M = C(() => ({
4253
4253
  border: !0,
@@ -4318,7 +4318,7 @@ const as = { class: "flex flex-col h-full" }, is = { class: "mb-4 border-b borde
4318
4318
  }, {
4319
4319
  footer: I(() => [
4320
4320
  A("div", vs, [
4321
- k(c(ao), {
4321
+ x(c(ao), {
4322
4322
  current: c(d).current,
4323
4323
  "onUpdate:current": te[2] || (te[2] = (H) => c(d).current = H),
4324
4324
  "page-size": c(d).pageSize,
@@ -4331,13 +4331,13 @@ const as = { class: "flex flex-col h-full" }, is = { class: "mb-4 border-b borde
4331
4331
  onPageSizeChange: c(S)
4332
4332
  }, null, 8, ["current", "page-size", "total", "onChange", "onPageSizeChange"]),
4333
4333
  A("div", ys, [
4334
- k(c(he), { onClick: c(D) }, {
4334
+ x(c(he), { onClick: c(D) }, {
4335
4335
  default: I(() => [
4336
4336
  _(R(c(Y)("common.cancel")), 1)
4337
4337
  ]),
4338
4338
  _: 1
4339
4339
  }, 8, ["onClick"]),
4340
- k(c(he), {
4340
+ x(c(he), {
4341
4341
  type: "primary",
4342
4342
  onClick: c(F)
4343
4343
  }, {
@@ -4352,7 +4352,7 @@ const as = { class: "flex flex-col h-full" }, is = { class: "mb-4 border-b borde
4352
4352
  default: I(() => [
4353
4353
  A("div", as, [
4354
4354
  A("div", is, [
4355
- k(Pr, {
4355
+ x(Pr, {
4356
4356
  ref_key: "formRef",
4357
4357
  ref: h,
4358
4358
  values: c(g),
@@ -4361,7 +4361,7 @@ const as = { class: "flex flex-col h-full" }, is = { class: "mb-4 border-b borde
4361
4361
  "common-config": r.commonConfig,
4362
4362
  "show-default-actions": "",
4363
4363
  "reset-button-options": { show: !0 },
4364
- onSubmit: $,
4364
+ onSubmit: q,
4365
4365
  onReset: U,
4366
4366
  layout: "vertical"
4367
4367
  }, ie({ _: 2 }, [
@@ -4378,7 +4378,7 @@ const as = { class: "flex flex-col h-full" }, is = { class: "mb-4 border-b borde
4378
4378
  style: se({ height: typeof r.contentHeight == "number" ? r.contentHeight + "px" : r.contentHeight })
4379
4379
  }, [
4380
4380
  A("div", cs, [
4381
- k(Mt, T({
4381
+ x(Mt, T({
4382
4382
  ref_key: "gridRef",
4383
4383
  ref: a,
4384
4384
  columns: r.tableColumns,
@@ -4398,14 +4398,14 @@ const as = { class: "flex flex-col h-full" }, is = { class: "mb-4 border-b borde
4398
4398
  key: 0,
4399
4399
  class: "text-xs text-blue-500 cursor-pointer",
4400
4400
  onClick: te[1] || (te[1] = (H) => i.value = [])
4401
- }, R(c(Y)("common.clear")), 1)) : q("", !0)
4401
+ }, R(c(Y)("common.clear")), 1)) : $("", !0)
4402
4402
  ]),
4403
4403
  A("div", fs, [
4404
4404
  c(i).length ? (w(!0), N(le, { key: 0 }, Z(c(i), (H) => (w(), N("div", {
4405
4405
  key: H[c(f)],
4406
4406
  class: "relative group px-2 py-1 mb-1 bg-white border border-gray-200 rounded hover:shadow-sm transition-all h-[42px] flex flex-col justify-center"
4407
4407
  }, [
4408
- k(c(ht), {
4408
+ x(c(ht), {
4409
4409
  content: `${H[c(m).desc]}`
4410
4410
  }, {
4411
4411
  default: I(() => [
@@ -4416,9 +4416,9 @@ const as = { class: "flex flex-col h-full" }, is = { class: "mb-4 border-b borde
4416
4416
  }, 1032, ["content"]),
4417
4417
  A("div", {
4418
4418
  class: "absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 cursor-pointer text-gray-400 hover:text-red-500 transition-opacity p-0.5 bg-white rounded-full shadow-sm",
4419
- onClick: (be) => c(x)(H)
4419
+ onClick: (be) => c(k)(H)
4420
4420
  }, [
4421
- k(c(wt), { size: 10 })
4421
+ x(c(wt), { size: 10 })
4422
4422
  ], 8, hs)
4423
4423
  ]))), 128)) : (w(), N("div", gs, R(c(Y)("common.noData")), 1))
4424
4424
  ])
@@ -4437,7 +4437,7 @@ async function Cs(e) {
4437
4437
  const o = jt[e];
4438
4438
  return o ? await o() : (console.warn(`[SunnyBusinessSearch] Config for type "${e}" not found.`), null);
4439
4439
  }
4440
- function xl(e, o) {
4440
+ function El(e, o) {
4441
4441
  jt[e] = o;
4442
4442
  }
4443
4443
  function Ss(e, o) {
@@ -4545,7 +4545,7 @@ const ws = { class: "sunny-business-search" }, ks = /* @__PURE__ */ O({
4545
4545
  };
4546
4546
  });
4547
4547
  return (i, d) => (w(), N("div", ws, [
4548
- k(c(cr), T(i.$attrs, {
4548
+ x(c(cr), T(i.$attrs, {
4549
4549
  "model-value": c(l),
4550
4550
  placeholder: e.placeholder,
4551
4551
  disabled: e.disabled,
@@ -4566,7 +4566,7 @@ const ws = { class: "sunny-business-search" }, ks = /* @__PURE__ */ O({
4566
4566
  visible: c(r),
4567
4567
  "onUpdate:visible": d[1] || (d[1] = (u) => ye(r) ? r.value = u : null),
4568
4568
  "model-value": c(l)
4569
- }, g.value, { onConfirm: c(h) }), null, 16, ["visible", "model-value", "onConfirm"])) : q("", !0)
4569
+ }, g.value, { onConfirm: c(h) }), null, 16, ["visible", "model-value", "onConfirm"])) : $("", !0)
4570
4570
  ]));
4571
4571
  }
4572
4572
  }), Qt = {
@@ -4609,8 +4609,8 @@ function xs(e, o, t, n, r = Qt) {
4609
4609
  if (B.message && K.success(B.message), e.resourceId) {
4610
4610
  const p = await d(e.resourceId);
4611
4611
  o("update:searchPlanList", p);
4612
- const x = p.find((F) => F.CSEARCHPLANNAME === V);
4613
- x && await i(x);
4612
+ const k = p.find((F) => F.CSEARCHPLANNAME === V);
4613
+ k && await i(k);
4614
4614
  }
4615
4615
  o("add", V, { ...y }), l.value = "";
4616
4616
  } catch (V) {
@@ -4646,7 +4646,7 @@ function xs(e, o, t, n, r = Qt) {
4646
4646
  if (V.message && K.success(V.message), e.resourceId) {
4647
4647
  const B = await d(e.resourceId);
4648
4648
  o("update:searchPlanList", B);
4649
- const p = B.find((x) => x.ID === e.currentSearchPlan?.ID);
4649
+ const p = B.find((k) => k.ID === e.currentSearchPlan?.ID);
4650
4650
  p && await i(p);
4651
4651
  }
4652
4652
  o("update", e.currentSearchPlan.ID, l.value.trim() || e.currentSearchPlan.CSEARCHPLANNAME, { ...y }), l.value = "";
@@ -4788,10 +4788,13 @@ function xs(e, o, t, n, r = Qt) {
4788
4788
  const Es = { class: "inline-block" }, Bs = ["disabled"], Is = { class: "p-5 relative" }, Ps = {
4789
4789
  key: 0,
4790
4790
  class: "absolute inset-0 bg-white/80 flex flex-col items-center justify-center z-10 rounded"
4791
- }, Vs = { class: "text-sm text-[var(--color-text-2)]" }, Rs = { class: "flex-1 min-w-0" }, Fs = { class: "w-60" }, Ns = { class: "text-sm font-semibold mb-4 text-[var(--color-text-1)]" }, Ts = { class: "mb-5" }, Ls = { class: "mb-3" }, Ms = { class: "block text-xs text-[var(--color-text-2)] mb-1" }, js = ["placeholder", "disabled"], Qs = {
4791
+ }, Vs = { class: "text-sm text-[var(--color-text-2)]" }, Rs = { class: "w-2/3 min-w-0 pr-6 border-r border-[#D8D8D8]" }, Fs = { class: "w-1/3 pl-6" }, Ns = { class: "text-base font-semibold mb-4 text-[var(--color-text-1)]" }, Ts = { class: "mb-5" }, Ls = { class: "mb-3" }, Ms = { class: "block text-sm text-[var(--color-text-2)] mb-1" }, js = ["placeholder", "disabled"], Qs = {
4792
4792
  key: 0,
4793
4793
  class: "text-xs text-red-500 mt-1"
4794
- }, Os = { class: "flex gap-2 mt-3" }, Ds = ["disabled"], zs = ["disabled"], Us = { class: "text-sm font-semibold mb-4 text-[var(--color-text-1)]" }, $s = { class: "max-h-44 overflow-y-auto border border-[var(--color-border-2)] rounded p-2" }, qs = ["onClick"], Ws = ["onClick", "disabled"], Ys = { class: "flex justify-end gap-3 pt-5 border-t border-[var(--color-border-2)]" }, Js = ["disabled"], Gs = ["disabled"], El = /* @__PURE__ */ O({
4794
+ }, Os = { class: "flex gap-2 mt-3" }, Ds = ["disabled"], zs = ["disabled"], Us = { class: "text-base font-semibold mb-4 text-[var(--color-text-1)]" }, $s = { class: "max-h-44 overflow-y-auto border border-[var(--color-border-2)] rounded p-2" }, qs = ["onClick"], Ws = ["onClick", "disabled"], Ys = {
4795
+ key: 0,
4796
+ class: "text-center py-8 text-sm text-[var(--color-text-3)]"
4797
+ }, Js = { class: "flex justify-end gap-3 pt-5 border-t border-[var(--color-border-2)]" }, Gs = ["disabled"], Ks = ["disabled"], Bl = /* @__PURE__ */ O({
4795
4798
  name: "SunnySearchPlan",
4796
4799
  inheritAttrs: !1,
4797
4800
  __name: "SunnySearchPlan",
@@ -4855,8 +4858,8 @@ const Es = { class: "inline-block" }, Bs = ["disabled"], Is = { class: "p-5 rela
4855
4858
  };
4856
4859
  X(
4857
4860
  () => [t.model, t.modelValue],
4858
- ([L, $]) => {
4859
- const M = $ || L;
4861
+ ([L, q]) => {
4862
+ const M = q || L;
4860
4863
  M && (s.value = { ...M }, r && r.setValues(M).catch((ce) => {
4861
4864
  console.error("setValues error:", ce);
4862
4865
  }));
@@ -4879,21 +4882,21 @@ const Es = { class: "inline-block" }, Bs = ["disabled"], Is = { class: "p-5 rela
4879
4882
  span: 8
4880
4883
  // 一行三列
4881
4884
  }
4882
- }))), x = C(() => t.searchPlanList), F = C(() => t.currentSearchPlan), D = C(() => t.disabled), G = C(() => t.formProps), P = C(() => t.title), U = C(() => t.width);
4883
- return (L, $) => (w(), N("div", Es, [
4885
+ }))), k = C(() => t.searchPlanList), F = C(() => t.currentSearchPlan), D = C(() => t.disabled), G = C(() => t.formProps), P = C(() => t.title), U = C(() => t.width);
4886
+ return (L, q) => (w(), N("div", Es, [
4884
4887
  z(L.$slots, "trigger", {
4885
4888
  open: S,
4886
4889
  disabled: D.value
4887
4890
  }, () => [
4888
4891
  A("button", {
4889
- class: "px-3 py-1.5 border border-[var(--color-border-2)] rounded bg-white text-sm transition-all hover:border-[rgb(var(--primary-6))] hover:text-[rgb(var(--primary-6))] disabled:cursor-not-allowed disabled:opacity-60",
4892
+ class: "px-3 py-1.5 border border-[var(--color-border-2)] rounded bg-white text-base transition-all hover:border-[rgb(var(--primary-6))] hover:text-[rgb(var(--primary-6))] disabled:cursor-not-allowed disabled:opacity-60",
4890
4893
  disabled: D.value,
4891
4894
  onClick: S
4892
4895
  }, R(c(Y)("common.searchPlan.title")), 9, Bs)
4893
4896
  ]),
4894
- k(c(et), T({
4897
+ x(c(et), T({
4895
4898
  visible: c(l),
4896
- "onUpdate:visible": $[5] || ($[5] = (M) => ye(l) ? l.value = M : null),
4899
+ "onUpdate:visible": q[5] || (q[5] = (M) => ye(l) ? l.value = M : null),
4897
4900
  title: P.value,
4898
4901
  width: U.value,
4899
4902
  top: "50px",
@@ -4903,36 +4906,37 @@ const Es = { class: "inline-block" }, Bs = ["disabled"], Is = { class: "p-5 rela
4903
4906
  onClose: c(f)
4904
4907
  }), {
4905
4908
  footer: I(() => [
4906
- A("div", Ys, [
4909
+ A("div", Js, [
4907
4910
  A("button", {
4908
4911
  class: "px-3 py-1.5 border border-[var(--color-border-2)] rounded bg-white text-sm transition-colors hover:border-[rgb(var(--primary-6))] hover:text-[rgb(var(--primary-6))] disabled:cursor-not-allowed disabled:opacity-60",
4909
- onClick: $[3] || ($[3] = //@ts-ignore
4912
+ onClick: q[3] || (q[3] = //@ts-ignore
4910
4913
  (...M) => c(u) && c(u)(...M)),
4911
4914
  disabled: t.loading
4912
- }, R(c(Y)("common.searchPlan.reset")), 9, Js),
4915
+ }, R(c(Y)("common.searchPlan.reset")), 9, Gs),
4913
4916
  A("button", {
4914
4917
  class: "px-3 py-1.5 bg-[rgb(var(--primary-6))] border border-[rgb(var(--primary-6))] text-white text-sm rounded hover:bg-[rgb(var(--primary-7))] transition-colors disabled:cursor-not-allowed disabled:opacity-60",
4915
- onClick: $[4] || ($[4] = //@ts-ignore
4918
+ onClick: q[4] || (q[4] = //@ts-ignore
4916
4919
  (...M) => c(m) && c(m)(...M)),
4917
4920
  disabled: t.loading
4918
- }, R(c(Y)("common.searchPlan.search")), 9, Gs)
4921
+ }, R(c(Y)("common.searchPlan.search")), 9, Ks)
4919
4922
  ])
4920
4923
  ]),
4921
4924
  default: I(() => [
4922
4925
  A("div", Is, [
4923
4926
  t.loading ? (w(), N("div", Ps, [
4924
- $[6] || ($[6] = A("div", { class: "w-7 h-7 border-3 border-[var(--color-border-2)] border-t-[rgb(var(--primary-6))] rounded-full animate-spin mb-2.5" }, null, -1)),
4927
+ q[6] || (q[6] = A("div", { class: "w-7 h-7 border-3 border-[var(--color-border-2)] border-t-[rgb(var(--primary-6))] rounded-full animate-spin mb-2.5" }, null, -1)),
4925
4928
  A("div", Vs, R(c(Y)("common.searchPlan.loading")), 1)
4926
- ])) : q("", !0),
4929
+ ])) : $("", !0),
4927
4930
  A("div", {
4928
4931
  class: J([{ "opacity-60": t.loading }, "flex gap-5"])
4929
4932
  }, [
4930
4933
  A("div", Rs, [
4931
- k(c(Lt), T({
4934
+ x(c(Lt), T({
4932
4935
  "form-api": c(r),
4933
4936
  schema: p.value,
4934
4937
  "show-default-actions": !1,
4935
- "show-message": !1
4938
+ "show-message": !1,
4939
+ layout: "vertical"
4936
4940
  }, G.value, { onMounted: V }), null, 16, ["form-api", "schema"])
4937
4941
  ]),
4938
4942
  A("div", Fs, [
@@ -4941,7 +4945,7 @@ const Es = { class: "inline-block" }, Bs = ["disabled"], Is = { class: "p-5 rela
4941
4945
  A("div", Ls, [
4942
4946
  A("label", Ms, R(c(Y)("common.searchPlan.planName")), 1),
4943
4947
  qe(A("input", {
4944
- "onUpdate:modelValue": $[0] || ($[0] = (M) => ye(a) ? a.value = M : null),
4948
+ "onUpdate:modelValue": q[0] || (q[0] = (M) => ye(a) ? a.value = M : null),
4945
4949
  type: "text",
4946
4950
  placeholder: c(Y)("common.searchPlan.planNamePlaceholder"),
4947
4951
  class: "w-full px-2 py-1.5 border border-[var(--color-border-2)] rounded text-xs focus:outline-none focus:border-[rgb(var(--primary-6))] focus:ring-2 focus:ring-[rgb(var(--primary-1))]",
@@ -4949,27 +4953,27 @@ const Es = { class: "inline-block" }, Bs = ["disabled"], Is = { class: "p-5 rela
4949
4953
  }, null, 8, js), [
4950
4954
  [Wt, c(a)]
4951
4955
  ]),
4952
- !c(a).trim() && c(h) ? (w(), N("div", Qs, R(c(Y)("common.searchPlan.planNameRequired")), 1)) : q("", !0)
4956
+ !c(a).trim() && c(h) ? (w(), N("div", Qs, R(c(Y)("common.searchPlan.planNameRequired")), 1)) : $("", !0)
4953
4957
  ]),
4954
4958
  A("div", Os, [
4955
4959
  A("button", {
4956
- class: "px-3 py-1 bg-[rgb(var(--primary-6))] border border-[rgb(var(--primary-6))] text-white text-xs rounded hover:bg-[rgb(var(--primary-7))] transition-colors disabled:cursor-not-allowed disabled:opacity-60",
4957
- onClick: $[1] || ($[1] = //@ts-ignore
4960
+ class: "px-3 py-1 border border-[rgb(var(--primary-6))] text-[rgb(var(--primary-6))] text-xs rounded hover:bg-[rgb(var(--primary-6))] hover:text-white transition-colors disabled:cursor-not-allowed disabled:opacity-60",
4961
+ onClick: q[1] || (q[1] = //@ts-ignore
4958
4962
  (...M) => c(v) && c(v)(...M)),
4959
4963
  disabled: t.loading
4960
4964
  }, R(c(Y)("common.searchPlan.add")), 9, Ds),
4961
4965
  A("button", {
4962
- class: "px-3 py-1 border border-[var(--color-border-2)] text-[var(--color-text-1)] text-xs rounded hover:bg-[var(--color-fill-1)] hover:border-[rgb(var(--primary-6))] hover:text-[rgb(var(--primary-6))] transition-colors disabled:cursor-not-allowed disabled:opacity-60",
4966
+ class: "px-3 py-1 border border-[#ff4949] text-[#ff4949] text-xs rounded hover:bg-[#ff4949] hover:text-white transition-colors disabled:cursor-not-allowed disabled:opacity-60",
4963
4967
  disabled: !F.value || t.loading,
4964
- onClick: $[2] || ($[2] = //@ts-ignore
4968
+ onClick: q[2] || (q[2] = //@ts-ignore
4965
4969
  (...M) => c(g) && c(g)(...M))
4966
4970
  }, R(c(Y)("common.searchPlan.update")), 9, zs)
4967
4971
  ])
4968
4972
  ]),
4969
- $[7] || ($[7] = A("div", { class: "h-px bg-[var(--color-border-2)] my-5" }, null, -1)),
4973
+ q[7] || (q[7] = A("div", { class: "h-px bg-[var(--color-border-2)] my-5" }, null, -1)),
4970
4974
  A("h3", Us, R(c(Y)("common.searchPlan.savedPlans")), 1),
4971
4975
  A("div", $s, [
4972
- (w(!0), N(le, null, Z(x.value, (M, ce) => (w(), N("div", {
4976
+ (w(!0), N(le, null, Z(k.value, (M, ce) => (w(), N("div", {
4973
4977
  key: M.ID,
4974
4978
  class: J(["flex items-center p-2 mb-1 rounded cursor-pointer transition-all hover:bg-[var(--color-fill-1)] border border-transparent", { "bg-[rgb(var(--primary-1))] border-[rgb(var(--primary-6))]": F.value && (F.value.ID == M.ID || F.value.ID === M.ID) }]),
4975
4979
  onClick: (W) => c(d)(M),
@@ -4986,7 +4990,8 @@ const Es = { class: "inline-block" }, Bs = ["disabled"], Is = { class: "p-5 rela
4986
4990
  onClick: ve((W) => c(i)(M), ["stop"]),
4987
4991
  disabled: t.loading
4988
4992
  }, " × ", 8, Ws)
4989
- ], 14, qs))), 128))
4993
+ ], 14, qs))), 128)),
4994
+ k.value.length === 0 ? (w(), N("div", Ys, R(c(Y)("common.searchPlan.noPlans")), 1)) : $("", !0)
4990
4995
  ])
4991
4996
  ])
4992
4997
  ], 2)
@@ -4998,36 +5003,36 @@ const Es = { class: "inline-block" }, Bs = ["disabled"], Is = { class: "p-5 rela
4998
5003
  }
4999
5004
  });
5000
5005
  export {
5001
- Cl as EditRender,
5002
- pl as ErrorBoundary,
5006
+ Sl as EditRender,
5007
+ ml as ErrorBoundary,
5003
5008
  mr as FormApi,
5004
5009
  et as Modal,
5005
- fl as ModalTypes,
5006
- gl as SunnyBatchSelect,
5010
+ pl as ModalTypes,
5011
+ vl as SunnyBatchSelect,
5007
5012
  ks as SunnyBusinessSearch,
5008
- vl as SunnyCustomizeSelect,
5013
+ yl as SunnyCustomizeSelect,
5009
5014
  Pr as SunnyForm,
5010
5015
  jn as SunnyIcon,
5011
- kl as SunnyResourceTree,
5012
- ml as SunnyScrollbar,
5016
+ xl as SunnyResourceTree,
5017
+ hl as SunnyScrollbar,
5013
5018
  cr as SunnySearchInputTag,
5014
5019
  As as SunnySearchModal,
5015
- El as SunnySearchPlan,
5020
+ Bl as SunnySearchPlan,
5016
5021
  or as SunnySelect,
5017
5022
  tr as SunnySimpleUpload,
5018
- hl as SunnyUpload,
5019
- Sl as Validators,
5023
+ gl as SunnyUpload,
5024
+ wl as Validators,
5020
5025
  Cs as getBusinessConfig,
5021
- Pl as patterns,
5022
- xl as registerBusinessConfig,
5023
- yl as setupSunnyForm,
5024
- Vl as startProgress,
5025
- Rl as stopProgress,
5026
- Al as useSunnyEditGrid,
5026
+ Vl as patterns,
5027
+ El as registerBusinessConfig,
5028
+ bl as setupSunnyForm,
5029
+ Rl as startProgress,
5030
+ Fl as stopProgress,
5031
+ Cl as useSunnyEditGrid,
5027
5032
  Ir as useSunnyForm,
5028
- dl as useSunnyModal,
5029
- wl as useSunnyQueryGrid,
5033
+ fl as useSunnyModal,
5034
+ kl as useSunnyQueryGrid,
5030
5035
  ts as useSunnyResourceTree,
5031
5036
  xs as useSunnySearchPlan,
5032
- il as z
5037
+ cl as z
5033
5038
  };