tm-table 1.2.7 → 1.2.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.
- package/README.md +9 -0
- package/dist/vue2/tm-table.css +1 -1
- package/dist/vue2/tm-table.es.js +20 -11
- package/dist/vue2/tm-table.umd.js +1 -1
- package/dist/vue3/tm-table.css +1 -1
- package/dist/vue3/tm-table.es.js +65 -56
- package/dist/vue3/tm-table.umd.js +1 -1
- package/package.json +1 -1
package/dist/vue3/tm-table.es.js
CHANGED
|
@@ -19,7 +19,7 @@ var ue = (e, i) => {
|
|
|
19
19
|
i.indexOf(a) < 0 && re.call(e, a) && (t[a] = e[a]);
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
|
-
import { ref as Ie, createElementBlock as y, openBlock as r, normalizeStyle as B, createElementVNode as v, h as ve, resolveComponent as u, createBlock as m, mergeProps as _, withCtx as p, toDisplayString as T, normalizeClass as Z, createCommentVNode as C, defineComponent as Ee, useAttrs as We, useSlots as Ne, computed as de, resolveDynamicComponent as Pe, Fragment as
|
|
22
|
+
import { ref as Ie, createElementBlock as y, openBlock as r, normalizeStyle as B, createElementVNode as v, h as ve, resolveComponent as u, createBlock as m, mergeProps as _, withCtx as p, toDisplayString as T, normalizeClass as Z, createCommentVNode as C, defineComponent as Ee, useAttrs as We, useSlots as Ne, computed as de, resolveDynamicComponent as Pe, Fragment as k, renderList as A, createVNode as g, renderSlot as S, toHandlers as M, createTextVNode as z, withKeys as Be, createSlots as Ce, resolveDirective as Ue, withDirectives as je, normalizeProps as Je, guardReactiveProps as Ke } from "vue";
|
|
23
23
|
import { CircleClose as Qe } from "@element-plus/icons-vue";
|
|
24
24
|
import R from "sortablejs";
|
|
25
25
|
const he = {
|
|
@@ -27,7 +27,7 @@ const he = {
|
|
|
27
27
|
small: "small",
|
|
28
28
|
default: "default",
|
|
29
29
|
large: "large"
|
|
30
|
-
}, Q = (e) => he[e] || he.default,
|
|
30
|
+
}, Q = (e) => he[e] || he.default, L = () => "default", qe = {
|
|
31
31
|
today: "今天",
|
|
32
32
|
yesterday: "昨天",
|
|
33
33
|
last7days: "最近7天",
|
|
@@ -239,7 +239,11 @@ const ot = D.more, rt = D["fixed-left"], ut = D["fixed-right"], dt = D.upload, h
|
|
|
239
239
|
isVue3: pt,
|
|
240
240
|
isOverflow: !1,
|
|
241
241
|
currentLines: 1,
|
|
242
|
-
resizeObserver: null
|
|
242
|
+
resizeObserver: null,
|
|
243
|
+
checkingOverflow: !1,
|
|
244
|
+
// 防止并发检查
|
|
245
|
+
checkRetryCount: 0
|
|
246
|
+
// 防止无限递归
|
|
243
247
|
};
|
|
244
248
|
},
|
|
245
249
|
computed: {
|
|
@@ -271,16 +275,16 @@ const ot = D.more, rt = D["fixed-left"], ut = D["fixed-right"], dt = D.upload, h
|
|
|
271
275
|
},
|
|
272
276
|
watch: {
|
|
273
277
|
text() {
|
|
274
|
-
this.$nextTick(this.checkOverflow);
|
|
278
|
+
this.checkRetryCount = 0, this.$nextTick(this.checkOverflow);
|
|
275
279
|
}
|
|
276
280
|
},
|
|
277
281
|
methods: {
|
|
278
282
|
checkOverflow() {
|
|
279
|
-
this.$refs.textEl
|
|
283
|
+
!this.$refs.textEl || this.checkingOverflow || (this.checkingOverflow = !0, this.$nextTick(() => {
|
|
280
284
|
this.$nextTick(() => {
|
|
281
|
-
this.performOverflowCheck();
|
|
285
|
+
this.performOverflowCheck(), this.checkingOverflow = !1;
|
|
282
286
|
});
|
|
283
|
-
});
|
|
287
|
+
}));
|
|
284
288
|
},
|
|
285
289
|
performOverflowCheck() {
|
|
286
290
|
var f;
|
|
@@ -288,11 +292,12 @@ const ot = D.more, rt = D["fixed-left"], ut = D["fixed-right"], dt = D.upload, h
|
|
|
288
292
|
if (!e) return;
|
|
289
293
|
const i = getComputedStyle(e);
|
|
290
294
|
if (!i.width || i.width === "0px") {
|
|
291
|
-
this.$nextTick(() => {
|
|
295
|
+
this.checkRetryCount < 5 ? (this.checkRetryCount++, this.$nextTick(() => {
|
|
292
296
|
this.performOverflowCheck();
|
|
293
|
-
});
|
|
297
|
+
})) : (this.isOverflow = !1, this.currentLines = 1, this.checkRetryCount = 0);
|
|
294
298
|
return;
|
|
295
299
|
}
|
|
300
|
+
this.checkRetryCount = 0;
|
|
296
301
|
const t = e.scrollHeight, a = e.scrollWidth, l = e.clientHeight, n = e.clientWidth, o = 1, d = t > l + o, c = a > n + o;
|
|
297
302
|
if (d || c) {
|
|
298
303
|
this.isOverflow = !0;
|
|
@@ -383,7 +388,7 @@ function bt(e, i, t, a, l, n) {
|
|
|
383
388
|
_: 1
|
|
384
389
|
}, 16, ["disabled", "content"]);
|
|
385
390
|
}
|
|
386
|
-
const ee = /* @__PURE__ */ w(mt, [["render", bt], ["__scopeId", "data-v-
|
|
391
|
+
const ee = /* @__PURE__ */ w(mt, [["render", bt], ["__scopeId", "data-v-a18ee09f"]]);
|
|
387
392
|
var yt = Object.defineProperty, vt = Object.defineProperties, Ct = Object.getOwnPropertyDescriptors, ce = Object.getOwnPropertySymbols, _t = Object.prototype.hasOwnProperty, St = Object.prototype.propertyIsEnumerable, fe = (e, i, t) => i in e ? yt(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, pe = (e, i) => {
|
|
388
393
|
for (var t in i || (i = {}))
|
|
389
394
|
_t.call(i, t) && fe(e, t, i[t]);
|
|
@@ -464,7 +469,7 @@ const xt = {
|
|
|
464
469
|
t: H().t,
|
|
465
470
|
isVue2: wt,
|
|
466
471
|
isVue3: Vt,
|
|
467
|
-
getDefaultSize:
|
|
472
|
+
getDefaultSize: L
|
|
468
473
|
};
|
|
469
474
|
},
|
|
470
475
|
computed: {
|
|
@@ -526,11 +531,11 @@ const xt = {
|
|
|
526
531
|
}, zt = {
|
|
527
532
|
key: 0,
|
|
528
533
|
class: "label-text"
|
|
529
|
-
},
|
|
534
|
+
}, kt = {
|
|
530
535
|
key: 1,
|
|
531
536
|
class: "label-render"
|
|
532
537
|
};
|
|
533
|
-
function
|
|
538
|
+
function Lt(e, i, t, a, l, n) {
|
|
534
539
|
const o = u("el-option"), d = u("el-select"), c = u("EllipsisText"), f = u("RenderComponent");
|
|
535
540
|
return r(), y("div", {
|
|
536
541
|
class: Z(["form-item-layout", {
|
|
@@ -554,14 +559,14 @@ function kt(e, i, t, a, l, n) {
|
|
|
554
559
|
onChange: n.handleFieldChange
|
|
555
560
|
}, {
|
|
556
561
|
default: p(() => [
|
|
557
|
-
(r(!0), y(
|
|
562
|
+
(r(!0), y(k, null, A(t.labelOptions, (b) => (r(), m(o, {
|
|
558
563
|
key: b.value,
|
|
559
564
|
label: b.label,
|
|
560
565
|
value: b.value
|
|
561
566
|
}, null, 8, ["label", "value"]))), 128))
|
|
562
567
|
]),
|
|
563
568
|
_: 1
|
|
564
|
-
}, 8, ["modelValue", "placeholder", "size", "onChange"])) : t.label ? (r(), y(
|
|
569
|
+
}, 8, ["modelValue", "placeholder", "size", "onChange"])) : t.label ? (r(), y(k, { key: 1 }, [
|
|
565
570
|
typeof t.label == "string" ? (r(), y("div", zt, [
|
|
566
571
|
g(c, {
|
|
567
572
|
text: t.label,
|
|
@@ -569,7 +574,7 @@ function kt(e, i, t, a, l, n) {
|
|
|
569
574
|
width: t.labelWidth - 4,
|
|
570
575
|
"text-align": t.labelAlign
|
|
571
576
|
}, null, 8, ["text", "width", "text-align"])
|
|
572
|
-
])) : typeof t.label == "function" ? (r(), y("div",
|
|
577
|
+
])) : typeof t.label == "function" ? (r(), y("div", kt, [
|
|
573
578
|
g(f, { "render-fn": t.label }, null, 8, ["render-fn"])
|
|
574
579
|
])) : C("", !0)
|
|
575
580
|
], 64)) : C("", !0)
|
|
@@ -582,7 +587,7 @@ function kt(e, i, t, a, l, n) {
|
|
|
582
587
|
], 4)
|
|
583
588
|
], 6);
|
|
584
589
|
}
|
|
585
|
-
const E = /* @__PURE__ */ w(Ft, [["render",
|
|
590
|
+
const E = /* @__PURE__ */ w(Ft, [["render", Lt], ["__scopeId", "data-v-f423d1ed"]]), Ot = !1, At = !0, Y = "modelValue", Dt = "update:modelValue", Mt = {
|
|
586
591
|
name: "TmSelectFilter",
|
|
587
592
|
components: {
|
|
588
593
|
FormItemLayout: E
|
|
@@ -668,7 +673,7 @@ const E = /* @__PURE__ */ w(Ft, [["render", kt], ["__scopeId", "data-v-57462da5"
|
|
|
668
673
|
t: H().t,
|
|
669
674
|
isVue2: Ot,
|
|
670
675
|
isVue3: At,
|
|
671
|
-
getDefaultSize:
|
|
676
|
+
getDefaultSize: L,
|
|
672
677
|
optionsList: [],
|
|
673
678
|
loading: !1,
|
|
674
679
|
indeterminate: !1,
|
|
@@ -800,7 +805,7 @@ function Rt(e, i, t, a, l, n) {
|
|
|
800
805
|
_: 1
|
|
801
806
|
}, 8, ["modelValue", "indeterminate", "size", "onChange"])
|
|
802
807
|
])) : C("", !0),
|
|
803
|
-
(r(!0), y(
|
|
808
|
+
(r(!0), y(k, null, A(l.optionsList, (b) => (r(), m(d, {
|
|
804
809
|
key: b[n.propMap.value],
|
|
805
810
|
label: b[n.propMap.label],
|
|
806
811
|
value: b[n.propMap.value],
|
|
@@ -874,7 +879,7 @@ const Se = /* @__PURE__ */ w(Mt, [["render", Rt], ["__scopeId", "data-v-ef8f7987
|
|
|
874
879
|
data() {
|
|
875
880
|
return {
|
|
876
881
|
t: H().t,
|
|
877
|
-
getDefaultSize:
|
|
882
|
+
getDefaultSize: L,
|
|
878
883
|
getCompatSize: Q,
|
|
879
884
|
exactValue: "",
|
|
880
885
|
inputValue: "",
|
|
@@ -1328,7 +1333,7 @@ const xe = /* @__PURE__ */ w(It, [["render", Pt], ["__scopeId", "data-v-90ce9bc0
|
|
|
1328
1333
|
t: F,
|
|
1329
1334
|
isVue2: Bt,
|
|
1330
1335
|
isVue3: Ut,
|
|
1331
|
-
getDefaultSize:
|
|
1336
|
+
getDefaultSize: L,
|
|
1332
1337
|
valueField: jt
|
|
1333
1338
|
};
|
|
1334
1339
|
},
|
|
@@ -1464,7 +1469,7 @@ const Te = /* @__PURE__ */ w(Jt, [["render", Kt], ["__scopeId", "data-v-cd8a2978
|
|
|
1464
1469
|
data() {
|
|
1465
1470
|
return {
|
|
1466
1471
|
isVue2: Qt,
|
|
1467
|
-
getDefaultSize:
|
|
1472
|
+
getDefaultSize: L,
|
|
1468
1473
|
selectedValue: this.value,
|
|
1469
1474
|
optionsList: [],
|
|
1470
1475
|
loading: !1
|
|
@@ -1616,7 +1621,7 @@ const we = /* @__PURE__ */ w(qt, [["render", Gt], ["__scopeId", "data-v-7c915d17
|
|
|
1616
1621
|
return {
|
|
1617
1622
|
isVue2: Xt,
|
|
1618
1623
|
isVue3: Zt,
|
|
1619
|
-
getDefaultSize:
|
|
1624
|
+
getDefaultSize: L,
|
|
1620
1625
|
selectedValue: this.value,
|
|
1621
1626
|
optionsList: [],
|
|
1622
1627
|
loading: !1
|
|
@@ -1681,7 +1686,7 @@ function ei(e, i, t, a, l, n) {
|
|
|
1681
1686
|
size: l.getDefaultSize()
|
|
1682
1687
|
}), { class: "radio-group" }, M(l.isVue2 ? e.$listeners : {})), {
|
|
1683
1688
|
default: p(() => [
|
|
1684
|
-
e.$slots.default ? S(e.$slots, "default", { key: 0 }, void 0, !0) : (r(!0), y(
|
|
1689
|
+
e.$slots.default ? S(e.$slots, "default", { key: 0 }, void 0, !0) : (r(!0), y(k, { key: 1 }, A(l.optionsList, (f) => (r(), m(o, _({ ref_for: !0 }, {
|
|
1685
1690
|
[l.isVue3 ? "value" : "label"]: f[n.propMap.value],
|
|
1686
1691
|
disabled: f.disabled
|
|
1687
1692
|
}, {
|
|
@@ -1755,7 +1760,7 @@ const Ve = /* @__PURE__ */ w($t, [["render", ei], ["__scopeId", "data-v-210a44fd
|
|
|
1755
1760
|
return {
|
|
1756
1761
|
isVue2: ti,
|
|
1757
1762
|
isVue3: ii,
|
|
1758
|
-
getDefaultSize:
|
|
1763
|
+
getDefaultSize: L,
|
|
1759
1764
|
selectedValue: this.value || [],
|
|
1760
1765
|
optionsList: [],
|
|
1761
1766
|
loading: !1
|
|
@@ -1821,7 +1826,7 @@ function ai(e, i, t, a, l, n) {
|
|
|
1821
1826
|
size: l.getDefaultSize()
|
|
1822
1827
|
}), M(l.isVue2 ? e.$listeners : {})), {
|
|
1823
1828
|
default: p(() => [
|
|
1824
|
-
e.$slots.default ? S(e.$slots, "default", { key: 0 }, void 0, !0) : (r(!0), y(
|
|
1829
|
+
e.$slots.default ? S(e.$slots, "default", { key: 0 }, void 0, !0) : (r(!0), y(k, { key: 1 }, A(l.optionsList, (f) => (r(), m(o, _({
|
|
1825
1830
|
key: f[n.propMap.value]
|
|
1826
1831
|
}, { ref_for: !0 }, {
|
|
1827
1832
|
[l.isVue3 ? "value" : "label"]: f[n.propMap.value],
|
|
@@ -1879,7 +1884,7 @@ const Fe = /* @__PURE__ */ w(li, [["render", ai], ["__scopeId", "data-v-39ef0641
|
|
|
1879
1884
|
data() {
|
|
1880
1885
|
return {
|
|
1881
1886
|
isVue2: si,
|
|
1882
|
-
getDefaultSize:
|
|
1887
|
+
getDefaultSize: L,
|
|
1883
1888
|
switchValue: this.value
|
|
1884
1889
|
};
|
|
1885
1890
|
},
|
|
@@ -2014,7 +2019,7 @@ const ze = /* @__PURE__ */ w(oi, [["render", ui], ["__scopeId", "data-v-7455db21
|
|
|
2014
2019
|
return {
|
|
2015
2020
|
isVue2: di,
|
|
2016
2021
|
isVue3: hi,
|
|
2017
|
-
getDefaultSize:
|
|
2022
|
+
getDefaultSize: L,
|
|
2018
2023
|
inputValue: this.value
|
|
2019
2024
|
};
|
|
2020
2025
|
},
|
|
@@ -2118,7 +2123,7 @@ function pi(e, i, t, a, l, n) {
|
|
|
2118
2123
|
_: 1
|
|
2119
2124
|
}, 8, ["label", "label-options", "field", "onFieldChange", "label-width", "input-width", "direction", "label-align"]);
|
|
2120
2125
|
}
|
|
2121
|
-
const
|
|
2126
|
+
const ke = /* @__PURE__ */ w(ci, [["render", pi], ["__scopeId", "data-v-9b0ae8e6"]]), mi = {
|
|
2122
2127
|
name: "DynamicSlot",
|
|
2123
2128
|
props: {
|
|
2124
2129
|
name: {
|
|
@@ -2174,7 +2179,7 @@ const Le = /* @__PURE__ */ w(ci, [["render", pi], ["__scopeId", "data-v-9b0ae8e6
|
|
|
2174
2179
|
TmRadio: Ve,
|
|
2175
2180
|
TmCheckbox: Fe,
|
|
2176
2181
|
TmSwitch: ze,
|
|
2177
|
-
TmTextarea:
|
|
2182
|
+
TmTextarea: ke,
|
|
2178
2183
|
DynamicSlot: mi
|
|
2179
2184
|
},
|
|
2180
2185
|
props: {
|
|
@@ -2216,7 +2221,7 @@ const Le = /* @__PURE__ */ w(ci, [["render", pi], ["__scopeId", "data-v-9b0ae8e6
|
|
|
2216
2221
|
isVue2: bi,
|
|
2217
2222
|
isVue3: yi,
|
|
2218
2223
|
getCompatSize: Q,
|
|
2219
|
-
getDefaultSize:
|
|
2224
|
+
getDefaultSize: L,
|
|
2220
2225
|
DATE_TYPES: vi,
|
|
2221
2226
|
// 用于存储初始默认值,重置时恢复
|
|
2222
2227
|
defaultValues: {}
|
|
@@ -2363,7 +2368,7 @@ function xi(e, i, t, a, l, n) {
|
|
|
2363
2368
|
class: Z(["table-search", `table-search--${l.isVue2 ? "v2" : "v3"}`])
|
|
2364
2369
|
}, [
|
|
2365
2370
|
v("div", _i, [
|
|
2366
|
-
n.hasDefaultSlot() ? S(e.$slots, "default", { key: 0 }, void 0, !0) : t.searchColumns && t.searchColumns.length ? (r(!0), y(
|
|
2371
|
+
n.hasDefaultSlot() ? S(e.$slots, "default", { key: 0 }, void 0, !0) : t.searchColumns && t.searchColumns.length ? (r(!0), y(k, { key: 1 }, A(t.searchColumns, (s, N) => (r(), y(k, null, [
|
|
2367
2372
|
typeof s == "string" ? (r(), y("div", {
|
|
2368
2373
|
key: `str-${s}-${N}`,
|
|
2369
2374
|
class: "search-item"
|
|
@@ -2377,7 +2382,7 @@ function xi(e, i, t, a, l, n) {
|
|
|
2377
2382
|
key: `obj-${N}`,
|
|
2378
2383
|
class: "search-item"
|
|
2379
2384
|
}, [
|
|
2380
|
-
s.fields ? (r(), y(
|
|
2385
|
+
s.fields ? (r(), y(k, { key: 0 }, [
|
|
2381
2386
|
n.hasSearchSlot(`search-${n.getFieldValue(s, "value")}`) ? (r(), m(o, {
|
|
2382
2387
|
name: `search-${n.getFieldValue(s, "value")}`,
|
|
2383
2388
|
"slot-props": { searchForm: t.searchForm, col: s },
|
|
@@ -2528,7 +2533,7 @@ function xi(e, i, t, a, l, n) {
|
|
|
2528
2533
|
])
|
|
2529
2534
|
], 2);
|
|
2530
2535
|
}
|
|
2531
|
-
const
|
|
2536
|
+
const Le = /* @__PURE__ */ w(Ci, [["render", xi], ["__scopeId", "data-v-8cd0172a"]]), Ti = !1, wi = {
|
|
2532
2537
|
name: "TablePagination",
|
|
2533
2538
|
props: {
|
|
2534
2539
|
current: {
|
|
@@ -2584,7 +2589,7 @@ function Fi(e, i, t, a, l, n) {
|
|
|
2584
2589
|
}), null, 16, ["current-page", "page-size", "total", "size", "onSizeChange", "onCurrentChange"])
|
|
2585
2590
|
]);
|
|
2586
2591
|
}
|
|
2587
|
-
const zi = /* @__PURE__ */ w(wi, [["render", Fi], ["__scopeId", "data-v-ee768f31"]]),
|
|
2592
|
+
const zi = /* @__PURE__ */ w(wi, [["render", Fi], ["__scopeId", "data-v-ee768f31"]]), ki = {
|
|
2588
2593
|
name: "TmTableMenu",
|
|
2589
2594
|
props: {
|
|
2590
2595
|
size: {
|
|
@@ -2592,13 +2597,13 @@ const zi = /* @__PURE__ */ w(wi, [["render", Fi], ["__scopeId", "data-v-ee768f31
|
|
|
2592
2597
|
default: "mini"
|
|
2593
2598
|
}
|
|
2594
2599
|
}
|
|
2595
|
-
},
|
|
2600
|
+
}, Li = {
|
|
2596
2601
|
size: "small",
|
|
2597
2602
|
class: "tm-table-menu",
|
|
2598
2603
|
inline: ""
|
|
2599
2604
|
}, Oi = { class: "left" }, Ai = { class: "right" };
|
|
2600
2605
|
function Di(e, i, t, a, l, n) {
|
|
2601
|
-
return r(), y("div",
|
|
2606
|
+
return r(), y("div", Li, [
|
|
2602
2607
|
v("div", Oi, [
|
|
2603
2608
|
S(e.$slots, "left", {}, void 0, !0)
|
|
2604
2609
|
]),
|
|
@@ -2607,7 +2612,7 @@ function Di(e, i, t, a, l, n) {
|
|
|
2607
2612
|
])
|
|
2608
2613
|
]);
|
|
2609
2614
|
}
|
|
2610
|
-
const Mi = /* @__PURE__ */ w(
|
|
2615
|
+
const Mi = /* @__PURE__ */ w(ki, [["render", Di], ["__scopeId", "data-v-579dd2c3"]]), G = (e) => e ? e.props || {} : {}, le = (e, i) => {
|
|
2611
2616
|
e && (e.props || (e.props = {}), typeof i == "object" && Object.assign(e.props, i));
|
|
2612
2617
|
}, X = {
|
|
2613
2618
|
// 默认实现:使用localStorage获取配置
|
|
@@ -2691,7 +2696,7 @@ const Mi = /* @__PURE__ */ w(Li, [["render", Di], ["__scopeId", "data-v-579dd2c3
|
|
|
2691
2696
|
t: Ei,
|
|
2692
2697
|
isVue2: Wi,
|
|
2693
2698
|
isVue3: Ni,
|
|
2694
|
-
getDefaultSize:
|
|
2699
|
+
getDefaultSize: L,
|
|
2695
2700
|
getCompatSize: Q,
|
|
2696
2701
|
buttonType: { link: !0, type: "primary" },
|
|
2697
2702
|
afterOpenDelay: { "show-after": 300 },
|
|
@@ -3136,7 +3141,7 @@ function ol(e, i, t, a, l, n) {
|
|
|
3136
3141
|
]),
|
|
3137
3142
|
v("div", Qi, [
|
|
3138
3143
|
v("div", qi, [
|
|
3139
|
-
(r(!0), y(
|
|
3144
|
+
(r(!0), y(k, null, A(l.tableColumns, (h, P) => (r(), y(k, null, [
|
|
3140
3145
|
h.prop ? (r(), y("div", {
|
|
3141
3146
|
style: { width: "110px", display: "inline-block" },
|
|
3142
3147
|
key: P + h.prop
|
|
@@ -3175,7 +3180,7 @@ function ol(e, i, t, a, l, n) {
|
|
|
3175
3180
|
]),
|
|
3176
3181
|
n.showFixedLimitTips ? (r(), y("div", Xi)) : C("", !0),
|
|
3177
3182
|
v("div", Zi, [
|
|
3178
|
-
(r(!0), y(
|
|
3183
|
+
(r(!0), y(k, null, A(n.filteredSortedTableColumns, (h, P) => (r(), y("div", {
|
|
3179
3184
|
class: Z(["sort-item-wrapper", [
|
|
3180
3185
|
h.fixed === "left" ? "frozen" : "",
|
|
3181
3186
|
h.fixed === "right" ? "frozenRight" : "",
|
|
@@ -3340,7 +3345,7 @@ function K(e) {
|
|
|
3340
3345
|
const ul = {
|
|
3341
3346
|
name: "TmTable",
|
|
3342
3347
|
components: {
|
|
3343
|
-
TableSearch:
|
|
3348
|
+
TableSearch: Le,
|
|
3344
3349
|
TablePagination: zi,
|
|
3345
3350
|
TableMenu: Mi,
|
|
3346
3351
|
ColumnConfig: rl,
|
|
@@ -3453,7 +3458,7 @@ const ul = {
|
|
|
3453
3458
|
},
|
|
3454
3459
|
data() {
|
|
3455
3460
|
return {
|
|
3456
|
-
getDefaultSize:
|
|
3461
|
+
getDefaultSize: L,
|
|
3457
3462
|
getCompatSize: Q,
|
|
3458
3463
|
isVue3: ye,
|
|
3459
3464
|
isVue2: be,
|
|
@@ -3663,6 +3668,10 @@ const ul = {
|
|
|
3663
3668
|
// 重新加载表格
|
|
3664
3669
|
reloadTable() {
|
|
3665
3670
|
this.tableReload++;
|
|
3671
|
+
},
|
|
3672
|
+
// 获取 el-table 实例,用于调用 el-table 的所有方法
|
|
3673
|
+
getTableRef() {
|
|
3674
|
+
return this.$refs.table;
|
|
3666
3675
|
}
|
|
3667
3676
|
}
|
|
3668
3677
|
}, dl = {
|
|
@@ -3737,7 +3746,7 @@ function hl(e, i, t, a, l, n) {
|
|
|
3737
3746
|
key: l.tableReload
|
|
3738
3747
|
}), {
|
|
3739
3748
|
default: p(() => [
|
|
3740
|
-
(r(!0), y(
|
|
3749
|
+
(r(!0), y(k, null, A(l.displayColumns, (s) => (r(), m(O, {
|
|
3741
3750
|
vnode: s,
|
|
3742
3751
|
key: `${l.isVue3 ? s.id : s.data.attrs.prop}-${l.slotsUpdateTrigger}`
|
|
3743
3752
|
}, null, 8, ["vnode"]))), 128))
|
|
@@ -3765,7 +3774,7 @@ function hl(e, i, t, a, l, n) {
|
|
|
3765
3774
|
S(e.$slots, "after-pagination", {}, void 0, !0)
|
|
3766
3775
|
], 512);
|
|
3767
3776
|
}
|
|
3768
|
-
const Oe = /* @__PURE__ */ w(ul, [["render", hl], ["__scopeId", "data-v-
|
|
3777
|
+
const Oe = /* @__PURE__ */ w(ul, [["render", hl], ["__scopeId", "data-v-70e1ea9a"]]), cl = !1, fl = !0, pl = {
|
|
3769
3778
|
name: "TmTableColumn",
|
|
3770
3779
|
inheritAttrs: !1,
|
|
3771
3780
|
computed: {
|
|
@@ -4116,7 +4125,7 @@ function zl(e, i, t, a, l, n) {
|
|
|
4116
4125
|
}, { placement: "top" }), {
|
|
4117
4126
|
default: p(() => [
|
|
4118
4127
|
v("div", bl, [
|
|
4119
|
-
(r(!0), y(
|
|
4128
|
+
(r(!0), y(k, null, A(l.frontLines, (c, f) => (r(), y("div", {
|
|
4120
4129
|
key: "front-" + f,
|
|
4121
4130
|
class: "tm-ellipsis-line",
|
|
4122
4131
|
innerHTML: c
|
|
@@ -4139,7 +4148,7 @@ function zl(e, i, t, a, l, n) {
|
|
|
4139
4148
|
]),
|
|
4140
4149
|
_: 3
|
|
4141
4150
|
}, 16, ["content", "disabled"])) : (r(), y("div", Sl, [
|
|
4142
|
-
(r(!0), y(
|
|
4151
|
+
(r(!0), y(k, null, A(l.frontLines, (c, f) => (r(), y("div", {
|
|
4143
4152
|
key: "front-" + f,
|
|
4144
4153
|
class: "tm-ellipsis-line",
|
|
4145
4154
|
innerHTML: c
|
|
@@ -4162,15 +4171,15 @@ function zl(e, i, t, a, l, n) {
|
|
|
4162
4171
|
v("div", Fl, null, 512)
|
|
4163
4172
|
], 36);
|
|
4164
4173
|
}
|
|
4165
|
-
const De = /* @__PURE__ */ w(gl, [["render", zl], ["__scopeId", "data-v-14f27c2e"]]),
|
|
4174
|
+
const De = /* @__PURE__ */ w(gl, [["render", zl], ["__scopeId", "data-v-14f27c2e"]]), kl = {
|
|
4166
4175
|
install(e, i = {}) {
|
|
4167
4176
|
[Oe, Ae, ee, De].forEach((t) => e.component(t.name, t)), i.tableConfigProvider && Ii(i.tableConfigProvider), i.lang && ae(i.lang || "zh-CN");
|
|
4168
4177
|
}
|
|
4169
|
-
},
|
|
4170
|
-
install:
|
|
4178
|
+
}, Ll = {
|
|
4179
|
+
install: kl.install,
|
|
4171
4180
|
Table: Oe,
|
|
4172
4181
|
Column: Ae,
|
|
4173
|
-
Search:
|
|
4182
|
+
Search: Le,
|
|
4174
4183
|
Select: Se,
|
|
4175
4184
|
Input: xe,
|
|
4176
4185
|
Date: Te,
|
|
@@ -4178,13 +4187,13 @@ const De = /* @__PURE__ */ w(gl, [["render", zl], ["__scopeId", "data-v-14f27c2e
|
|
|
4178
4187
|
Radio: Ve,
|
|
4179
4188
|
Checkbox: Fe,
|
|
4180
4189
|
Switch: ze,
|
|
4181
|
-
Textarea:
|
|
4190
|
+
Textarea: ke,
|
|
4182
4191
|
EllipsisText: ee,
|
|
4183
4192
|
AdvancedEllipsisText: De,
|
|
4184
4193
|
setLang: ae,
|
|
4185
4194
|
useLocale: H
|
|
4186
4195
|
};
|
|
4187
|
-
typeof window != "undefined" && window.Vue &&
|
|
4196
|
+
typeof window != "undefined" && window.Vue && Ll.install(window.Vue);
|
|
4188
4197
|
export {
|
|
4189
4198
|
De as AdvancedEllipsisText,
|
|
4190
4199
|
we as Cascader,
|
|
@@ -4194,12 +4203,12 @@ export {
|
|
|
4194
4203
|
ee as EllipsisText,
|
|
4195
4204
|
xe as Input,
|
|
4196
4205
|
Ve as Radio,
|
|
4197
|
-
|
|
4206
|
+
Le as Search,
|
|
4198
4207
|
Se as Select,
|
|
4199
4208
|
ze as Switch,
|
|
4200
4209
|
Oe as Table,
|
|
4201
|
-
|
|
4202
|
-
|
|
4210
|
+
ke as Textarea,
|
|
4211
|
+
Ll as default,
|
|
4203
4212
|
ae as setLang,
|
|
4204
4213
|
H as useLocale
|
|
4205
4214
|
};
|