@element-plus/nightly 0.0.20241109 → 0.0.20241110
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.full.js +57 -16
- 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 +57 -16
- 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/divider/index.mjs +2 -2
- package/es/components/divider/src/divider.mjs +35 -17
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider2.mjs +17 -35
- package/es/components/divider/src/divider2.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- 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/index.mjs +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/divider/index.js +2 -2
- package/lib/components/divider/src/divider.js +35 -17
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider2.js +17 -35
- package/lib/components/divider/src/divider2.js.map +1 -1
- package/lib/components/index.js +1 -1
- 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/index.js +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/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.20241110 */
|
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.20241110";
|
11572
11572
|
|
11573
11573
|
const makeInstaller = (components = []) => {
|
11574
11574
|
const install = (app, options) => {
|
@@ -43581,20 +43581,26 @@
|
|
43581
43581
|
}
|
43582
43582
|
});
|
43583
43583
|
}
|
43584
|
+
const getTableOverflowTooltipProps = (props, content) => {
|
43585
|
+
return {
|
43586
|
+
content,
|
43587
|
+
...props,
|
43588
|
+
popperOptions: {
|
43589
|
+
strategy: "fixed",
|
43590
|
+
...props.popperOptions
|
43591
|
+
}
|
43592
|
+
};
|
43593
|
+
};
|
43584
43594
|
let removePopper = null;
|
43585
43595
|
function createTablePopper(props, popperContent, trigger, table) {
|
43586
43596
|
if ((removePopper == null ? void 0 : removePopper.trigger) === trigger) {
|
43597
|
+
merge(removePopper.vm.component.props, getTableOverflowTooltipProps(props, popperContent));
|
43587
43598
|
return;
|
43588
43599
|
}
|
43589
43600
|
removePopper == null ? void 0 : removePopper();
|
43590
43601
|
const parentNode = table == null ? void 0 : table.refs.tableWrapper;
|
43591
43602
|
const ns = parentNode == null ? void 0 : parentNode.dataset.prefix;
|
43592
|
-
const popperOptions = {
|
43593
|
-
strategy: "fixed",
|
43594
|
-
...props.popperOptions
|
43595
|
-
};
|
43596
43603
|
const vm = vue.createVNode(ElTooltip, {
|
43597
|
-
content: popperContent,
|
43598
43604
|
virtualTriggering: true,
|
43599
43605
|
virtualRef: trigger,
|
43600
43606
|
appendTo: parentNode,
|
@@ -43602,11 +43608,7 @@
|
|
43602
43608
|
transition: "none",
|
43603
43609
|
offset: 0,
|
43604
43610
|
hideAfter: 0,
|
43605
|
-
...props,
|
43606
|
-
popperOptions,
|
43607
|
-
onHide: () => {
|
43608
|
-
removePopper == null ? void 0 : removePopper();
|
43609
|
-
}
|
43611
|
+
...getTableOverflowTooltipProps(props, popperContent)
|
43610
43612
|
});
|
43611
43613
|
vm.appContext = { ...table.appContext, ...table };
|
43612
43614
|
const container = document.createElement("div");
|
@@ -43619,6 +43621,7 @@
|
|
43619
43621
|
removePopper = null;
|
43620
43622
|
};
|
43621
43623
|
removePopper.trigger = trigger;
|
43624
|
+
removePopper.vm = vm;
|
43622
43625
|
scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
|
43623
43626
|
}
|
43624
43627
|
function getCurrentColumns(column) {
|
@@ -44093,7 +44096,16 @@
|
|
44093
44096
|
const sortProp = vue.ref(null);
|
44094
44097
|
const sortOrder = vue.ref(null);
|
44095
44098
|
const hoverRow = vue.ref(null);
|
44096
|
-
vue.watch(data, () =>
|
44099
|
+
vue.watch(data, () => {
|
44100
|
+
var _a2;
|
44101
|
+
if (instance.state) {
|
44102
|
+
scheduleLayout(false);
|
44103
|
+
const needUpdateFixed = instance.props.tableLayout === "auto";
|
44104
|
+
if (needUpdateFixed) {
|
44105
|
+
(_a2 = instance.refs.tableHeaderRef) == null ? void 0 : _a2.updateFixedColumnStyle();
|
44106
|
+
}
|
44107
|
+
}
|
44108
|
+
}, {
|
44097
44109
|
deep: true
|
44098
44110
|
});
|
44099
44111
|
const assertRowKey = () => {
|
@@ -45622,11 +45634,29 @@
|
|
45622
45634
|
const ns = useNamespace("table");
|
45623
45635
|
const filterPanels = vue.ref({});
|
45624
45636
|
const { onColumnsChange, onScrollableChange } = useLayoutObserver(parent);
|
45637
|
+
const isTableLayoutAuto = (parent == null ? void 0 : parent.props.tableLayout) === "auto";
|
45638
|
+
const saveIndexSelection = /* @__PURE__ */ new Map();
|
45639
|
+
const theadRef = vue.ref();
|
45640
|
+
const updateFixedColumnStyle = () => {
|
45641
|
+
setTimeout(() => {
|
45642
|
+
if (saveIndexSelection.size > 0) {
|
45643
|
+
saveIndexSelection.forEach((column, key) => {
|
45644
|
+
const el = theadRef.value.querySelector(`.${key.replace(/\s/g, ".")}`);
|
45645
|
+
if (el) {
|
45646
|
+
const width = el.getBoundingClientRect().width;
|
45647
|
+
column.width = width;
|
45648
|
+
}
|
45649
|
+
});
|
45650
|
+
saveIndexSelection.clear();
|
45651
|
+
}
|
45652
|
+
});
|
45653
|
+
};
|
45625
45654
|
vue.onMounted(async () => {
|
45626
45655
|
await vue.nextTick();
|
45627
45656
|
await vue.nextTick();
|
45628
45657
|
const { prop, order } = props.defaultSort;
|
45629
45658
|
parent == null ? void 0 : parent.store.commit("sort", { prop, order, init: true });
|
45659
|
+
updateFixedColumnStyle();
|
45630
45660
|
});
|
45631
45661
|
const {
|
45632
45662
|
handleHeaderClick,
|
@@ -45667,7 +45697,11 @@
|
|
45667
45697
|
handleSortClick,
|
45668
45698
|
handleFilterClick,
|
45669
45699
|
isGroup,
|
45670
|
-
toggleAllSelection
|
45700
|
+
toggleAllSelection,
|
45701
|
+
saveIndexSelection,
|
45702
|
+
isTableLayoutAuto,
|
45703
|
+
theadRef,
|
45704
|
+
updateFixedColumnStyle
|
45671
45705
|
};
|
45672
45706
|
},
|
45673
45707
|
render() {
|
@@ -45686,10 +45720,13 @@
|
|
45686
45720
|
handleSortClick,
|
45687
45721
|
handleMouseOut,
|
45688
45722
|
store,
|
45689
|
-
$parent
|
45723
|
+
$parent,
|
45724
|
+
saveIndexSelection,
|
45725
|
+
isTableLayoutAuto
|
45690
45726
|
} = this;
|
45691
45727
|
let rowSpan = 1;
|
45692
45728
|
return vue.h("thead", {
|
45729
|
+
ref: "theadRef",
|
45693
45730
|
class: { [ns.is("group")]: isGroup }
|
45694
45731
|
}, columnRows.map((subColumns, rowIndex) => vue.h("tr", {
|
45695
45732
|
class: getHeaderRowClass(rowIndex),
|
@@ -45699,8 +45736,12 @@
|
|
45699
45736
|
if (column.rowSpan > rowSpan) {
|
45700
45737
|
rowSpan = column.rowSpan;
|
45701
45738
|
}
|
45739
|
+
const _class = getHeaderCellClass(rowIndex, cellIndex, subColumns, column);
|
45740
|
+
if (isTableLayoutAuto && column.fixed) {
|
45741
|
+
saveIndexSelection.set(_class, column);
|
45742
|
+
}
|
45702
45743
|
return vue.h("th", {
|
45703
|
-
class:
|
45744
|
+
class: _class,
|
45704
45745
|
colspan: column.colSpan,
|
45705
45746
|
key: `${column.id}-thead`,
|
45706
45747
|
rowspan: column.rowSpan,
|