@element-plus/nightly 0.0.20241109 → 0.0.20241111
Sign up to get free protection for your applications and to get access to all the features.
- package/attributes.json +1 -1
- package/dist/index.full.js +79 -18
- package/dist/index.full.min.js +17 -17
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +17 -17
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +79 -18
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +1 -1
- package/es/components/roving-focus-group/index.mjs +3 -3
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
- package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
- package/es/components/select/src/select.d.ts +2 -0
- package/es/components/select/src/select.mjs +8 -0
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +6 -0
- package/es/components/select/src/select2.mjs +3 -1
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select-v2/src/defaults.d.ts +2 -0
- package/es/components/select-v2/src/defaults.mjs +8 -0
- package/es/components/select-v2/src/defaults.mjs.map +1 -1
- package/es/components/select-v2/src/select.mjs +3 -1
- package/es/components/select-v2/src/select.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +6 -0
- package/es/components/table/src/store/watcher.mjs +10 -1
- package/es/components/table/src/store/watcher.mjs.map +1 -1
- package/es/components/table/src/table-header/index.d.ts +4 -0
- package/es/components/table/src/table-header/index.mjs +32 -3
- package/es/components/table/src/table-header/index.mjs.map +1 -1
- package/es/components/table/src/util.d.ts +2 -0
- package/es/components/table/src/util.mjs +14 -11
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown2.js +1 -1
- package/lib/components/roving-focus-group/index.js +2 -2
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
- package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
- package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
- package/lib/components/select/src/select.d.ts +2 -0
- package/lib/components/select/src/select.js +8 -0
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +6 -0
- package/lib/components/select/src/select2.js +3 -1
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select-v2/src/defaults.d.ts +2 -0
- package/lib/components/select-v2/src/defaults.js +8 -0
- package/lib/components/select-v2/src/defaults.js.map +1 -1
- package/lib/components/select-v2/src/select.js +3 -1
- package/lib/components/select-v2/src/select.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +6 -0
- package/lib/components/table/src/store/watcher.js +10 -1
- package/lib/components/table/src/store/watcher.js.map +1 -1
- package/lib/components/table/src/table-header/index.d.ts +4 -0
- package/lib/components/table/src/table-header/index.js +32 -3
- package/lib/components/table/src/table-header/index.js.map +1 -1
- package/lib/components/table/src/util.d.ts +2 -0
- package/lib/components/table/src/util.js +13 -10
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/web-types.json +1 -1
package/dist/index.full.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Element Plus v0.0.
|
1
|
+
/*! Element Plus v0.0.20241111 */
|
2
2
|
|
3
3
|
(function (global, factory) {
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
@@ -11568,7 +11568,7 @@
|
|
11568
11568
|
|
11569
11569
|
const ElConfigProvider = withInstall(ConfigProvider);
|
11570
11570
|
|
11571
|
-
const version$1 = "0.0.
|
11571
|
+
const version$1 = "0.0.20241111";
|
11572
11572
|
|
11573
11573
|
const makeInstaller = (components = []) => {
|
11574
11574
|
const install = (app, options) => {
|
@@ -35711,6 +35711,14 @@
|
|
35711
35711
|
default: true
|
35712
35712
|
},
|
35713
35713
|
remoteShowSuffix: Boolean,
|
35714
|
+
showArrow: {
|
35715
|
+
type: Boolean,
|
35716
|
+
default: true
|
35717
|
+
},
|
35718
|
+
offset: {
|
35719
|
+
type: Number,
|
35720
|
+
default: 12
|
35721
|
+
},
|
35714
35722
|
placement: {
|
35715
35723
|
type: definePropType(String),
|
35716
35724
|
values: Ee,
|
@@ -35817,6 +35825,8 @@
|
|
35817
35825
|
"gpu-acceleration": false,
|
35818
35826
|
persistent: _ctx.persistent,
|
35819
35827
|
"append-to": _ctx.appendTo,
|
35828
|
+
"show-arrow": _ctx.showArrow,
|
35829
|
+
offset: _ctx.offset,
|
35820
35830
|
onBeforeShow: _ctx.handleMenuEnter,
|
35821
35831
|
onHide: ($event) => _ctx.states.isBeforeHide = false
|
35822
35832
|
}, {
|
@@ -36122,7 +36132,7 @@
|
|
36122
36132
|
}, 512)
|
36123
36133
|
]),
|
36124
36134
|
_: 3
|
36125
|
-
}, 8, ["visible", "placement", "teleported", "popper-class", "popper-options", "fallback-placements", "effect", "transition", "persistent", "append-to", "onBeforeShow", "onHide"])
|
36135
|
+
}, 8, ["visible", "placement", "teleported", "popper-class", "popper-options", "fallback-placements", "effect", "transition", "persistent", "append-to", "show-arrow", "offset", "onBeforeShow", "onHide"])
|
36126
36136
|
], 16, ["onMouseleave"])), [
|
36127
36137
|
[_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
|
36128
36138
|
]);
|
@@ -39856,6 +39866,14 @@
|
|
39856
39866
|
type: Boolean,
|
39857
39867
|
default: true
|
39858
39868
|
},
|
39869
|
+
offset: {
|
39870
|
+
type: Number,
|
39871
|
+
default: 12
|
39872
|
+
},
|
39873
|
+
showArrow: {
|
39874
|
+
type: Boolean,
|
39875
|
+
default: true
|
39876
|
+
},
|
39859
39877
|
placement: {
|
39860
39878
|
type: definePropType(String),
|
39861
39879
|
values: Ee,
|
@@ -41014,6 +41032,8 @@
|
|
41014
41032
|
trigger: "click",
|
41015
41033
|
persistent: _ctx.persistent,
|
41016
41034
|
"append-to": _ctx.appendTo,
|
41035
|
+
"show-arrow": _ctx.showArrow,
|
41036
|
+
offset: _ctx.offset,
|
41017
41037
|
onBeforeShow: _ctx.handleMenuEnter,
|
41018
41038
|
onHide: ($event) => _ctx.states.isBeforeHide = false
|
41019
41039
|
}, {
|
@@ -41309,7 +41329,7 @@
|
|
41309
41329
|
]), 1032, ["data", "width", "hovering-index", "scrollbar-always-on"])
|
41310
41330
|
]),
|
41311
41331
|
_: 3
|
41312
|
-
}, 8, ["visible", "teleported", "popper-class", "popper-options", "fallback-placements", "effect", "placement", "transition", "persistent", "append-to", "onBeforeShow", "onHide"])
|
41332
|
+
}, 8, ["visible", "teleported", "popper-class", "popper-options", "fallback-placements", "effect", "placement", "transition", "persistent", "append-to", "show-arrow", "offset", "onBeforeShow", "onHide"])
|
41313
41333
|
], 42, ["onMouseenter", "onMouseleave"])), [
|
41314
41334
|
[_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
|
41315
41335
|
]);
|
@@ -43581,20 +43601,26 @@
|
|
43581
43601
|
}
|
43582
43602
|
});
|
43583
43603
|
}
|
43604
|
+
const getTableOverflowTooltipProps = (props, content) => {
|
43605
|
+
return {
|
43606
|
+
content,
|
43607
|
+
...props,
|
43608
|
+
popperOptions: {
|
43609
|
+
strategy: "fixed",
|
43610
|
+
...props.popperOptions
|
43611
|
+
}
|
43612
|
+
};
|
43613
|
+
};
|
43584
43614
|
let removePopper = null;
|
43585
43615
|
function createTablePopper(props, popperContent, trigger, table) {
|
43586
43616
|
if ((removePopper == null ? void 0 : removePopper.trigger) === trigger) {
|
43617
|
+
merge(removePopper.vm.component.props, getTableOverflowTooltipProps(props, popperContent));
|
43587
43618
|
return;
|
43588
43619
|
}
|
43589
43620
|
removePopper == null ? void 0 : removePopper();
|
43590
43621
|
const parentNode = table == null ? void 0 : table.refs.tableWrapper;
|
43591
43622
|
const ns = parentNode == null ? void 0 : parentNode.dataset.prefix;
|
43592
|
-
const popperOptions = {
|
43593
|
-
strategy: "fixed",
|
43594
|
-
...props.popperOptions
|
43595
|
-
};
|
43596
43623
|
const vm = vue.createVNode(ElTooltip, {
|
43597
|
-
content: popperContent,
|
43598
43624
|
virtualTriggering: true,
|
43599
43625
|
virtualRef: trigger,
|
43600
43626
|
appendTo: parentNode,
|
@@ -43602,11 +43628,7 @@
|
|
43602
43628
|
transition: "none",
|
43603
43629
|
offset: 0,
|
43604
43630
|
hideAfter: 0,
|
43605
|
-
...props,
|
43606
|
-
popperOptions,
|
43607
|
-
onHide: () => {
|
43608
|
-
removePopper == null ? void 0 : removePopper();
|
43609
|
-
}
|
43631
|
+
...getTableOverflowTooltipProps(props, popperContent)
|
43610
43632
|
});
|
43611
43633
|
vm.appContext = { ...table.appContext, ...table };
|
43612
43634
|
const container = document.createElement("div");
|
@@ -43619,6 +43641,7 @@
|
|
43619
43641
|
removePopper = null;
|
43620
43642
|
};
|
43621
43643
|
removePopper.trigger = trigger;
|
43644
|
+
removePopper.vm = vm;
|
43622
43645
|
scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
|
43623
43646
|
}
|
43624
43647
|
function getCurrentColumns(column) {
|
@@ -44093,7 +44116,16 @@
|
|
44093
44116
|
const sortProp = vue.ref(null);
|
44094
44117
|
const sortOrder = vue.ref(null);
|
44095
44118
|
const hoverRow = vue.ref(null);
|
44096
|
-
vue.watch(data, () =>
|
44119
|
+
vue.watch(data, () => {
|
44120
|
+
var _a2;
|
44121
|
+
if (instance.state) {
|
44122
|
+
scheduleLayout(false);
|
44123
|
+
const needUpdateFixed = instance.props.tableLayout === "auto";
|
44124
|
+
if (needUpdateFixed) {
|
44125
|
+
(_a2 = instance.refs.tableHeaderRef) == null ? void 0 : _a2.updateFixedColumnStyle();
|
44126
|
+
}
|
44127
|
+
}
|
44128
|
+
}, {
|
44097
44129
|
deep: true
|
44098
44130
|
});
|
44099
44131
|
const assertRowKey = () => {
|
@@ -45622,11 +45654,29 @@
|
|
45622
45654
|
const ns = useNamespace("table");
|
45623
45655
|
const filterPanels = vue.ref({});
|
45624
45656
|
const { onColumnsChange, onScrollableChange } = useLayoutObserver(parent);
|
45657
|
+
const isTableLayoutAuto = (parent == null ? void 0 : parent.props.tableLayout) === "auto";
|
45658
|
+
const saveIndexSelection = /* @__PURE__ */ new Map();
|
45659
|
+
const theadRef = vue.ref();
|
45660
|
+
const updateFixedColumnStyle = () => {
|
45661
|
+
setTimeout(() => {
|
45662
|
+
if (saveIndexSelection.size > 0) {
|
45663
|
+
saveIndexSelection.forEach((column, key) => {
|
45664
|
+
const el = theadRef.value.querySelector(`.${key.replace(/\s/g, ".")}`);
|
45665
|
+
if (el) {
|
45666
|
+
const width = el.getBoundingClientRect().width;
|
45667
|
+
column.width = width;
|
45668
|
+
}
|
45669
|
+
});
|
45670
|
+
saveIndexSelection.clear();
|
45671
|
+
}
|
45672
|
+
});
|
45673
|
+
};
|
45625
45674
|
vue.onMounted(async () => {
|
45626
45675
|
await vue.nextTick();
|
45627
45676
|
await vue.nextTick();
|
45628
45677
|
const { prop, order } = props.defaultSort;
|
45629
45678
|
parent == null ? void 0 : parent.store.commit("sort", { prop, order, init: true });
|
45679
|
+
updateFixedColumnStyle();
|
45630
45680
|
});
|
45631
45681
|
const {
|
45632
45682
|
handleHeaderClick,
|
@@ -45667,7 +45717,11 @@
|
|
45667
45717
|
handleSortClick,
|
45668
45718
|
handleFilterClick,
|
45669
45719
|
isGroup,
|
45670
|
-
toggleAllSelection
|
45720
|
+
toggleAllSelection,
|
45721
|
+
saveIndexSelection,
|
45722
|
+
isTableLayoutAuto,
|
45723
|
+
theadRef,
|
45724
|
+
updateFixedColumnStyle
|
45671
45725
|
};
|
45672
45726
|
},
|
45673
45727
|
render() {
|
@@ -45686,10 +45740,13 @@
|
|
45686
45740
|
handleSortClick,
|
45687
45741
|
handleMouseOut,
|
45688
45742
|
store,
|
45689
|
-
$parent
|
45743
|
+
$parent,
|
45744
|
+
saveIndexSelection,
|
45745
|
+
isTableLayoutAuto
|
45690
45746
|
} = this;
|
45691
45747
|
let rowSpan = 1;
|
45692
45748
|
return vue.h("thead", {
|
45749
|
+
ref: "theadRef",
|
45693
45750
|
class: { [ns.is("group")]: isGroup }
|
45694
45751
|
}, columnRows.map((subColumns, rowIndex) => vue.h("tr", {
|
45695
45752
|
class: getHeaderRowClass(rowIndex),
|
@@ -45699,8 +45756,12 @@
|
|
45699
45756
|
if (column.rowSpan > rowSpan) {
|
45700
45757
|
rowSpan = column.rowSpan;
|
45701
45758
|
}
|
45759
|
+
const _class = getHeaderCellClass(rowIndex, cellIndex, subColumns, column);
|
45760
|
+
if (isTableLayoutAuto && column.fixed) {
|
45761
|
+
saveIndexSelection.set(_class, column);
|
45762
|
+
}
|
45702
45763
|
return vue.h("th", {
|
45703
|
-
class:
|
45764
|
+
class: _class,
|
45704
45765
|
colspan: column.colSpan,
|
45705
45766
|
key: `${column.id}-thead`,
|
45706
45767
|
rowspan: column.rowSpan,
|