tm-table 1.1.8 → 1.1.10

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.
@@ -2,7 +2,7 @@ var q = Object.defineProperty, G = Object.defineProperties;
2
2
  var Y = Object.getOwnPropertyDescriptors;
3
3
  var S = Object.getOwnPropertySymbols;
4
4
  var O = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
- var L = (t, e, s) => e in t ? q(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, o = (t, e) => {
5
+ var L = (t, e, s) => e in t ? q(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, u = (t, e) => {
6
6
  for (var s in e || (e = {}))
7
7
  O.call(e, s) && L(t, s, e[s]);
8
8
  if (S)
@@ -100,7 +100,7 @@ const x = (t) => t, f = () => "mini", X = {
100
100
  copySuccess: "Copy successfully",
101
101
  copyFailed: "Copy failed"
102
102
  };
103
- var R;
103
+ var A;
104
104
  const ee = {
105
105
  "zh-CN": X,
106
106
  "en-US": Z
@@ -108,7 +108,7 @@ const ee = {
108
108
  let v = { value: "zh-CN" };
109
109
  {
110
110
  const t = require("vue");
111
- t.observable || (R = t.default) != null && R.observable ? v = t.default.observable(v) : v = new t({
111
+ t.observable || (A = t.default) != null && A.observable ? v = t.default.observable(v) : v = new t({
112
112
  data() {
113
113
  return { currentLang: v };
114
114
  }
@@ -124,7 +124,7 @@ const te = (t) => {
124
124
  setLang: k,
125
125
  currentLang: v
126
126
  });
127
- function c(t, e, s, i, a, l, n, u) {
127
+ function c(t, e, s, i, a, l, n, o) {
128
128
  var r = typeof t == "function" ? t.options : t;
129
129
  return e && (r.render = e, r.staticRenderFns = s, r._compiled = !0), l && (r._scopeId = "data-v-" + l), {
130
130
  exports: t,
@@ -268,7 +268,7 @@ var ne = function() {
268
268
  }, expression: "checkAll" } }, [e._v(e._s(e.t("all")))]) : e._e()];
269
269
  }, proxy: !0 }]), model: { value: e.computedValue, callback: function(i) {
270
270
  e.computedValue = i;
271
- }, expression: "computedValue" } }, "el-select", y(o({}, e.$attrs), {
271
+ }, expression: "computedValue" } }, "el-select", y(u({}, e.$attrs), {
272
272
  size: e.getDefaultSize(),
273
273
  filterable: e.filterable,
274
274
  clearable: e.clearable,
@@ -291,7 +291,7 @@ var ne = function() {
291
291
  null,
292
292
  "467dcdd3"
293
293
  );
294
- const A = oe.exports, ue = {
294
+ const R = oe.exports, ue = {
295
295
  name: "BaseIcon",
296
296
  props: {
297
297
  path: {
@@ -445,7 +445,7 @@ const ye = p.more, ve = p["fixed-left"], Ce = p["fixed-right"], xe = p.upload, _
445
445
  });
446
446
  },
447
447
  performOverflowCheck() {
448
- var h;
448
+ var d;
449
449
  const t = this.$refs.textEl;
450
450
  if (!t) return;
451
451
  const e = getComputedStyle(t);
@@ -455,13 +455,13 @@ const ye = p.more, ve = p["fixed-left"], Ce = p["fixed-right"], xe = p.upload, _
455
455
  });
456
456
  return;
457
457
  }
458
- const s = t.scrollHeight, i = t.scrollWidth, a = t.clientHeight, l = t.clientWidth, n = 1, u = s > a + n, r = i > l + n;
459
- if (u || r) {
458
+ const s = t.scrollHeight, i = t.scrollWidth, a = t.clientHeight, l = t.clientWidth, n = 1, o = s > a + n, r = i > l + n;
459
+ if (o || r) {
460
460
  this.isOverflow = !0;
461
461
  const m = parseFloat(e.lineHeight) || 16;
462
462
  this.currentLines = Math.ceil(s / m);
463
463
  } else {
464
- const m = t.getBoundingClientRect(), C = (h = t.parentElement) == null ? void 0 : h.getBoundingClientRect();
464
+ const m = t.getBoundingClientRect(), C = (d = t.parentElement) == null ? void 0 : d.getBoundingClientRect();
465
465
  if (C) {
466
466
  const Q = m.height > C.height || m.width > C.width;
467
467
  this.isOverflow = Q;
@@ -674,7 +674,7 @@ var De = function() {
674
674
  }), [s("div", { staticClass: "popover-content" }, [s("p", { staticClass: "popover-subtitle" }, [e._v(e._s(e.t("accurateSearchTips")))]), s("el-input", { staticStyle: { "font-size": "12px" }, attrs: { size: e.getDefaultSize(), type: "textarea", rows: 8, placeholder: e.t("accurateSearchPlaceholder") }, model: { value: e.exactValue, callback: function(i) {
675
675
  e.exactValue = i;
676
676
  }, expression: "exactValue" } }), s("div", { staticClass: "popover-footer" }, [s("el-button", { staticStyle: { float: "left" }, attrs: { size: e.getCompatSize("mini") }, on: { click: e.handleClear } }, [e._v(e._s(e.t("clear")))]), s("el-button", { attrs: { size: e.getCompatSize("mini") }, on: { click: e.handlePopoverClose } }, [e._v(e._s(e.t("cancel")))]), s("el-button", { attrs: { type: "primary", size: e.getCompatSize("mini") }, on: { click: e.handleExactSearch } }, [e._v(e._s(e.t("search")))])], 1)], 1)]) : e._e()], 1)], 1);
677
- }, Me = [], Re = /* @__PURE__ */ c(
677
+ }, Me = [], Ae = /* @__PURE__ */ c(
678
678
  Oe,
679
679
  De,
680
680
  Me,
@@ -682,7 +682,7 @@ var De = function() {
682
682
  null,
683
683
  "6b474dac"
684
684
  );
685
- const E = Re.exports, { t: d } = b(), Ae = !0, He = !1, Ee = "value", Pe = {
685
+ const E = Ae.exports, { t: h } = b(), Re = !0, He = !1, Ee = "value", Pe = {
686
686
  name: "TmAdvancedDateFilter",
687
687
  components: {
688
688
  EllipsisText: _
@@ -802,12 +802,12 @@ const E = Re.exports, { t: d } = b(), Ae = !0, He = !1, Ee = "value", Pe = {
802
802
  // 计算开始占位符
803
803
  computedStartPlaceholder() {
804
804
  if (this.isRangeType)
805
- return this.startPlaceholder !== void 0 ? this.startPlaceholder : d("startDate");
805
+ return this.startPlaceholder !== void 0 ? this.startPlaceholder : h("startDate");
806
806
  },
807
807
  // 计算结束占位符
808
808
  computedEndPlaceholder() {
809
809
  if (this.isRangeType)
810
- return this.endPlaceholder !== void 0 ? this.endPlaceholder : d("endDate");
810
+ return this.endPlaceholder !== void 0 ? this.endPlaceholder : h("endDate");
811
811
  },
812
812
  // 计算日期选择器样式
813
813
  computedDatePickerStyle() {
@@ -824,42 +824,42 @@ const E = Re.exports, { t: d } = b(), Ae = !0, He = !1, Ee = "value", Pe = {
824
824
  const e = this.type === "datetimerange";
825
825
  t.shortcuts = this.shortcuts.length > 0 ? this.shortcuts : [
826
826
  {
827
- text: d("today"),
827
+ text: h("today"),
828
828
  onClick(s) {
829
829
  const i = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
830
830
  e && (a.setHours(0, 0, 0, 0), i.setHours(23, 59, 59, 999)), s.$emit("pick", [a, i]);
831
831
  }
832
832
  },
833
833
  {
834
- text: d("yesterday"),
834
+ text: h("yesterday"),
835
835
  onClick(s) {
836
836
  const i = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
837
837
  a.setTime(a.getTime() - 3600 * 1e3 * 24), i.setTime(i.getTime() - 3600 * 1e3 * 24), e && (a.setHours(0, 0, 0, 0), i.setHours(23, 59, 59, 999)), s.$emit("pick", [a, i]);
838
838
  }
839
839
  },
840
840
  {
841
- text: d("last7days"),
841
+ text: h("last7days"),
842
842
  onClick(s) {
843
843
  const i = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
844
844
  a.setTime(a.getTime() - 3600 * 1e3 * 24 * 7), e && (a.setHours(0, 0, 0, 0), i.setHours(23, 59, 59, 999)), s.$emit("pick", [a, i]);
845
845
  }
846
846
  },
847
847
  {
848
- text: d("last30days"),
848
+ text: h("last30days"),
849
849
  onClick(s) {
850
850
  const i = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
851
851
  a.setTime(a.getTime() - 3600 * 1e3 * 24 * 30), e && (a.setHours(0, 0, 0, 0), i.setHours(23, 59, 59, 999)), s.$emit("pick", [a, i]);
852
852
  }
853
853
  },
854
854
  {
855
- text: d("thisMonth"),
855
+ text: h("thisMonth"),
856
856
  onClick(s) {
857
857
  const i = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
858
858
  a.setDate(1), e && (a.setHours(0, 0, 0, 0), i.setHours(23, 59, 59, 999)), s.$emit("pick", [a, i]);
859
859
  }
860
860
  },
861
861
  {
862
- text: d("lastMonth"),
862
+ text: h("lastMonth"),
863
863
  onClick(s) {
864
864
  const i = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
865
865
  a.setMonth(a.getMonth() - 1), a.setDate(1), i.setDate(0), e && (a.setHours(0, 0, 0, 0), i.setHours(23, 59, 59, 999)), s.$emit("pick", [a, i]);
@@ -877,42 +877,42 @@ const E = Re.exports, { t: d } = b(), Ae = !0, He = !1, Ee = "value", Pe = {
877
877
  const t = this.type === "datetimerange";
878
878
  return [
879
879
  {
880
- text: d("today"),
880
+ text: h("today"),
881
881
  value: () => {
882
882
  const e = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date();
883
883
  return t && (s.setHours(0, 0, 0, 0), e.setHours(23, 59, 59, 999)), [s, e];
884
884
  }
885
885
  },
886
886
  {
887
- text: d("yesterday"),
887
+ text: h("yesterday"),
888
888
  value: () => {
889
889
  const e = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date();
890
890
  return s.setTime(s.getTime() - 3600 * 1e3 * 24), e.setTime(e.getTime() - 3600 * 1e3 * 24), t && (s.setHours(0, 0, 0, 0), e.setHours(23, 59, 59, 999)), [s, e];
891
891
  }
892
892
  },
893
893
  {
894
- text: d("last7days"),
894
+ text: h("last7days"),
895
895
  value: () => {
896
896
  const e = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date();
897
897
  return s.setTime(s.getTime() - 3600 * 1e3 * 24 * 7), t && (s.setHours(0, 0, 0, 0), e.setHours(23, 59, 59, 999)), [s, e];
898
898
  }
899
899
  },
900
900
  {
901
- text: d("last30days"),
901
+ text: h("last30days"),
902
902
  value: () => {
903
903
  const e = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date();
904
904
  return s.setTime(s.getTime() - 3600 * 1e3 * 24 * 30), t && (s.setHours(0, 0, 0, 0), e.setHours(23, 59, 59, 999)), [s, e];
905
905
  }
906
906
  },
907
907
  {
908
- text: d("thisMonth"),
908
+ text: h("thisMonth"),
909
909
  value: () => {
910
910
  const e = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date();
911
911
  return s.setDate(1), t && (s.setHours(0, 0, 0, 0), e.setHours(23, 59, 59, 999)), [s, e];
912
912
  }
913
913
  },
914
914
  {
915
- text: d("lastMonth"),
915
+ text: h("lastMonth"),
916
916
  value: () => {
917
917
  const e = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date();
918
918
  return s.setMonth(s.getMonth() - 1), s.setDate(1), e.setDate(0), t && (s.setHours(0, 0, 0, 0), e.setHours(23, 59, 59, 999)), [s, e];
@@ -973,8 +973,8 @@ const E = Re.exports, { t: d } = b(), Ae = !0, He = !1, Ee = "value", Pe = {
973
973
  },
974
974
  data() {
975
975
  return {
976
- t: d,
977
- isVue2: Ae,
976
+ t: h,
977
+ isVue2: Re,
978
978
  isVue3: He,
979
979
  getDefaultSize: f,
980
980
  valueField: Ee
@@ -1084,7 +1084,7 @@ const P = Be.exports, Ne = !0, Ue = {
1084
1084
  };
1085
1085
  },
1086
1086
  cascaderProps() {
1087
- return y(o({}, this.props), {
1087
+ return y(u({}, this.props), {
1088
1088
  expandTrigger: this.props.expandTrigger || "hover"
1089
1089
  });
1090
1090
  }
@@ -1130,7 +1130,7 @@ var je = function() {
1130
1130
  }, { node: i, data: a })];
1131
1131
  } }], null, !0), model: { value: e.selectedValue, callback: function(i) {
1132
1132
  e.selectedValue = i;
1133
- }, expression: "selectedValue" } }, "el-cascader", y(o({}, e.$attrs), {
1133
+ }, expression: "selectedValue" } }, "el-cascader", y(u({}, e.$attrs), {
1134
1134
  size: e.getDefaultSize(),
1135
1135
  filterable: e.filterable,
1136
1136
  clearable: e.clearable,
@@ -1249,7 +1249,7 @@ var Ye = function() {
1249
1249
  "tm-radio--v2": e.isVue2
1250
1250
  } }, [s("el-radio-group", e._g(e._b({ ref: "radioGroup", model: { value: e.selectedValue, callback: function(i) {
1251
1251
  e.selectedValue = i;
1252
- }, expression: "selectedValue" } }, "el-radio-group", y(o({}, e.$attrs), {
1252
+ }, expression: "selectedValue" } }, "el-radio-group", y(u({}, e.$attrs), {
1253
1253
  size: e.getDefaultSize()
1254
1254
  }), !1), e.isVue2 ? e.$listeners : {}), [e.$slots.default ? [e._t("default")] : e._l(e.optionsList, function(i) {
1255
1255
  return s("el-radio-button", e._b({ key: i[e.propMap.value] }, "el-radio-button", {
@@ -1370,7 +1370,7 @@ var it = function() {
1370
1370
  "tm-checkbox--v2": e.isVue2
1371
1371
  } }, [s("el-checkbox-group", e._g(e._b({ ref: "checkboxGroup", model: { value: e.selectedValue, callback: function(i) {
1372
1372
  e.selectedValue = i;
1373
- }, expression: "selectedValue" } }, "el-checkbox-group", y(o({}, e.$attrs), {
1373
+ }, expression: "selectedValue" } }, "el-checkbox-group", y(u({}, e.$attrs), {
1374
1374
  size: e.getDefaultSize()
1375
1375
  }), !1), e.isVue2 ? e.$listeners : {}), [e.$slots.default ? [e._t("default")] : e._l(e.optionsList, function(i) {
1376
1376
  return s("el-checkbox-button", e._b({ key: i[e.propMap.value] }, "el-checkbox-button", {
@@ -1414,8 +1414,8 @@ const B = lt.exports, nt = !0, rt = {
1414
1414
  const t = (l) => {
1415
1415
  if (!l) return 0;
1416
1416
  let n = 0;
1417
- for (let u = 0; u < l.length; u++) {
1418
- const r = l.charAt(u);
1417
+ for (let o = 0; o < l.length; o++) {
1418
+ const r = l.charAt(o);
1419
1419
  n += /[\u4e00-\u9fa5]/.test(r) ? 2 : 1;
1420
1420
  }
1421
1421
  return n;
@@ -1450,7 +1450,6 @@ var ot = function() {
1450
1450
  );
1451
1451
  const N = ct.exports, dt = {
1452
1452
  name: "DynamicSlot",
1453
- functional: !0,
1454
1453
  props: {
1455
1454
  name: {
1456
1455
  type: String,
@@ -1461,20 +1460,34 @@ const N = ct.exports, dt = {
1461
1460
  default: () => ({})
1462
1461
  }
1463
1462
  },
1464
- render(t, e) {
1465
- const { props: s, parent: i } = e;
1466
- let a = i.$scopedSlots[s.name];
1467
- if (!a) {
1468
- let l = i.$parent;
1469
- for (; l && !a; ) {
1470
- if (l.$options.name === "TmTable") {
1471
- a = l.$scopedSlots[s.name];
1463
+ render(t) {
1464
+ var a;
1465
+ const e = (l) => {
1466
+ var n, o;
1467
+ if (!l) return null;
1468
+ {
1469
+ const r = (n = l.$scopedSlots) == null ? void 0 : n[this.name];
1470
+ if (r)
1471
+ return r(this.slotProps);
1472
+ const d = (o = l.$slots) == null ? void 0 : o[this.name];
1473
+ return d || null;
1474
+ }
1475
+ }, s = (l) => {
1476
+ var n;
1477
+ return l ? ((n = l.$options) == null ? void 0 : n.name) === "TmTable" : !1;
1478
+ };
1479
+ let i = e(this.$parent);
1480
+ if (!i) {
1481
+ let l = (a = this.$parent) == null ? void 0 : a.$parent;
1482
+ for (; l && !i; ) {
1483
+ if (s(l)) {
1484
+ i = e(l);
1472
1485
  break;
1473
1486
  }
1474
1487
  l = l.$parent;
1475
1488
  }
1476
1489
  }
1477
- return a ? a(s.slotProps) : t();
1490
+ return i ? Array.isArray(i) ? i.length === 1 ? i[0] : t("div", { style: { display: "contents" } }, i) : i : null;
1478
1491
  }
1479
1492
  }, ht = null, pt = null;
1480
1493
  var ft = /* @__PURE__ */ c(
@@ -1500,7 +1513,7 @@ const mt = ft.exports, { t: gt } = b(), bt = !0, yt = !1, vt = [
1500
1513
  ], Ct = {
1501
1514
  name: "TmTableSearch",
1502
1515
  components: {
1503
- TmSelect: A,
1516
+ TmSelect: R,
1504
1517
  TmAdvancedInput: E,
1505
1518
  TmAdvancedDate: P,
1506
1519
  TmCascader: I,
@@ -1559,13 +1572,13 @@ const mt = ft.exports, { t: gt } = b(), bt = !0, yt = !1, vt = [
1559
1572
  },
1560
1573
  handleUpdate(t, e, s) {
1561
1574
  const i = this.getFieldValue(t, s);
1562
- i && this.$emit("update:search-form", y(o({}, this.computedSearchForm), {
1575
+ i && this.$emit("update:search-form", y(u({}, this.computedSearchForm), {
1563
1576
  [i]: e
1564
1577
  }));
1565
1578
  },
1566
1579
  handleUpdateDate(t, e) {
1567
1580
  const s = e || [], i = this.getFieldValue(t, "start"), a = this.getFieldValue(t, "end"), l = this.getFieldValue(t, "value"), n = {};
1568
- i && (n[i] = s[0]), a && (n[a] = s[1]), l && (n[l] = s), this.$emit("update:search-form", o(o({}, this.computedSearchForm), n));
1581
+ i && (n[i] = s[0]), a && (n[a] = s[1]), l && (n[l] = s), this.$emit("update:search-form", u(u({}, this.computedSearchForm), n));
1569
1582
  },
1570
1583
  getFieldValue(t, e) {
1571
1584
  if (typeof t == "string")
@@ -1642,10 +1655,10 @@ const mt = ft.exports, { t: gt } = b(), bt = !0, yt = !1, vt = [
1642
1655
  }
1643
1656
  const a = this.getFieldDefault(e, "value");
1644
1657
  if (s && a !== void 0 && !(s in this.computedSearchForm) ? this.isDateType(e.type) && !Array.isArray(a) ? t[s] = [] : e.type === "checkbox" && !Array.isArray(a) ? t[s] = a ? [a] : [] : e.type === "switch" && typeof a != "boolean" ? t[s] = !!a : t[s] = a : s && !(s in this.computedSearchForm) && (e.type === "checkbox" ? t[s] = [] : e.type === "switch" && (t[s] = !1)), this.isDateType(e.type)) {
1645
- const l = this.getFieldValue(e, "start"), n = this.getFieldValue(e, "end"), u = this.getFieldDefault(e, "start"), r = this.getFieldDefault(e, "end");
1646
- l && u !== void 0 && !(l in this.computedSearchForm) && (t[l] = u), n && r !== void 0 && !(n in this.computedSearchForm) && (t[n] = r);
1658
+ const l = this.getFieldValue(e, "start"), n = this.getFieldValue(e, "end"), o = this.getFieldDefault(e, "start"), r = this.getFieldDefault(e, "end");
1659
+ l && o !== void 0 && !(l in this.computedSearchForm) && (t[l] = o), n && r !== void 0 && !(n in this.computedSearchForm) && (t[n] = r);
1647
1660
  }
1648
- }), this.defaultValues = t, this.$emit("update:search-form", o(o({}, t), this.computedSearchForm));
1661
+ }), this.defaultValues = t, this.$emit("update:search-form", u(u({}, t), this.computedSearchForm));
1649
1662
  },
1650
1663
  // 获取表单数据
1651
1664
  getSearchForm() {
@@ -1659,7 +1672,7 @@ const mt = ft.exports, { t: gt } = b(), bt = !0, yt = !1, vt = [
1659
1672
  },
1660
1673
  // 处理重置
1661
1674
  handleReset() {
1662
- this.$emit("update:search-form", o({}, this.defaultValues)), this.$emit("reset");
1675
+ this.$emit("update:search-form", u({}, this.defaultValues)), this.$emit("reset");
1663
1676
  }
1664
1677
  }
1665
1678
  };
@@ -1786,7 +1799,7 @@ const Mt = Dt.exports, T = (t) => t ? t.data && t.data.attrs || {} : {}, F = (t,
1786
1799
  return Promise.reject(e);
1787
1800
  }
1788
1801
  }
1789
- }, Rt = (t) => $.getTableConfig(t.key), At = (t) => $.setTableConfig(t), Ht = (t) => {
1802
+ }, At = (t) => $.getTableConfig(t.key), Rt = (t) => $.setTableConfig(t), Ht = (t) => {
1790
1803
  t && (typeof t.getTableConfig == "function" && ($.getTableConfig = t.getTableConfig), typeof t.setTableConfig == "function" && ($.setTableConfig = t.setTableConfig));
1791
1804
  }, { t: Et } = b(), Pt = !0, It = !1, Wt = {
1792
1805
  formatter: (t, e, s, i) => [void 0, null, ""].includes(s) ? "-" : s
@@ -1937,7 +1950,7 @@ const Mt = Dt.exports, T = (t) => t ? t.data && t.data.attrs || {} : {}, F = (t,
1937
1950
  const i = T(s);
1938
1951
  return !(!i.prop || this.ignoredColumnConfigTypes.includes(i.type));
1939
1952
  }).map((s, i) => {
1940
- const a = T(s), l = o(o({}, Wt), a);
1953
+ const a = T(s), l = u(u({}, Wt), a);
1941
1954
  F(s, l), a.prop && (e[a.prop] = s);
1942
1955
  const n = a.hasOwnProperty("visible") ? a.visible !== !1 : !0;
1943
1956
  return {
@@ -1952,18 +1965,18 @@ const Mt = Dt.exports, T = (t) => t ? t.data && t.data.attrs || {} : {}, F = (t,
1952
1965
  },
1953
1966
  // 加载列配置
1954
1967
  loadColumnConfig() {
1955
- Rt({
1968
+ At({
1956
1969
  key: this.computedTableKey
1957
1970
  }).then((t) => {
1958
1971
  var s;
1959
1972
  if (t.data.code !== 200) return;
1960
1973
  let e = JSON.parse(((s = t.data) == null ? void 0 : s.data) || null) || {};
1961
- e.columnsConfig && JSON.stringify(this.defaultColumnsConfig) === JSON.stringify(e.defaultColumnsConfig) ? this.tableColumns = e.columnsConfig.map((i) => o({}, i)) : this.tableColumns = this.defaultColumnsConfig.map((i) => o({}, i)), this.processedColumns = this.applyColumnConfig(this.tableColumns), this.isConfigLoaded = !0, this.$emit("complete", {
1974
+ e.columnsConfig && JSON.stringify(this.defaultColumnsConfig) === JSON.stringify(e.defaultColumnsConfig) ? this.tableColumns = e.columnsConfig.map((i) => u({}, i)) : this.tableColumns = this.defaultColumnsConfig.map((i) => u({}, i)), this.processedColumns = this.applyColumnConfig(this.tableColumns), this.isConfigLoaded = !0, this.$emit("complete", {
1962
1975
  columns: this.processedColumns,
1963
1976
  isInitialLoad: !0
1964
1977
  });
1965
1978
  }).catch(() => {
1966
- this.tableColumns = this.defaultColumnsConfig.map((t) => o({}, t)), this.processedColumns = this.applyColumnConfig(this.tableColumns), this.isConfigLoaded = !0, this.$emit("complete", {
1979
+ this.tableColumns = this.defaultColumnsConfig.map((t) => u({}, t)), this.processedColumns = this.applyColumnConfig(this.tableColumns), this.isConfigLoaded = !0, this.$emit("complete", {
1967
1980
  columns: this.processedColumns,
1968
1981
  isInitialLoad: !0
1969
1982
  });
@@ -1975,8 +1988,8 @@ const Mt = Dt.exports, T = (t) => t ? t.data && t.data.attrs || {} : {}, F = (t,
1975
1988
  return this.ignoredColumnConfigTypes.includes(l.type);
1976
1989
  }), i = [];
1977
1990
  return [...t].sort((a, l) => {
1978
- const n = a.sort !== void 0 ? a.sort : 1 / 0, u = l.sort !== void 0 ? l.sort : 1 / 0;
1979
- return n - u;
1991
+ const n = a.sort !== void 0 ? a.sort : 1 / 0, o = l.sort !== void 0 ? l.sort : 1 / 0;
1992
+ return n - o;
1980
1993
  }).forEach((a) => {
1981
1994
  if (a.prop) {
1982
1995
  let l = this.columnMap[a.prop];
@@ -2019,9 +2032,9 @@ const Mt = Dt.exports, T = (t) => t ? t.data && t.data.attrs || {} : {}, F = (t,
2019
2032
  const { target: i, related: a } = s;
2020
2033
  if (!i || !a)
2021
2034
  return !1;
2022
- const l = a ? a.getAttribute("data-prop") : null, n = l ? this.sortedTableColumns.find((h) => h.prop === l) : null, u = n && n.fixed === "left", r = n && n.fixed === "right";
2023
- return this.isDraggingFrozen && !u || this.isDraggingFrozenRight && !r || !this.isDraggingFrozen && !this.isDraggingFrozenRight && (u || r) ? (i.classList.add("no-drop-zone"), !1) : (document.querySelectorAll(".no-drop-zone").forEach((h) => {
2024
- h.classList.remove("no-drop-zone");
2035
+ const l = a ? a.getAttribute("data-prop") : null, n = l ? this.sortedTableColumns.find((d) => d.prop === l) : null, o = n && n.fixed === "left", r = n && n.fixed === "right";
2036
+ return this.isDraggingFrozen && !o || this.isDraggingFrozenRight && !r || !this.isDraggingFrozen && !this.isDraggingFrozenRight && (o || r) ? (i.classList.add("no-drop-zone"), !1) : (document.querySelectorAll(".no-drop-zone").forEach((d) => {
2037
+ d.classList.remove("no-drop-zone");
2025
2038
  }), !0);
2026
2039
  },
2027
2040
  onEnd: ({ item: s, newIndex: i, oldIndex: a }) => {
@@ -2030,9 +2043,9 @@ const Mt = Dt.exports, T = (t) => t ? t.data && t.data.attrs || {} : {}, F = (t,
2030
2043
  document.querySelectorAll(".no-drop-zone").forEach((C) => {
2031
2044
  C.classList.remove("no-drop-zone");
2032
2045
  }), s.classList.remove("sortable-drag");
2033
- const l = this.sortedTableColumns[a], n = l.fixed === "left", u = l.fixed === "right", r = i > 0 ? this.sortedTableColumns[i - 1] : null, h = i < this.sortedTableColumns.length - 1 ? this.sortedTableColumns[i + 1] : null;
2046
+ const l = this.sortedTableColumns[a], n = l.fixed === "left", o = l.fixed === "right", r = i > 0 ? this.sortedTableColumns[i - 1] : null, d = i < this.sortedTableColumns.length - 1 ? this.sortedTableColumns[i + 1] : null;
2034
2047
  let m = !1;
2035
- if (n ? (r && r.fixed !== "left" || h && h.fixed === "right") && (m = !0) : u ? (r && r.fixed !== "right" || h && h.fixed !== "right") && (m = !0) : (r && r.fixed === "right" || h && h.fixed === "left") && (m = !0), m) {
2048
+ if (n ? (r && r.fixed !== "left" || d && d.fixed === "right") && (m = !0) : o ? (r && r.fixed !== "right" || d && d.fixed !== "right") && (m = !0) : (r && r.fixed === "right" || d && d.fixed === "left") && (m = !0), m) {
2036
2049
  this.rollbackSort();
2037
2050
  return;
2038
2051
  }
@@ -2181,13 +2194,13 @@ const Mt = Dt.exports, T = (t) => t ? t.data && t.data.attrs || {} : {}, F = (t,
2181
2194
  this.updateSortValues();
2182
2195
  const t = (e = this.tableColumns) == null ? void 0 : e.map((s) => {
2183
2196
  const i = this.sortedTableColumns.find(
2184
- (u) => u.prop === s.prop
2197
+ (o) => o.prop === s.prop
2185
2198
  );
2186
2199
  i && (s.sort = i.sort, s.fixed = i.fixed, s.visible = i.visible);
2187
2200
  const n = s, { label: a } = n;
2188
2201
  return M(n, ["label"]);
2189
2202
  });
2190
- At({
2203
+ Rt({
2191
2204
  key: this.computedTableKey,
2192
2205
  info: JSON.stringify({
2193
2206
  columnsConfig: t,
@@ -2455,7 +2468,7 @@ const Jt = jt.exports, Kt = !0, Qt = !1, qt = {
2455
2468
  params: this.searchForm
2456
2469
  }), { list: e, total: s, pageSize: i, current: a } = t;
2457
2470
  this.tableData = e;
2458
- let l = o({}, this.paginationInfo);
2471
+ let l = u({}, this.paginationInfo);
2459
2472
  s !== void 0 && (l.total = s), a !== void 0 && (l.current = a), i !== void 0 && (l.pageSize = i), this.paginationInfo = l;
2460
2473
  } catch (t) {
2461
2474
  } finally {
@@ -2510,7 +2523,7 @@ var Gt = function() {
2510
2523
  return [e._t("menu-left")];
2511
2524
  }, proxy: !0 }, { key: "right", fn: function() {
2512
2525
  return [e._t("menu-right"), e.refreshButton && typeof e.data == "function" ? s("el-tooltip", e._b({ attrs: { content: e.t("refresh"), placement: "top" } }, "el-tooltip", e.afterOpenDelay, !1), [s("el-button", { attrs: { circle: "", size: e.getDefaultSize() }, on: { click: e.handleRefresh } }, [s("RefreshIcon")], 1)], 1) : e._e(), e.columnSettingButton ? s("ColumnConfig", { attrs: { maxFixedLeftQuantity: e.maxFixedLeftQuantity, maxFixedRightQuantity: e.maxFixedRightQuantity, tableKey: e.computedTableKey, columns: e.originalColumns }, on: { complete: e.handleColumnConfigComplete } }) : e._e()];
2513
- }, proxy: !0 }], null, !0) }) : e._e(), s("el-table", e._g(e._b({ directives: [{ name: "loading", rawName: "v-loading", value: e.pageLoading, expression: "pageLoading" }], key: e.tableReload, ref: "table", attrs: { data: e.tableData, height: e.tableHeight, size: e.getCompatSize("mini") }, on: { "selection-change": e.handleSelectionChange } }, "el-table", y(o({}, e.$attrs), { border: e.border }), !1), e.isVue2 ? e.$listeners : {}), e._l(e.displayColumns, function(i) {
2526
+ }, proxy: !0 }], null, !0) }) : e._e(), s("el-table", e._g(e._b({ directives: [{ name: "loading", rawName: "v-loading", value: e.pageLoading, expression: "pageLoading" }], key: e.tableReload, ref: "table", attrs: { data: e.tableData, height: e.tableHeight, size: e.getCompatSize("mini") }, on: { "selection-change": e.handleSelectionChange } }, "el-table", y(u({}, e.$attrs), { border: e.border }), !1), e.isVue2 ? e.$listeners : {}), e._l(e.displayColumns, function(i) {
2514
2527
  return s("columnRenderer", { key: e.isVue3 ? i.id : i.data.attrs.prop, attrs: { vnode: i } });
2515
2528
  }), 1), e.computedShowPagination ? s("table-pagination", { ref: "tmPagination", attrs: { "page-size": e.paginationInfo.pageSize, current: e.paginationInfo.current, total: e.paginationInfo.total, disabled: e.tableLoading }, on: { "size-change": e.handleSizeChange, "current-change": e.handleCurrentChange } }) : e._e()], 1);
2516
2529
  }, Yt = [], Xt = /* @__PURE__ */ c(
@@ -2868,7 +2881,7 @@ const K = os.exports, us = {
2868
2881
  Table: j,
2869
2882
  Column: J,
2870
2883
  Search: U,
2871
- Select: A,
2884
+ Select: R,
2872
2885
  AdvancedInput: E,
2873
2886
  AdvancedDate: P,
2874
2887
  Cascader: I,
@@ -2891,7 +2904,7 @@ export {
2891
2904
  _ as EllipsisText,
2892
2905
  W as Radio,
2893
2906
  U as Search,
2894
- A as Select,
2907
+ R as Select,
2895
2908
  N as Switch,
2896
2909
  j as Table,
2897
2910
  cs as default,