3h1-ui 2.14.90 → 2.14.91
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.js +4 -4
- package/lib/index.js +4 -4
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -14696,9 +14696,9 @@ function handleItem(item, ellipsis) {
|
|
|
14696
14696
|
}
|
|
14697
14697
|
}
|
|
14698
14698
|
function handleColumnResize(propsRef, columns, wrapRef) {
|
|
14699
|
-
var _a2, _b, _c;
|
|
14700
|
-
const tableWidth = (_c = (_b = (_a2 = wrapRef.value) == null ? void 0 : _a2.querySelector) == null ? void 0 : _b.call(_a2, ".ant-table-body")) == null ? void 0 : _c.clientWidth;
|
|
14701
|
-
const selectWidth = 60;
|
|
14699
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
14700
|
+
const tableWidth = ((_c = (_b = (_a2 = wrapRef.value) == null ? void 0 : _a2.querySelector) == null ? void 0 : _b.call(_a2, ".ant-table-body")) == null ? void 0 : _c.clientWidth) - 7 || ((_f = (_e = (_d = wrapRef.value) == null ? void 0 : _d.querySelector) == null ? void 0 : _e.call(_d, ".ant-table-content")) == null ? void 0 : _f.clientWidth);
|
|
14701
|
+
const selectWidth = propsRef.value.rowSelection ? 60 : 0;
|
|
14702
14702
|
const [sumWidth, sumLength] = columns.reduce(
|
|
14703
14703
|
([sumWidth2, length2], cur) => {
|
|
14704
14704
|
if (typeof cur.width === "number") {
|
|
@@ -15014,7 +15014,7 @@ function useDataSource(propsRef, {
|
|
|
15014
15014
|
const total = dataSourceRef.value.reduce((acc, cur) => {
|
|
15015
15015
|
return acc + (cur[field] || 0);
|
|
15016
15016
|
}, 0);
|
|
15017
|
-
obj[field] = total;
|
|
15017
|
+
obj[field] = Number.parseFloat(total.toFixed(2)).toLocaleString("en-US");
|
|
15018
15018
|
});
|
|
15019
15019
|
return obj;
|
|
15020
15020
|
});
|
package/lib/index.js
CHANGED
|
@@ -14720,9 +14720,9 @@ function handleItem(item, ellipsis) {
|
|
|
14720
14720
|
}
|
|
14721
14721
|
}
|
|
14722
14722
|
function handleColumnResize(propsRef, columns, wrapRef) {
|
|
14723
|
-
var _a2, _b, _c;
|
|
14724
|
-
const tableWidth = (_c = (_b = (_a2 = wrapRef.value) == null ? void 0 : _a2.querySelector) == null ? void 0 : _b.call(_a2, ".ant-table-body")) == null ? void 0 : _c.clientWidth;
|
|
14725
|
-
const selectWidth = 60;
|
|
14723
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
14724
|
+
const tableWidth = ((_c = (_b = (_a2 = wrapRef.value) == null ? void 0 : _a2.querySelector) == null ? void 0 : _b.call(_a2, ".ant-table-body")) == null ? void 0 : _c.clientWidth) - 7 || ((_f = (_e = (_d = wrapRef.value) == null ? void 0 : _d.querySelector) == null ? void 0 : _e.call(_d, ".ant-table-content")) == null ? void 0 : _f.clientWidth);
|
|
14725
|
+
const selectWidth = propsRef.value.rowSelection ? 60 : 0;
|
|
14726
14726
|
const [sumWidth, sumLength] = columns.reduce(
|
|
14727
14727
|
([sumWidth2, length2], cur) => {
|
|
14728
14728
|
if (typeof cur.width === "number") {
|
|
@@ -15038,7 +15038,7 @@ function useDataSource(propsRef, {
|
|
|
15038
15038
|
const total = dataSourceRef.value.reduce((acc, cur) => {
|
|
15039
15039
|
return acc + (cur[field] || 0);
|
|
15040
15040
|
}, 0);
|
|
15041
|
-
obj[field] = total;
|
|
15041
|
+
obj[field] = Number.parseFloat(total.toFixed(2)).toLocaleString("en-US");
|
|
15042
15042
|
});
|
|
15043
15043
|
return obj;
|
|
15044
15044
|
});
|