erp-plus 1.0.50 → 1.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as U, resolveComponent as Z, createBlock as y, openBlock as n, mergeProps as W, createSlots as l1, renderList as j, withCtx as I, renderSlot as T, normalizeProps as i1, guardReactiveProps as n1, computed as S, createElementBlock as z, normalizeStyle as e1, normalizeClass as c1, useSlots as f1, unref as u, createCommentVNode as K, createElementVNode as H, Fragment as R, toDisplayString as X, h as Y, createVNode as q, createTextVNode as w1, isRef as a1, ref as N, watch as m1, withKeys as _1, resolveDynamicComponent as K1, Transition as T1 } from "vue";
1
+ import { defineComponent as U, resolveComponent as Z, createBlock as y, openBlock as n, mergeProps as W, createSlots as l1, renderList as j, withCtx as I, renderSlot as T, normalizeProps as i1, guardReactiveProps as n1, computed as S, createElementBlock as z, normalizeStyle as e1, normalizeClass as c1, useSlots as f1, unref as u, createCommentVNode as K, createElementVNode as _, Fragment as X, toDisplayString as $, h as Y, createVNode as q, createTextVNode as w1, isRef as a1, ref as N, watch as m1, withKeys as _1, resolveDynamicComponent as K1, Transition as T1 } from "vue";
2
2
  import Y1, { ElOption as G1, ElSelect as U1 } from "element-plus";
3
3
  const u1 = /* @__PURE__ */ U({
4
4
  __name: "Avatar",
@@ -34,16 +34,16 @@ const u1 = /* @__PURE__ */ U({
34
34
  },
35
35
  emits: ["error"],
36
36
  setup(t, { emit: g }) {
37
- const l = t, e = g, s = (c) => {
38
- e("error", c);
37
+ const l = t, e = g, s = (w) => {
38
+ e("error", w);
39
39
  };
40
- return (c, h) => {
40
+ return (w, r) => {
41
41
  const i = Z("el-avatar");
42
42
  return n(), y(i, W(l, { onError: s }), l1({ _: 2 }, [
43
- j(c.$slots, (A, w) => ({
44
- name: w,
45
- fn: I((p) => [
46
- T(c.$slots, w, i1(n1(p || {})))
43
+ j(w.$slots, (A, h) => ({
44
+ name: h,
45
+ fn: I((d) => [
46
+ T(w.$slots, h, i1(n1(d || {})))
47
47
  ])
48
48
  }))
49
49
  ]), 1040);
@@ -380,13 +380,13 @@ const q3 = ["innerHTML"], S3 = /* @__PURE__ */ U({
380
380
  const g = t, l = S(() => g.className ? `erp-svg-icon ${g.className}` : "erp-svg-icon"), e = S(() => {
381
381
  if (g.iconClass.trim().startsWith("<svg"))
382
382
  return g.iconClass;
383
- const c = k1[g.iconClass];
384
- return c || (console.warn(`[ErpPlus] 图标 "${g.iconClass}" 不存在`), "");
383
+ const w = k1[g.iconClass];
384
+ return w || (console.warn(`[ErpPlus] 图标 "${g.iconClass}" 不存在`), "");
385
385
  }), s = S(() => {
386
- const c = typeof g.size == "number" ? g.size + "px" : g.size;
386
+ const w = typeof g.size == "number" ? g.size + "px" : g.size;
387
387
  return {
388
- width: c,
389
- height: c,
388
+ width: w,
389
+ height: w,
390
390
  color: g.color,
391
391
  display: "inline-flex",
392
392
  alignItems: "center",
@@ -394,7 +394,7 @@ const q3 = ["innerHTML"], S3 = /* @__PURE__ */ U({
394
394
  verticalAlign: "middle"
395
395
  };
396
396
  });
397
- return (c, h) => (n(), z("i", {
397
+ return (w, r) => (n(), z("i", {
398
398
  class: c1(l.value),
399
399
  innerHTML: e.value,
400
400
  style: e1(s.value),
@@ -489,19 +489,19 @@ const q3 = ["innerHTML"], S3 = /* @__PURE__ */ U({
489
489
  },
490
490
  emits: ["click"],
491
491
  setup(t, { emit: g }) {
492
- const l = t, e = g, s = f1(), c = (h) => {
493
- e("click", h);
492
+ const l = t, e = g, s = f1(), w = (r) => {
493
+ e("click", r);
494
494
  };
495
- return (h, i) => {
495
+ return (r, i) => {
496
496
  const A = Z("el-button");
497
497
  return n(), y(A, W(l, {
498
498
  class: ["yw-button-" + t.type, "yw-button"],
499
- onClick: c
499
+ onClick: w
500
500
  }), l1({ _: 2 }, [
501
- j(u(s), (w, p) => ({
502
- name: p,
501
+ j(u(s), (h, d) => ({
502
+ name: d,
503
503
  fn: I((E) => [
504
- T(h.$slots, "icon", {}, () => [
504
+ T(r.$slots, "icon", {}, () => [
505
505
  t.icon === "Plus" ? (n(), y(k, {
506
506
  key: 0,
507
507
  "icon-class": "button_add"
@@ -535,7 +535,7 @@ const q3 = ["innerHTML"], S3 = /* @__PURE__ */ U({
535
535
  "icon-class": "arrowBottom"
536
536
  })) : K("", !0)
537
537
  ]),
538
- T(h.$slots, p, i1(n1(E || {})))
538
+ T(r.$slots, d, i1(n1(E || {})))
539
539
  ])
540
540
  }))
541
541
  ]), 1040, ["class"]);
@@ -577,7 +577,7 @@ const H3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
577
577
  "footer-class": t.footerClass
578
578
  }, l1({
579
579
  default: I(() => [
580
- H("div", Y3, [
580
+ _("div", Y3, [
581
581
  T(l.$slots, "default", {}, void 0, !0)
582
582
  ])
583
583
  ]),
@@ -586,11 +586,11 @@ const H3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
586
586
  u(g).title ? {
587
587
  name: "header",
588
588
  fn: I(() => [
589
- H("div", _3, [
590
- H("div", K3, [
589
+ _("div", _3, [
590
+ _("div", K3, [
591
591
  T(l.$slots, "title", {}, void 0, !0)
592
592
  ]),
593
- H("div", T3, [
593
+ _("div", T3, [
594
594
  T(l.$slots, "btns", {}, void 0, !0)
595
595
  ])
596
596
  ])
@@ -616,33 +616,33 @@ const O3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
616
616
  },
617
617
  emits: ["update:modelValue", "change"],
618
618
  setup(t, { emit: g }) {
619
- const l = t, e = g, s = (h) => Array.isArray(l.modelValue) ? l.modelValue.includes(h) : l.modelValue === h, c = (h, i) => {
619
+ const l = t, e = g, s = (r) => Array.isArray(l.modelValue) ? l.modelValue.includes(r) : l.modelValue === r, w = (r, i) => {
620
620
  if (i || l.disabled) return;
621
621
  let A;
622
- Array.isArray(l.modelValue) ? s(h) ? A = l.modelValue.filter((w) => w !== h) : A = [...l.modelValue, h] : s(h) ? A = "" : A = h, e("update:modelValue", A), e("change", A);
622
+ Array.isArray(l.modelValue) ? s(r) ? A = l.modelValue.filter((h) => h !== r) : A = [...l.modelValue, r] : s(r) ? A = "" : A = r, e("update:modelValue", A), e("change", A);
623
623
  };
624
- return (h, i) => {
624
+ return (r, i) => {
625
625
  const A = Z("svg-icon");
626
626
  return n(), z("div", P3, [
627
- (n(!0), z(R, null, j(t.options, (w, p) => (n(), z("div", {
628
- key: p,
627
+ (n(!0), z(X, null, j(t.options, (h, d) => (n(), z("div", {
628
+ key: d,
629
629
  class: c1(["custom-checkbox-wrapper", {
630
- "is-checked": s(w.value),
631
- "is-disabled": w.disabled || t.disabled
630
+ "is-checked": s(h.value),
631
+ "is-disabled": h.disabled || t.disabled
632
632
  }]),
633
- onClick: (E) => c(w.value, w.disabled)
633
+ onClick: (E) => w(h.value, h.disabled)
634
634
  }, [
635
- H("span", F3, [
636
- s(w.value) ? (n(), y(A, {
635
+ _("span", F3, [
636
+ s(h.value) ? (n(), y(A, {
637
637
  key: 0,
638
638
  style: { width: "16px", height: "16px" },
639
- "icon-class": w.disabled || t.disabled ? "checked_disabled_fill" : "checked_fill"
639
+ "icon-class": h.disabled || t.disabled ? "checked_disabled_fill" : "checked_fill"
640
640
  }, null, 8, ["icon-class"])) : (n(), y(A, {
641
641
  key: 1,
642
642
  style: { width: "16px", height: "16px" },
643
- "icon-class": w.disabled || t.disabled ? "unchecked_disabled" : "unchecked"
643
+ "icon-class": h.disabled || t.disabled ? "unchecked_disabled" : "unchecked"
644
644
  }, null, 8, ["icon-class"])),
645
- H("span", J3, X(w.label), 1)
645
+ _("span", J3, $(h.label), 1)
646
646
  ])
647
647
  ], 10, Z3))), 128))
648
648
  ]);
@@ -815,39 +815,39 @@ const N3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
815
815
  },
816
816
  emits: ["update:modelValue", "change", "clear", "blur", "focus", "calendar-change", "visible-change", "panel-change"],
817
817
  setup(t, { emit: g }) {
818
- const l = t, e = S(() => l.type === "daterange" || l.type === "datetimerange" ? `yw-daterange-picker ${l.popperClass}` : `yw-date-picker ${l.popperClass}`), s = g, c = S({
818
+ const l = t, e = S(() => l.type === "daterange" || l.type === "datetimerange" ? `yw-daterange-picker ${l.popperClass}` : `yw-date-picker ${l.popperClass}`), s = g, w = S({
819
819
  get() {
820
820
  return l.modelValue;
821
821
  },
822
- set(B) {
823
- s("update:modelValue", B);
822
+ set(D) {
823
+ s("update:modelValue", D);
824
824
  }
825
- }), h = (B) => {
826
- s("change", B);
827
- }, i = (B) => {
828
- s("clear", B);
829
- }, A = (B) => {
830
- s("blur", B);
831
- }, w = (B) => {
832
- s("focus", B);
833
- }, p = (B) => {
834
- s("calendar-change", B);
835
- }, E = (B) => {
836
- s("visible-change", B);
837
- }, Q = (B) => {
838
- s("panel-change", B);
825
+ }), r = (D) => {
826
+ s("change", D);
827
+ }, i = (D) => {
828
+ s("clear", D);
829
+ }, A = (D) => {
830
+ s("blur", D);
831
+ }, h = (D) => {
832
+ s("focus", D);
833
+ }, d = (D) => {
834
+ s("calendar-change", D);
835
+ }, E = (D) => {
836
+ s("visible-change", D);
837
+ }, Q = (D) => {
838
+ s("panel-change", D);
839
839
  };
840
- return (B, O) => {
840
+ return (D, O) => {
841
841
  const F = Z("el-date-picker");
842
842
  return n(), y(F, W(l, {
843
- modelValue: c.value,
844
- "onUpdate:modelValue": O[0] || (O[0] = (C) => c.value = C),
843
+ modelValue: w.value,
844
+ "onUpdate:modelValue": O[0] || (O[0] = (p) => w.value = p),
845
845
  popperClass: e.value,
846
- onChange: h,
846
+ onChange: r,
847
847
  onClear: i,
848
848
  onBlur: A,
849
- onFocus: w,
850
- onCalendarChange: p,
849
+ onFocus: h,
850
+ onCalendarChange: d,
851
851
  onVisibleChange: E,
852
852
  onPanelChange: Q
853
853
  }), {
@@ -880,7 +880,7 @@ const N3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
880
880
  })
881
881
  ]),
882
882
  default: I(() => [
883
- T(B.$slots, "default")
883
+ T(D.$slots, "default")
884
884
  ]),
885
885
  _: 3
886
886
  }, 16, ["modelValue", "popperClass"]);
@@ -1033,37 +1033,37 @@ const j3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1033
1033
  },
1034
1034
  emits: ["open", "opened", "close", "closed", "open-auto-focus", "close-auto-focus", "submit"],
1035
1035
  setup(t, { emit: g }) {
1036
- const l = t, e = S(() => l.width && l.width !== "680" ? l.width : l.size === "small" ? "400" : l.size === "default" ? "680" : l.size === "large" ? "960" : l.size === "huge" ? "1200" : l.size === "full" ? "100%" : "680"), s = g, c = () => {
1036
+ const l = t, e = S(() => l.width && l.width !== "680" ? l.width : l.size === "small" ? "400" : l.size === "default" ? "680" : l.size === "large" ? "960" : l.size === "huge" ? "1200" : l.size === "full" ? "100%" : "680"), s = g, w = () => {
1037
1037
  s("open");
1038
- }, h = () => {
1038
+ }, r = () => {
1039
1039
  s("opened");
1040
1040
  }, i = () => {
1041
1041
  s("close");
1042
1042
  }, A = () => {
1043
1043
  console.log("handleClosed"), s("closed");
1044
- }, w = () => {
1044
+ }, h = () => {
1045
1045
  console.log("openAutoFocus"), s("open-auto-focus");
1046
- }, p = () => {
1046
+ }, d = () => {
1047
1047
  console.log("closeAutoFocus"), s("close-auto-focus");
1048
1048
  }, E = () => {
1049
1049
  s("submit");
1050
1050
  };
1051
- return (Q, B) => {
1051
+ return (Q, D) => {
1052
1052
  const O = Z("el-dialog");
1053
1053
  return n(), y(O, W({ class: "yw-dialog" }, Q.$props, {
1054
1054
  width: u(e),
1055
- onOpen: c,
1056
- onOpened: h,
1055
+ onOpen: w,
1056
+ onOpened: r,
1057
1057
  onClose: i,
1058
1058
  onClosed: A,
1059
- onOpenAutoFocus: w,
1060
- onCloseAutoFocus: p
1059
+ onOpenAutoFocus: h,
1060
+ onCloseAutoFocus: d
1061
1061
  }), l1({
1062
1062
  footer: I(() => [
1063
1063
  Q.$slots.footer ? T(Q.$slots, "footer", { key: 0 }) : (n(), z("div", R3, [
1064
1064
  q(g1, { onClick: i }, {
1065
1065
  default: I(() => [
1066
- w1(X(t.cancelText), 1)
1066
+ w1($(t.cancelText), 1)
1067
1067
  ]),
1068
1068
  _: 1
1069
1069
  }),
@@ -1072,7 +1072,7 @@ const j3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1072
1072
  onClick: E
1073
1073
  }, {
1074
1074
  default: I(() => [
1075
- w1(X(t.confirmText), 1)
1075
+ w1($(t.confirmText), 1)
1076
1076
  ]),
1077
1077
  _: 1
1078
1078
  })
@@ -1080,10 +1080,10 @@ const j3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1080
1080
  ]),
1081
1081
  _: 2
1082
1082
  }, [
1083
- j(Q.$slots, (F, C) => ({
1084
- name: C,
1085
- fn: I((D) => [
1086
- T(Q.$slots, C, i1(n1(D || {})))
1083
+ j(Q.$slots, (F, p) => ({
1084
+ name: p,
1085
+ fn: I((x) => [
1086
+ T(Q.$slots, p, i1(n1(x || {})))
1087
1087
  ])
1088
1088
  }))
1089
1089
  ]), 1040, ["width"]);
@@ -1245,54 +1245,54 @@ const X3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1245
1245
  get() {
1246
1246
  return l.modelValue;
1247
1247
  },
1248
- set(C) {
1249
- e("update:modelValue", C);
1248
+ set(p) {
1249
+ e("update:modelValue", p);
1250
1250
  }
1251
- }), c = (C) => {
1252
- e("input", C);
1253
- }, h = (C) => {
1254
- e("change", C);
1255
- }, i = (C) => {
1256
- e("blur", C);
1257
- }, A = (C) => {
1258
- e("focus", C);
1259
- }, w = () => {
1251
+ }), w = (p) => {
1252
+ e("input", p);
1253
+ }, r = (p) => {
1254
+ e("change", p);
1255
+ }, i = (p) => {
1256
+ e("blur", p);
1257
+ }, A = (p) => {
1258
+ e("focus", p);
1259
+ }, h = () => {
1260
1260
  e("clear");
1261
- }, p = (C) => {
1262
- e("keydown", C);
1263
- }, E = (C) => {
1264
- e("mouseleave", C);
1265
- }, Q = (C) => {
1266
- e("mouseenter", C);
1267
- }, B = (C) => {
1268
- e("compositionstart", C);
1269
- }, O = (C) => {
1270
- e("compositionupdate", C);
1271
- }, F = (C) => {
1272
- e("compositionend", C);
1261
+ }, d = (p) => {
1262
+ e("keydown", p);
1263
+ }, E = (p) => {
1264
+ e("mouseleave", p);
1265
+ }, Q = (p) => {
1266
+ e("mouseenter", p);
1267
+ }, D = (p) => {
1268
+ e("compositionstart", p);
1269
+ }, O = (p) => {
1270
+ e("compositionupdate", p);
1271
+ }, F = (p) => {
1272
+ e("compositionend", p);
1273
1273
  };
1274
- return (C, D) => {
1274
+ return (p, x) => {
1275
1275
  const P = Z("el-input");
1276
1276
  return n(), y(P, W(l, {
1277
1277
  modelValue: u(s),
1278
- "onUpdate:modelValue": D[0] || (D[0] = (V) => a1(s) ? s.value = V : null),
1278
+ "onUpdate:modelValue": x[0] || (x[0] = (V) => a1(s) ? s.value = V : null),
1279
1279
  class: "yw-input",
1280
- onInput: c,
1281
- onChange: h,
1280
+ onInput: w,
1281
+ onChange: r,
1282
1282
  onBlur: i,
1283
1283
  onFocus: A,
1284
- onClear: w,
1285
- onKeydown: p,
1284
+ onClear: h,
1285
+ onKeydown: d,
1286
1286
  onMouseleave: E,
1287
1287
  onMouseenter: Q,
1288
- onCompositionstart: B,
1288
+ onCompositionstart: D,
1289
1289
  onCompositionupdate: O,
1290
1290
  onCompositionend: F
1291
1291
  }), l1({ _: 2 }, [
1292
- j(C.$slots, (V, m) => ({
1293
- name: m,
1292
+ j(p.$slots, (V, C) => ({
1293
+ name: C,
1294
1294
  fn: I((f) => [
1295
- T(C.$slots, m, i1(n1(f || {})))
1295
+ T(p.$slots, C, i1(n1(f || {})))
1296
1296
  ])
1297
1297
  }))
1298
1298
  ]), 1040, ["modelValue"]);
@@ -1388,15 +1388,15 @@ const $3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1388
1388
  get() {
1389
1389
  return l.modelValue;
1390
1390
  },
1391
- set(c) {
1392
- s("update:modelValue", c);
1391
+ set(w) {
1392
+ s("update:modelValue", w);
1393
1393
  }
1394
1394
  }), s = g;
1395
- return (c, h) => {
1395
+ return (w, r) => {
1396
1396
  const i = Z("el-input-number");
1397
1397
  return n(), y(i, W({
1398
1398
  modelValue: u(e),
1399
- "onUpdate:modelValue": h[0] || (h[0] = (A) => a1(e) ? e.value = A : null)
1399
+ "onUpdate:modelValue": r[0] || (r[0] = (A) => a1(e) ? e.value = A : null)
1400
1400
  }, l, { class: "yw-input-number" }), null, 16, ["modelValue"]);
1401
1401
  };
1402
1402
  }
@@ -1428,13 +1428,13 @@ const t4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1428
1428
  setup(t) {
1429
1429
  const g = t, l = S(() => g.modelValue);
1430
1430
  return (e, s) => u(l) ? (n(), z("div", s4, [
1431
- H("div", l4, [
1432
- s[0] || (s[0] = H("img", {
1431
+ _("div", l4, [
1432
+ s[0] || (s[0] = _("img", {
1433
1433
  src: e4,
1434
1434
  alt: "Loading animation",
1435
1435
  class: "gif-animation"
1436
1436
  }, null, -1)),
1437
- t.title ? (n(), z("div", a4, X(t.title), 1)) : K("", !0)
1437
+ t.title ? (n(), z("div", a4, $(t.title), 1)) : K("", !0)
1438
1438
  ])
1439
1439
  ])) : K("", !0);
1440
1440
  }
@@ -1466,7 +1466,7 @@ const o4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1466
1466
  },
1467
1467
  emits: ["update:currentPage", "update:pageSize", "page-change"],
1468
1468
  setup(t, { emit: g }) {
1469
- const l = t, e = S(() => l.layouts.includes("Total")), s = S(() => l.layouts.includes("Sizes")), c = S(() => l.layouts.includes("Jumper")), h = g, i = Y("svg", {
1469
+ const l = t, e = S(() => l.layouts.includes("Total")), s = S(() => l.layouts.includes("Sizes")), w = S(() => l.layouts.includes("Jumper")), r = g, i = Y("svg", {
1470
1470
  viewBox: "0 0 1024 1024",
1471
1471
  width: "12",
1472
1472
  height: "12",
@@ -1478,59 +1478,59 @@ const o4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1478
1478
  Y("path", {
1479
1479
  d: "M396.458667 396.458667a42.666667 42.666667 0 0 1 60.416 0L682.666667 622.336l225.792-225.877333a42.666667 42.666667 0 0 1 60.416 60.416l-256 256a42.666667 42.666667 0 0 1-60.416 0l-256-256a42.666667 42.666667 0 0 1 0-60.416z"
1480
1480
  })
1481
- ]), A = N(!1), w = N(!1), p = N(l.currentPage), E = N(l.pageSize), Q = N(1), B = S(() => Math.max(1, Math.ceil(l.total / E.value)));
1482
- m1(() => l.currentPage, (r) => {
1483
- p.value = r;
1484
- }), m1(() => l.pageSize, (r) => {
1485
- E.value = r;
1481
+ ]), A = N(!1), h = N(!1), d = N(l.currentPage), E = N(l.pageSize), Q = N(1), D = S(() => Math.max(1, Math.ceil(l.total / E.value)));
1482
+ m1(() => l.currentPage, (m) => {
1483
+ d.value = m;
1484
+ }), m1(() => l.pageSize, (m) => {
1485
+ E.value = m;
1486
1486
  });
1487
1487
  const O = S(() => {
1488
- const r = p.value, d = B.value, _ = l.pagerCount;
1489
- if (d <= _)
1490
- return F(1, d);
1491
- const $ = (_ - 1) / 2;
1492
- let L = r - $, J = r + $;
1493
- L < 1 ? (L = 1, J = _) : J > d && (J = d, L = d - _ + 1);
1488
+ const m = d.value, c = D.value, H = l.pagerCount;
1489
+ if (c <= H)
1490
+ return F(1, c);
1491
+ const R = (H - 1) / 2;
1492
+ let L = m - R, J = m + R;
1493
+ L < 1 ? (L = 1, J = H) : J > c && (J = c, L = c - H + 1);
1494
1494
  let s1 = F(L, J);
1495
- return L > 2 ? s1.unshift(1, "...") : L === 2 && s1.unshift(1), J < d - 1 ? s1.push("....", d) : J === d - 1 && s1.push(d), console.log("显示的页码:", s1), s1;
1495
+ return L > 2 ? s1.unshift(1, "...") : L === 2 && s1.unshift(1), J < c - 1 ? s1.push("....", c) : J === c - 1 && s1.push(c), console.log("显示的页码:", s1), s1;
1496
1496
  });
1497
- function F(r, d) {
1498
- const _ = [];
1499
- for (let $ = r; $ <= d; $++)
1500
- _.push($);
1501
- return _;
1497
+ function F(m, c) {
1498
+ const H = [];
1499
+ for (let R = m; R <= c; R++)
1500
+ H.push(R);
1501
+ return H;
1502
1502
  }
1503
- const C = () => {
1504
- p.value > 1 && (p.value--, x());
1505
- }, D = () => {
1506
- p.value = Math.max(1, p.value - 4), x();
1503
+ const p = () => {
1504
+ d.value > 1 && (d.value--, B());
1505
+ }, x = () => {
1506
+ d.value = Math.max(1, d.value - 4), B();
1507
1507
  }, P = () => {
1508
- p.value = Math.min(B.value, p.value + 4), x();
1508
+ d.value = Math.min(D.value, d.value + 4), B();
1509
1509
  }, V = () => {
1510
- p.value < B.value && (p.value++, x());
1511
- }, m = (r) => {
1512
- typeof r == "number" && r !== p.value && (p.value = r, x());
1510
+ d.value < D.value && (d.value++, B());
1511
+ }, C = (m) => {
1512
+ typeof m == "number" && m !== d.value && (d.value = m, B());
1513
1513
  }, f = () => {
1514
- p.value = 1, h("update:pageSize", E.value), x();
1514
+ d.value = 1, r("update:pageSize", E.value), B();
1515
1515
  }, o = () => {
1516
1516
  if (Q.value !== null) {
1517
- const r = Math.max(1, Math.min(B.value, Q.value));
1518
- r !== p.value ? (p.value = r, x()) : Q.value = 1;
1517
+ const m = Math.max(1, Math.min(D.value, Q.value));
1518
+ m !== d.value ? (d.value = m, B()) : Q.value = 1;
1519
1519
  }
1520
- }, x = () => {
1521
- h("update:currentPage", p.value), h("page-change", {
1522
- currentPage: p.value,
1520
+ }, B = () => {
1521
+ r("update:currentPage", d.value), r("page-change", {
1522
+ currentPage: d.value,
1523
1523
  pageSize: E.value
1524
1524
  });
1525
1525
  };
1526
- return (r, d) => {
1527
- const _ = Z("el-option"), $ = Z("el-select");
1526
+ return (m, c) => {
1527
+ const H = Z("el-option"), R = Z("el-select");
1528
1528
  return n(), z("div", i4, [
1529
- u(e) ? (n(), z("span", n4, " 共 " + X(t.total) + " 条 ", 1)) : K("", !0),
1530
- H("div", {
1529
+ u(e) ? (n(), z("span", n4, " 共 " + $(t.total) + " 条 ", 1)) : K("", !0),
1530
+ _("div", {
1531
1531
  class: "btn-prev btn-number",
1532
1532
  style: e1({ cursor: t.currentPage === 1 ? "not-allowed" : "pointer" }),
1533
- onClick: C
1533
+ onClick: p
1534
1534
  }, [
1535
1535
  q(u(k), {
1536
1536
  "icon-class": "12_12_arrow_left",
@@ -1538,14 +1538,14 @@ const o4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1538
1538
  style: e1({ color: t.currentPage == 1 ? "#B3B5C7" : "#1A1A1A" })
1539
1539
  }, null, 8, ["style"])
1540
1540
  ], 4),
1541
- (n(!0), z(R, null, j(u(O), (L) => (n(), z(R, { key: L }, [
1541
+ (n(!0), z(X, null, j(u(O), (L) => (n(), z(X, { key: L }, [
1542
1542
  L === "..." ? (n(), z("div", {
1543
1543
  key: 0,
1544
1544
  class: "btn-number custom-pagination__btn custom-pagination__more",
1545
1545
  style: e1({ paddingLeft: u(A) ? "9px" : "" }),
1546
- onMouseenter: d[0] || (d[0] = (J) => A.value = !0),
1547
- onMouseleave: d[1] || (d[1] = (J) => A.value = !1),
1548
- onClick: D
1546
+ onMouseenter: c[0] || (c[0] = (J) => A.value = !0),
1547
+ onMouseleave: c[1] || (c[1] = (J) => A.value = !1),
1548
+ onClick: x
1549
1549
  }, [
1550
1550
  q(u(k), {
1551
1551
  "icon-class": u(A) ? "arrow_2left" : "more",
@@ -1555,42 +1555,42 @@ const o4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1555
1555
  ], 36)) : L === "...." ? (n(), z("div", {
1556
1556
  key: 1,
1557
1557
  class: "btn-number custom-pagination__btn custom-pagination__more",
1558
- style: e1({ paddingRight: u(w) ? "9px" : "" }),
1559
- onMouseenter: d[2] || (d[2] = (J) => w.value = !0),
1560
- onMouseleave: d[3] || (d[3] = (J) => w.value = !1),
1558
+ style: e1({ paddingRight: u(h) ? "9px" : "" }),
1559
+ onMouseenter: c[2] || (c[2] = (J) => h.value = !0),
1560
+ onMouseleave: c[3] || (c[3] = (J) => h.value = !1),
1561
1561
  onClick: P
1562
1562
  }, [
1563
1563
  q(u(k), {
1564
- "icon-class": u(w) ? "arrow_2right" : "more",
1564
+ "icon-class": u(h) ? "arrow_2right" : "more",
1565
1565
  class: "svg-icon-page",
1566
- style: e1({ color: u(w) ? "#1951FA" : "" })
1566
+ style: e1({ color: u(h) ? "#1951FA" : "" })
1567
1567
  }, null, 8, ["icon-class", "style"])
1568
1568
  ], 36)) : (n(), z("div", {
1569
1569
  key: 2,
1570
1570
  class: c1(["btn-number custom-pagination__btn", { "is-active": t.currentPage === L }]),
1571
- onClick: (J) => m(L)
1572
- }, X(L), 11, g4))
1571
+ onClick: (J) => C(L)
1572
+ }, $(L), 11, g4))
1573
1573
  ], 64))), 128)),
1574
- H("div", {
1574
+ _("div", {
1575
1575
  class: "btn-prev btn-number",
1576
- style: e1({ cursor: t.currentPage === u(B) ? "not-allowed" : "pointer" }),
1576
+ style: e1({ cursor: t.currentPage === u(D) ? "not-allowed" : "pointer" }),
1577
1577
  onClick: V
1578
1578
  }, [
1579
1579
  q(u(k), {
1580
1580
  "icon-class": "12_12_arrow_right",
1581
1581
  class: "svg-icon-page",
1582
- style: e1({ color: t.currentPage == u(B) ? "#B3B5C7" : "#1A1A1A" })
1582
+ style: e1({ color: t.currentPage == u(D) ? "#B3B5C7" : "#1A1A1A" })
1583
1583
  }, null, 8, ["style"])
1584
1584
  ], 4),
1585
1585
  u(s) ? (n(), z("div", A4, [
1586
- q($, {
1586
+ q(R, {
1587
1587
  modelValue: u(E),
1588
- "onUpdate:modelValue": d[4] || (d[4] = (L) => a1(E) ? E.value = L : null),
1588
+ "onUpdate:modelValue": c[4] || (c[4] = (L) => a1(E) ? E.value = L : null),
1589
1589
  "suffix-icon": u(i),
1590
1590
  onChange: f
1591
1591
  }, {
1592
1592
  default: I(() => [
1593
- (n(!0), z(R, null, j(t.pageSizes, (L) => (n(), y(_, {
1593
+ (n(!0), z(X, null, j(t.pageSizes, (L) => (n(), y(H, {
1594
1594
  key: L,
1595
1595
  label: `${L} 条/页`,
1596
1596
  value: L
@@ -1599,16 +1599,16 @@ const o4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1599
1599
  _: 1
1600
1600
  }, 8, ["modelValue", "suffix-icon"])
1601
1601
  ])) : K("", !0),
1602
- u(c) ? (n(), z("div", c4, [
1603
- d[6] || (d[6] = H("span", null, "前往", -1)),
1602
+ u(w) ? (n(), z("div", c4, [
1603
+ c[6] || (c[6] = _("span", null, "前往", -1)),
1604
1604
  q(r1, {
1605
1605
  modelValue: u(Q),
1606
- "onUpdate:modelValue": d[5] || (d[5] = (L) => a1(Q) ? Q.value = L : null),
1606
+ "onUpdate:modelValue": c[5] || (c[5] = (L) => a1(Q) ? Q.value = L : null),
1607
1607
  min: 1,
1608
- max: u(B),
1608
+ max: u(D),
1609
1609
  onKeyup: _1(o, ["enter"])
1610
1610
  }, null, 8, ["modelValue", "max"]),
1611
- d[7] || (d[7] = H("span", null, "页", -1))
1611
+ c[7] || (c[7] = _("span", null, "页", -1))
1612
1612
  ])) : K("", !0)
1613
1613
  ]);
1614
1614
  };
@@ -1629,33 +1629,33 @@ const h4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1629
1629
  },
1630
1630
  emits: ["update:modelValue", "change"],
1631
1631
  setup(t, { emit: g }) {
1632
- const l = t, e = g, s = (h) => Array.isArray(l.modelValue) ? l.modelValue.includes(h) : l.modelValue === h, c = (h, i) => {
1632
+ const l = t, e = g, s = (r) => Array.isArray(l.modelValue) ? l.modelValue.includes(r) : l.modelValue === r, w = (r, i) => {
1633
1633
  if (i || l.disabled) return;
1634
1634
  let A;
1635
- Array.isArray(l.modelValue) ? s(h) ? A = l.modelValue.filter((w) => w !== h) : A = [...l.modelValue, h] : s(h) ? A = "" : A = h, e("update:modelValue", A), e("change", A);
1635
+ Array.isArray(l.modelValue) ? s(r) ? A = l.modelValue.filter((h) => h !== r) : A = [...l.modelValue, r] : s(r) ? A = "" : A = r, e("update:modelValue", A), e("change", A);
1636
1636
  };
1637
- return (h, i) => {
1637
+ return (r, i) => {
1638
1638
  const A = Z("svg-icon");
1639
1639
  return n(), z("div", r4, [
1640
- (n(!0), z(R, null, j(t.options, (w, p) => (n(), z("div", {
1641
- key: p,
1640
+ (n(!0), z(X, null, j(t.options, (h, d) => (n(), z("div", {
1641
+ key: d,
1642
1642
  class: c1(["custom-checkbox-wrapper", {
1643
- "is-checked": s(w.value),
1644
- "is-disabled": w.disabled || t.disabled
1643
+ "is-checked": s(h.value),
1644
+ "is-disabled": h.disabled || t.disabled
1645
1645
  }]),
1646
- onClick: (E) => c(w.value, w.disabled)
1646
+ onClick: (E) => w(h.value, h.disabled)
1647
1647
  }, [
1648
- H("span", d4, [
1649
- s(w.value) ? (n(), y(A, {
1648
+ _("span", d4, [
1649
+ s(h.value) ? (n(), y(A, {
1650
1650
  key: 0,
1651
1651
  style: { width: "16px", height: "16px" },
1652
- "icon-class": w.disabled || t.disabled ? "checked_disabled_fill" : "checked_fill"
1652
+ "icon-class": h.disabled || t.disabled ? "checked_disabled_fill" : "checked_fill"
1653
1653
  }, null, 8, ["icon-class"])) : (n(), y(A, {
1654
1654
  key: 1,
1655
1655
  style: { width: "16px", height: "16px" },
1656
- "icon-class": w.disabled || t.disabled ? "unchecked_disabled" : "unchecked"
1656
+ "icon-class": h.disabled || t.disabled ? "unchecked_disabled" : "unchecked"
1657
1657
  }, null, 8, ["icon-class"])),
1658
- H("span", p4, X(w.label), 1)
1658
+ _("span", p4, $(h.label), 1)
1659
1659
  ])
1660
1660
  ], 10, v4))), 128))
1661
1661
  ]);
@@ -1878,75 +1878,75 @@ const C4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1878
1878
  },
1879
1879
  emits: ["update:modelValue", "change", "visible-change", "remove-tag", "clear", "focus", "blur", "popup-scroll"],
1880
1880
  setup(t, { expose: g, emit: l }) {
1881
- const e = t, s = S(() => e.config), c = f1(), h = S(() => c.default?.().length === 0 ? [] : c.default?.().flatMap((D) => {
1882
- const P = String(D.type);
1881
+ const e = t, s = S(() => e.config), w = f1(), r = S(() => w.default?.().length === 0 ? [] : w.default?.().flatMap((x) => {
1882
+ const P = String(x.type);
1883
1883
  if (P.includes("yw-option") || P.includes("ywOption")) {
1884
- const V = D.children;
1884
+ const V = x.children;
1885
1885
  return {
1886
1886
  type: G1,
1887
- props: D.props || {},
1887
+ props: x.props || {},
1888
1888
  children: V && V[0].children,
1889
- key: D.key
1889
+ key: x.key
1890
1890
  };
1891
1891
  }
1892
- return D;
1892
+ return x;
1893
1893
  })), i = l, A = S({
1894
1894
  get() {
1895
1895
  return e.modelValue;
1896
1896
  },
1897
- set(D) {
1898
- i("update:modelValue", D);
1897
+ set(x) {
1898
+ i("update:modelValue", x);
1899
1899
  }
1900
- }), w = (D) => {
1901
- i("change", D);
1902
- }, p = (D) => {
1903
- i("visible-change", D);
1904
- }, E = (D) => {
1905
- i("remove-tag", D);
1900
+ }), h = (x) => {
1901
+ i("change", x);
1902
+ }, d = (x) => {
1903
+ i("visible-change", x);
1904
+ }, E = (x) => {
1905
+ i("remove-tag", x);
1906
1906
  }, Q = () => {
1907
1907
  i("clear");
1908
- }, B = (D) => {
1909
- i("focus", D);
1910
- }, O = (D) => {
1911
- i("blur", D);
1912
- }, F = (D) => {
1913
- i("popup-scroll", D);
1914
- }, C = N(null);
1908
+ }, D = (x) => {
1909
+ i("focus", x);
1910
+ }, O = (x) => {
1911
+ i("blur", x);
1912
+ }, F = (x) => {
1913
+ i("popup-scroll", x);
1914
+ }, p = N(null);
1915
1915
  return g({
1916
1916
  /** 使选择器的输入框获取焦点 */
1917
1917
  focus: () => {
1918
- C.value?.focus();
1918
+ p.value?.focus();
1919
1919
  },
1920
1920
  /** 使选择器的输入框失去焦点,并隐藏下拉框 */
1921
1921
  blur: () => {
1922
- C.value?.blur();
1922
+ p.value?.blur();
1923
1923
  },
1924
1924
  /** 暴露当前选中的 label 属性 */
1925
- selectedLabel: S(() => C.value?.selectedLabel)
1926
- }), (D, P) => (n(), y(u(U1), W(e, {
1925
+ selectedLabel: S(() => p.value?.selectedLabel)
1926
+ }), (x, P) => (n(), y(u(U1), W(e, {
1927
1927
  modelValue: A.value,
1928
1928
  "onUpdate:modelValue": P[0] || (P[0] = (V) => A.value = V),
1929
1929
  ref_key: "selectInstance",
1930
- ref: C,
1930
+ ref: p,
1931
1931
  class: "yw-select",
1932
1932
  "popper-class": "yw-select-popper",
1933
- onChange: w,
1934
- onVisibleChange: p,
1933
+ onChange: h,
1934
+ onVisibleChange: d,
1935
1935
  onRemoveTag: E,
1936
1936
  onClear: Q,
1937
1937
  onBlur: O,
1938
- onFocus: B,
1938
+ onFocus: D,
1939
1939
  onPopupScroll: F
1940
1940
  }), {
1941
1941
  default: I(() => [
1942
- D.$slots.default ? (n(!0), z(R, { key: 0 }, j(h.value, (V, m) => (n(), y(K1(V.type), W({ ref_for: !0 }, V.props, {
1943
- key: V.key || m
1942
+ x.$slots.default ? (n(!0), z(X, { key: 0 }, j(r.value, (V, C) => (n(), y(K1(V.type), W({ ref_for: !0 }, V.props, {
1943
+ key: V.key || C
1944
1944
  }), {
1945
1945
  default: I(() => [
1946
- w1(X(V.children), 1)
1946
+ w1($(V.children), 1)
1947
1947
  ]),
1948
1948
  _: 2
1949
- }, 1040))), 128)) : (n(!0), z(R, { key: 1 }, j(t.options, (V) => (n(), y(u(G1), {
1949
+ }, 1040))), 128)) : (n(!0), z(X, { key: 1 }, j(t.options, (V) => (n(), y(u(G1), {
1950
1950
  key: V[s.value.value],
1951
1951
  label: V[s.value.label],
1952
1952
  value: V[s.value.value],
@@ -2038,24 +2038,24 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2038
2038
  "scroll"
2039
2039
  ],
2040
2040
  setup(t, { expose: g, emit: l }) {
2041
- const e = l, s = (a) => a == null || typeof a == "string" && a.trim() === "", c = t, h = S(() => c.loading ? "" : c.emptyText || "暂无数据"), i = N({}), A = N(), w = (a, v) => i.value[a]?.[v], p = (a, v, M) => {
2041
+ const e = l, s = (a) => a == null || typeof a == "string" && a.trim() === "", w = t, r = S(() => w.loading ? "" : w.emptyText || "暂无数据"), i = N({}), A = N(), h = (a, v) => i.value[a]?.[v], d = (a, v, M) => {
2042
2042
  i.value[a] || (i.value[a] = {}), M ? i.value[a][v] = M : (delete i.value[a][v], Object.keys(i.value[a]).length === 0 && delete i.value[a]);
2043
2043
  }, E = (a, v) => {
2044
- const M = c.columns?.find((b) => b.prop === v), G = c.data?.[a];
2044
+ const M = w.columns?.find((b) => b.prop === v), G = w.data?.[a];
2045
2045
  if (!M || !M.required || !v || !G)
2046
- return p(a, v, null), !0;
2046
+ return d(a, v, null), !0;
2047
2047
  const o1 = G[v];
2048
- return o1 == null || o1 === "" ? (p(a, v, `${M.label || M.prop} 为必填项`), !1) : (p(a, v, null), !0);
2048
+ return o1 == null || o1 === "" ? (d(a, v, `${M.label || M.prop} 为必填项`), !1) : (d(a, v, null), !0);
2049
2049
  }, Q = (a, v) => {
2050
2050
  if (!(!v || !a))
2051
2051
  return v.includes(".") ? v.split(".").reduce((M, G) => M && M[G] !== void 0 ? M[G] : void 0, a) : a[v];
2052
2052
  };
2053
2053
  g({
2054
2054
  validate: async () => {
2055
- if (!c.columns || !c.data) return !0;
2055
+ if (!w.columns || !w.data) return !0;
2056
2056
  let a = !0;
2057
- return c.data.forEach((v, M) => {
2058
- c.columns.forEach((G) => {
2057
+ return w.data.forEach((v, M) => {
2058
+ w.columns.forEach((G) => {
2059
2059
  G.required && G.prop && G.slotName && (E(M, G.prop) || (a = !1));
2060
2060
  });
2061
2061
  }), a;
@@ -2071,29 +2071,29 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2071
2071
  tableRef: A
2072
2072
  // 暴露 el-table 实例
2073
2073
  });
2074
- const C = (a, v) => {
2074
+ const p = (a, v) => {
2075
2075
  e("select", a, v);
2076
- }, D = (a) => {
2076
+ }, x = (a) => {
2077
2077
  e("select-all", a);
2078
2078
  }, P = (a) => {
2079
2079
  e("selection-change", a);
2080
2080
  }, V = (a, v, M, G) => {
2081
2081
  e("cell-mouse-enter", a, v, M, G);
2082
- }, m = (a, v, M, G) => {
2082
+ }, C = (a, v, M, G) => {
2083
2083
  e("cell-mouse-leave", a, v, M, G);
2084
2084
  }, f = (a, v, M, G) => {
2085
2085
  e("cell-click", a, v, M, G);
2086
2086
  }, o = (a, v, M, G) => {
2087
2087
  e("cell-dblclick", a, v, M, G);
2088
- }, x = (a, v, M, G) => {
2088
+ }, B = (a, v, M, G) => {
2089
2089
  e("cell-contextmenu", a, v, M, G);
2090
- }, r = (a, v, M, G) => {
2090
+ }, m = (a, v, M, G) => {
2091
2091
  e("row-click", a, v, M, G);
2092
- }, d = (a, v, M, G) => {
2092
+ }, c = (a, v, M, G) => {
2093
2093
  e("row-dblclick", a, v, M, G);
2094
- }, _ = (a, v, M, G) => {
2094
+ }, H = (a, v, M, G) => {
2095
2095
  e("row-contextmenu", a, v, M, G);
2096
- }, $ = (a, v) => {
2096
+ }, R = (a, v) => {
2097
2097
  e("header-click", a, v);
2098
2098
  }, L = (a, v) => {
2099
2099
  e("header-contextmenu", a, v);
@@ -2116,7 +2116,7 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2116
2116
  q(T1, { name: "fade" }, {
2117
2117
  default: I(() => [
2118
2118
  q(v1, {
2119
- "model-value": c.loading,
2119
+ "model-value": w.loading,
2120
2120
  class: "yw-table-body-loading"
2121
2121
  }, null, 8, ["model-value"])
2122
2122
  ]),
@@ -2126,21 +2126,21 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2126
2126
  ref_key: "tableRef",
2127
2127
  ref: A,
2128
2128
  class: "yw-table"
2129
- }, c, {
2130
- data: c.data,
2131
- "empty-text": u(h),
2132
- onSelect: C,
2133
- onSelectAll: D,
2129
+ }, w, {
2130
+ data: w.data,
2131
+ "empty-text": u(r),
2132
+ onSelect: p,
2133
+ onSelectAll: x,
2134
2134
  onSelectionChange: P,
2135
2135
  onCellMouseEnter: V,
2136
- onCellMouseLeave: m,
2136
+ onCellMouseLeave: C,
2137
2137
  onCellClick: f,
2138
2138
  onCellDblclick: o,
2139
- onCellContextmenu: x,
2140
- onRowClick: r,
2141
- onRowContextmenu: _,
2142
- onRowDblclick: d,
2143
- onHeaderClick: $,
2139
+ onCellContextmenu: B,
2140
+ onRowClick: m,
2141
+ onRowContextmenu: H,
2142
+ onRowDblclick: c,
2143
+ onHeaderClick: R,
2144
2144
  onHeaderContextmenu: L,
2145
2145
  onSortChange: J,
2146
2146
  onFilterChange: s1,
@@ -2150,25 +2150,25 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2150
2150
  onScroll: b1
2151
2151
  }), {
2152
2152
  default: I(() => [
2153
- (n(!0), z(R, null, j(c.columns.filter((b) => b.visible !== !1), (b, H1) => (n(), y(G, W({ key: H1 }, { ref_for: !0 }, b, {
2153
+ (n(!0), z(X, null, j(w.columns.filter((b) => b.visible !== !1), (b, H1) => (n(), y(G, W({ key: H1 }, { ref_for: !0 }, b, {
2154
2154
  "show-overflow-tooltip": b.showOverflowTooltip !== !1
2155
2155
  }), l1({
2156
2156
  default: I((t1) => [
2157
2157
  b.slotName ? (n(), y(M, {
2158
2158
  key: 0,
2159
- visible: !!w(t1.$index, b.prop),
2159
+ visible: !!h(t1.$index, b.prop),
2160
2160
  "show-arrow": !1,
2161
- content: w(t1.$index, b.prop),
2161
+ content: h(t1.$index, b.prop),
2162
2162
  placement: "bottom-start",
2163
2163
  manual: "",
2164
2164
  effect: "light",
2165
2165
  "popper-class": "yw-table-error-tip"
2166
2166
  }, {
2167
2167
  default: I(() => [
2168
- H("div", {
2169
- class: c1(["yw-table-cell-content", { "is-error": w(t1.$index, b.prop) }])
2168
+ _("div", {
2169
+ class: c1(["yw-table-cell-content", { "is-error": h(t1.$index, b.prop) }])
2170
2170
  }, [
2171
- b.prop && !b.isEdit && s(Q(t1.row, b.prop)) && t.emptyState ? (n(), z(R, { key: 0 }, [
2171
+ b.prop && !b.isEdit && s(Q(t1.row, b.prop)) && t.emptyState ? (n(), z(X, { key: 0 }, [
2172
2172
  w1(" - ")
2173
2173
  ], 64)) : T(a.$slots, b.slotName, W({
2174
2174
  key: 1,
@@ -2177,10 +2177,10 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2177
2177
  ], 2)
2178
2178
  ]),
2179
2179
  _: 2
2180
- }, 1032, ["visible", "content"])) : (n(), z(R, { key: 1 }, [
2181
- ["selection", "index", "expand"].includes(b.type) ? (n(), z(R, { key: 0 }, [
2182
- b.type === "index" ? (n(), z("span", B4, X(t1.$index + 1), 1)) : K("", !0)
2183
- ], 64)) : (n(), z("div", D4, X(s(Q(t1.row, b.prop)) && t.emptyState ? "-" : Q(
2180
+ }, 1032, ["visible", "content"])) : (n(), z(X, { key: 1 }, [
2181
+ ["selection", "index", "expand"].includes(b.type) ? (n(), z(X, { key: 0 }, [
2182
+ b.type === "index" ? (n(), z("span", B4, $(t1.$index + 1), 1)) : K("", !0)
2183
+ ], 64)) : (n(), z("div", D4, $(s(Q(t1.row, b.prop)) && t.emptyState ? "-" : Q(
2184
2184
  t1.row,
2185
2185
  b.prop
2186
2186
  )), 1))
@@ -2307,63 +2307,63 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2307
2307
  },
2308
2308
  emits: ["node-click", "node-contextmenu", "check-change", "check", "current-change", "node-expand", "node-collapse", "node-drag-start", "node-drag-enter", "node-drag-leave", "node-drag-over", "node-drag-end", "node-drop"],
2309
2309
  setup(t, { expose: g, emit: l }) {
2310
- const e = t, s = l, c = N(), h = (m, f, o) => {
2311
- s("node-click", m, f, o);
2312
- }, i = (m, f, o) => {
2313
- s("node-contextmenu", m, f, o);
2314
- }, A = (m, f, o) => {
2315
- s("check-change", m, f, o);
2316
- }, w = (m, f) => {
2317
- s("check", m, f);
2318
- }, p = (m) => {
2319
- s("current-change", m);
2320
- }, E = (m) => {
2321
- s("node-expand", m);
2322
- }, Q = (m) => {
2323
- s("node-collapse", m);
2324
- }, B = (m, f) => {
2325
- s("node-drag-start", m, f);
2326
- }, O = (m, f, o) => {
2327
- s("node-drag-enter", m, f, o);
2328
- }, F = (m, f, o) => {
2329
- s("node-drag-leave", m, f, o);
2330
- }, C = (m, f, o) => {
2331
- s("node-drag-over", m, f, o);
2332
- }, D = (m, f, o) => {
2333
- s("node-drag-end", m, f, o);
2334
- }, P = (m, f, o, x) => {
2335
- s("node-drop", m, f, o, x);
2310
+ const e = t, s = l, w = N(), r = (C, f, o) => {
2311
+ s("node-click", C, f, o);
2312
+ }, i = (C, f, o) => {
2313
+ s("node-contextmenu", C, f, o);
2314
+ }, A = (C, f, o) => {
2315
+ s("check-change", C, f, o);
2316
+ }, h = (C, f) => {
2317
+ s("check", C, f);
2318
+ }, d = (C) => {
2319
+ s("current-change", C);
2320
+ }, E = (C) => {
2321
+ s("node-expand", C);
2322
+ }, Q = (C) => {
2323
+ s("node-collapse", C);
2324
+ }, D = (C, f) => {
2325
+ s("node-drag-start", C, f);
2326
+ }, O = (C, f, o) => {
2327
+ s("node-drag-enter", C, f, o);
2328
+ }, F = (C, f, o) => {
2329
+ s("node-drag-leave", C, f, o);
2330
+ }, p = (C, f, o) => {
2331
+ s("node-drag-over", C, f, o);
2332
+ }, x = (C, f, o) => {
2333
+ s("node-drag-end", C, f, o);
2334
+ }, P = (C, f, o, B) => {
2335
+ s("node-drop", C, f, o, B);
2336
2336
  };
2337
2337
  return g({
2338
2338
  clearSelection: () => {
2339
- const m = c.value;
2340
- m && m.setCurrentKey(null);
2339
+ const C = w.value;
2340
+ C && C.setCurrentKey(null);
2341
2341
  }
2342
- }), (m, f) => {
2342
+ }), (C, f) => {
2343
2343
  const o = Z("el-tree");
2344
2344
  return n(), y(o, W({
2345
2345
  ref_key: "treeRef",
2346
- ref: c,
2346
+ ref: w,
2347
2347
  class: "custom-tree"
2348
2348
  }, e, {
2349
- onNodeClick: h,
2349
+ onNodeClick: r,
2350
2350
  onNodeContextmenu: i,
2351
2351
  onCheckChange: A,
2352
- onCheck: w,
2353
- onCurrentChange: p,
2352
+ onCheck: h,
2353
+ onCurrentChange: d,
2354
2354
  onNodeExpand: E,
2355
2355
  onNodeCollapse: Q,
2356
- onNodeDragStart: B,
2356
+ onNodeDragStart: D,
2357
2357
  onNodeDragEnter: O,
2358
2358
  onNodeDragLeave: F,
2359
- onNodeDragOver: C,
2360
- onNodeDragEnd: D,
2359
+ onNodeDragOver: p,
2360
+ onNodeDragEnd: x,
2361
2361
  onNodeDrop: P
2362
2362
  }), {
2363
- default: I(({ node: x, data: r }) => [
2364
- T(m.$slots, "default", {
2365
- node: x,
2366
- data: r
2363
+ default: I(({ node: B, data: m }) => [
2364
+ T(C.$slots, "default", {
2365
+ node: B,
2366
+ data: m
2367
2367
  })
2368
2368
  ]),
2369
2369
  _: 3
@@ -2463,14 +2463,14 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2463
2463
  },
2464
2464
  emits: ["update:modelValue", "update:selectedIds", "node-click", "page-change", "submit"],
2465
2465
  setup(t, { expose: g, emit: l }) {
2466
- const e = t, s = l, c = N(1), h = N(15), i = N([]), A = N([]), w = S({
2466
+ const e = t, s = l, w = N(1), r = N(15), i = N([]), A = N([]), h = S({
2467
2467
  get() {
2468
2468
  return e.modelValue;
2469
2469
  },
2470
2470
  set(o) {
2471
2471
  s("update:modelValue", o);
2472
2472
  }
2473
- }), p = () => e.isTree ? e.multiple ? { width: "calc(100% - 544px)" } : { width: "calc(100% - 232px)", marginRight: "16px" } : e.multiple ? { width: "calc(100% - 332px)", marginLeft: "16px" } : { width: "calc(100% - 32px)", marginLeft: "16px" };
2473
+ }), d = () => e.isTree ? e.multiple ? { width: "calc(100% - 544px)" } : { width: "calc(100% - 232px)", marginRight: "16px" } : e.multiple ? { width: "calc(100% - 332px)", marginLeft: "16px" } : { width: "calc(100% - 32px)", marginLeft: "16px" };
2474
2474
  m1(() => e.modelValue, (o) => {
2475
2475
  o && (i.value = [...e.selectedIds], A.value = [...e.allOption]);
2476
2476
  }, { immediate: !0 });
@@ -2478,48 +2478,49 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2478
2478
  (o) => i.value.includes(o[e.rowKey])
2479
2479
  )), Q = (o) => {
2480
2480
  console.log("node-click", o), s("node-click", o);
2481
- }, B = (o) => {
2481
+ }, D = (o) => {
2482
2482
  s("page-change", o);
2483
- }, O = (o) => i.value.includes(o[e.rowKey]) ? "16_16_checkbox_select" : e.disabledLogic(o) ? "16_16_checkbox_normal_disable" : "16_16_checkbox_normal", F = (o) => i.value.includes(o[e.rowKey]) ? "16_16_radio_select" : e.disabledLogic(o) ? "16_16_radio_normal_disable" : "16_16_radio_normal", C = (o) => {
2484
- const x = o[e.rowKey];
2483
+ }, O = (o) => i.value.includes(o[e.rowKey]) ? "16_16_checkbox_select" : e.disabledLogic(o) ? "16_16_checkbox_normal_disable" : "16_16_checkbox_normal", F = (o) => i.value.includes(o[e.rowKey]) ? "16_16_radio_select" : e.disabledLogic(o) ? "16_16_radio_normal_disable" : "16_16_radio_normal", p = (o) => {
2484
+ const B = o[e.rowKey];
2485
2485
  if (!e.disabledLogic(o))
2486
2486
  if (e.multiple)
2487
- i.value.includes(x) ? i.value = i.value.filter((r) => r !== x) : (i.value.push(x), A.value.some((r) => r[e.rowKey] === x) || A.value.push(o));
2487
+ i.value.includes(B) ? i.value = i.value.filter((m) => m !== B) : (i.value.push(B), A.value.some((m) => m[e.rowKey] === B) || A.value.push(o));
2488
2488
  else {
2489
- if (i.value.includes(x)) return;
2490
- i.value = [x], A.value = [o];
2489
+ if (i.value.includes(B)) return;
2490
+ i.value = [B], A.value = [o];
2491
2491
  }
2492
- }, D = () => {
2493
- const o = e.tableData.map((d) => d[e.rowKey]), x = o.every((d) => i.value.includes(d));
2494
- return o.some((d) => i.value.includes(d)) && !x ? "16_16_checkbox_halfselect" : o.length == 0 ? "16_16_checkbox_normal" : x ? "16_16_checkbox_select" : "16_16_checkbox_normal";
2492
+ }, x = () => {
2493
+ const o = e.tableData.map((c) => c[e.rowKey]), B = o.every((c) => i.value.includes(c));
2494
+ return o.some((c) => i.value.includes(c)) && !B ? "16_16_checkbox_halfselect" : o.length == 0 ? "16_16_checkbox_normal" : B ? "16_16_checkbox_select" : "16_16_checkbox_normal";
2495
2495
  }, P = () => {
2496
- const o = e.tableData.map((r) => r[e.rowKey]);
2497
- o.every((r) => i.value.includes(r)) ? i.value = i.value.filter((r) => !o.includes(r)) : e.tableData.forEach((r) => {
2498
- const d = r[e.rowKey];
2499
- i.value.includes(d) || (i.value.push(d), A.value.some((_) => _[e.rowKey] === d) || A.value.push(r));
2496
+ const o = e.tableData.filter((c) => !e.disabledLogic(c)), B = o.map((c) => c[e.rowKey]);
2497
+ if (B.length === 0) return;
2498
+ B.every((c) => i.value.includes(c)) ? i.value = i.value.filter((c) => !B.includes(c)) : o.forEach((c) => {
2499
+ const H = c[e.rowKey];
2500
+ i.value.includes(H) || (i.value.push(H), A.value.some((R) => R[e.rowKey] === H) || A.value.push(c));
2500
2501
  });
2501
2502
  }, V = (o) => {
2502
- const x = o[e.rowKey];
2503
- i.value = i.value.filter((r) => r !== x);
2504
- }, m = () => {
2505
- w.value = !1;
2503
+ const B = o[e.rowKey];
2504
+ i.value = i.value.filter((m) => m !== B);
2505
+ }, C = () => {
2506
+ h.value = !1;
2506
2507
  }, f = () => {
2507
2508
  const o = [...E.value];
2508
- s("update:selectedIds", [...i.value]), s("submit", o, i.value), w.value = !1;
2509
+ s("update:selectedIds", [...i.value]), s("submit", o, i.value), h.value = !1;
2509
2510
  };
2510
2511
  return g({
2511
2512
  handleDeleteSelected: V
2512
- }), (o, x) => (n(), y(h1, {
2513
+ }), (o, B) => (n(), y(h1, {
2513
2514
  class: "selector-dialog",
2514
- modelValue: u(w),
2515
- "onUpdate:modelValue": x[2] || (x[2] = (r) => a1(w) ? w.value = r : null),
2515
+ modelValue: u(h),
2516
+ "onUpdate:modelValue": B[2] || (B[2] = (m) => a1(h) ? h.value = m : null),
2516
2517
  title: t.title,
2517
2518
  size: t.size,
2518
- onClose: m,
2519
+ onClose: C,
2519
2520
  onSubmit: f
2520
2521
  }, {
2521
2522
  default: I(() => [
2522
- H("div", M4, [
2523
+ _("div", M4, [
2523
2524
  t.isTree ? (n(), z("div", z4, [
2524
2525
  q(p1, {
2525
2526
  ref: "treeRef",
@@ -2534,9 +2535,9 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2534
2535
  onNodeClick: Q
2535
2536
  }, null, 8, ["data", "props"])
2536
2537
  ])) : K("", !0),
2537
- H("div", {
2538
+ _("div", {
2538
2539
  class: "center",
2539
- style: e1(p())
2540
+ style: e1(d())
2540
2541
  }, [
2541
2542
  o.$slots.search ? (n(), z("div", I4, [
2542
2543
  T(o.$slots, "search")
@@ -2554,33 +2555,33 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2554
2555
  "max-height": 400,
2555
2556
  loading: t.loading,
2556
2557
  "empty-state": t.emptyState,
2557
- onRowClick: C
2558
+ onRowClick: p
2558
2559
  }, l1({
2559
- "header-selection": I((r) => [
2560
+ "header-selection": I((m) => [
2560
2561
  q(u(k), {
2561
- "icon-class": D(),
2562
+ "icon-class": x(),
2562
2563
  style: { width: "16px", height: "16px" },
2563
2564
  onClick: P
2564
2565
  }, null, 8, ["icon-class"])
2565
2566
  ]),
2566
- selection: I((r) => [
2567
+ selection: I((m) => [
2567
2568
  q(u(k), {
2568
- "icon-class": O(r.row),
2569
+ "icon-class": O(m.row),
2569
2570
  style: { width: "16px", height: "16px" }
2570
2571
  }, null, 8, ["icon-class"])
2571
2572
  ]),
2572
- radio: I((r) => [
2573
+ radio: I((m) => [
2573
2574
  q(u(k), {
2574
- "icon-class": F(r.row),
2575
+ "icon-class": F(m.row),
2575
2576
  style: { width: "16px", height: "16px" }
2576
2577
  }, null, 8, ["icon-class"])
2577
2578
  ]),
2578
2579
  _: 2
2579
2580
  }, [
2580
- j(o.$slots, (r, d) => ({
2581
- name: d,
2582
- fn: I((_) => [
2583
- T(o.$slots, d, i1(n1(_)))
2581
+ j(o.$slots, (m, c) => ({
2582
+ name: c,
2583
+ fn: I((H) => [
2584
+ T(o.$slots, c, i1(n1(H)))
2584
2585
  ])
2585
2586
  }))
2586
2587
  ]), 1032, ["columns", "data", "loading", "empty-state"])),
@@ -2589,15 +2590,15 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2589
2590
  total: t.tableTotal,
2590
2591
  pagerCount: 3,
2591
2592
  layouts: ["Total", "PrevPage", "Number", "NextPage", "Sizes", "FullJump"],
2592
- "current-page": u(c),
2593
- "onUpdate:currentPage": x[0] || (x[0] = (r) => a1(c) ? c.value = r : null),
2594
- "page-size": u(h),
2595
- "onUpdate:pageSize": x[1] || (x[1] = (r) => a1(h) ? h.value = r : null),
2596
- onPageChange: B
2593
+ "current-page": u(w),
2594
+ "onUpdate:currentPage": B[0] || (B[0] = (m) => a1(w) ? w.value = m : null),
2595
+ "page-size": u(r),
2596
+ "onUpdate:pageSize": B[1] || (B[1] = (m) => a1(r) ? r.value = m : null),
2597
+ onPageChange: D
2597
2598
  }, null, 8, ["total", "current-page", "page-size"])
2598
2599
  ], 4),
2599
2600
  t.multiple ? (n(), z("div", f4, [
2600
- H("div", G4, "已选(" + X(u(E).length) + ")", 1),
2601
+ _("div", G4, "已选(" + $(u(E).length) + ")", 1),
2601
2602
  q(A1, {
2602
2603
  border: !0,
2603
2604
  columns: t.selectedTableColumns,
@@ -2605,10 +2606,10 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2605
2606
  height: 454,
2606
2607
  "max-height": 454
2607
2608
  }, l1({ _: 2 }, [
2608
- j(o.$slots, (r, d) => ({
2609
- name: d,
2610
- fn: I((_) => [
2611
- T(o.$slots, d, i1(n1(_)))
2609
+ j(o.$slots, (m, c) => ({
2610
+ name: c,
2611
+ fn: I((H) => [
2612
+ T(o.$slots, c, i1(n1(H)))
2612
2613
  ])
2613
2614
  }))
2614
2615
  ]), 1032, ["columns", "data"])