dydx-naive-ui-for-vue 0.1.31 → 0.1.32

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,6 +1,6 @@
1
1
  import { t as Du } from "./resolver-BDxomgBZ.js";
2
2
  import { NAutoComplete as Dr, NButton as K, NCascader as Fr, NCheckbox as Mt, NCheckboxGroup as Je, NColorPicker as Ir, NDataTable as jr, NDatePicker as Br, NDrawer as zr, NDrawerContent as Ur, NDropdown as Rr, NDynamicInput as Mr, NDynamicTags as Er, NForm as Lr, NFormItem as Gr, NGrid as Kr, NGridItem as Vr, NIcon as L, NImage as Hr, NInput as Wr, NInputNumber as qr, NMention as Jr, NModal as Yr, NPopconfirm as Qr, NPopover as Xr, NRadio as Zr, NRadioGroup as Et, NRate as ea, NSelect as Lt, NSlider as ta, NSpace as X, NSpin as Ye, NSwitch as ra, NTag as Re, NText as aa, NTimePicker as na, NTooltip as Ge, NTreeSelect as oa, NUpload as Gt, NUploadDragger as la, useMessage as ia } from "naive-ui";
3
- import { Fragment as Z, computed as R, createBlock as P, createCommentVNode as J, createElementBlock as Q, createElementVNode as Pe, createSlots as Te, createTextVNode as U, createVNode as _, defineComponent as fe, guardReactiveProps as sa, h as C, isRef as ua, mergeModels as ft, mergeProps as q, nextTick as da, normalizeProps as fa, onMounted as Kt, onUnmounted as ca, openBlock as h, ref as te, renderList as oe, renderSlot as V, resolveDynamicComponent as ue, toDisplayString as W, toHandlers as pa, unref as d, useAttrs as Qe, useModel as ya, watch as ga, withCtx as s } from "vue";
3
+ import { Fragment as Z, computed as R, createBlock as P, createCommentVNode as J, createElementBlock as Q, createElementVNode as Pe, createSlots as Te, createTextVNode as U, createVNode as _, defineComponent as fe, guardReactiveProps as sa, h as C, isRef as ua, mergeModels as ft, mergeProps as q, nextTick as da, normalizeProps as fa, onMounted as Kt, onUnmounted as ca, openBlock as v, ref as te, renderList as oe, renderSlot as V, resolveDynamicComponent as ue, toDisplayString as W, toHandlers as pa, unref as d, useAttrs as Qe, useModel as ya, watch as ga, withCtx as s } from "vue";
4
4
  import * as Ne from "@vicons/ionicons5";
5
5
  import { AddOutline as Vt, CheckmarkOutline as Ht, CloseOutline as Wt, CloudUploadOutline as ct, CreateOutline as ma, DownloadOutline as va, EyeOutline as ha, OpenOutline as _a, RefreshOutline as qt, SearchCircleOutline as ba, SettingsOutline as wa, TrashOutline as xa } from "@vicons/ionicons5";
6
6
  var Ca = { style: { "margin-bottom": "12px" } }, Ta = /* @__PURE__ */ fe({
@@ -43,7 +43,7 @@ var Ca = { style: { "margin-bottom": "12px" } }, Ta = /* @__PURE__ */ fe({
43
43
  "beforeUpload"
44
44
  ],
45
45
  setup(e, { expose: t, emit: r }) {
46
- const a = e, l = r, o = ia(), n = te(), y = R(() => a.listType ? a.listType : a.uploadType === "image" ? "image-card" : "text"), m = R(() => a.urlPrefix ? a.fileList.map((w) => ({
46
+ const a = e, o = r, l = ia(), n = te(), y = R(() => a.listType ? a.listType : a.uploadType === "image" ? "image-card" : "text"), m = R(() => a.urlPrefix ? a.fileList.map((w) => ({
47
47
  ...w,
48
48
  url: w.url && !w.url.startsWith("http") ? a.urlPrefix + w.url : w.url
49
49
  })) : a.fileList), g = R(() => {
@@ -57,21 +57,21 @@ var Ca = { style: { "margin-bottom": "12px" } }, Ta = /* @__PURE__ */ fe({
57
57
  const { uploadType: w, fileList: N, customUpload: I, acceptTypes: f, maxSize: u, maxCount: p, multiple: x, autoUpload: H, disabled: re, urlPrefix: E, showTip: _e, showDragger: be, ...Ae } = a;
58
58
  return Ae;
59
59
  }), A = (w) => {
60
- l("update:fileList", a.urlPrefix ? w.map((N) => ({
60
+ o("update:fileList", a.urlPrefix ? w.map((N) => ({
61
61
  ...N,
62
62
  url: N.url?.startsWith(a.urlPrefix) ? N.url.slice(a.urlPrefix.length) : N.url
63
63
  })) : w);
64
64
  }, $ = async ({ file: w }) => {
65
- l("beforeUpload", w);
65
+ o("beforeUpload", w);
66
66
  const N = w.file;
67
- return N ? a.maxSize && N.size > a.maxSize * 1024 * 1024 ? (o.error(`文件大小不能超过 ${a.maxSize}MB`), !1) : a.acceptTypes?.length && !a.acceptTypes.some((I) => {
67
+ return N ? a.maxSize && N.size > a.maxSize * 1024 * 1024 ? (l.error(`文件大小不能超过 ${a.maxSize}MB`), !1) : a.acceptTypes?.length && !a.acceptTypes.some((I) => {
68
68
  if (I.startsWith(".")) return N.name.toLowerCase().endsWith(I.toLowerCase());
69
69
  if (I.includes("*")) {
70
70
  const [f] = I.split("/");
71
71
  return N.type.startsWith(f);
72
72
  }
73
73
  return N.type === I;
74
- }) ? (o.error(`只支持 ${a.acceptTypes.join(", ")} 格式`), !1) : a.maxCount && a.fileList.length >= a.maxCount ? (l("exceed", [N]), o.error(`最多上传 ${a.maxCount} 个文件`), !1) : !0 : !0;
74
+ }) ? (l.error(`只支持 ${a.acceptTypes.join(", ")} 格式`), !1) : a.maxCount && a.fileList.length >= a.maxCount ? (o("exceed", [N]), l.error(`最多上传 ${a.maxCount} 个文件`), !1) : !0 : !0;
75
75
  }, M = async (w) => {
76
76
  const { file: N, onProgress: I, onFinish: f, onError: u } = w;
77
77
  if (!a.customUpload) {
@@ -81,11 +81,11 @@ var Ca = { style: { "margin-bottom": "12px" } }, Ta = /* @__PURE__ */ fe({
81
81
  try {
82
82
  N.url = await a.customUpload(N.file, (p) => {
83
83
  I({ percent: p });
84
- }), N.status = "finished", f(), l("success", N);
84
+ }), N.status = "finished", f(), o("success", N);
85
85
  } catch (p) {
86
- u(), l("error", N, p);
86
+ u(), o("error", N, p);
87
87
  }
88
- }, z = () => {
88
+ }, B = () => {
89
89
  n.value?.submit();
90
90
  };
91
91
  return t({
@@ -94,7 +94,7 @@ var Ca = { style: { "margin-bottom": "12px" } }, Ta = /* @__PURE__ */ fe({
94
94
  clear: () => n.value?.clear()
95
95
  }), (w, N) => {
96
96
  const I = L, f = aa, u = la, p = K, x = Gt;
97
- return h(), Q("div", null, [
97
+ return v(), Q("div", null, [
98
98
  _(x, q({
99
99
  ref_key: "uploadRef",
100
100
  ref: n
@@ -110,7 +110,7 @@ var Ca = { style: { "margin-bottom": "12px" } }, Ta = /* @__PURE__ */ fe({
110
110
  "onUpdate:fileList": A,
111
111
  onBeforeUpload: $
112
112
  }), {
113
- default: s(() => [e.showDragger && e.uploadType !== "image" ? (h(), P(u, { key: 0 }, {
113
+ default: s(() => [e.showDragger && e.uploadType !== "image" ? (v(), P(u, { key: 0 }, {
114
114
  default: s(() => [
115
115
  Pe("div", Ca, [_(I, {
116
116
  size: "48",
@@ -123,7 +123,7 @@ var Ca = { style: { "margin-bottom": "12px" } }, Ta = /* @__PURE__ */ fe({
123
123
  default: s(() => [...N[0] || (N[0] = [U(" 点击或拖拽文件到此区域上传 ", -1)])]),
124
124
  _: 1
125
125
  }),
126
- e.showTip ? (h(), P(f, {
126
+ e.showTip ? (v(), P(f, {
127
127
  key: 0,
128
128
  depth: "3",
129
129
  style: {
@@ -137,13 +137,13 @@ var Ca = { style: { "margin-bottom": "12px" } }, Ta = /* @__PURE__ */ fe({
137
137
  })) : J("", !0)
138
138
  ]),
139
139
  _: 1
140
- })) : V(w.$slots, "default", { key: 1 }, () => [e.uploadType === "image" && y.value === "image-card" ? (h(), P(I, {
140
+ })) : V(w.$slots, "default", { key: 1 }, () => [e.uploadType === "image" && y.value === "image-card" ? (v(), P(I, {
141
141
  key: 0,
142
142
  size: 28
143
143
  }, {
144
144
  default: s(() => [_(d(Vt))]),
145
145
  _: 1
146
- })) : (h(), P(p, { key: 1 }, {
146
+ })) : (v(), P(p, { key: 1 }, {
147
147
  icon: s(() => [_(I, null, {
148
148
  default: s(() => [_(d(ct))]),
149
149
  _: 1
@@ -161,16 +161,16 @@ var Ca = { style: { "margin-bottom": "12px" } }, Ta = /* @__PURE__ */ fe({
161
161
  "default-upload",
162
162
  "list-type"
163
163
  ]),
164
- !e.autoUpload && m.value.length > 0 ? (h(), P(p, {
164
+ !e.autoUpload && m.value.length > 0 ? (v(), P(p, {
165
165
  key: 0,
166
166
  type: "primary",
167
- onClick: z,
167
+ onClick: B,
168
168
  style: { "margin-top": "8px" }
169
169
  }, {
170
170
  default: s(() => [...N[1] || (N[1] = [U(" 开始上传 ", -1)])]),
171
171
  _: 1
172
172
  })) : J("", !0),
173
- e.showTip && !(e.showDragger && e.uploadType !== "image") ? (h(), P(f, {
173
+ e.showTip && !(e.showDragger && e.uploadType !== "image") ? (v(), P(f, {
174
174
  key: 1,
175
175
  depth: "3",
176
176
  style: {
@@ -204,9 +204,9 @@ var Ca = { style: { "margin-bottom": "12px" } }, Ta = /* @__PURE__ */ fe({
204
204
  },
205
205
  emits: ["update:value"],
206
206
  setup(e, { emit: t }) {
207
- const r = e, a = t, l = Object.keys(Ne), o = R(() => {
208
- let g = l;
209
- return r.iconStyle === "outline" ? g = l.filter((b) => b.endsWith("Outline")) : r.iconStyle === "sharp" ? g = l.filter((b) => b.endsWith("Sharp")) : r.iconStyle === "filled" && (g = l.filter((b) => !b.endsWith("Outline") && !b.endsWith("Sharp"))), g.map((b) => ({
207
+ const r = e, a = t, o = Object.keys(Ne), l = R(() => {
208
+ let g = o;
209
+ return r.iconStyle === "outline" ? g = o.filter((b) => b.endsWith("Outline")) : r.iconStyle === "sharp" ? g = o.filter((b) => b.endsWith("Sharp")) : r.iconStyle === "filled" && (g = o.filter((b) => !b.endsWith("Outline") && !b.endsWith("Sharp"))), g.map((b) => ({
210
210
  label: b,
211
211
  value: b
212
212
  }));
@@ -219,9 +219,9 @@ var Ca = { style: { "margin-bottom": "12px" } }, Ta = /* @__PURE__ */ fe({
219
219
  }, m = (g) => {
220
220
  a("update:value", g);
221
221
  };
222
- return (g, b) => (h(), P(d(Lt), {
222
+ return (g, b) => (v(), P(d(Lt), {
223
223
  value: e.value,
224
- options: o.value,
224
+ options: l.value,
225
225
  placeholder: e.placeholder,
226
226
  disabled: e.disabled,
227
227
  clearable: e.clearable,
@@ -271,8 +271,8 @@ function Fa(e) {
271
271
  var a = !0;
272
272
  } catch {
273
273
  }
274
- var l = Da.call(e);
275
- return a && (t ? e[xe] = r : delete e[xe]), l;
274
+ var o = Da.call(e);
275
+ return a && (t ? e[xe] = r : delete e[xe]), o;
276
276
  }
277
277
  var Ia = Fa, ja = Object.prototype.toString;
278
278
  function Ba(e) {
@@ -292,8 +292,8 @@ function Ga(e) {
292
292
  }
293
293
  var Ze = Ga;
294
294
  function Ka(e, t) {
295
- for (var r = -1, a = e == null ? 0 : e.length, l = Array(a); ++r < a; ) l[r] = t(e[r], r, e);
296
- return l;
295
+ for (var r = -1, a = e == null ? 0 : e.length, o = Array(a); ++r < a; ) o[r] = t(e[r], r, e);
296
+ return o;
297
297
  }
298
298
  var Va = Ka, Ha = Array.isArray, ye = Ha, Wa = 1 / 0, yt = ae ? ae.prototype : void 0, gt = yt ? yt.toString : void 0;
299
299
  function Qt(e) {
@@ -400,11 +400,11 @@ function Fn(e, t, r) {
400
400
  }
401
401
  var et = Fn;
402
402
  function In(e, t, r, a) {
403
- var l = !r;
403
+ var o = !r;
404
404
  r || (r = {});
405
- for (var o = -1, n = t.length; ++o < n; ) {
406
- var y = t[o], m = a ? a(r[y], e[y], y, r, e) : void 0;
407
- m === void 0 && (m = e[y]), l ? er(r, y, m) : et(r, y, m);
405
+ for (var l = -1, n = t.length; ++l < n; ) {
406
+ var y = t[l], m = a ? a(r[y], e[y], y, r, e) : void 0;
407
+ m === void 0 && (m = e[y]), o ? er(r, y, m) : et(r, y, m);
408
408
  }
409
409
  return r;
410
410
  }
@@ -458,8 +458,8 @@ var rt = To, ir = typeof exports == "object" && exports && !exports.nodeType &&
458
458
  }
459
459
  })(), de = So, xt = de && de.isTypedArray, ko = xt ? rt(xt) : Co, Ao = ko, $o = Object.prototype.hasOwnProperty;
460
460
  function Po(e, t) {
461
- var r = ye(e), a = !r && Wn(e), l = !r && !a && lr(e), o = !r && !a && !l && Ao(e), n = r || a || l || o, y = n ? En(e.length, String) : [], m = y.length;
462
- for (var g in e) (t || $o.call(e, g)) && !(n && (g == "length" || l && (g == "offset" || g == "parent") || o && (g == "buffer" || g == "byteLength" || g == "byteOffset") || Zt(g, m))) && y.push(g);
461
+ var r = ye(e), a = !r && Wn(e), o = !r && !a && lr(e), l = !r && !a && !o && Ao(e), n = r || a || o || l, y = n ? En(e.length, String) : [], m = y.length;
462
+ for (var g in e) (t || $o.call(e, g)) && !(n && (g == "length" || o && (g == "offset" || g == "parent") || l && (g == "buffer" || g == "byteLength" || g == "byteOffset") || Zt(g, m))) && y.push(g);
463
463
  return y;
464
464
  }
465
465
  var sr = Po;
@@ -637,10 +637,10 @@ var ot = ve, Il = "Expected a function";
637
637
  function lt(e, t) {
638
638
  if (typeof e != "function" || t != null && typeof t != "function") throw new TypeError(Il);
639
639
  var r = function() {
640
- var a = arguments, l = t ? t.apply(this, a) : a[0], o = r.cache;
641
- if (o.has(l)) return o.get(l);
640
+ var a = arguments, o = t ? t.apply(this, a) : a[0], l = r.cache;
641
+ if (l.has(o)) return l.get(o);
642
642
  var n = e.apply(this, a);
643
- return r.cache = o.set(l, n) || o, n;
643
+ return r.cache = l.set(o, n) || l, n;
644
644
  };
645
645
  return r.cache = new (lt.Cache || ot)(), r;
646
646
  }
@@ -654,8 +654,8 @@ function zl(e) {
654
654
  }
655
655
  var Ul = zl, Rl = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Ml = /\\(\\)?/g, El = Ul(function(e) {
656
656
  var t = [];
657
- return e.charCodeAt(0) === 46 && t.push(""), e.replace(Rl, function(r, a, l, o) {
658
- t.push(l ? o.replace(Ml, "$1") : a || r);
657
+ return e.charCodeAt(0) === 46 && t.push(""), e.replace(Rl, function(r, a, o, l) {
658
+ t.push(o ? l.replace(Ml, "$1") : a || r);
659
659
  }), t;
660
660
  }), Ll = El;
661
661
  function Gl(e) {
@@ -684,7 +684,7 @@ function Yl(e, t, r) {
684
684
  }
685
685
  var Ql = Yl;
686
686
  function Xl(e, t) {
687
- for (var r = -1, a = t.length, l = e.length; ++r < a; ) e[l + r] = t[r];
687
+ for (var r = -1, a = t.length, o = e.length; ++r < a; ) e[o + r] = t[r];
688
688
  return e;
689
689
  }
690
690
  var cr = Xl, Zl = ur(Object.getPrototypeOf, Object), pr = Zl;
@@ -740,11 +740,11 @@ function mi(e, t) {
740
740
  }
741
741
  var vi = mi;
742
742
  function hi(e, t) {
743
- for (var r = -1, a = e == null ? 0 : e.length, l = 0, o = []; ++r < a; ) {
743
+ for (var r = -1, a = e == null ? 0 : e.length, o = 0, l = []; ++r < a; ) {
744
744
  var n = e[r];
745
- t(n, r, e) && (o[l++] = n);
745
+ t(n, r, e) && (l[o++] = n);
746
746
  }
747
- return o;
747
+ return l;
748
748
  }
749
749
  var _i = hi;
750
750
  function bi() {
@@ -874,9 +874,9 @@ function Os(e) {
874
874
  var Ds = Os, zt = de && de.isSet, Fs = zt ? rt(zt) : Ds, Is = Fs, js = 1, Bs = 2, zs = 4, hr = "[object Arguments]", Us = "[object Array]", Rs = "[object Boolean]", Ms = "[object Date]", Es = "[object Error]", _r = "[object Function]", Ls = "[object GeneratorFunction]", Gs = "[object Map]", Ks = "[object Number]", br = "[object Object]", Vs = "[object RegExp]", Hs = "[object Set]", Ws = "[object String]", qs = "[object Symbol]", Js = "[object WeakMap]", Ys = "[object ArrayBuffer]", Qs = "[object DataView]", Xs = "[object Float32Array]", Zs = "[object Float64Array]", eu = "[object Int8Array]", tu = "[object Int16Array]", ru = "[object Int32Array]", au = "[object Uint8Array]", nu = "[object Uint8ClampedArray]", ou = "[object Uint16Array]", lu = "[object Uint32Array]", D = {};
875
875
  D[hr] = D[Us] = D[Ys] = D[Qs] = D[Rs] = D[Ms] = D[Xs] = D[Zs] = D[eu] = D[tu] = D[ru] = D[Gs] = D[Ks] = D[br] = D[Vs] = D[Hs] = D[Ws] = D[qs] = D[au] = D[nu] = D[ou] = D[lu] = !0;
876
876
  D[Es] = D[_r] = D[Js] = !1;
877
- function Oe(e, t, r, a, l, o) {
877
+ function Oe(e, t, r, a, o, l) {
878
878
  var n, y = t & js, m = t & Bs, g = t & zs;
879
- if (r && (n = l ? r(e, a, l, o) : r(e)), n !== void 0) return n;
879
+ if (r && (n = o ? r(e, a, o, l) : r(e)), n !== void 0) return n;
880
880
  if (!le(e)) return e;
881
881
  var b = ye(e);
882
882
  if (b) {
@@ -884,24 +884,24 @@ function Oe(e, t, r, a, l, o) {
884
884
  } else {
885
885
  var T = st(e), A = T == _r || T == Ls;
886
886
  if (lr(e)) return vi(e, y);
887
- if (T == br || T == hr || A && !l) {
887
+ if (T == br || T == hr || A && !o) {
888
888
  if (n = m || A ? {} : Ts(e), !y) return m ? Ai(e, gi(n, e)) : Ti(e, pi(n, e));
889
889
  } else {
890
- if (!D[T]) return l ? e : {};
890
+ if (!D[T]) return o ? e : {};
891
891
  n = xs(e, T, y);
892
892
  }
893
893
  }
894
- o || (o = new fi());
895
- var $ = o.get(e);
894
+ l || (l = new fi());
895
+ var $ = l.get(e);
896
896
  if ($) return $;
897
- o.set(e, n), Is(e) ? e.forEach(function(z) {
898
- n.add(Oe(z, t, r, z, e, o));
899
- }) : Ps(e) && e.forEach(function(z, w) {
900
- n.set(w, Oe(z, t, r, w, e, o));
897
+ l.set(e, n), Is(e) ? e.forEach(function(B) {
898
+ n.add(Oe(B, t, r, B, e, l));
899
+ }) : Ps(e) && e.forEach(function(B, w) {
900
+ n.set(w, Oe(B, t, r, w, e, l));
901
901
  });
902
902
  var M = b ? void 0 : (g ? m ? Di : Ni : m ? nt : at)(e);
903
- return kn(M || e, function(z, w) {
904
- M && (w = z, z = e[w]), et(n, w, Oe(z, t, r, w, e, o));
903
+ return kn(M || e, function(B, w) {
904
+ M && (w = B, B = e[w]), et(n, w, Oe(B, t, r, w, e, l));
905
905
  }), n;
906
906
  }
907
907
  var iu = Oe, su = 1, uu = 4;
@@ -912,12 +912,12 @@ var Ut = du;
912
912
  function fu(e, t, r, a) {
913
913
  if (!le(e)) return e;
914
914
  t = dr(t, e);
915
- for (var l = -1, o = t.length, n = o - 1, y = e; y != null && ++l < o; ) {
916
- var m = fr(t[l]), g = r;
915
+ for (var o = -1, l = t.length, n = l - 1, y = e; y != null && ++o < l; ) {
916
+ var m = fr(t[o]), g = r;
917
917
  if (m === "__proto__" || m === "constructor" || m === "prototype") return e;
918
- if (l != n) {
918
+ if (o != n) {
919
919
  var b = y[m];
920
- g = a ? a(b, m, y) : void 0, g === void 0 && (g = le(b) ? b : Zt(t[l + 1]) ? [] : {});
920
+ g = a ? a(b, m, y) : void 0, g === void 0 && (g = le(b) ? b : Zt(t[o + 1]) ? [] : {});
921
921
  }
922
922
  et(y, m, g), y = y[m];
923
923
  }
@@ -990,10 +990,10 @@ var mu = /* @__PURE__ */ fe({
990
990
  "validate"
991
991
  ], ["update:model"]),
992
992
  setup(e, { expose: t, emit: r }) {
993
- const a = e, l = r, o = ya(e, "model"), n = te(), y = te();
993
+ const a = e, o = r, l = ya(e, "model"), n = te(), y = te();
994
994
  let m = !1;
995
995
  Kt(() => {
996
- !m && o.value && (y.value = Ut(o.value), m = !0, console.log("[DydxNaiveForm] 初始状态已保存:", JSON.stringify(y.value)));
996
+ !m && l.value && (y.value = Ut(l.value), m = !0, console.log("[DydxNaiveForm] 初始状态已保存:", JSON.stringify(y.value)));
997
997
  });
998
998
  const g = R(() => ({
999
999
  type: "primary",
@@ -1006,7 +1006,7 @@ var mu = /* @__PURE__ */ fe({
1006
1006
  text: "重置",
1007
1007
  renderIcon: () => C(L, null, { default: () => C(qt) }),
1008
1008
  ...a.resetButton
1009
- })), T = R(() => a.schemas.filter((i) => !(typeof i.hidden == "function" ? i.hidden(o.value) : i.hidden))), A = R(() => ({
1009
+ })), T = R(() => a.schemas.filter((i) => !(typeof i.hidden == "function" ? i.hidden(l.value) : i.hidden))), A = R(() => ({
1010
1010
  labelWidth: a.labelWidth,
1011
1011
  labelAlign: a.labelAlign,
1012
1012
  labelPlacement: a.labelPlacement,
@@ -1023,13 +1023,13 @@ var mu = /* @__PURE__ */ fe({
1023
1023
  ...a.gridProps,
1024
1024
  responsive: "self"
1025
1025
  })), M = (i) => {
1026
- const v = i.type || "input";
1027
- return v === "custom" ? i.component : ka[v];
1028
- }, z = (i) => typeof i.disabled == "function" ? i.disabled(o.value) : i.disabled, w = (i) => {
1029
- const v = { ...i.props };
1030
- if (v.placeholder !== void 0) return v;
1031
- const j = typeof i.label == "string" ? i.label : "";
1032
- if (!j) return v;
1026
+ const h = i.type || "input";
1027
+ return h === "custom" ? i.component : ka[h];
1028
+ }, B = (i) => typeof i.disabled == "function" ? i.disabled(l.value) : i.disabled, w = (i) => {
1029
+ const h = { ...i.props };
1030
+ if (h.placeholder !== void 0) return h;
1031
+ const z = typeof i.label == "string" ? i.label : "";
1032
+ if (!z) return h;
1033
1033
  const G = i.type || "input", Y = [
1034
1034
  "input",
1035
1035
  "textarea",
@@ -1043,42 +1043,42 @@ var mu = /* @__PURE__ */ fe({
1043
1043
  "time-picker",
1044
1044
  "color-picker"
1045
1045
  ];
1046
- return Y.includes(G) ? v.placeholder = `请输入${j}` : we.includes(G) && (v.placeholder = `请选择${j}`), v;
1046
+ return Y.includes(G) ? h.placeholder = `请输入${z}` : we.includes(G) && (h.placeholder = `请选择${z}`), h;
1047
1047
  }, N = (i) => {
1048
- const v = i.type === "custom" ? "modelValue" : "value";
1048
+ const h = i.type === "custom" ? "modelValue" : "value";
1049
1049
  return {
1050
- [i.modelPropName || v]: p(i.name),
1050
+ [i.modelPropName || h]: p(i.name),
1051
1051
  ...w(i),
1052
- disabled: z(i)
1052
+ disabled: B(i)
1053
1053
  };
1054
1054
  }, I = (i) => {
1055
- const v = i.type === "custom" ? "modelValue" : "value", j = i.modelPropName || v;
1056
- return { [i.modelEventName || `update:${j}`]: (G) => x(i.name, G) };
1055
+ const h = i.type === "custom" ? "modelValue" : "value", z = i.modelPropName || h;
1056
+ return { [i.modelEventName || `update:${z}`]: (G) => x(i.name, G) };
1057
1057
  }, f = (i) => {
1058
1058
  if (!i) return {};
1059
- const v = { ...i };
1060
- return delete v.options, delete v.labelField, delete v.valueField, v;
1059
+ const h = { ...i };
1060
+ return delete h.options, delete h.labelField, delete h.valueField, h;
1061
1061
  }, u = (i) => {
1062
1062
  if (!i) return {};
1063
- const v = { ...i };
1064
- return delete v.text, v;
1065
- }, p = (i) => Rt(o.value, i), x = (i, v) => {
1066
- gu(o.value, i, v);
1063
+ const h = { ...i };
1064
+ return delete h.text, h;
1065
+ }, p = (i) => Rt(l.value, i), x = (i, h) => {
1066
+ gu(l.value, i, h);
1067
1067
  }, H = (i) => {
1068
- let v = typeof i.rule == "function" ? i.rule(o.value) : i.rule;
1069
- const j = !i.noRequired && !a.disableDefaultRequired;
1070
- if (j) {
1068
+ let h = typeof i.rule == "function" ? i.rule(l.value) : i.rule;
1069
+ const z = !i.noRequired && !a.disableDefaultRequired;
1070
+ if (z) {
1071
1071
  const G = {
1072
1072
  required: !0,
1073
1073
  message: `${typeof i.label == "string" ? i.label : "此项"}不能为空`,
1074
1074
  trigger: "blur"
1075
1075
  };
1076
- v ? v = Array.isArray(v) ? [G, ...v] : [G, v] : v = G;
1076
+ h ? h = Array.isArray(h) ? [G, ...h] : [G, h] : h = G;
1077
1077
  }
1078
1078
  return {
1079
1079
  label: typeof i.label == "string" ? i.label : void 0,
1080
- rule: v,
1081
- showRequireMark: j ? void 0 : !1,
1080
+ rule: h,
1081
+ showRequireMark: z ? void 0 : !1,
1082
1082
  ...i.formItemProps
1083
1083
  };
1084
1084
  }, re = {
@@ -1091,11 +1091,11 @@ var mu = /* @__PURE__ */ fe({
1091
1091
  }, E = (i) => {
1092
1092
  if (typeof i == "number" || typeof i == "string") return i;
1093
1093
  if (typeof i == "object") {
1094
- const v = [];
1095
- return Object.entries(re).forEach(([j, G]) => {
1096
- const Y = i[j];
1097
- Y !== void 0 && v.push(`${G}:${Y}`);
1098
- }), v.length === 0 ? 24 : v.join(" ");
1094
+ const h = [];
1095
+ return Object.entries(re).forEach(([z, G]) => {
1096
+ const Y = i[z];
1097
+ Y !== void 0 && h.push(`${G}:${Y}`);
1098
+ }), h.length === 0 ? 24 : h.join(" ");
1099
1099
  }
1100
1100
  return 24;
1101
1101
  }, _e = (i) => ({
@@ -1103,22 +1103,22 @@ var mu = /* @__PURE__ */ fe({
1103
1103
  offset: i.offset
1104
1104
  }), be = async (...i) => {
1105
1105
  await n.value.validate(...i);
1106
- }, Ae = async (i, v) => {
1107
- const j = Array.isArray(i) ? i : [i];
1108
- await n.value.validate(v, (G) => j.some((Y) => G.key === Y));
1106
+ }, Ae = async (i, h) => {
1107
+ const z = Array.isArray(i) ? i : [i];
1108
+ await n.value.validate(h, (G) => z.some((Y) => G.key === Y));
1109
1109
  }, Ue = () => n.value?.restoreValidation(), S = () => {
1110
- if (console.log("[DydxNaiveForm] resetFields 开始"), console.log("[DydxNaiveForm] 重置前 model.value:", JSON.stringify(o.value)), console.log("[DydxNaiveForm] initialModel:", JSON.stringify(y.value)), Ue(), y.value !== void 0) {
1111
- const i = Ut(y.value), v = o.value;
1112
- (/* @__PURE__ */ new Set([...Object.keys(v), ...Object.keys(i)])).forEach((j) => {
1113
- j in i ? v[j] = i[j] : delete v[j];
1114
- }), console.log("[DydxNaiveForm] 重置后 model.value:", JSON.stringify(o.value)), console.log("[DydxNaiveForm] model.value 是否为 Proxy:", o.value?.constructor?.name);
1110
+ if (console.log("[DydxNaiveForm] resetFields 开始"), console.log("[DydxNaiveForm] 重置前 model.value:", JSON.stringify(l.value)), console.log("[DydxNaiveForm] initialModel:", JSON.stringify(y.value)), Ue(), y.value !== void 0) {
1111
+ const i = Ut(y.value), h = l.value;
1112
+ (/* @__PURE__ */ new Set([...Object.keys(h), ...Object.keys(i)])).forEach((z) => {
1113
+ h[z] = z in i ? i[z] : null;
1114
+ }), console.log("[DydxNaiveForm] 重置后 model.value:", JSON.stringify(l.value));
1115
1115
  }
1116
- l("reset"), console.log("[DydxNaiveForm] resetFields 完成");
1116
+ o("reset"), console.log("[DydxNaiveForm] resetFields 完成");
1117
1117
  }, k = async () => {
1118
1118
  try {
1119
- await be(), l("submit", o.value);
1119
+ await be(), o("submit", l.value);
1120
1120
  } catch (i) {
1121
- l("validate", i);
1121
+ o("validate", i);
1122
1122
  }
1123
1123
  }, O = () => {
1124
1124
  S();
@@ -1128,124 +1128,124 @@ var mu = /* @__PURE__ */ fe({
1128
1128
  validate: be,
1129
1129
  validateField: Ae,
1130
1130
  restoreValidation: Ue,
1131
- getFormData: () => o.value,
1131
+ getFormData: () => l.value,
1132
1132
  setFormData: (i) => {
1133
- o.value = {
1134
- ...o.value,
1133
+ l.value = {
1134
+ ...l.value,
1135
1135
  ...i
1136
1136
  };
1137
1137
  },
1138
- getFieldValue: (i) => Rt(o.value, i),
1139
- setFieldValue: (i, v) => x(i, v),
1138
+ getFieldValue: (i) => Rt(l.value, i),
1139
+ setFieldValue: (i, h) => x(i, h),
1140
1140
  resetFields: S,
1141
1141
  getFormItemInst: (i) => n.value?.getFormItemInst?.(i)
1142
- }), (i, v) => {
1143
- const j = Gr, G = Vr, Y = K, we = Kr, $e = Lr;
1144
- return h(), Q(Z, null, [
1145
- V(i.$slots, "header", { model: o.value }),
1142
+ }), (i, h) => {
1143
+ const z = Gr, G = Vr, Y = K, we = Kr, $e = Lr;
1144
+ return v(), Q(Z, null, [
1145
+ V(i.$slots, "header", { model: l.value }),
1146
1146
  _(d(Ye), { show: a.loading }, {
1147
1147
  default: s(() => [_($e, q({
1148
1148
  ref_key: "formRef",
1149
1149
  ref: n,
1150
- model: o.value
1150
+ model: l.value
1151
1151
  }, A.value), {
1152
1152
  default: s(() => [_(we, fa(sa($.value)), {
1153
- default: s(() => [(h(!0), Q(Z, null, oe(T.value, (c) => (h(), P(G, q({ key: c.name }, { ref_for: !0 }, _e(c)), {
1153
+ default: s(() => [(v(!0), Q(Z, null, oe(T.value, (c) => (v(), P(G, q({ key: c.name }, { ref_for: !0 }, _e(c)), {
1154
1154
  default: s(() => [c.type === "slot" ? V(i.$slots, c.slot || c.name, {
1155
1155
  key: 0,
1156
- model: o.value,
1156
+ model: l.value,
1157
1157
  schema: c
1158
- }) : (h(), P(j, q({
1158
+ }) : (v(), P(z, q({
1159
1159
  key: 1,
1160
1160
  path: c.name
1161
1161
  }, { ref_for: !0 }, H(c)), Te({
1162
1162
  default: s(() => [V(i.$slots, `field-${c.name}`, {
1163
- model: o.value,
1163
+ model: l.value,
1164
1164
  schema: c,
1165
1165
  value: p(c.name),
1166
- setValue: (B) => x(c.name, B)
1167
- }, () => [c.type === "radio-group" && c.props?.options ? (h(), P(d(Et), q({
1166
+ setValue: (j) => x(c.name, j)
1167
+ }, () => [c.type === "radio-group" && c.props?.options ? (v(), P(d(Et), q({
1168
1168
  key: 0,
1169
1169
  value: p(c.name),
1170
- "onUpdate:value": (B) => x(c.name, B)
1170
+ "onUpdate:value": (j) => x(c.name, j)
1171
1171
  }, { ref_for: !0 }, f(c.props)), {
1172
1172
  default: s(() => [_(d(X), null, {
1173
- default: s(() => [(h(!0), Q(Z, null, oe(c.props.options, (B) => (h(), P(d(Zr), {
1174
- key: B[c.props.valueField || "value"],
1175
- value: B[c.props.valueField || "value"],
1176
- disabled: B.disabled
1173
+ default: s(() => [(v(!0), Q(Z, null, oe(c.props.options, (j) => (v(), P(d(Zr), {
1174
+ key: j[c.props.valueField || "value"],
1175
+ value: j[c.props.valueField || "value"],
1176
+ disabled: j.disabled
1177
1177
  }, {
1178
- default: s(() => [U(W(B[c.props.labelField || "label"]), 1)]),
1178
+ default: s(() => [U(W(j[c.props.labelField || "label"]), 1)]),
1179
1179
  _: 2
1180
1180
  }, 1032, ["value", "disabled"]))), 128))]),
1181
1181
  _: 2
1182
1182
  }, 1024)]),
1183
1183
  _: 2
1184
- }, 1040, ["value", "onUpdate:value"])) : c.type === "checkbox-group" && c.props?.options ? (h(), P(d(Je), q({
1184
+ }, 1040, ["value", "onUpdate:value"])) : c.type === "checkbox-group" && c.props?.options ? (v(), P(d(Je), q({
1185
1185
  key: 1,
1186
1186
  value: p(c.name),
1187
- "onUpdate:value": (B) => x(c.name, B)
1187
+ "onUpdate:value": (j) => x(c.name, j)
1188
1188
  }, { ref_for: !0 }, f(c.props)), {
1189
1189
  default: s(() => [_(d(X), null, {
1190
- default: s(() => [(h(!0), Q(Z, null, oe(c.props.options, (B) => (h(), P(d(Mt), {
1191
- key: B[c.props.valueField || "value"],
1192
- value: B[c.props.valueField || "value"],
1193
- disabled: B.disabled
1190
+ default: s(() => [(v(!0), Q(Z, null, oe(c.props.options, (j) => (v(), P(d(Mt), {
1191
+ key: j[c.props.valueField || "value"],
1192
+ value: j[c.props.valueField || "value"],
1193
+ disabled: j.disabled
1194
1194
  }, {
1195
- default: s(() => [U(W(B[c.props.labelField || "label"]), 1)]),
1195
+ default: s(() => [U(W(j[c.props.labelField || "label"]), 1)]),
1196
1196
  _: 2
1197
1197
  }, 1032, ["value", "disabled"]))), 128))]),
1198
1198
  _: 2
1199
1199
  }, 1024)]),
1200
1200
  _: 2
1201
- }, 1040, ["value", "onUpdate:value"])) : c.type === "switch" ? (h(), P(ue(M(c)), q({
1201
+ }, 1040, ["value", "onUpdate:value"])) : c.type === "switch" ? (v(), P(ue(M(c)), q({
1202
1202
  key: 2,
1203
1203
  value: p(c.name),
1204
- "onUpdate:value": (B) => x(c.name, B)
1205
- }, { ref_for: !0 }, c.props, { disabled: z(c) }), null, 16, [
1204
+ "onUpdate:value": (j) => x(c.name, j)
1205
+ }, { ref_for: !0 }, c.props, { disabled: B(c) }), null, 16, [
1206
1206
  "value",
1207
1207
  "onUpdate:value",
1208
1208
  "disabled"
1209
- ])) : c.type === "image-upload" || c.type === "file-upload" ? (h(), P(ue(M(c)), q({
1209
+ ])) : c.type === "image-upload" || c.type === "file-upload" ? (v(), P(ue(M(c)), q({
1210
1210
  key: 3,
1211
1211
  "file-list": p(c.name) || [],
1212
- "onUpdate:fileList": (B) => x(c.name, B),
1212
+ "onUpdate:fileList": (j) => x(c.name, j),
1213
1213
  "upload-type": c.type === "image-upload" ? "image" : "file"
1214
- }, { ref_for: !0 }, c.props, { disabled: z(c) }), null, 16, [
1214
+ }, { ref_for: !0 }, c.props, { disabled: B(c) }), null, 16, [
1215
1215
  "file-list",
1216
1216
  "onUpdate:fileList",
1217
1217
  "upload-type",
1218
1218
  "disabled"
1219
- ])) : (h(), P(ue(M(c)), q({
1219
+ ])) : (v(), P(ue(M(c)), q({
1220
1220
  key: 4,
1221
1221
  ref_for: !0
1222
1222
  }, N(c), pa(I(c))), null, 16))])]),
1223
1223
  _: 2
1224
1224
  }, [typeof c.label == "function" ? {
1225
1225
  name: "label",
1226
- fn: s(() => [(h(), P(ue(c.label)))]),
1226
+ fn: s(() => [(v(), P(ue(c.label)))]),
1227
1227
  key: "0"
1228
1228
  } : void 0]), 1040, ["path"]))]),
1229
1229
  _: 2
1230
- }, 1040))), 128)), a.showFooter ? (h(), P(G, {
1230
+ }, 1040))), 128)), a.showFooter ? (v(), P(G, {
1231
1231
  key: 0,
1232
1232
  span: a.footerSpan
1233
1233
  }, {
1234
1234
  default: s(() => [V(i.$slots, "footer", {
1235
- model: o.value,
1235
+ model: l.value,
1236
1236
  validate: be,
1237
1237
  reset: S
1238
1238
  }, () => [_(d(X), { justify: a.footerAlign }, {
1239
1239
  default: s(() => [
1240
- b.value.hidden ? J("", !0) : (h(), P(Y, q({ key: 0 }, u(b.value), { onClick: O }), {
1240
+ b.value.hidden ? J("", !0) : (v(), P(Y, q({ key: 0 }, u(b.value), { onClick: O }), {
1241
1241
  default: s(() => [U(W(b.value.text), 1)]),
1242
1242
  _: 1
1243
1243
  }, 16)),
1244
- g.value.hidden ? J("", !0) : (h(), P(Y, q({ key: 1 }, u(g.value), { onClick: k }), {
1244
+ g.value.hidden ? J("", !0) : (v(), P(Y, q({ key: 1 }, u(g.value), { onClick: k }), {
1245
1245
  default: s(() => [U(W(g.value.text), 1)]),
1246
1246
  _: 1
1247
1247
  }, 16)),
1248
- (h(!0), Q(Z, null, oe(a.extraButtons, (c) => (h(), P(Y, {
1248
+ (v(!0), Q(Z, null, oe(a.extraButtons, (c) => (v(), P(Y, {
1249
1249
  key: c.text,
1250
1250
  type: c.type,
1251
1251
  size: c.size,
@@ -1271,13 +1271,13 @@ var mu = /* @__PURE__ */ fe({
1271
1271
  }, 16, ["model"])]),
1272
1272
  _: 3
1273
1273
  }, 8, ["show"]),
1274
- V(i.$slots, "append", { model: o.value })
1274
+ V(i.$slots, "append", { model: l.value })
1275
1275
  ], 64);
1276
1276
  };
1277
1277
  }
1278
1278
  }), ze = mu;
1279
1279
  function vu(e) {
1280
- const { maxVisible: t = -1, buttons: r = [], showView: a = !0, showEdit: l = !0, showDelete: o = !0, viewConfig: n, editConfig: y, deleteConfig: m, onView: g, onEdit: b, onDelete: T } = e, A = (u, p, x, H) => p ? u ? typeof u.show == "function" ? u.show(x, H) : u.show !== !1 : !0 : !1, $ = (u, p, x) => u ? typeof u.disabled == "function" ? u.disabled(p, x) : u.disabled === !0 : !1, M = (u, p, x) => typeof u.show == "function" ? u.show(p, x) : u.show !== !1, z = (u, p, x) => typeof u.disabled == "function" ? u.disabled(p, x) : u.disabled === !0, w = (u, p, x) => typeof u == "function" ? u(p) : u || x, N = (u) => {
1280
+ const { maxVisible: t = -1, buttons: r = [], showView: a = !0, showEdit: o = !0, showDelete: l = !0, viewConfig: n, editConfig: y, deleteConfig: m, onView: g, onEdit: b, onDelete: T } = e, A = (u, p, x, H) => p ? u ? typeof u.show == "function" ? u.show(x, H) : u.show !== !1 : !0 : !1, $ = (u, p, x) => u ? typeof u.disabled == "function" ? u.disabled(p, x) : u.disabled === !0 : !1, M = (u, p, x) => typeof u.show == "function" ? u.show(p, x) : u.show !== !1, B = (u, p, x) => typeof u.disabled == "function" ? u.disabled(p, x) : u.disabled === !0, w = (u, p, x) => typeof u == "function" ? u(p) : u || x, N = (u) => {
1281
1281
  const p = C(K, {
1282
1282
  type: u.type,
1283
1283
  size: "small",
@@ -1316,7 +1316,7 @@ function vu(e) {
1316
1316
  row: u,
1317
1317
  index: p
1318
1318
  })
1319
- }), A(y, l, u, p) && x.push({
1319
+ }), A(y, o, u, p) && x.push({
1320
1320
  key: "__edit__",
1321
1321
  label: y?.label || "编辑",
1322
1322
  type: "primary",
@@ -1326,7 +1326,7 @@ function vu(e) {
1326
1326
  row: u,
1327
1327
  index: p
1328
1328
  })
1329
- }), A(m, o, u, p) && x.push({
1329
+ }), A(m, l, u, p) && x.push({
1330
1330
  key: "__delete__",
1331
1331
  label: m?.label || "删除",
1332
1332
  type: "error",
@@ -1342,7 +1342,7 @@ function vu(e) {
1342
1342
  key: E.key,
1343
1343
  label: E.label,
1344
1344
  type: E.type || "default",
1345
- disabled: z(E, u, p),
1345
+ disabled: B(E, u, p),
1346
1346
  confirm: E.confirm ? w(E.confirm, u, "确定执行此操作吗?") : void 0,
1347
1347
  icon: E.icon,
1348
1348
  onClick: () => E.onClick?.(u, p)
@@ -1359,7 +1359,7 @@ function vu(e) {
1359
1359
  }, () => [...H.map((E) => N(E)), I(re)]);
1360
1360
  },
1361
1361
  isButtonVisible: M,
1362
- isButtonDisabled: z
1362
+ isButtonDisabled: B
1363
1363
  };
1364
1364
  }
1365
1365
  var hu = (e) => {
@@ -1373,46 +1373,46 @@ var hu = (e) => {
1373
1373
  }
1374
1374
  }, wr = (e) => e == null ? "-" : String(e), xr = (e, t, r) => {
1375
1375
  if (!e) return "-";
1376
- const a = String(e), l = r?.newWindow !== !1;
1377
- let o;
1378
- return r?.text ? o = typeof r.text == "function" ? r.text(t) : r.text : o = a, C(K, {
1376
+ const a = String(e), o = r?.newWindow !== !1;
1377
+ let l;
1378
+ return r?.text ? l = typeof r.text == "function" ? r.text(t) : r.text : l = a, C(K, {
1379
1379
  text: !0,
1380
1380
  type: "primary",
1381
1381
  onClick: () => {
1382
- l ? window.open(a, "_blank", "noopener,noreferrer") : window.location.href = a;
1382
+ o ? window.open(a, "_blank", "noopener,noreferrer") : window.location.href = a;
1383
1383
  }
1384
1384
  }, {
1385
- default: () => o,
1385
+ default: () => l,
1386
1386
  icon: () => C(L, { size: 14 }, () => C(_a))
1387
1387
  });
1388
1388
  }, Cr = (e, t) => {
1389
1389
  if (!e) return "-";
1390
- const r = String(e), a = t?.width ?? 60, l = t?.height ?? 60, o = t?.radius ?? 4, n = t?.fallback;
1390
+ const r = String(e), a = t?.width ?? 60, o = t?.height ?? 60, l = t?.radius ?? 4, n = t?.fallback;
1391
1391
  return C(Hr, {
1392
1392
  src: r,
1393
1393
  width: typeof a == "number" ? a : void 0,
1394
- height: typeof l == "number" ? l : void 0,
1394
+ height: typeof o == "number" ? o : void 0,
1395
1395
  objectFit: "cover",
1396
1396
  previewDisabled: !1,
1397
1397
  fallbackSrc: n,
1398
1398
  style: {
1399
1399
  width: typeof a == "string" ? a : `${a}px`,
1400
- height: typeof l == "string" ? l : `${l}px`,
1401
- borderRadius: typeof o == "string" ? o : `${o}px`,
1400
+ height: typeof o == "string" ? o : `${o}px`,
1401
+ borderRadius: typeof l == "string" ? l : `${l}px`,
1402
1402
  cursor: "pointer"
1403
1403
  }
1404
1404
  });
1405
1405
  }, Tr = (e, t, r) => {
1406
1406
  if (!e) return "-";
1407
- const a = String(e), l = r?.getFileName ? r.getFileName(a, t) : hu(a), o = () => {
1407
+ const a = String(e), o = r?.getFileName ? r.getFileName(a, t) : hu(a), l = () => {
1408
1408
  const n = document.createElement("a");
1409
- n.href = a, n.download = l, n.target = "_blank", n.rel = "noopener noreferrer", document.body.appendChild(n), n.click(), document.body.removeChild(n);
1409
+ n.href = a, n.download = o, n.target = "_blank", n.rel = "noopener noreferrer", document.body.appendChild(n), n.click(), document.body.removeChild(n);
1410
1410
  };
1411
1411
  return C(Ge, { trigger: "hover" }, {
1412
1412
  trigger: () => C(K, {
1413
1413
  text: !0,
1414
1414
  type: "primary",
1415
- onClick: o
1415
+ onClick: l
1416
1416
  }, {
1417
1417
  default: () => C("span", { style: {
1418
1418
  maxWidth: "150px",
@@ -1421,10 +1421,10 @@ var hu = (e) => {
1421
1421
  whiteSpace: "nowrap",
1422
1422
  display: "inline-block",
1423
1423
  verticalAlign: "middle"
1424
- } }, l),
1424
+ } }, o),
1425
1425
  icon: () => C(L, { size: 14 }, () => C(va))
1426
1426
  }),
1427
- default: () => l
1427
+ default: () => o
1428
1428
  });
1429
1429
  }, Sr = (e, t) => {
1430
1430
  if (!e) return "-";
@@ -1436,24 +1436,24 @@ var hu = (e) => {
1436
1436
  }, qe = (e, t, r = "label", a = "value") => {
1437
1437
  if (e == null) return "-";
1438
1438
  if (!t || t.length === 0) return C(Re, { size: "small" }, () => String(e));
1439
- const l = t.find((o) => {
1440
- const n = o[a];
1439
+ const o = t.find((l) => {
1440
+ const n = l[a];
1441
1441
  return n === e || String(n) === String(e) ? !0 : typeof n == "number" && !isNaN(Number(e)) ? n === Number(e) : typeof e == "number" && !isNaN(Number(n)) ? Number(n) === e : typeof n == "boolean" ? n === (e === "true" || e === !0) : typeof e == "boolean" ? (n === "true" || n === !0) === e : !1;
1442
1442
  });
1443
- if (l) {
1444
- const o = l, n = o[r];
1443
+ if (o) {
1444
+ const l = o, n = l[r];
1445
1445
  return C(Re, {
1446
1446
  size: "small",
1447
- ...Object.keys(l).reduce((y, m) => (m !== r && m !== a && (y[m] = o[m]), y), {})
1447
+ ...Object.keys(o).reduce((y, m) => (m !== r && m !== a && (y[m] = l[m]), y), {})
1448
1448
  }, () => n);
1449
1449
  }
1450
1450
  return C(Re, { size: "small" }, () => String(e));
1451
1451
  }, kr = (e, t, r = "label", a = "value") => e == null ? "-" : Array.isArray(e) ? C(X, {
1452
1452
  size: "small",
1453
1453
  wrap: !0
1454
- }, () => e.map((l, o) => {
1455
- const n = qe(l, t, r, a);
1456
- return typeof n == "string" ? C("span", { key: o }, n) : n;
1454
+ }, () => e.map((o, l) => {
1455
+ const n = qe(o, t, r, a);
1456
+ return typeof n == "string" ? C("span", { key: l }, n) : n;
1457
1457
  })) : qe(e, t, r, a);
1458
1458
  const Ar = (e, t, r) => {
1459
1459
  switch (r.columnType || "text") {
@@ -1486,7 +1486,7 @@ function Bu() {
1486
1486
  };
1487
1487
  }
1488
1488
  function _u(e) {
1489
- const { columns: t, actionColumn: r, onView: a, onEdit: l, onDelete: o } = e, n = (f) => "key" in f && f.key ? String(f.key) : "type" in f ? `__${f.type}__` : "", y = (f) => {
1489
+ const { columns: t, actionColumn: r, onView: a, onEdit: o, onDelete: l } = e, n = (f) => "key" in f && f.key ? String(f.key) : "type" in f ? `__${f.type}__` : "", y = (f) => {
1490
1490
  if ("title" in f) {
1491
1491
  if (typeof f.title == "string") return f.title;
1492
1492
  if (typeof f.title == "function") return "自定义列";
@@ -1502,8 +1502,8 @@ function _u(e) {
1502
1502
  const { renderActions: f } = vu({
1503
1503
  ...r,
1504
1504
  onView: a,
1505
- onEdit: l,
1506
- onDelete: o
1505
+ onEdit: o,
1506
+ onDelete: l
1507
1507
  });
1508
1508
  return {
1509
1509
  key: "__actions__",
@@ -1562,12 +1562,12 @@ var bu = {
1562
1562
  showQuickJumper: !0
1563
1563
  };
1564
1564
  function wu(e) {
1565
- const { pagination: t, fieldNames: r, onUpdatePagination: a, onPageChange: l } = e, o = () => ({
1565
+ const { pagination: t, fieldNames: r, onUpdatePagination: a, onPageChange: o } = e, l = () => ({
1566
1566
  ...bu,
1567
1567
  ...r
1568
1568
  }), n = (A) => {
1569
1569
  if (!(t === !1 || !t))
1570
- return t[o()[A]];
1570
+ return t[l()[A]];
1571
1571
  }, y = R(() => t === !1 || !t ? !1 : {
1572
1572
  page: n("page") ?? 1,
1573
1573
  pageSize: n("pageSize") ?? 10,
@@ -1579,10 +1579,10 @@ function wu(e) {
1579
1579
  suffix: t.suffix
1580
1580
  }), m = (A) => {
1581
1581
  if (t === !1 || !t) return {};
1582
- const $ = o(), M = { ...t };
1582
+ const $ = l(), M = { ...t };
1583
1583
  return A.page !== void 0 && (M[$.page] = A.page), A.pageSize !== void 0 && (M[$.pageSize] = A.pageSize), M;
1584
1584
  }, g = (A) => {
1585
- const $ = o();
1585
+ const $ = l();
1586
1586
  return {
1587
1587
  [$.page]: A[$.page],
1588
1588
  [$.pageSize]: A[$.pageSize],
@@ -1593,16 +1593,16 @@ function wu(e) {
1593
1593
  paginationConfig: y,
1594
1594
  handlePageChange: (A) => {
1595
1595
  const $ = m({ page: A });
1596
- a?.($), l?.(g($));
1596
+ a?.($), o?.(g($));
1597
1597
  },
1598
1598
  handlePageSizeChange: (A) => {
1599
1599
  const $ = m({
1600
1600
  page: 1,
1601
1601
  pageSize: A
1602
1602
  });
1603
- a?.($), l?.(g($));
1603
+ a?.($), o?.(g($));
1604
1604
  },
1605
- getFieldNames: o
1605
+ getFieldNames: l
1606
1606
  };
1607
1607
  }
1608
1608
  var xu = {
@@ -1659,7 +1659,7 @@ var xu = {
1659
1659
  "delete"
1660
1660
  ],
1661
1661
  setup(e, { expose: t, emit: r }) {
1662
- const a = e, l = r, o = Qe(), n = te(null), y = te(void 0), m = R(() => !o.maxHeight), g = (S) => {
1662
+ const a = e, o = r, l = Qe(), n = te(null), y = te(void 0), m = R(() => !l.maxHeight), g = (S) => {
1663
1663
  const k = getComputedStyle(S);
1664
1664
  return S.clientHeight <= 0 ? !1 : !!(parseFloat(k.flexGrow) > 0 || k.height && k.height !== "auto" && k.height !== "0px" || k.maxHeight && k.maxHeight !== "none" && k.maxHeight !== "0px" || k.overflowY === "auto" || k.overflowY === "scroll");
1665
1665
  }, b = (S) => {
@@ -1678,21 +1678,21 @@ var xu = {
1678
1678
  y.value = void 0;
1679
1679
  return;
1680
1680
  }
1681
- const O = getComputedStyle(k), i = parseFloat(O.paddingTop), v = parseFloat(O.paddingBottom), j = k.getBoundingClientRect(), G = S.getBoundingClientRect(), Y = S.querySelector(".dydx-table__toolbar"), we = Y ? Y.offsetHeight + 16 : 0, $e = S.querySelector(".n-data-table-thead"), c = $e ? $e.offsetHeight : 40, B = G.top - (j.top + i), dt = k.clientHeight - i - v - B - we - c;
1681
+ const O = getComputedStyle(k), i = parseFloat(O.paddingTop), h = parseFloat(O.paddingBottom), z = k.getBoundingClientRect(), G = S.getBoundingClientRect(), Y = S.querySelector(".dydx-table__toolbar"), we = Y ? Y.offsetHeight + 16 : 0, $e = S.querySelector(".n-data-table-thead"), c = $e ? $e.offsetHeight : 40, j = G.top - (z.top + i), dt = k.clientHeight - i - h - j - we - c;
1682
1682
  dt > 200 ? y.value = dt : y.value = void 0;
1683
1683
  });
1684
- }, A = R(() => o.maxHeight ? o.maxHeight : y.value);
1684
+ }, A = R(() => l.maxHeight ? l.maxHeight : y.value);
1685
1685
  Kt(() => {
1686
1686
  T(), window.addEventListener("resize", T);
1687
1687
  }), ca(() => {
1688
1688
  window.removeEventListener("resize", T);
1689
1689
  });
1690
- const $ = te(null), { mergedColumns: M, configurableColumns: z, visibleColumnKeys: w, setVisibleColumnKeys: N, resetColumnSetting: I, getVisibleColumnKeys: f } = _u({
1690
+ const $ = te(null), { mergedColumns: M, configurableColumns: B, visibleColumnKeys: w, setVisibleColumnKeys: N, resetColumnSetting: I, getVisibleColumnKeys: f } = _u({
1691
1691
  columns: a.columns,
1692
1692
  actionColumn: a.actionColumn,
1693
- onView: (S) => l("view", S),
1694
- onEdit: (S) => l("edit", S),
1695
- onDelete: (S) => l("delete", S)
1693
+ onView: (S) => o("view", S),
1694
+ onEdit: (S) => o("edit", S),
1695
+ onDelete: (S) => o("delete", S)
1696
1696
  }), { paginationConfig: u, handlePageChange: p, handlePageSizeChange: x } = wu({
1697
1697
  get pagination() {
1698
1698
  return a.pagination;
@@ -1700,14 +1700,14 @@ var xu = {
1700
1700
  get fieldNames() {
1701
1701
  return a.paginationFieldNames;
1702
1702
  },
1703
- onUpdatePagination: (S) => l("update:pagination", S),
1704
- onPageChange: (S) => l("pageChange", S)
1703
+ onUpdatePagination: (S) => o("update:pagination", S),
1704
+ onPageChange: (S) => o("pageChange", S)
1705
1705
  });
1706
1706
  ga(w, (S) => {
1707
- l("update:visibleColumns", S);
1707
+ o("update:visibleColumns", S);
1708
1708
  });
1709
1709
  const H = R(() => typeof a.rowKey == "function" ? a.rowKey : (S) => S[a.rowKey]), re = (S) => {
1710
- l("update:checkedRowKeys", S, a.data.filter((k) => S.includes(H.value(k))));
1710
+ o("update:checkedRowKeys", S, a.data.filter((k) => S.includes(H.value(k))));
1711
1711
  }, E = () => {
1712
1712
  a.onAdd?.();
1713
1713
  }, _e = () => {
@@ -1716,7 +1716,7 @@ var xu = {
1716
1716
  return t({
1717
1717
  getTableInstance: () => $.value,
1718
1718
  clearChecked: () => {
1719
- l("update:checkedRowKeys", [], []);
1719
+ o("update:checkedRowKeys", [], []);
1720
1720
  },
1721
1721
  refresh: () => {
1722
1722
  _e();
@@ -1727,16 +1727,16 @@ var xu = {
1727
1727
  scrollTo: (S) => {
1728
1728
  $.value?.scrollTo(S);
1729
1729
  }
1730
- }), (S, k) => (h(), Q("div", {
1730
+ }), (S, k) => (v(), Q("div", {
1731
1731
  ref_key: "containerRef",
1732
1732
  ref: n,
1733
1733
  class: "dydx-table"
1734
- }, [a.showToolbar ? (h(), Q("div", xu, [_(d(X), {
1734
+ }, [a.showToolbar ? (v(), Q("div", xu, [_(d(X), {
1735
1735
  class: "dydx-table__toolbar-left",
1736
1736
  size: 12
1737
1737
  }, {
1738
1738
  default: s(() => [
1739
- e.showAdd ? (h(), P(d(K), {
1739
+ e.showAdd ? (v(), P(d(K), {
1740
1740
  key: 0,
1741
1741
  type: "primary",
1742
1742
  onClick: E
@@ -1748,7 +1748,7 @@ var xu = {
1748
1748
  default: s(() => [U(" " + W(e.addButtonText), 1)]),
1749
1749
  _: 3
1750
1750
  })) : J("", !0),
1751
- (h(!0), Q(Z, null, oe(e.leftButtons, (O) => (h(), Q(Z, { key: O.key }, [O.show !== !1 ? (h(), P(d(K), {
1751
+ (v(!0), Q(Z, null, oe(e.leftButtons, (O) => (v(), Q(Z, { key: O.key }, [O.show !== !1 ? (v(), P(d(K), {
1752
1752
  key: 0,
1753
1753
  type: O.type,
1754
1754
  disabled: O.disabled,
@@ -1758,7 +1758,7 @@ var xu = {
1758
1758
  _: 2
1759
1759
  }, [O.icon ? {
1760
1760
  name: "icon",
1761
- fn: s(() => [(h(), P(ue(O.icon)))]),
1761
+ fn: s(() => [(v(), P(ue(O.icon)))]),
1762
1762
  key: "0"
1763
1763
  } : void 0]), 1032, [
1764
1764
  "type",
@@ -1774,7 +1774,7 @@ var xu = {
1774
1774
  }, {
1775
1775
  default: s(() => [
1776
1776
  V(S.$slots, "toolbar-right", {}, void 0, !0),
1777
- (h(!0), Q(Z, null, oe(e.rightButtons, (O) => (h(), Q(Z, { key: O.key }, [O.show !== !1 ? (h(), P(d(K), {
1777
+ (v(!0), Q(Z, null, oe(e.rightButtons, (O) => (v(), Q(Z, { key: O.key }, [O.show !== !1 ? (v(), P(d(K), {
1778
1778
  key: 0,
1779
1779
  type: O.type,
1780
1780
  disabled: O.disabled,
@@ -1784,14 +1784,14 @@ var xu = {
1784
1784
  _: 2
1785
1785
  }, [O.icon ? {
1786
1786
  name: "icon",
1787
- fn: s(() => [(h(), P(ue(O.icon)))]),
1787
+ fn: s(() => [(v(), P(ue(O.icon)))]),
1788
1788
  key: "0"
1789
1789
  } : void 0]), 1032, [
1790
1790
  "type",
1791
1791
  "disabled",
1792
1792
  "onClick"
1793
1793
  ])) : J("", !0)], 64))), 128)),
1794
- e.showRefresh ? (h(), P(d(Ge), {
1794
+ e.showRefresh ? (v(), P(d(Ge), {
1795
1795
  key: 0,
1796
1796
  trigger: "hover"
1797
1797
  }, {
@@ -1809,7 +1809,7 @@ var xu = {
1809
1809
  default: s(() => [k[1] || (k[1] = U(" 刷新 ", -1))]),
1810
1810
  _: 1
1811
1811
  })) : J("", !0),
1812
- e.showColumnSetting ? (h(), P(d(Xr), {
1812
+ e.showColumnSetting ? (v(), P(d(Xr), {
1813
1813
  key: 1,
1814
1814
  trigger: "click",
1815
1815
  placement: "bottom-end"
@@ -1844,7 +1844,7 @@ var xu = {
1844
1844
  vertical: "",
1845
1845
  size: 8
1846
1846
  }, {
1847
- default: s(() => [(h(!0), Q(Z, null, oe(d(z), (O) => (h(), P(d(Mt), {
1847
+ default: s(() => [(v(!0), Q(Z, null, oe(d(B), (O) => (v(), P(d(Mt), {
1848
1848
  key: O.key,
1849
1849
  value: O.key,
1850
1850
  label: O.title
@@ -1868,7 +1868,7 @@ var xu = {
1868
1868
  remote: e.remote,
1869
1869
  "checked-row-keys": e.checkedRowKeys,
1870
1870
  "max-height": A.value
1871
- }, d(o), {
1871
+ }, d(l), {
1872
1872
  "onUpdate:page": d(p),
1873
1873
  "onUpdate:pageSize": d(x),
1874
1874
  "onUpdate:checkedRowKeys": re
@@ -1887,7 +1887,7 @@ var xu = {
1887
1887
  }
1888
1888
  }), ku = (e, t) => {
1889
1889
  const r = e.__vccOpts || e;
1890
- for (const [a, l] of t) r[a] = l;
1890
+ for (const [a, o] of t) r[a] = o;
1891
1891
  return r;
1892
1892
  }, Pr = /* @__PURE__ */ ku(Su, [["__scopeId", "data-v-41718586"]]), Au = /* @__PURE__ */ fe({
1893
1893
  name: "DydxFormModal",
@@ -1923,11 +1923,11 @@ var xu = {
1923
1923
  "cancel"
1924
1924
  ],
1925
1925
  setup(e, { expose: t, emit: r }) {
1926
- const a = e, l = r, o = Qe(), n = te(), y = R(() => a.title ? a.title : `${a.model[a.rowKey] ? "编辑" : "新增"}${a.subtitle}`), m = R(() => ({ width: typeof a.width == "number" ? `${a.width}px` : a.width })), g = () => {
1927
- l("update:show", !1), l("cancel");
1926
+ const a = e, o = r, l = Qe(), n = te(), y = R(() => a.title ? a.title : `${a.model[a.rowKey] ? "编辑" : "新增"}${a.subtitle}`), m = R(() => ({ width: typeof a.width == "number" ? `${a.width}px` : a.width })), g = () => {
1927
+ o("update:show", !1), o("cancel");
1928
1928
  }, b = async () => {
1929
1929
  try {
1930
- await n.value?.validate(), l("confirm", a.model);
1930
+ await n.value?.validate(), o("confirm", a.model);
1931
1931
  } catch {
1932
1932
  }
1933
1933
  };
@@ -1935,13 +1935,13 @@ var xu = {
1935
1935
  getFormRef: () => n.value,
1936
1936
  validate: () => n.value?.validate(),
1937
1937
  resetFields: () => n.value?.resetFields()
1938
- }), (T, A) => (h(), P(d(Yr), q({
1938
+ }), (T, A) => (v(), P(d(Yr), q({
1939
1939
  show: e.show,
1940
1940
  preset: "card",
1941
1941
  title: y.value,
1942
1942
  style: m.value,
1943
1943
  "mask-closable": !1
1944
- }, d(o), { "onUpdate:show": A[0] || (A[0] = ($) => l("update:show", $)) }), Te({ _: 2 }, [
1944
+ }, d(l), { "onUpdate:show": A[0] || (A[0] = ($) => o("update:show", $)) }), Te({ _: 2 }, [
1945
1945
  T.$slots.header ? {
1946
1946
  name: "header",
1947
1947
  fn: s(() => [V(T.$slots, "header")]),
@@ -1990,7 +1990,7 @@ var xu = {
1990
1990
  } : {
1991
1991
  name: "footer",
1992
1992
  fn: s(() => [_(d(X), { justify: "end" }, {
1993
- default: s(() => [e.showCancel ? (h(), P(d(K), {
1993
+ default: s(() => [e.showCancel ? (v(), P(d(K), {
1994
1994
  key: 0,
1995
1995
  onClick: g
1996
1996
  }, {
@@ -2062,11 +2062,11 @@ var xu = {
2062
2062
  "cancel"
2063
2063
  ],
2064
2064
  setup(e, { expose: t, emit: r }) {
2065
- const a = e, l = r, o = Qe(), n = te(), y = R(() => a.title ? a.title : `${a.model[a.rowKey] ? "编辑" : "新增"}${a.subtitle}`), m = () => {
2066
- l("update:show", !1), l("cancel");
2065
+ const a = e, o = r, l = Qe(), n = te(), y = R(() => a.title ? a.title : `${a.model[a.rowKey] ? "编辑" : "新增"}${a.subtitle}`), m = () => {
2066
+ o("update:show", !1), o("cancel");
2067
2067
  }, g = async () => {
2068
2068
  try {
2069
- await n.value?.validate(), l("confirm", a.model);
2069
+ await n.value?.validate(), o("confirm", a.model);
2070
2070
  } catch {
2071
2071
  }
2072
2072
  };
@@ -2074,12 +2074,12 @@ var xu = {
2074
2074
  getFormRef: () => n.value,
2075
2075
  validate: () => n.value?.validate(),
2076
2076
  resetFields: () => n.value?.resetFields()
2077
- }), (b, T) => (h(), P(d(zr), q({
2077
+ }), (b, T) => (v(), P(d(zr), q({
2078
2078
  show: e.show,
2079
2079
  width: e.width,
2080
2080
  placement: e.placement,
2081
2081
  "mask-closable": !1
2082
- }, d(o), { "onUpdate:show": T[0] || (T[0] = (A) => l("update:show", A)) }), {
2082
+ }, d(l), { "onUpdate:show": T[0] || (T[0] = (A) => o("update:show", A)) }), {
2083
2083
  default: s(() => [_(d(Ur), {
2084
2084
  title: y.value,
2085
2085
  closable: "",
@@ -2121,7 +2121,7 @@ var xu = {
2121
2121
  } : {
2122
2122
  name: "footer",
2123
2123
  fn: s(() => [_(d(X), { justify: "end" }, {
2124
- default: s(() => [e.showCancel ? (h(), P(d(K), {
2124
+ default: s(() => [e.showCancel ? (v(), P(d(K), {
2125
2125
  key: 0,
2126
2126
  onClick: m
2127
2127
  }, {