zartui 3.1.53 → 3.1.55
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/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/media-picker/MediaPicker.mjs +1 -1
- package/es/table/Table.mjs +23 -7
- package/es/table/index.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/media-picker/MediaPicker.js +1 -1
- package/lib/table/Table.js +23 -7
- package/lib/table/index.css +1 -1
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +25 -9
- package/lib/zartui.es.js +25 -9
- package/lib/zartui.js +25 -9
- package/lib/zartui.min.js +1 -1
- package/package.json +6 -6
package/lib/zartui.cjs.js
CHANGED
|
@@ -14542,7 +14542,7 @@ var stdin_default$C = vue.defineComponent({
|
|
|
14542
14542
|
"onSelect": selectAction
|
|
14543
14543
|
}, null), vue.withDirectives(vue.createVNode("div", {
|
|
14544
14544
|
"class": bem$u("line")
|
|
14545
|
-
}, [renderButtons()]), [[vue.vShow, showButtons]]), vue.withDirectives(vue.createVNode(stdin_default$X, {
|
|
14545
|
+
}, [renderButtons(), slots["extend"] ? slots.extend() : ""]), [[vue.vShow, showButtons]]), vue.withDirectives(vue.createVNode(stdin_default$X, {
|
|
14546
14546
|
"column-num": "3",
|
|
14547
14547
|
"border": false,
|
|
14548
14548
|
"square": true,
|
|
@@ -18761,7 +18761,8 @@ var stdin_default$8 = vue.defineComponent({
|
|
|
18761
18761
|
}) {
|
|
18762
18762
|
const sortOrder = vue.ref("");
|
|
18763
18763
|
const sortKey = vue.ref("");
|
|
18764
|
-
const
|
|
18764
|
+
const tableRef = vue.ref();
|
|
18765
|
+
const fixedColumn = vue.computed(() => props.headList.filter((v) => v.fixed || v.fixedRight));
|
|
18765
18766
|
const formatColumns = vue.computed(() => {
|
|
18766
18767
|
const columns = [];
|
|
18767
18768
|
let left = 0;
|
|
@@ -18776,7 +18777,7 @@ var stdin_default$8 = vue.defineComponent({
|
|
|
18776
18777
|
} else {
|
|
18777
18778
|
column.left = 0;
|
|
18778
18779
|
}
|
|
18779
|
-
if (element.fixed && !nextColumn.fixed) {
|
|
18780
|
+
if (element.fixed && !(nextColumn == null ? void 0 : nextColumn.fixed)) {
|
|
18780
18781
|
column.lastFixLeft = true;
|
|
18781
18782
|
}
|
|
18782
18783
|
columns.push(column);
|
|
@@ -18784,8 +18785,12 @@ var stdin_default$8 = vue.defineComponent({
|
|
|
18784
18785
|
return columns;
|
|
18785
18786
|
});
|
|
18786
18787
|
const pingedLeft = vue.ref(false);
|
|
18788
|
+
const pingedRight = vue.ref(false);
|
|
18787
18789
|
const resortHeadList = vue.computed(() => fixedColumn.value.concat(props.headList.filter((v) => !v.fixed)));
|
|
18788
18790
|
vue.onMounted(() => {
|
|
18791
|
+
if (tableRef.value) {
|
|
18792
|
+
pingedRight.value = tableRef.value.scrollWidth > tableRef.value.clientWidth;
|
|
18793
|
+
}
|
|
18789
18794
|
const fixedIndexList = props.headList.map((v, i) => {
|
|
18790
18795
|
if (v.sorter && v.defaultSortOrder) {
|
|
18791
18796
|
sortOrder.value = v.defaultSortOrder || "";
|
|
@@ -18833,18 +18838,24 @@ var stdin_default$8 = vue.defineComponent({
|
|
|
18833
18838
|
} = event;
|
|
18834
18839
|
const mergedScrollLeft = typeof scrollLeft === "number" ? scrollLeft : currentTarget == null ? void 0 : currentTarget.scrollLeft;
|
|
18835
18840
|
pingedLeft.value = mergedScrollLeft > 0;
|
|
18841
|
+
const rightRemain = currentTarget.scrollWidth - currentTarget.scrollLeft - currentTarget.clientWidth;
|
|
18842
|
+
pingedRight.value = rightRemain > 0;
|
|
18836
18843
|
};
|
|
18837
18844
|
const getHead = (colData) => {
|
|
18838
18845
|
const headSlot = slots[`head-${colData.id}`];
|
|
18839
18846
|
const headEllipsisType = colData.sorter ? "flat" : "dialog";
|
|
18840
18847
|
if ((colData == null ? void 0 : colData.colSpan) !== 0) {
|
|
18841
18848
|
return vue.createVNode("th", {
|
|
18842
|
-
"class": bem$3("left", {
|
|
18849
|
+
"class": [bem$3("left", {
|
|
18843
18850
|
fixed: colData.fixed,
|
|
18844
18851
|
last: colData.lastFixLeft && pingedLeft.value
|
|
18845
|
-
}),
|
|
18852
|
+
}), bem$3("right", {
|
|
18853
|
+
fixed: colData.fixedRight,
|
|
18854
|
+
last: colData.lastRight && pingedRight.value
|
|
18855
|
+
})],
|
|
18846
18856
|
"style": {
|
|
18847
|
-
left: colData.fixed ? colData.left : ""
|
|
18857
|
+
left: colData.fixed ? colData.left : "",
|
|
18858
|
+
right: colData.fixedRight ? colData.right : ""
|
|
18848
18859
|
},
|
|
18849
18860
|
"colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
|
|
18850
18861
|
}, [headSlot ? headSlot(colData) : vue.createVNode("div", {
|
|
@@ -18901,12 +18912,16 @@ var stdin_default$8 = vue.defineComponent({
|
|
|
18901
18912
|
}
|
|
18902
18913
|
const style = Object.assign({}, colData.style);
|
|
18903
18914
|
style.left = colData.fixed ? colData.left : "";
|
|
18915
|
+
style.right = colData.fixedRight ? colData.right : "";
|
|
18904
18916
|
return (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 0 && (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 0 && vue.createVNode("td", {
|
|
18905
18917
|
"onClick": () => colData.click && colData.click(rowData, rowIndex),
|
|
18906
|
-
"class": bem$3("left", {
|
|
18918
|
+
"class": [bem$3("left", {
|
|
18907
18919
|
fixed: colData.fixed,
|
|
18908
18920
|
last: colData.lastFixLeft && pingedLeft.value
|
|
18909
|
-
}),
|
|
18921
|
+
}), bem$3("right", {
|
|
18922
|
+
fixed: colData.fixedRight,
|
|
18923
|
+
last: colData.lastRight && pingedRight.value
|
|
18924
|
+
})],
|
|
18910
18925
|
"colspan": (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.colSpan : null,
|
|
18911
18926
|
"rowspan": (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.rowSpan : null,
|
|
18912
18927
|
"style": style
|
|
@@ -18941,6 +18956,7 @@ var stdin_default$8 = vue.defineComponent({
|
|
|
18941
18956
|
skeleton: true
|
|
18942
18957
|
})
|
|
18943
18958
|
}, [getLoadingColumn()]) : vue.createVNode("div", {
|
|
18959
|
+
"ref": tableRef,
|
|
18944
18960
|
"class": bem$3({
|
|
18945
18961
|
fixed: fixedColumn.value.length > 0,
|
|
18946
18962
|
bordered: props.border,
|
|
@@ -20940,7 +20956,7 @@ const Lazyload = {
|
|
|
20940
20956
|
});
|
|
20941
20957
|
}
|
|
20942
20958
|
};
|
|
20943
|
-
const version = "3.1.
|
|
20959
|
+
const version = "3.1.54";
|
|
20944
20960
|
function install(app) {
|
|
20945
20961
|
const components = [
|
|
20946
20962
|
ActionSheet,
|
package/lib/zartui.es.js
CHANGED
|
@@ -14540,7 +14540,7 @@ var stdin_default$C = defineComponent({
|
|
|
14540
14540
|
"onSelect": selectAction
|
|
14541
14541
|
}, null), withDirectives(createVNode("div", {
|
|
14542
14542
|
"class": bem$u("line")
|
|
14543
|
-
}, [renderButtons()]), [[vShow, showButtons]]), withDirectives(createVNode(stdin_default$X, {
|
|
14543
|
+
}, [renderButtons(), slots["extend"] ? slots.extend() : ""]), [[vShow, showButtons]]), withDirectives(createVNode(stdin_default$X, {
|
|
14544
14544
|
"column-num": "3",
|
|
14545
14545
|
"border": false,
|
|
14546
14546
|
"square": true,
|
|
@@ -18759,7 +18759,8 @@ var stdin_default$8 = defineComponent({
|
|
|
18759
18759
|
}) {
|
|
18760
18760
|
const sortOrder = ref("");
|
|
18761
18761
|
const sortKey = ref("");
|
|
18762
|
-
const
|
|
18762
|
+
const tableRef = ref();
|
|
18763
|
+
const fixedColumn = computed(() => props.headList.filter((v) => v.fixed || v.fixedRight));
|
|
18763
18764
|
const formatColumns = computed(() => {
|
|
18764
18765
|
const columns = [];
|
|
18765
18766
|
let left = 0;
|
|
@@ -18774,7 +18775,7 @@ var stdin_default$8 = defineComponent({
|
|
|
18774
18775
|
} else {
|
|
18775
18776
|
column.left = 0;
|
|
18776
18777
|
}
|
|
18777
|
-
if (element.fixed && !nextColumn.fixed) {
|
|
18778
|
+
if (element.fixed && !(nextColumn == null ? void 0 : nextColumn.fixed)) {
|
|
18778
18779
|
column.lastFixLeft = true;
|
|
18779
18780
|
}
|
|
18780
18781
|
columns.push(column);
|
|
@@ -18782,8 +18783,12 @@ var stdin_default$8 = defineComponent({
|
|
|
18782
18783
|
return columns;
|
|
18783
18784
|
});
|
|
18784
18785
|
const pingedLeft = ref(false);
|
|
18786
|
+
const pingedRight = ref(false);
|
|
18785
18787
|
const resortHeadList = computed(() => fixedColumn.value.concat(props.headList.filter((v) => !v.fixed)));
|
|
18786
18788
|
onMounted(() => {
|
|
18789
|
+
if (tableRef.value) {
|
|
18790
|
+
pingedRight.value = tableRef.value.scrollWidth > tableRef.value.clientWidth;
|
|
18791
|
+
}
|
|
18787
18792
|
const fixedIndexList = props.headList.map((v, i) => {
|
|
18788
18793
|
if (v.sorter && v.defaultSortOrder) {
|
|
18789
18794
|
sortOrder.value = v.defaultSortOrder || "";
|
|
@@ -18831,18 +18836,24 @@ var stdin_default$8 = defineComponent({
|
|
|
18831
18836
|
} = event;
|
|
18832
18837
|
const mergedScrollLeft = typeof scrollLeft === "number" ? scrollLeft : currentTarget == null ? void 0 : currentTarget.scrollLeft;
|
|
18833
18838
|
pingedLeft.value = mergedScrollLeft > 0;
|
|
18839
|
+
const rightRemain = currentTarget.scrollWidth - currentTarget.scrollLeft - currentTarget.clientWidth;
|
|
18840
|
+
pingedRight.value = rightRemain > 0;
|
|
18834
18841
|
};
|
|
18835
18842
|
const getHead = (colData) => {
|
|
18836
18843
|
const headSlot = slots[`head-${colData.id}`];
|
|
18837
18844
|
const headEllipsisType = colData.sorter ? "flat" : "dialog";
|
|
18838
18845
|
if ((colData == null ? void 0 : colData.colSpan) !== 0) {
|
|
18839
18846
|
return createVNode("th", {
|
|
18840
|
-
"class": bem$3("left", {
|
|
18847
|
+
"class": [bem$3("left", {
|
|
18841
18848
|
fixed: colData.fixed,
|
|
18842
18849
|
last: colData.lastFixLeft && pingedLeft.value
|
|
18843
|
-
}),
|
|
18850
|
+
}), bem$3("right", {
|
|
18851
|
+
fixed: colData.fixedRight,
|
|
18852
|
+
last: colData.lastRight && pingedRight.value
|
|
18853
|
+
})],
|
|
18844
18854
|
"style": {
|
|
18845
|
-
left: colData.fixed ? colData.left : ""
|
|
18855
|
+
left: colData.fixed ? colData.left : "",
|
|
18856
|
+
right: colData.fixedRight ? colData.right : ""
|
|
18846
18857
|
},
|
|
18847
18858
|
"colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
|
|
18848
18859
|
}, [headSlot ? headSlot(colData) : createVNode("div", {
|
|
@@ -18899,12 +18910,16 @@ var stdin_default$8 = defineComponent({
|
|
|
18899
18910
|
}
|
|
18900
18911
|
const style = Object.assign({}, colData.style);
|
|
18901
18912
|
style.left = colData.fixed ? colData.left : "";
|
|
18913
|
+
style.right = colData.fixedRight ? colData.right : "";
|
|
18902
18914
|
return (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 0 && (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 0 && createVNode("td", {
|
|
18903
18915
|
"onClick": () => colData.click && colData.click(rowData, rowIndex),
|
|
18904
|
-
"class": bem$3("left", {
|
|
18916
|
+
"class": [bem$3("left", {
|
|
18905
18917
|
fixed: colData.fixed,
|
|
18906
18918
|
last: colData.lastFixLeft && pingedLeft.value
|
|
18907
|
-
}),
|
|
18919
|
+
}), bem$3("right", {
|
|
18920
|
+
fixed: colData.fixedRight,
|
|
18921
|
+
last: colData.lastRight && pingedRight.value
|
|
18922
|
+
})],
|
|
18908
18923
|
"colspan": (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.colSpan : null,
|
|
18909
18924
|
"rowspan": (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.rowSpan : null,
|
|
18910
18925
|
"style": style
|
|
@@ -18939,6 +18954,7 @@ var stdin_default$8 = defineComponent({
|
|
|
18939
18954
|
skeleton: true
|
|
18940
18955
|
})
|
|
18941
18956
|
}, [getLoadingColumn()]) : createVNode("div", {
|
|
18957
|
+
"ref": tableRef,
|
|
18942
18958
|
"class": bem$3({
|
|
18943
18959
|
fixed: fixedColumn.value.length > 0,
|
|
18944
18960
|
bordered: props.border,
|
|
@@ -20938,7 +20954,7 @@ const Lazyload = {
|
|
|
20938
20954
|
});
|
|
20939
20955
|
}
|
|
20940
20956
|
};
|
|
20941
|
-
const version = "3.1.
|
|
20957
|
+
const version = "3.1.54";
|
|
20942
20958
|
function install(app) {
|
|
20943
20959
|
const components = [
|
|
20944
20960
|
ActionSheet,
|
package/lib/zartui.js
CHANGED
|
@@ -16318,7 +16318,7 @@
|
|
|
16318
16318
|
"onSelect": selectAction
|
|
16319
16319
|
}, null), vue.withDirectives(vue.createVNode("div", {
|
|
16320
16320
|
"class": bem$u("line")
|
|
16321
|
-
}, [renderButtons()]), [[vue.vShow, showButtons]]), vue.withDirectives(vue.createVNode(stdin_default$X, {
|
|
16321
|
+
}, [renderButtons(), slots["extend"] ? slots.extend() : ""]), [[vue.vShow, showButtons]]), vue.withDirectives(vue.createVNode(stdin_default$X, {
|
|
16322
16322
|
"column-num": "3",
|
|
16323
16323
|
"border": false,
|
|
16324
16324
|
"square": true,
|
|
@@ -22838,7 +22838,8 @@
|
|
|
22838
22838
|
}) {
|
|
22839
22839
|
const sortOrder = vue.ref("");
|
|
22840
22840
|
const sortKey = vue.ref("");
|
|
22841
|
-
const
|
|
22841
|
+
const tableRef = vue.ref();
|
|
22842
|
+
const fixedColumn = vue.computed(() => props.headList.filter((v) => v.fixed || v.fixedRight));
|
|
22842
22843
|
const formatColumns = vue.computed(() => {
|
|
22843
22844
|
const columns = [];
|
|
22844
22845
|
let left2 = 0;
|
|
@@ -22853,7 +22854,7 @@
|
|
|
22853
22854
|
} else {
|
|
22854
22855
|
column.left = 0;
|
|
22855
22856
|
}
|
|
22856
|
-
if (element.fixed && !nextColumn.fixed) {
|
|
22857
|
+
if (element.fixed && !(nextColumn == null ? void 0 : nextColumn.fixed)) {
|
|
22857
22858
|
column.lastFixLeft = true;
|
|
22858
22859
|
}
|
|
22859
22860
|
columns.push(column);
|
|
@@ -22861,8 +22862,12 @@
|
|
|
22861
22862
|
return columns;
|
|
22862
22863
|
});
|
|
22863
22864
|
const pingedLeft = vue.ref(false);
|
|
22865
|
+
const pingedRight = vue.ref(false);
|
|
22864
22866
|
const resortHeadList = vue.computed(() => fixedColumn.value.concat(props.headList.filter((v) => !v.fixed)));
|
|
22865
22867
|
vue.onMounted(() => {
|
|
22868
|
+
if (tableRef.value) {
|
|
22869
|
+
pingedRight.value = tableRef.value.scrollWidth > tableRef.value.clientWidth;
|
|
22870
|
+
}
|
|
22866
22871
|
const fixedIndexList = props.headList.map((v, i) => {
|
|
22867
22872
|
if (v.sorter && v.defaultSortOrder) {
|
|
22868
22873
|
sortOrder.value = v.defaultSortOrder || "";
|
|
@@ -22910,18 +22915,24 @@
|
|
|
22910
22915
|
} = event;
|
|
22911
22916
|
const mergedScrollLeft = typeof scrollLeft === "number" ? scrollLeft : currentTarget == null ? void 0 : currentTarget.scrollLeft;
|
|
22912
22917
|
pingedLeft.value = mergedScrollLeft > 0;
|
|
22918
|
+
const rightRemain = currentTarget.scrollWidth - currentTarget.scrollLeft - currentTarget.clientWidth;
|
|
22919
|
+
pingedRight.value = rightRemain > 0;
|
|
22913
22920
|
};
|
|
22914
22921
|
const getHead = (colData) => {
|
|
22915
22922
|
const headSlot = slots[`head-${colData.id}`];
|
|
22916
22923
|
const headEllipsisType = colData.sorter ? "flat" : "dialog";
|
|
22917
22924
|
if ((colData == null ? void 0 : colData.colSpan) !== 0) {
|
|
22918
22925
|
return vue.createVNode("th", {
|
|
22919
|
-
"class": bem$3("left", {
|
|
22926
|
+
"class": [bem$3("left", {
|
|
22920
22927
|
fixed: colData.fixed,
|
|
22921
22928
|
last: colData.lastFixLeft && pingedLeft.value
|
|
22922
|
-
}),
|
|
22929
|
+
}), bem$3("right", {
|
|
22930
|
+
fixed: colData.fixedRight,
|
|
22931
|
+
last: colData.lastRight && pingedRight.value
|
|
22932
|
+
})],
|
|
22923
22933
|
"style": {
|
|
22924
|
-
left: colData.fixed ? colData.left : ""
|
|
22934
|
+
left: colData.fixed ? colData.left : "",
|
|
22935
|
+
right: colData.fixedRight ? colData.right : ""
|
|
22925
22936
|
},
|
|
22926
22937
|
"colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
|
|
22927
22938
|
}, [headSlot ? headSlot(colData) : vue.createVNode("div", {
|
|
@@ -22978,12 +22989,16 @@
|
|
|
22978
22989
|
}
|
|
22979
22990
|
const style = Object.assign({}, colData.style);
|
|
22980
22991
|
style.left = colData.fixed ? colData.left : "";
|
|
22992
|
+
style.right = colData.fixedRight ? colData.right : "";
|
|
22981
22993
|
return (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 0 && (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 0 && vue.createVNode("td", {
|
|
22982
22994
|
"onClick": () => colData.click && colData.click(rowData, rowIndex),
|
|
22983
|
-
"class": bem$3("left", {
|
|
22995
|
+
"class": [bem$3("left", {
|
|
22984
22996
|
fixed: colData.fixed,
|
|
22985
22997
|
last: colData.lastFixLeft && pingedLeft.value
|
|
22986
|
-
}),
|
|
22998
|
+
}), bem$3("right", {
|
|
22999
|
+
fixed: colData.fixedRight,
|
|
23000
|
+
last: colData.lastRight && pingedRight.value
|
|
23001
|
+
})],
|
|
22987
23002
|
"colspan": (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.colSpan : null,
|
|
22988
23003
|
"rowspan": (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.rowSpan : null,
|
|
22989
23004
|
"style": style
|
|
@@ -23018,6 +23033,7 @@
|
|
|
23018
23033
|
skeleton: true
|
|
23019
23034
|
})
|
|
23020
23035
|
}, [getLoadingColumn()]) : vue.createVNode("div", {
|
|
23036
|
+
"ref": tableRef,
|
|
23021
23037
|
"class": bem$3({
|
|
23022
23038
|
fixed: fixedColumn.value.length > 0,
|
|
23023
23039
|
bordered: props.border,
|
|
@@ -25000,7 +25016,7 @@
|
|
|
25000
25016
|
});
|
|
25001
25017
|
}
|
|
25002
25018
|
};
|
|
25003
|
-
const version = "3.1.
|
|
25019
|
+
const version = "3.1.54";
|
|
25004
25020
|
function install(app) {
|
|
25005
25021
|
const components = [
|
|
25006
25022
|
ActionSheet,
|