dydx-naive-ui-for-vue 0.1.27 → 0.1.28

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 Xn } from "./resolver-BDxomgBZ.js";
2
- import { NAutoComplete as bt, NButton as E, NCascader as _t, NCheckbox as Ke, NCheckboxGroup as Ne, NColorPicker as Ct, NDataTable as wt, NDatePicker as xt, NDrawer as kt, NDrawerContent as St, NDropdown as Tt, NDynamicInput as Nt, NDynamicTags as Pt, NForm as Dt, NFormItem as Ft, NGrid as zt, NGridItem as Ot, NIcon as A, NImage as Rt, NInput as It, NInputNumber as $t, NMention as Bt, NModal as Ut, NPopconfirm as At, NPopover as Mt, NRadio as Et, NRadioGroup as Le, NRate as Vt, NSelect as We, NSlider as Gt, NSpace as q, NSpin as Pe, NSwitch as jt, NTag as we, NText as Ht, NTimePicker as Kt, NTooltip as Se, NTreeSelect as Lt, NUpload as qe, NUploadDragger as Wt, useMessage as qt } from "naive-ui";
3
- import { Fragment as J, computed as I, createBlock as T, createCommentVNode as L, createElementBlock as W, createElementVNode as pe, createSlots as de, createTextVNode as R, createVNode as y, defineComponent as ne, guardReactiveProps as Jt, h, isRef as Qt, mergeProps as K, nextTick as Yt, normalizeProps as Xt, onMounted as Zt, onUnmounted as ea, openBlock as m, ref as Y, renderList as ee, renderSlot as V, resolveDynamicComponent as ae, toDisplayString as j, toHandlers as ta, unref as u, useAttrs as De, watch as Je, withCtx as o } from "vue";
2
+ import { NAutoComplete as bt, NButton as E, NCascader as _t, NCheckbox as Ke, NCheckboxGroup as Te, NColorPicker as wt, NDataTable as Ct, NDatePicker as xt, NDrawer as kt, NDrawerContent as St, NDropdown as Nt, NDynamicInput as Tt, NDynamicTags as Dt, NForm as Pt, NFormItem as Ft, NGrid as zt, NGridItem as Ot, NIcon as A, NImage as Rt, NInput as It, NInputNumber as $t, NMention as Bt, NModal as Ut, NPopconfirm as At, NPopover as Mt, NRadio as Et, NRadioGroup as Le, NRate as Vt, NSelect as We, NSlider as Gt, NSpace as q, NSpin as De, NSwitch as jt, NTag as Ce, NText as Ht, NTimePicker as Kt, NTooltip as Se, NTreeSelect as Lt, NUpload as qe, NUploadDragger as Wt, useMessage as qt } from "naive-ui";
3
+ import { Fragment as J, computed as I, createBlock as N, createCommentVNode as L, createElementBlock as W, createElementVNode as pe, createSlots as de, createTextVNode as R, createVNode as y, defineComponent as ne, guardReactiveProps as Jt, h, isRef as Qt, mergeProps as K, nextTick as Yt, normalizeProps as Xt, onMounted as Zt, onUnmounted as ea, openBlock as m, ref as Y, renderList as ee, renderSlot as V, resolveDynamicComponent as ae, toDisplayString as j, toHandlers as ta, unref as u, useAttrs as Pe, watch as Je, withCtx as o } from "vue";
4
4
  import * as me from "@vicons/ionicons5";
5
5
  import { AddOutline as Qe, CheckmarkOutline as Ye, CloseOutline as Xe, CloudUploadOutline as Ue, CreateOutline as aa, DownloadOutline as ra, EyeOutline as na, OpenOutline as la, RefreshOutline as Ze, SearchCircleOutline as oa, SettingsOutline as ia, TrashOutline as sa } from "@vicons/ionicons5";
6
6
  var ua = { style: { "margin-bottom": "12px" } }, da = /* @__PURE__ */ ne({
@@ -43,27 +43,27 @@ var ua = { style: { "margin-bottom": "12px" } }, da = /* @__PURE__ */ ne({
43
43
  "beforeUpload"
44
44
  ],
45
45
  setup(e, { expose: t, emit: r }) {
46
- const a = e, l = r, c = qt(), i = Y(), x = I(() => a.listType ? a.listType : a.uploadType === "image" ? "image-card" : "text"), v = I(() => a.urlPrefix ? a.fileList.map((N) => ({
47
- ...N,
48
- url: N.url && !N.url.startsWith("http") ? a.urlPrefix + N.url : N.url
46
+ const a = e, l = r, c = qt(), i = Y(), C = I(() => a.listType ? a.listType : a.uploadType === "image" ? "image-card" : "text"), v = I(() => a.urlPrefix ? a.fileList.map((T) => ({
47
+ ...T,
48
+ url: T.url && !T.url.startsWith("http") ? a.urlPrefix + T.url : T.url
49
49
  })) : a.fileList), g = I(() => {
50
- const N = [];
51
- return a.acceptTypes?.length && N.push(`支持格式:${a.acceptTypes.join(", ")}`), a.maxSize && N.push(`单个文件不超过 ${a.maxSize}MB`), a.maxCount && N.push(`最多 ${a.maxCount} 个文件`), N.join(";");
50
+ const T = [];
51
+ return a.acceptTypes?.length && T.push(`支持格式:${a.acceptTypes.join(", ")}`), a.maxSize && T.push(`单个文件不超过 ${a.maxSize}MB`), a.maxCount && T.push(`最多 ${a.maxCount} 个文件`), T.join(";");
52
52
  }), b = I(() => {
53
53
  if (a.accept) return a.accept;
54
54
  if (a.acceptTypes?.length) return a.acceptTypes.join(",");
55
55
  if (a.uploadType === "image") return "image/*";
56
- }), P = I(() => {
57
- const { uploadType: N, fileList: F, customUpload: z, acceptTypes: d, maxSize: s, maxCount: p, multiple: S, autoUpload: G, disabled: X, urlPrefix: B, showTip: Z, showDragger: _e, ...se } = a;
56
+ }), D = I(() => {
57
+ const { uploadType: T, fileList: F, customUpload: z, acceptTypes: d, maxSize: s, maxCount: p, multiple: S, autoUpload: G, disabled: X, urlPrefix: B, showTip: Z, showDragger: _e, ...se } = a;
58
58
  return se;
59
- }), D = (N) => {
60
- l("update:fileList", a.urlPrefix ? N.map((F) => ({
59
+ }), P = (T) => {
60
+ l("update:fileList", a.urlPrefix ? T.map((F) => ({
61
61
  ...F,
62
62
  url: F.url?.startsWith(a.urlPrefix) ? F.url.slice(a.urlPrefix.length) : F.url
63
- })) : N);
64
- }, k = async ({ file: N }) => {
65
- l("beforeUpload", N);
66
- const F = N.file;
63
+ })) : T);
64
+ }, k = async ({ file: T }) => {
65
+ l("beforeUpload", T);
66
+ const F = T.file;
67
67
  return F ? a.maxSize && F.size > a.maxSize * 1024 * 1024 ? (c.error(`文件大小不能超过 ${a.maxSize}MB`), !1) : a.acceptTypes?.length && !a.acceptTypes.some((z) => {
68
68
  if (z.startsWith(".")) return F.name.toLowerCase().endsWith(z.toLowerCase());
69
69
  if (z.includes("*")) {
@@ -72,8 +72,8 @@ var ua = { style: { "margin-bottom": "12px" } }, da = /* @__PURE__ */ ne({
72
72
  }
73
73
  return F.type === z;
74
74
  }) ? (c.error(`只支持 ${a.acceptTypes.join(", ")} 格式`), !1) : a.maxCount && a.fileList.length >= a.maxCount ? (l("exceed", [F]), c.error(`最多上传 ${a.maxCount} 个文件`), !1) : !0 : !0;
75
- }, M = async (N) => {
76
- const { file: F, onProgress: z, onFinish: d, onError: s } = N;
75
+ }, M = async (T) => {
76
+ const { file: F, onProgress: z, onFinish: d, onError: s } = T;
77
77
  if (!a.customUpload) {
78
78
  console.warn("DydxUpload: customUpload 方法未提供"), s();
79
79
  return;
@@ -92,13 +92,13 @@ var ua = { style: { "margin-bottom": "12px" } }, da = /* @__PURE__ */ ne({
92
92
  submit: () => i.value?.submit(),
93
93
  openDialog: () => i.value?.openOpenFileDialog(),
94
94
  clear: () => i.value?.clear()
95
- }), (N, F) => {
95
+ }), (T, F) => {
96
96
  const z = A, d = Ht, s = Wt, p = E, S = qe;
97
97
  return m(), W("div", null, [
98
98
  y(S, K({
99
99
  ref_key: "uploadRef",
100
100
  ref: i
101
- }, P.value, {
101
+ }, D.value, {
102
102
  "file-list": v.value,
103
103
  "custom-request": M,
104
104
  accept: b.value,
@@ -106,11 +106,11 @@ var ua = { style: { "margin-bottom": "12px" } }, da = /* @__PURE__ */ ne({
106
106
  multiple: e.multiple,
107
107
  disabled: e.disabled,
108
108
  "default-upload": e.autoUpload,
109
- "list-type": x.value,
110
- "onUpdate:fileList": D,
109
+ "list-type": C.value,
110
+ "onUpdate:fileList": P,
111
111
  onBeforeUpload: k
112
112
  }), {
113
- default: o(() => [e.showDragger && e.uploadType !== "image" ? (m(), T(s, { key: 0 }, {
113
+ default: o(() => [e.showDragger && e.uploadType !== "image" ? (m(), N(s, { key: 0 }, {
114
114
  default: o(() => [
115
115
  pe("div", ua, [y(z, {
116
116
  size: "48",
@@ -123,7 +123,7 @@ var ua = { style: { "margin-bottom": "12px" } }, da = /* @__PURE__ */ ne({
123
123
  default: o(() => [...F[0] || (F[0] = [R(" 点击或拖拽文件到此区域上传 ", -1)])]),
124
124
  _: 1
125
125
  }),
126
- e.showTip ? (m(), T(d, {
126
+ e.showTip ? (m(), N(d, {
127
127
  key: 0,
128
128
  depth: "3",
129
129
  style: {
@@ -137,13 +137,13 @@ var ua = { style: { "margin-bottom": "12px" } }, da = /* @__PURE__ */ ne({
137
137
  })) : L("", !0)
138
138
  ]),
139
139
  _: 1
140
- })) : V(N.$slots, "default", { key: 1 }, () => [e.uploadType === "image" && x.value === "image-card" ? (m(), T(z, {
140
+ })) : V(T.$slots, "default", { key: 1 }, () => [e.uploadType === "image" && C.value === "image-card" ? (m(), N(z, {
141
141
  key: 0,
142
142
  size: 28
143
143
  }, {
144
144
  default: o(() => [y(u(Qe))]),
145
145
  _: 1
146
- })) : (m(), T(p, { key: 1 }, {
146
+ })) : (m(), N(p, { key: 1 }, {
147
147
  icon: o(() => [y(z, null, {
148
148
  default: o(() => [y(u(Ue))]),
149
149
  _: 1
@@ -161,7 +161,7 @@ var ua = { style: { "margin-bottom": "12px" } }, da = /* @__PURE__ */ ne({
161
161
  "default-upload",
162
162
  "list-type"
163
163
  ]),
164
- !e.autoUpload && v.value.length > 0 ? (m(), T(p, {
164
+ !e.autoUpload && v.value.length > 0 ? (m(), N(p, {
165
165
  key: 0,
166
166
  type: "primary",
167
167
  onClick: Q,
@@ -170,7 +170,7 @@ var ua = { style: { "margin-bottom": "12px" } }, da = /* @__PURE__ */ ne({
170
170
  default: o(() => [...F[1] || (F[1] = [R(" 开始上传 ", -1)])]),
171
171
  _: 1
172
172
  })) : L("", !0),
173
- e.showTip && !(e.showDragger && e.uploadType !== "image") ? (m(), T(d, {
173
+ e.showTip && !(e.showDragger && e.uploadType !== "image") ? (m(), N(d, {
174
174
  key: 1,
175
175
  depth: "3",
176
176
  style: {
@@ -213,13 +213,13 @@ var ua = { style: { "margin-bottom": "12px" } }, da = /* @__PURE__ */ ne({
213
213
  }), i = (g) => {
214
214
  const b = me[g.value];
215
215
  return h("div", { style: "display: flex; align-items: center; gap: 8px;" }, [h(A, { size: 18 }, () => h(b)), h("span", { style: "flex: 1; overflow: hidden; text-overflow: ellipsis;" }, g.label)]);
216
- }, x = ({ option: g }) => {
216
+ }, C = ({ option: g }) => {
217
217
  const b = me[g.value];
218
218
  return h("div", { style: "display: flex; align-items: center; gap: 4px;" }, [h(A, { size: 16 }, () => h(b)), g.label]);
219
219
  }, v = (g) => {
220
220
  a("update:value", g);
221
221
  };
222
- return (g, b) => (m(), T(u(We), {
222
+ return (g, b) => (m(), N(u(We), {
223
223
  value: e.value,
224
224
  options: c.value,
225
225
  placeholder: e.placeholder,
@@ -227,7 +227,7 @@ var ua = { style: { "margin-bottom": "12px" } }, da = /* @__PURE__ */ ne({
227
227
  clearable: e.clearable,
228
228
  filterable: e.filterable,
229
229
  "render-label": i,
230
- "render-tag": x,
230
+ "render-tag": C,
231
231
  "virtual-scroll": "",
232
232
  "onUpdate:value": v
233
233
  }, null, 8, [
@@ -249,15 +249,15 @@ const ca = {
249
249
  switch: jt,
250
250
  slider: Gt,
251
251
  "radio-group": Le,
252
- "checkbox-group": Ne,
252
+ "checkbox-group": Te,
253
253
  cascader: _t,
254
254
  "tree-select": Lt,
255
255
  upload: qe,
256
256
  rate: Vt,
257
- "color-picker": Ct,
257
+ "color-picker": wt,
258
258
  "auto-complete": bt,
259
- "dynamic-input": Nt,
260
- "dynamic-tags": Pt,
259
+ "dynamic-input": Tt,
260
+ "dynamic-tags": Dt,
261
261
  mention: Bt,
262
262
  "image-upload": ye,
263
263
  "file-upload": ye,
@@ -274,21 +274,21 @@ function _a(e) {
274
274
  var l = ba.call(e);
275
275
  return a && (t ? e[ue] = r : delete e[ue]), l;
276
276
  }
277
- var Ca = _a, wa = Object.prototype.toString;
277
+ var wa = _a, Ca = Object.prototype.toString;
278
278
  function xa(e) {
279
- return wa.call(e);
279
+ return Ca.call(e);
280
280
  }
281
- var ka = xa, Sa = "[object Null]", Ta = "[object Undefined]", Ae = re ? re.toStringTag : void 0;
282
- function Na(e) {
283
- return e == null ? e === void 0 ? Ta : Sa : Ae && Ae in Object(e) ? Ca(e) : ka(e);
281
+ var ka = xa, Sa = "[object Null]", Na = "[object Undefined]", Ae = re ? re.toStringTag : void 0;
282
+ function Ta(e) {
283
+ return e == null ? e === void 0 ? Na : Sa : Ae && Ae in Object(e) ? wa(e) : ka(e);
284
284
  }
285
- var tt = Na;
286
- function Pa(e) {
285
+ var tt = Ta;
286
+ function Da(e) {
287
287
  return e != null && typeof e == "object";
288
288
  }
289
- var Da = Pa, Fa = "[object Symbol]";
289
+ var Pa = Da, Fa = "[object Symbol]";
290
290
  function za(e) {
291
- return typeof e == "symbol" || Da(e) && tt(e) == Fa;
291
+ return typeof e == "symbol" || Pa(e) && tt(e) == Fa;
292
292
  }
293
293
  var Oe = za;
294
294
  function Oa(e, t) {
@@ -378,28 +378,28 @@ function hr(e, t, r) {
378
378
  (!(gr.call(e, t) && rt(a, r)) || r === void 0 && !(t in e)) && mr(e, t, r);
379
379
  }
380
380
  var vr = hr, br = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, _r = /^\w*$/;
381
- function Cr(e, t) {
381
+ function wr(e, t) {
382
382
  if (Re(e)) return !1;
383
383
  var r = typeof e;
384
384
  return r == "number" || r == "symbol" || r == "boolean" || e == null || Oe(e) ? !0 : _r.test(e) || !br.test(e) || t != null && e in Object(t);
385
385
  }
386
- var wr = Cr, xr = Ie(Object, "create"), fe = xr;
386
+ var Cr = wr, xr = Ie(Object, "create"), fe = xr;
387
387
  function kr() {
388
388
  this.__data__ = fe ? fe(null) : {}, this.size = 0;
389
389
  }
390
390
  var Sr = kr;
391
- function Tr(e) {
391
+ function Nr(e) {
392
392
  var t = this.has(e) && delete this.__data__[e];
393
393
  return this.size -= t ? 1 : 0, t;
394
394
  }
395
- var Nr = Tr, Pr = "__lodash_hash_undefined__", Dr = Object.prototype.hasOwnProperty;
395
+ var Tr = Nr, Dr = "__lodash_hash_undefined__", Pr = Object.prototype.hasOwnProperty;
396
396
  function Fr(e) {
397
397
  var t = this.__data__;
398
398
  if (fe) {
399
399
  var r = t[e];
400
- return r === Pr ? void 0 : r;
400
+ return r === Dr ? void 0 : r;
401
401
  }
402
- return Dr.call(t, e) ? t[e] : void 0;
402
+ return Pr.call(t, e) ? t[e] : void 0;
403
403
  }
404
404
  var zr = Fr, Or = Object.prototype.hasOwnProperty;
405
405
  function Rr(e) {
@@ -420,7 +420,7 @@ function le(e) {
420
420
  }
421
421
  }
422
422
  le.prototype.clear = Sr;
423
- le.prototype.delete = Nr;
423
+ le.prototype.delete = Tr;
424
424
  le.prototype.get = zr;
425
425
  le.prototype.has = Ir;
426
426
  le.prototype.set = Ur;
@@ -538,43 +538,43 @@ var hn = gn, vn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)
538
538
  return e.charCodeAt(0) === 46 && t.push(""), e.replace(vn, function(r, a, l, c) {
539
539
  t.push(l ? c.replace(bn, "$1") : a || r);
540
540
  }), t;
541
- }), Cn = _n;
542
- function wn(e) {
541
+ }), wn = _n;
542
+ function Cn(e) {
543
543
  return e == null ? "" : Ba(e);
544
544
  }
545
- var xn = wn;
545
+ var xn = Cn;
546
546
  function kn(e, t) {
547
- return Re(e) ? e : wr(e, t) ? [e] : Cn(xn(e));
547
+ return Re(e) ? e : Cr(e, t) ? [e] : wn(xn(e));
548
548
  }
549
549
  var lt = kn, Sn = 1 / 0;
550
- function Tn(e) {
550
+ function Nn(e) {
551
551
  if (typeof e == "string" || Oe(e)) return e;
552
552
  var t = e + "";
553
553
  return t == "0" && 1 / e == -Sn ? "-0" : t;
554
554
  }
555
- var ot = Tn;
556
- function Nn(e, t) {
555
+ var ot = Nn;
556
+ function Tn(e, t) {
557
557
  t = lt(t, e);
558
558
  for (var r = 0, a = t.length; e != null && r < a; ) e = e[ot(t[r++])];
559
559
  return r && r == a ? e : void 0;
560
560
  }
561
- var Pn = Nn;
562
- function Dn(e, t, r) {
563
- var a = e == null ? void 0 : Pn(e, t);
561
+ var Dn = Tn;
562
+ function Pn(e, t, r) {
563
+ var a = e == null ? void 0 : Dn(e, t);
564
564
  return a === void 0 ? r : a;
565
565
  }
566
- var Fn = Dn;
566
+ var Fn = Pn;
567
567
  function zn(e, t, r, a) {
568
568
  if (!ge(e)) return e;
569
569
  t = lt(t, e);
570
- for (var l = -1, c = t.length, i = c - 1, x = e; x != null && ++l < c; ) {
570
+ for (var l = -1, c = t.length, i = c - 1, C = e; C != null && ++l < c; ) {
571
571
  var v = ot(t[l]), g = r;
572
572
  if (v === "__proto__" || v === "constructor" || v === "prototype") return e;
573
573
  if (l != i) {
574
- var b = x[v];
575
- g = a ? a(b, v, x) : void 0, g === void 0 && (g = ge(b) ? b : cr(t[l + 1]) ? [] : {});
574
+ var b = C[v];
575
+ g = a ? a(b, v, C) : void 0, g === void 0 && (g = ge(b) ? b : cr(t[l + 1]) ? [] : {});
576
576
  }
577
- vr(x, v, g), x = x[v];
577
+ vr(C, v, g), C = C[v];
578
578
  }
579
579
  return e;
580
580
  }
@@ -645,9 +645,9 @@ var Bn = /* @__PURE__ */ ne({
645
645
  ],
646
646
  setup(e, { expose: t, emit: r }) {
647
647
  const a = e, l = r, c = Y(), i = Y();
648
- let x = !1;
648
+ let C = !1;
649
649
  Je(() => a.model, (n) => {
650
- !x && n && (i.value = JSON.parse(JSON.stringify(n)), x = !0);
650
+ console.log("[DydxNaiveForm] watch 触发, isInitialized:", C, "newModel:", JSON.stringify(n)), !C && n && (i.value = JSON.parse(JSON.stringify(n)), C = !0, console.log("[DydxNaiveForm] 初始状态已保存:", JSON.stringify(i.value)));
651
651
  }, {
652
652
  immediate: !0,
653
653
  deep: !1
@@ -663,7 +663,7 @@ var Bn = /* @__PURE__ */ ne({
663
663
  text: "重置",
664
664
  renderIcon: () => h(A, null, { default: () => h(Ze) }),
665
665
  ...a.resetButton
666
- })), b = I(() => a.schemas.filter((n) => !(typeof n.hidden == "function" ? n.hidden(a.model) : n.hidden))), P = I(() => ({
666
+ })), b = I(() => a.schemas.filter((n) => !(typeof n.hidden == "function" ? n.hidden(a.model) : n.hidden))), D = I(() => ({
667
667
  labelWidth: a.labelWidth,
668
668
  labelAlign: a.labelAlign,
669
669
  labelPlacement: a.labelPlacement,
@@ -672,7 +672,7 @@ var Bn = /* @__PURE__ */ ne({
672
672
  showRequireMark: a.showRequireMark,
673
673
  requireMarkPlacement: a.requireMarkPlacement,
674
674
  ...a.formProps
675
- })), D = I(() => ({
675
+ })), P = I(() => ({
676
676
  cols: 24,
677
677
  xGap: a.xGap,
678
678
  yGap: a.yGap,
@@ -701,7 +701,7 @@ var Bn = /* @__PURE__ */ ne({
701
701
  "color-picker"
702
702
  ];
703
703
  return H.includes(U) ? _.placeholder = `请输入${$}` : te.includes(U) && (_.placeholder = `请选择${$}`), _;
704
- }, N = (n) => {
704
+ }, T = (n) => {
705
705
  const _ = n.type === "custom" ? "modelValue" : "value";
706
706
  return {
707
707
  [n.modelPropName || _]: s(n.name),
@@ -764,14 +764,14 @@ var Bn = /* @__PURE__ */ ne({
764
764
  const $ = Array.isArray(n) ? n : [n];
765
765
  await c.value.validate(_, (U) => $.some((H) => U.key === H));
766
766
  }, se = () => c.value?.restoreValidation(), ce = () => {
767
- se(), i.value && (Object.assign(a.model, JSON.parse(JSON.stringify(i.value))), l("update:model", a.model)), l("reset");
768
- }, w = async () => {
767
+ console.log("[DydxNaiveForm] resetFields 被调用"), console.log("[DydxNaiveForm] 当前 model:", JSON.stringify(a.model)), console.log("[DydxNaiveForm] initialModel:", JSON.stringify(i.value)), se(), i.value ? (Object.assign(a.model, JSON.parse(JSON.stringify(i.value))), console.log("[DydxNaiveForm] 重置后 model:", JSON.stringify(a.model)), l("update:model", a.model)) : console.warn("[DydxNaiveForm] initialModel 为空,无法重置"), l("reset");
768
+ }, x = async () => {
769
769
  try {
770
770
  await Z(), l("submit", a.model);
771
771
  } catch (n) {
772
772
  l("validate", n);
773
773
  }
774
- }, C = () => {
774
+ }, w = () => {
775
775
  ce();
776
776
  };
777
777
  return t({
@@ -788,22 +788,22 @@ var Bn = /* @__PURE__ */ ne({
788
788
  resetFields: ce,
789
789
  getFormItemInst: (n) => c.value?.getFormItemInst?.(n)
790
790
  }), (n, _) => {
791
- const $ = Ft, U = Ot, H = E, te = zt, Ce = Dt;
791
+ const $ = Ft, U = Ot, H = E, te = zt, we = Pt;
792
792
  return m(), W(J, null, [
793
793
  V(n.$slots, "header", { model: a.model }),
794
- y(u(Pe), { show: a.loading }, {
795
- default: o(() => [y(Ce, K({
794
+ y(u(De), { show: a.loading }, {
795
+ default: o(() => [y(we, K({
796
796
  ref_key: "formRef",
797
797
  ref: c,
798
798
  model: a.model
799
- }, P.value), {
800
- default: o(() => [y(te, Xt(Jt(D.value)), {
801
- default: o(() => [(m(!0), W(J, null, ee(b.value, (f) => (m(), T(U, K({ key: f.name }, { ref_for: !0 }, B(f)), {
799
+ }, D.value), {
800
+ default: o(() => [y(te, Xt(Jt(P.value)), {
801
+ default: o(() => [(m(!0), W(J, null, ee(b.value, (f) => (m(), N(U, K({ key: f.name }, { ref_for: !0 }, B(f)), {
802
802
  default: o(() => [f.type === "slot" ? V(n.$slots, f.slot || f.name, {
803
803
  key: 0,
804
804
  model: a.model,
805
805
  schema: f
806
- }) : (m(), T($, K({
806
+ }) : (m(), N($, K({
807
807
  key: 1,
808
808
  path: f.name
809
809
  }, { ref_for: !0 }, S(f)), de({
@@ -812,13 +812,13 @@ var Bn = /* @__PURE__ */ ne({
812
812
  schema: f,
813
813
  value: s(f.name),
814
814
  setValue: (O) => p(f.name, O)
815
- }, () => [f.type === "radio-group" && f.props?.options ? (m(), T(u(Le), K({
815
+ }, () => [f.type === "radio-group" && f.props?.options ? (m(), N(u(Le), K({
816
816
  key: 0,
817
817
  value: s(f.name),
818
818
  "onUpdate:value": (O) => p(f.name, O)
819
819
  }, { ref_for: !0 }, z(f.props)), {
820
820
  default: o(() => [y(u(q), null, {
821
- default: o(() => [(m(!0), W(J, null, ee(f.props.options, (O) => (m(), T(u(Et), {
821
+ default: o(() => [(m(!0), W(J, null, ee(f.props.options, (O) => (m(), N(u(Et), {
822
822
  key: O[f.props.valueField || "value"],
823
823
  value: O[f.props.valueField || "value"],
824
824
  disabled: O.disabled
@@ -829,13 +829,13 @@ var Bn = /* @__PURE__ */ ne({
829
829
  _: 2
830
830
  }, 1024)]),
831
831
  _: 2
832
- }, 1040, ["value", "onUpdate:value"])) : f.type === "checkbox-group" && f.props?.options ? (m(), T(u(Ne), K({
832
+ }, 1040, ["value", "onUpdate:value"])) : f.type === "checkbox-group" && f.props?.options ? (m(), N(u(Te), K({
833
833
  key: 1,
834
834
  value: s(f.name),
835
835
  "onUpdate:value": (O) => p(f.name, O)
836
836
  }, { ref_for: !0 }, z(f.props)), {
837
837
  default: o(() => [y(u(q), null, {
838
- default: o(() => [(m(!0), W(J, null, ee(f.props.options, (O) => (m(), T(u(Ke), {
838
+ default: o(() => [(m(!0), W(J, null, ee(f.props.options, (O) => (m(), N(u(Ke), {
839
839
  key: O[f.props.valueField || "value"],
840
840
  value: O[f.props.valueField || "value"],
841
841
  disabled: O.disabled
@@ -846,7 +846,7 @@ var Bn = /* @__PURE__ */ ne({
846
846
  _: 2
847
847
  }, 1024)]),
848
848
  _: 2
849
- }, 1040, ["value", "onUpdate:value"])) : f.type === "switch" ? (m(), T(ae(k(f)), K({
849
+ }, 1040, ["value", "onUpdate:value"])) : f.type === "switch" ? (m(), N(ae(k(f)), K({
850
850
  key: 2,
851
851
  value: s(f.name),
852
852
  "onUpdate:value": (O) => p(f.name, O)
@@ -854,7 +854,7 @@ var Bn = /* @__PURE__ */ ne({
854
854
  "value",
855
855
  "onUpdate:value",
856
856
  "disabled"
857
- ])) : f.type === "image-upload" || f.type === "file-upload" ? (m(), T(ae(k(f)), K({
857
+ ])) : f.type === "image-upload" || f.type === "file-upload" ? (m(), N(ae(k(f)), K({
858
858
  key: 3,
859
859
  "file-list": s(f.name) || [],
860
860
  "onUpdate:fileList": (O) => p(f.name, O),
@@ -864,18 +864,18 @@ var Bn = /* @__PURE__ */ ne({
864
864
  "onUpdate:fileList",
865
865
  "upload-type",
866
866
  "disabled"
867
- ])) : (m(), T(ae(k(f)), K({
867
+ ])) : (m(), N(ae(k(f)), K({
868
868
  key: 4,
869
869
  ref_for: !0
870
- }, N(f), ta(F(f))), null, 16))])]),
870
+ }, T(f), ta(F(f))), null, 16))])]),
871
871
  _: 2
872
872
  }, [typeof f.label == "function" ? {
873
873
  name: "label",
874
- fn: o(() => [(m(), T(ae(f.label)))]),
874
+ fn: o(() => [(m(), N(ae(f.label)))]),
875
875
  key: "0"
876
876
  } : void 0]), 1040, ["path"]))]),
877
877
  _: 2
878
- }, 1040))), 128)), a.showFooter ? (m(), T(U, {
878
+ }, 1040))), 128)), a.showFooter ? (m(), N(U, {
879
879
  key: 0,
880
880
  span: a.footerSpan
881
881
  }, {
@@ -885,15 +885,15 @@ var Bn = /* @__PURE__ */ ne({
885
885
  reset: ce
886
886
  }, () => [y(u(q), { justify: a.footerAlign }, {
887
887
  default: o(() => [
888
- g.value.hidden ? L("", !0) : (m(), T(H, K({ key: 0 }, d(g.value), { onClick: C }), {
888
+ g.value.hidden ? L("", !0) : (m(), N(H, K({ key: 0 }, d(g.value), { onClick: w }), {
889
889
  default: o(() => [R(j(g.value.text), 1)]),
890
890
  _: 1
891
891
  }, 16)),
892
- v.value.hidden ? L("", !0) : (m(), T(H, K({ key: 1 }, d(v.value), { onClick: w }), {
892
+ v.value.hidden ? L("", !0) : (m(), N(H, K({ key: 1 }, d(v.value), { onClick: x }), {
893
893
  default: o(() => [R(j(v.value.text), 1)]),
894
894
  _: 1
895
895
  }, 16)),
896
- (m(!0), W(J, null, ee(a.extraButtons, (f) => (m(), T(H, {
896
+ (m(!0), W(J, null, ee(a.extraButtons, (f) => (m(), N(H, {
897
897
  key: f.text,
898
898
  type: f.type,
899
899
  size: f.size,
@@ -925,7 +925,7 @@ var Bn = /* @__PURE__ */ ne({
925
925
  }
926
926
  }), be = Bn;
927
927
  function Un(e) {
928
- const { maxVisible: t = -1, buttons: r = [], showView: a = !0, showEdit: l = !0, showDelete: c = !0, viewConfig: i, editConfig: x, deleteConfig: v, onView: g, onEdit: b, onDelete: P } = e, D = (s, p, S, G) => p ? s ? typeof s.show == "function" ? s.show(S, G) : s.show !== !1 : !0 : !1, k = (s, p, S) => s ? typeof s.disabled == "function" ? s.disabled(p, S) : s.disabled === !0 : !1, M = (s, p, S) => typeof s.show == "function" ? s.show(p, S) : s.show !== !1, Q = (s, p, S) => typeof s.disabled == "function" ? s.disabled(p, S) : s.disabled === !0, N = (s, p, S) => typeof s == "function" ? s(p) : s || S, F = (s) => {
928
+ const { maxVisible: t = -1, buttons: r = [], showView: a = !0, showEdit: l = !0, showDelete: c = !0, viewConfig: i, editConfig: C, deleteConfig: v, onView: g, onEdit: b, onDelete: D } = e, P = (s, p, S, G) => p ? s ? typeof s.show == "function" ? s.show(S, G) : s.show !== !1 : !0 : !1, k = (s, p, S) => s ? typeof s.disabled == "function" ? s.disabled(p, S) : s.disabled === !0 : !1, M = (s, p, S) => typeof s.show == "function" ? s.show(p, S) : s.show !== !1, Q = (s, p, S) => typeof s.disabled == "function" ? s.disabled(p, S) : s.disabled === !0, T = (s, p, S) => typeof s == "function" ? s(p) : s || S, F = (s) => {
929
929
  const p = h(E, {
930
930
  type: s.type,
931
931
  size: "small",
@@ -943,7 +943,7 @@ function Un(e) {
943
943
  key: G.key,
944
944
  disabled: G.disabled
945
945
  }));
946
- return h(Tt, {
946
+ return h(Nt, {
947
947
  options: p,
948
948
  trigger: "click",
949
949
  onSelect: (G) => {
@@ -954,7 +954,7 @@ function Un(e) {
954
954
  return {
955
955
  renderActions: (s, p) => {
956
956
  const S = [];
957
- if (D(i, a, s, p) && S.push({
957
+ if (P(i, a, s, p) && S.push({
958
958
  key: "__view__",
959
959
  label: i?.label || "查看",
960
960
  type: "info",
@@ -964,24 +964,24 @@ function Un(e) {
964
964
  row: s,
965
965
  index: p
966
966
  })
967
- }), D(x, l, s, p) && S.push({
967
+ }), P(C, l, s, p) && S.push({
968
968
  key: "__edit__",
969
- label: x?.label || "编辑",
969
+ label: C?.label || "编辑",
970
970
  type: "primary",
971
- disabled: k(x, s, p),
971
+ disabled: k(C, s, p),
972
972
  icon: () => h(A, null, { default: () => h(aa) }),
973
973
  onClick: () => b?.({
974
974
  row: s,
975
975
  index: p
976
976
  })
977
- }), D(v, c, s, p) && S.push({
977
+ }), P(v, c, s, p) && S.push({
978
978
  key: "__delete__",
979
979
  label: v?.label || "删除",
980
980
  type: "error",
981
981
  disabled: k(v, s, p),
982
- confirm: N(v?.confirm, s, "确定删除此记录吗?"),
982
+ confirm: T(v?.confirm, s, "确定删除此记录吗?"),
983
983
  icon: () => h(A, null, { default: () => h(sa) }),
984
- onClick: () => P?.({
984
+ onClick: () => D?.({
985
985
  row: s,
986
986
  index: p
987
987
  })
@@ -991,7 +991,7 @@ function Un(e) {
991
991
  label: B.label,
992
992
  type: B.type || "default",
993
993
  disabled: Q(B, s, p),
994
- confirm: B.confirm ? N(B.confirm, s, "确定执行此操作吗?") : void 0,
994
+ confirm: B.confirm ? T(B.confirm, s, "确定执行此操作吗?") : void 0,
995
995
  icon: B.icon,
996
996
  onClick: () => B.onClick?.(s, p)
997
997
  });
@@ -1081,28 +1081,28 @@ var An = (e) => {
1081
1081
  size: t?.size ?? 20,
1082
1082
  color: t?.color
1083
1083
  }, () => h(a)) : r;
1084
- }, Te = (e, t, r = "label", a = "value") => {
1084
+ }, Ne = (e, t, r = "label", a = "value") => {
1085
1085
  if (e == null) return "-";
1086
- if (!t || t.length === 0) return h(we, { size: "small" }, () => String(e));
1086
+ if (!t || t.length === 0) return h(Ce, { size: "small" }, () => String(e));
1087
1087
  const l = t.find((c) => {
1088
1088
  const i = c[a];
1089
1089
  return i === e || String(i) === String(e) ? !0 : typeof i == "number" && !isNaN(Number(e)) ? i === Number(e) : typeof e == "number" && !isNaN(Number(i)) ? Number(i) === e : typeof i == "boolean" ? i === (e === "true" || e === !0) : typeof e == "boolean" ? (i === "true" || i === !0) === e : !1;
1090
1090
  });
1091
1091
  if (l) {
1092
1092
  const c = l, i = c[r];
1093
- return h(we, {
1093
+ return h(Ce, {
1094
1094
  size: "small",
1095
- ...Object.keys(l).reduce((x, v) => (v !== r && v !== a && (x[v] = c[v]), x), {})
1095
+ ...Object.keys(l).reduce((C, v) => (v !== r && v !== a && (C[v] = c[v]), C), {})
1096
1096
  }, () => i);
1097
1097
  }
1098
- return h(we, { size: "small" }, () => String(e));
1098
+ return h(Ce, { size: "small" }, () => String(e));
1099
1099
  }, ct = (e, t, r = "label", a = "value") => e == null ? "-" : Array.isArray(e) ? h(q, {
1100
1100
  size: "small",
1101
1101
  wrap: !0
1102
1102
  }, () => e.map((l, c) => {
1103
- const i = Te(l, t, r, a);
1103
+ const i = Ne(l, t, r, a);
1104
1104
  return typeof i == "string" ? h("span", { key: c }, i) : i;
1105
- })) : Te(e, t, r, a);
1105
+ })) : Ne(e, t, r, a);
1106
1106
  const pt = (e, t, r) => {
1107
1107
  switch (r.columnType || "text") {
1108
1108
  case "link":
@@ -1128,22 +1128,22 @@ function al() {
1128
1128
  renderLink: st,
1129
1129
  renderImage: ut,
1130
1130
  renderFile: dt,
1131
- renderTag: Te,
1131
+ renderTag: Ne,
1132
1132
  renderTags: ct,
1133
1133
  renderIcon: ft
1134
1134
  };
1135
1135
  }
1136
1136
  function Mn(e) {
1137
- const { columns: t, actionColumn: r, onView: a, onEdit: l, onDelete: c } = e, i = (d) => "key" in d && d.key ? String(d.key) : "type" in d ? `__${d.type}__` : "", x = (d) => {
1137
+ const { columns: t, actionColumn: r, onView: a, onEdit: l, onDelete: c } = e, i = (d) => "key" in d && d.key ? String(d.key) : "type" in d ? `__${d.type}__` : "", C = (d) => {
1138
1138
  if ("title" in d) {
1139
1139
  if (typeof d.title == "string") return d.title;
1140
1140
  if (typeof d.title == "function") return "自定义列";
1141
1141
  }
1142
1142
  return i(d);
1143
- }, v = (d) => "defaultVisible" in d ? d.defaultVisible !== !1 : !0, g = (d) => "type" in d && (d.type === "selection" || d.type === "expand") ? !1 : "configurable" in d ? d.configurable !== !1 : !0, b = () => t.filter((d) => v(d)).map((d) => i(d)).filter(Boolean), P = Y(b()), D = I(() => t.filter((d) => i(d) && g(d)).map((d) => ({
1143
+ }, v = (d) => "defaultVisible" in d ? d.defaultVisible !== !1 : !0, g = (d) => "type" in d && (d.type === "selection" || d.type === "expand") ? !1 : "configurable" in d ? d.configurable !== !1 : !0, b = () => t.filter((d) => v(d)).map((d) => i(d)).filter(Boolean), D = Y(b()), P = I(() => t.filter((d) => i(d) && g(d)).map((d) => ({
1144
1144
  key: i(d),
1145
- title: x(d),
1146
- visible: P.value.includes(i(d)),
1145
+ title: C(d),
1146
+ visible: D.value.includes(i(d)),
1147
1147
  configurable: g(d)
1148
1148
  }))), k = () => {
1149
1149
  if (r?.show === !1) return null;
@@ -1180,19 +1180,19 @@ function Mn(e) {
1180
1180
  mergedColumns: I(() => {
1181
1181
  const d = t.filter((p) => {
1182
1182
  const S = i(p);
1183
- return "type" in p && (p.type === "selection" || p.type === "expand") || !S ? !0 : P.value.includes(S);
1183
+ return "type" in p && (p.type === "selection" || p.type === "expand") || !S ? !0 : D.value.includes(S);
1184
1184
  }).map((p) => M(p)), s = k();
1185
1185
  return s && d.push(s), d;
1186
1186
  }),
1187
- configurableColumns: D,
1188
- visibleColumnKeys: P,
1187
+ configurableColumns: P,
1188
+ visibleColumnKeys: D,
1189
1189
  setVisibleColumnKeys: (d) => {
1190
- P.value = d;
1190
+ D.value = d;
1191
1191
  },
1192
1192
  resetColumnSetting: () => {
1193
- P.value = b();
1193
+ D.value = b();
1194
1194
  },
1195
- getVisibleColumnKeys: () => [...P.value]
1195
+ getVisibleColumnKeys: () => [...D.value]
1196
1196
  };
1197
1197
  }
1198
1198
  var En = {
@@ -1213,10 +1213,10 @@ function Vn(e) {
1213
1213
  const { pagination: t, fieldNames: r, onUpdatePagination: a, onPageChange: l } = e, c = () => ({
1214
1214
  ...En,
1215
1215
  ...r
1216
- }), i = (D) => {
1216
+ }), i = (P) => {
1217
1217
  if (!(t === !1 || !t))
1218
- return t[c()[D]];
1219
- }, x = I(() => t === !1 || !t ? !1 : {
1218
+ return t[c()[P]];
1219
+ }, C = I(() => t === !1 || !t ? !1 : {
1220
1220
  page: i("page") ?? 1,
1221
1221
  pageSize: i("pageSize") ?? 10,
1222
1222
  itemCount: i("itemCount"),
@@ -1225,28 +1225,28 @@ function Vn(e) {
1225
1225
  showQuickJumper: t.showQuickJumper ?? ke.showQuickJumper,
1226
1226
  prefix: t.prefix,
1227
1227
  suffix: t.suffix
1228
- }), v = (D) => {
1228
+ }), v = (P) => {
1229
1229
  if (t === !1 || !t) return {};
1230
1230
  const k = c(), M = { ...t };
1231
- return D.page !== void 0 && (M[k.page] = D.page), D.pageSize !== void 0 && (M[k.pageSize] = D.pageSize), M;
1232
- }, g = (D) => {
1231
+ return P.page !== void 0 && (M[k.page] = P.page), P.pageSize !== void 0 && (M[k.pageSize] = P.pageSize), M;
1232
+ }, g = (P) => {
1233
1233
  const k = c();
1234
1234
  return {
1235
- [k.page]: D[k.page],
1236
- [k.pageSize]: D[k.pageSize],
1237
- [k.itemCount]: D[k.itemCount]
1235
+ [k.page]: P[k.page],
1236
+ [k.pageSize]: P[k.pageSize],
1237
+ [k.itemCount]: P[k.itemCount]
1238
1238
  };
1239
1239
  };
1240
1240
  return {
1241
- paginationConfig: x,
1242
- handlePageChange: (D) => {
1243
- const k = v({ page: D });
1241
+ paginationConfig: C,
1242
+ handlePageChange: (P) => {
1243
+ const k = v({ page: P });
1244
1244
  a?.(k), l?.(g(k));
1245
1245
  },
1246
- handlePageSizeChange: (D) => {
1246
+ handlePageSizeChange: (P) => {
1247
1247
  const k = v({
1248
1248
  page: 1,
1249
- pageSize: D
1249
+ pageSize: P
1250
1250
  });
1251
1251
  a?.(k), l?.(g(k));
1252
1252
  },
@@ -1307,40 +1307,40 @@ var Gn = {
1307
1307
  "delete"
1308
1308
  ],
1309
1309
  setup(e, { expose: t, emit: r }) {
1310
- const a = e, l = r, c = De(), i = Y(null), x = Y(void 0), v = I(() => !c.maxHeight), g = (w) => {
1311
- const C = getComputedStyle(w);
1312
- return w.clientHeight <= 0 ? !1 : !!(parseFloat(C.flexGrow) > 0 || C.height && C.height !== "auto" && C.height !== "0px" || C.maxHeight && C.maxHeight !== "none" && C.maxHeight !== "0px" || C.overflowY === "auto" || C.overflowY === "scroll");
1313
- }, b = (w) => {
1314
- let C = w.parentElement;
1315
- for (; C && C !== document.body; ) {
1316
- if (g(C)) return C;
1317
- C = C.parentElement;
1310
+ const a = e, l = r, c = Pe(), i = Y(null), C = Y(void 0), v = I(() => !c.maxHeight), g = (x) => {
1311
+ const w = getComputedStyle(x);
1312
+ return x.clientHeight <= 0 ? !1 : !!(parseFloat(w.flexGrow) > 0 || w.height && w.height !== "auto" && w.height !== "0px" || w.maxHeight && w.maxHeight !== "none" && w.maxHeight !== "0px" || w.overflowY === "auto" || w.overflowY === "scroll");
1313
+ }, b = (x) => {
1314
+ let w = x.parentElement;
1315
+ for (; w && w !== document.body; ) {
1316
+ if (g(w)) return w;
1317
+ w = w.parentElement;
1318
1318
  }
1319
1319
  return null;
1320
- }, P = () => {
1320
+ }, D = () => {
1321
1321
  v.value && Yt(() => {
1322
- const w = i.value;
1323
- if (!w) return;
1324
- const C = b(w);
1325
- if (!C) {
1326
- x.value = void 0;
1322
+ const x = i.value;
1323
+ if (!x) return;
1324
+ const w = b(x);
1325
+ if (!w) {
1326
+ C.value = void 0;
1327
1327
  return;
1328
1328
  }
1329
- const n = getComputedStyle(C), _ = parseFloat(n.paddingTop), $ = parseFloat(n.paddingBottom), U = C.getBoundingClientRect(), H = w.getBoundingClientRect(), te = w.querySelector(".dydx-table__toolbar"), Ce = te ? te.offsetHeight + 16 : 0, f = w.querySelector(".n-data-table-thead"), O = f ? f.offsetHeight : 40, vt = H.top - (U.top + _), Be = C.clientHeight - _ - $ - vt - Ce - O;
1330
- Be > 200 ? x.value = Be : x.value = void 0;
1329
+ const n = getComputedStyle(w), _ = parseFloat(n.paddingTop), $ = parseFloat(n.paddingBottom), U = w.getBoundingClientRect(), H = x.getBoundingClientRect(), te = x.querySelector(".dydx-table__toolbar"), we = te ? te.offsetHeight + 16 : 0, f = x.querySelector(".n-data-table-thead"), O = f ? f.offsetHeight : 40, vt = H.top - (U.top + _), Be = w.clientHeight - _ - $ - vt - we - O;
1330
+ Be > 200 ? C.value = Be : C.value = void 0;
1331
1331
  });
1332
- }, D = I(() => c.maxHeight ? c.maxHeight : x.value);
1332
+ }, P = I(() => c.maxHeight ? c.maxHeight : C.value);
1333
1333
  Zt(() => {
1334
- P(), window.addEventListener("resize", P);
1334
+ D(), window.addEventListener("resize", D);
1335
1335
  }), ea(() => {
1336
- window.removeEventListener("resize", P);
1336
+ window.removeEventListener("resize", D);
1337
1337
  });
1338
- const k = Y(null), { mergedColumns: M, configurableColumns: Q, visibleColumnKeys: N, setVisibleColumnKeys: F, resetColumnSetting: z, getVisibleColumnKeys: d } = Mn({
1338
+ const k = Y(null), { mergedColumns: M, configurableColumns: Q, visibleColumnKeys: T, setVisibleColumnKeys: F, resetColumnSetting: z, getVisibleColumnKeys: d } = Mn({
1339
1339
  columns: a.columns,
1340
1340
  actionColumn: a.actionColumn,
1341
- onView: (w) => l("view", w),
1342
- onEdit: (w) => l("edit", w),
1343
- onDelete: (w) => l("delete", w)
1341
+ onView: (x) => l("view", x),
1342
+ onEdit: (x) => l("edit", x),
1343
+ onDelete: (x) => l("delete", x)
1344
1344
  }), { paginationConfig: s, handlePageChange: p, handlePageSizeChange: S } = Vn({
1345
1345
  get pagination() {
1346
1346
  return a.pagination;
@@ -1348,14 +1348,14 @@ var Gn = {
1348
1348
  get fieldNames() {
1349
1349
  return a.paginationFieldNames;
1350
1350
  },
1351
- onUpdatePagination: (w) => l("update:pagination", w),
1352
- onPageChange: (w) => l("pageChange", w)
1351
+ onUpdatePagination: (x) => l("update:pagination", x),
1352
+ onPageChange: (x) => l("pageChange", x)
1353
1353
  });
1354
- Je(N, (w) => {
1355
- l("update:visibleColumns", w);
1354
+ Je(T, (x) => {
1355
+ l("update:visibleColumns", x);
1356
1356
  });
1357
- const G = I(() => typeof a.rowKey == "function" ? a.rowKey : (w) => w[a.rowKey]), X = (w) => {
1358
- l("update:checkedRowKeys", w, a.data.filter((C) => w.includes(G.value(C))));
1357
+ const G = I(() => typeof a.rowKey == "function" ? a.rowKey : (x) => x[a.rowKey]), X = (x) => {
1358
+ l("update:checkedRowKeys", x, a.data.filter((w) => x.includes(G.value(w))));
1359
1359
  }, B = () => {
1360
1360
  a.onAdd?.();
1361
1361
  }, Z = () => {
@@ -1372,10 +1372,10 @@ var Gn = {
1372
1372
  getVisibleColumnKeys: d,
1373
1373
  setVisibleColumnKeys: F,
1374
1374
  resetColumnSetting: z,
1375
- scrollTo: (w) => {
1376
- k.value?.scrollTo(w);
1375
+ scrollTo: (x) => {
1376
+ k.value?.scrollTo(x);
1377
1377
  }
1378
- }), (w, C) => (m(), W("div", {
1378
+ }), (x, w) => (m(), W("div", {
1379
1379
  ref_key: "containerRef",
1380
1380
  ref: i,
1381
1381
  class: "dydx-table"
@@ -1384,19 +1384,19 @@ var Gn = {
1384
1384
  size: 12
1385
1385
  }, {
1386
1386
  default: o(() => [
1387
- e.showAdd ? (m(), T(u(E), {
1387
+ e.showAdd ? (m(), N(u(E), {
1388
1388
  key: 0,
1389
1389
  type: "primary",
1390
1390
  onClick: B
1391
1391
  }, {
1392
- icon: o(() => [V(w.$slots, "add-icon", {}, () => [y(u(A), null, {
1392
+ icon: o(() => [V(x.$slots, "add-icon", {}, () => [y(u(A), null, {
1393
1393
  default: o(() => [y(u(Qe))]),
1394
1394
  _: 1
1395
1395
  })], !0)]),
1396
1396
  default: o(() => [R(" " + j(e.addButtonText), 1)]),
1397
1397
  _: 3
1398
1398
  })) : L("", !0),
1399
- (m(!0), W(J, null, ee(e.leftButtons, (n) => (m(), W(J, { key: n.key }, [n.show !== !1 ? (m(), T(u(E), {
1399
+ (m(!0), W(J, null, ee(e.leftButtons, (n) => (m(), W(J, { key: n.key }, [n.show !== !1 ? (m(), N(u(E), {
1400
1400
  key: 0,
1401
1401
  type: n.type,
1402
1402
  disabled: n.disabled,
@@ -1406,14 +1406,14 @@ var Gn = {
1406
1406
  _: 2
1407
1407
  }, [n.icon ? {
1408
1408
  name: "icon",
1409
- fn: o(() => [(m(), T(ae(n.icon)))]),
1409
+ fn: o(() => [(m(), N(ae(n.icon)))]),
1410
1410
  key: "0"
1411
1411
  } : void 0]), 1032, [
1412
1412
  "type",
1413
1413
  "disabled",
1414
1414
  "onClick"
1415
1415
  ])) : L("", !0)], 64))), 128)),
1416
- V(w.$slots, "toolbar-left", {}, void 0, !0)
1416
+ V(x.$slots, "toolbar-left", {}, void 0, !0)
1417
1417
  ]),
1418
1418
  _: 3
1419
1419
  }), y(u(q), {
@@ -1421,8 +1421,8 @@ var Gn = {
1421
1421
  size: 8
1422
1422
  }, {
1423
1423
  default: o(() => [
1424
- V(w.$slots, "toolbar-right", {}, void 0, !0),
1425
- (m(!0), W(J, null, ee(e.rightButtons, (n) => (m(), W(J, { key: n.key }, [n.show !== !1 ? (m(), T(u(E), {
1424
+ V(x.$slots, "toolbar-right", {}, void 0, !0),
1425
+ (m(!0), W(J, null, ee(e.rightButtons, (n) => (m(), W(J, { key: n.key }, [n.show !== !1 ? (m(), N(u(E), {
1426
1426
  key: 0,
1427
1427
  type: n.type,
1428
1428
  disabled: n.disabled,
@@ -1432,14 +1432,14 @@ var Gn = {
1432
1432
  _: 2
1433
1433
  }, [n.icon ? {
1434
1434
  name: "icon",
1435
- fn: o(() => [(m(), T(ae(n.icon)))]),
1435
+ fn: o(() => [(m(), N(ae(n.icon)))]),
1436
1436
  key: "0"
1437
1437
  } : void 0]), 1032, [
1438
1438
  "type",
1439
1439
  "disabled",
1440
1440
  "onClick"
1441
1441
  ])) : L("", !0)], 64))), 128)),
1442
- e.showRefresh ? (m(), T(u(Se), {
1442
+ e.showRefresh ? (m(), N(u(Se), {
1443
1443
  key: 0,
1444
1444
  trigger: "hover"
1445
1445
  }, {
@@ -1454,10 +1454,10 @@ var Gn = {
1454
1454
  })]),
1455
1455
  _: 1
1456
1456
  })]),
1457
- default: o(() => [C[1] || (C[1] = R(" 刷新 ", -1))]),
1457
+ default: o(() => [w[1] || (w[1] = R(" 刷新 ", -1))]),
1458
1458
  _: 1
1459
1459
  })) : L("", !0),
1460
- e.showColumnSetting ? (m(), T(u(Mt), {
1460
+ e.showColumnSetting ? (m(), N(u(Mt), {
1461
1461
  key: 1,
1462
1462
  trigger: "click",
1463
1463
  placement: "bottom-end"
@@ -1473,26 +1473,26 @@ var Gn = {
1473
1473
  })]),
1474
1474
  _: 1
1475
1475
  })]),
1476
- default: o(() => [C[2] || (C[2] = R(" 列设置 ", -1))]),
1476
+ default: o(() => [w[2] || (w[2] = R(" 列设置 ", -1))]),
1477
1477
  _: 1
1478
1478
  })]),
1479
- default: o(() => [pe("div", jn, [pe("div", Hn, [C[4] || (C[4] = pe("span", null, "列设置", -1)), y(u(E), {
1479
+ default: o(() => [pe("div", jn, [pe("div", Hn, [w[4] || (w[4] = pe("span", null, "列设置", -1)), y(u(E), {
1480
1480
  text: "",
1481
1481
  size: "small",
1482
1482
  type: "primary",
1483
1483
  onClick: u(z)
1484
1484
  }, {
1485
- default: o(() => [...C[3] || (C[3] = [R(" 重置 ", -1)])]),
1485
+ default: o(() => [...w[3] || (w[3] = [R(" 重置 ", -1)])]),
1486
1486
  _: 1
1487
- }, 8, ["onClick"])]), y(u(Ne), {
1488
- value: u(N),
1489
- "onUpdate:value": C[0] || (C[0] = (n) => Qt(N) ? N.value = n : null)
1487
+ }, 8, ["onClick"])]), y(u(Te), {
1488
+ value: u(T),
1489
+ "onUpdate:value": w[0] || (w[0] = (n) => Qt(T) ? T.value = n : null)
1490
1490
  }, {
1491
1491
  default: o(() => [y(u(q), {
1492
1492
  vertical: "",
1493
1493
  size: 8
1494
1494
  }, {
1495
- default: o(() => [(m(!0), W(J, null, ee(u(Q), (n) => (m(), T(u(Ke), {
1495
+ default: o(() => [(m(!0), W(J, null, ee(u(Q), (n) => (m(), N(u(Ke), {
1496
1496
  key: n.key,
1497
1497
  value: n.key,
1498
1498
  label: n.title
@@ -1505,7 +1505,7 @@ var Gn = {
1505
1505
  })) : L("", !0)
1506
1506
  ]),
1507
1507
  _: 3
1508
- })])) : L("", !0), y(u(wt), K({
1508
+ })])) : L("", !0), y(u(Ct), K({
1509
1509
  ref_key: "dataTableRef",
1510
1510
  ref: k,
1511
1511
  data: e.data,
@@ -1515,7 +1515,7 @@ var Gn = {
1515
1515
  pagination: u(s),
1516
1516
  remote: e.remote,
1517
1517
  "checked-row-keys": e.checkedRowKeys,
1518
- "max-height": D.value
1518
+ "max-height": P.value
1519
1519
  }, u(c), {
1520
1520
  "onUpdate:page": u(p),
1521
1521
  "onUpdate:pageSize": u(S),
@@ -1571,7 +1571,7 @@ var Gn = {
1571
1571
  "cancel"
1572
1572
  ],
1573
1573
  setup(e, { expose: t, emit: r }) {
1574
- const a = e, l = r, c = De(), i = Y(), x = I(() => a.title ? a.title : `${a.model[a.rowKey] ? "编辑" : "新增"}${a.subtitle}`), v = I(() => ({ width: typeof a.width == "number" ? `${a.width}px` : a.width })), g = () => {
1574
+ const a = e, l = r, c = Pe(), i = Y(), C = I(() => a.title ? a.title : `${a.model[a.rowKey] ? "编辑" : "新增"}${a.subtitle}`), v = I(() => ({ width: typeof a.width == "number" ? `${a.width}px` : a.width })), g = () => {
1575
1575
  l("update:show", !1), l("cancel");
1576
1576
  }, b = async () => {
1577
1577
  try {
@@ -1583,30 +1583,30 @@ var Gn = {
1583
1583
  getFormRef: () => i.value,
1584
1584
  validate: () => i.value?.validate(),
1585
1585
  resetFields: () => i.value?.resetFields()
1586
- }), (P, D) => (m(), T(u(Ut), K({
1586
+ }), (D, P) => (m(), N(u(Ut), K({
1587
1587
  show: e.show,
1588
1588
  preset: "card",
1589
- title: x.value,
1589
+ title: C.value,
1590
1590
  style: v.value,
1591
1591
  "mask-closable": !1
1592
- }, u(c), { "onUpdate:show": D[0] || (D[0] = (k) => l("update:show", k)) }), de({ _: 2 }, [
1593
- P.$slots.header ? {
1592
+ }, u(c), { "onUpdate:show": P[0] || (P[0] = (k) => l("update:show", k)) }), de({ _: 2 }, [
1593
+ D.$slots.header ? {
1594
1594
  name: "header",
1595
- fn: o(() => [V(P.$slots, "header")]),
1595
+ fn: o(() => [V(D.$slots, "header")]),
1596
1596
  key: "0"
1597
1597
  } : void 0,
1598
- P.$slots["header-extra"] ? {
1598
+ D.$slots["header-extra"] ? {
1599
1599
  name: "header-extra",
1600
- fn: o(() => [V(P.$slots, "header-extra")]),
1600
+ fn: o(() => [V(D.$slots, "header-extra")]),
1601
1601
  key: "1"
1602
1602
  } : void 0,
1603
- P.$slots.default ? {
1603
+ D.$slots.default ? {
1604
1604
  name: "default",
1605
- fn: o(() => [V(P.$slots, "default")]),
1605
+ fn: o(() => [V(D.$slots, "default")]),
1606
1606
  key: "2"
1607
1607
  } : {
1608
1608
  name: "default",
1609
- fn: o(() => [y(u(Pe), { show: e.loading }, {
1609
+ fn: o(() => [y(u(De), { show: e.loading }, {
1610
1610
  default: o(() => [y(u(be), {
1611
1611
  ref_key: "formRef",
1612
1612
  ref: i,
@@ -1631,14 +1631,14 @@ var Gn = {
1631
1631
  }, 8, ["show"])]),
1632
1632
  key: "3"
1633
1633
  },
1634
- P.$slots.footer ? {
1634
+ D.$slots.footer ? {
1635
1635
  name: "footer",
1636
- fn: o(() => [V(P.$slots, "footer")]),
1636
+ fn: o(() => [V(D.$slots, "footer")]),
1637
1637
  key: "4"
1638
1638
  } : {
1639
1639
  name: "footer",
1640
1640
  fn: o(() => [y(u(q), { justify: "end" }, {
1641
- default: o(() => [e.showCancel ? (m(), T(u(E), {
1641
+ default: o(() => [e.showCancel ? (m(), N(u(E), {
1642
1642
  key: 0,
1643
1643
  onClick: g
1644
1644
  }, {
@@ -1664,9 +1664,9 @@ var Gn = {
1664
1664
  })]),
1665
1665
  key: "5"
1666
1666
  },
1667
- P.$slots.action ? {
1667
+ D.$slots.action ? {
1668
1668
  name: "action",
1669
- fn: o(() => [V(P.$slots, "action")]),
1669
+ fn: o(() => [V(D.$slots, "action")]),
1670
1670
  key: "6"
1671
1671
  } : void 0
1672
1672
  ]), 1040, [
@@ -1710,7 +1710,7 @@ var Gn = {
1710
1710
  "cancel"
1711
1711
  ],
1712
1712
  setup(e, { expose: t, emit: r }) {
1713
- const a = e, l = r, c = De(), i = Y(), x = I(() => a.title ? a.title : `${a.model[a.rowKey] ? "编辑" : "新增"}${a.subtitle}`), v = () => {
1713
+ const a = e, l = r, c = Pe(), i = Y(), C = I(() => a.title ? a.title : `${a.model[a.rowKey] ? "编辑" : "新增"}${a.subtitle}`), v = () => {
1714
1714
  l("update:show", !1), l("cancel");
1715
1715
  }, g = async () => {
1716
1716
  try {
@@ -1722,14 +1722,14 @@ var Gn = {
1722
1722
  getFormRef: () => i.value,
1723
1723
  validate: () => i.value?.validate(),
1724
1724
  resetFields: () => i.value?.resetFields()
1725
- }), (b, P) => (m(), T(u(kt), K({
1725
+ }), (b, D) => (m(), N(u(kt), K({
1726
1726
  show: e.show,
1727
1727
  width: e.width,
1728
1728
  placement: e.placement,
1729
1729
  "mask-closable": !1
1730
- }, u(c), { "onUpdate:show": P[0] || (P[0] = (D) => l("update:show", D)) }), {
1730
+ }, u(c), { "onUpdate:show": D[0] || (D[0] = (P) => l("update:show", P)) }), {
1731
1731
  default: o(() => [y(u(St), {
1732
- title: x.value,
1732
+ title: C.value,
1733
1733
  closable: "",
1734
1734
  onClose: v
1735
1735
  }, de({ _: 2 }, [b.$slots.default ? {
@@ -1738,7 +1738,7 @@ var Gn = {
1738
1738
  key: "0"
1739
1739
  } : {
1740
1740
  name: "default",
1741
- fn: o(() => [y(u(Pe), { show: e.loading }, {
1741
+ fn: o(() => [y(u(De), { show: e.loading }, {
1742
1742
  default: o(() => [y(u(be), {
1743
1743
  ref_key: "formRef",
1744
1744
  ref: i,
@@ -1769,7 +1769,7 @@ var Gn = {
1769
1769
  } : {
1770
1770
  name: "footer",
1771
1771
  fn: o(() => [y(u(q), { justify: "end" }, {
1772
- default: o(() => [e.showCancel ? (m(), T(u(E), {
1772
+ default: o(() => [e.showCancel ? (m(), N(u(E), {
1773
1773
  key: 0,
1774
1774
  onClick: v
1775
1775
  }, {