vxe-table 3.13.30 → 3.13.32
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/style.css +1 -1
- package/es/table/src/methods.js +29 -25
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +29 -27
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +29 -27
- package/lib/table/src/methods.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/table/src/methods.ts +29 -25
- /package/es/{iconfont.1742341578512.ttf → iconfont.1742787977304.ttf} +0 -0
- /package/es/{iconfont.1742341578512.woff → iconfont.1742787977304.woff} +0 -0
- /package/es/{iconfont.1742341578512.woff2 → iconfont.1742787977304.woff2} +0 -0
- /package/lib/{iconfont.1742341578512.ttf → iconfont.1742787977304.ttf} +0 -0
- /package/lib/{iconfont.1742341578512.woff → iconfont.1742787977304.woff} +0 -0
- /package/lib/{iconfont.1742341578512.woff2 → iconfont.1742787977304.woff2} +0 -0
package/es/table/src/methods.js
CHANGED
|
@@ -7,6 +7,7 @@ import { getRowUniqueId, clearTableAllStatus, getRowkey, getRowid, rowToVisible,
|
|
|
7
7
|
import { getSlotVNs } from '../../ui/src/vn';
|
|
8
8
|
import { warnLog, errLog } from '../../ui/src/log';
|
|
9
9
|
const { getConfig, getI18n, renderer, formats, interceptor, createEvent } = VxeUI;
|
|
10
|
+
const supportMaxRow = 3e5;
|
|
10
11
|
const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
11
12
|
function eqCellValue(row1, row2, field) {
|
|
12
13
|
const val1 = XEUtils.get(row1, field);
|
|
@@ -1728,8 +1729,8 @@ function parseColumns($xeTable, isReset) {
|
|
|
1728
1729
|
const props = $xeTable;
|
|
1729
1730
|
const reactData = $xeTable;
|
|
1730
1731
|
const internalData = $xeTable;
|
|
1731
|
-
const { showOverflow } = props
|
|
1732
|
-
const rowOpts = $xeTable.computeRowOpts
|
|
1732
|
+
// const { showOverflow } = props
|
|
1733
|
+
// const rowOpts = $xeTable.computeRowOpts
|
|
1733
1734
|
const leftList = [];
|
|
1734
1735
|
const centerList = [];
|
|
1735
1736
|
const rightList = [];
|
|
@@ -1802,28 +1803,28 @@ function parseColumns($xeTable, isReset) {
|
|
|
1802
1803
|
reactData.hasFixedColumn = leftList.length > 0 || rightList.length > 0;
|
|
1803
1804
|
Object.assign(columnStore, { leftList, centerList, rightList });
|
|
1804
1805
|
if (scrollXLoad) {
|
|
1805
|
-
if (showOverflow) {
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
}
|
|
1813
|
-
if (process.env.NODE_ENV === 'development') {
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
}
|
|
1806
|
+
// if (showOverflow) {
|
|
1807
|
+
// if (!rowOpts.height) {
|
|
1808
|
+
// const errColumn = internalData.tableFullColumn.find(column => column.showOverflow === false)
|
|
1809
|
+
// if (errColumn) {
|
|
1810
|
+
// errLog('vxe.error.errProp', [`column[field="${errColumn.field}"].show-overflow=false`, 'show-overflow=true'])
|
|
1811
|
+
// }
|
|
1812
|
+
// }
|
|
1813
|
+
// }
|
|
1814
|
+
// if (process.env.NODE_ENV === 'development') {
|
|
1815
|
+
// if (props.showHeader && !props.showHeaderOverflow) {
|
|
1816
|
+
// warnLog('vxe.error.reqProp', ['show-header-overflow'])
|
|
1817
|
+
// }
|
|
1818
|
+
// if (props.showFooter && !props.showFooterOverflow) {
|
|
1819
|
+
// warnLog('vxe.error.reqProp', ['show-footer-overflow'])
|
|
1820
|
+
// }
|
|
1821
|
+
if (props.spanMethod) {
|
|
1822
|
+
warnLog('vxe.error.scrollErrProp', ['span-method']);
|
|
1823
|
+
}
|
|
1824
|
+
if (props.footerSpanMethod) {
|
|
1825
|
+
warnLog('vxe.error.scrollErrProp', ['footer-span-method']);
|
|
1826
|
+
}
|
|
1827
|
+
// }
|
|
1827
1828
|
if (isReset) {
|
|
1828
1829
|
const { visibleSize } = handleVirtualXVisible($xeTable);
|
|
1829
1830
|
scrollXStore.startIndex = 0;
|
|
@@ -2312,6 +2313,9 @@ const Methods = {
|
|
|
2312
2313
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
2313
2314
|
let treeData = [];
|
|
2314
2315
|
let fullData = datas ? datas.slice(0) : [];
|
|
2316
|
+
if (fullData.length > supportMaxRow) {
|
|
2317
|
+
errLog('vxe.error.errMaxRow', [supportMaxRow]);
|
|
2318
|
+
}
|
|
2315
2319
|
if (treeConfig) {
|
|
2316
2320
|
// 树结构自动转换
|
|
2317
2321
|
if (treeOpts.transform) {
|
|
@@ -8393,7 +8397,7 @@ const Methods = {
|
|
|
8393
8397
|
const { scrollXLoad, scrollYLoad, expandColumn } = reactData;
|
|
8394
8398
|
const leftFixedWidth = $xeTable.computeLeftFixedWidth;
|
|
8395
8399
|
const rightFixedWidth = $xeTable.computeRightFixedWidth;
|
|
8396
|
-
if (!(
|
|
8400
|
+
if (!(leftFixedWidth || rightFixedWidth || expandColumn)) {
|
|
8397
8401
|
return;
|
|
8398
8402
|
}
|
|
8399
8403
|
const { elemStore, lastScrollTop, lastScrollLeft } = internalData;
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -3201,7 +3201,7 @@ function getClass(property, params) {
|
|
|
3201
3201
|
;// ./packages/ui/index.ts
|
|
3202
3202
|
|
|
3203
3203
|
|
|
3204
|
-
const version = "3.13.
|
|
3204
|
+
const version = "3.13.32";
|
|
3205
3205
|
core_.VxeUI.version = version;
|
|
3206
3206
|
core_.VxeUI.tableVersion = version;
|
|
3207
3207
|
core_.VxeUI.setConfig({
|
|
@@ -3828,7 +3828,7 @@ var es_iterator_map = __webpack_require__(1701);
|
|
|
3828
3828
|
const {
|
|
3829
3829
|
log: log_log
|
|
3830
3830
|
} = core_.VxeUI;
|
|
3831
|
-
const log_version = `table v${"3.13.
|
|
3831
|
+
const log_version = `table v${"3.13.32"}`;
|
|
3832
3832
|
const warnLog = log_log.create('warn', log_version);
|
|
3833
3833
|
const errLog = log_log.create('error', log_version);
|
|
3834
3834
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -6117,6 +6117,7 @@ const {
|
|
|
6117
6117
|
interceptor: methods_interceptor,
|
|
6118
6118
|
createEvent
|
|
6119
6119
|
} = core_.VxeUI;
|
|
6120
|
+
const supportMaxRow = 3e5;
|
|
6120
6121
|
const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
6121
6122
|
function eqCellValue(row1, row2, field) {
|
|
6122
6123
|
const val1 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row1, field);
|
|
@@ -8114,10 +8115,8 @@ function parseColumns($xeTable, isReset) {
|
|
|
8114
8115
|
const props = $xeTable;
|
|
8115
8116
|
const reactData = $xeTable;
|
|
8116
8117
|
const internalData = $xeTable;
|
|
8117
|
-
const {
|
|
8118
|
-
|
|
8119
|
-
} = props;
|
|
8120
|
-
const rowOpts = $xeTable.computeRowOpts;
|
|
8118
|
+
// const { showOverflow } = props
|
|
8119
|
+
// const rowOpts = $xeTable.computeRowOpts
|
|
8121
8120
|
const leftList = [];
|
|
8122
8121
|
const centerList = [];
|
|
8123
8122
|
const rightList = [];
|
|
@@ -8194,28 +8193,28 @@ function parseColumns($xeTable, isReset) {
|
|
|
8194
8193
|
rightList
|
|
8195
8194
|
});
|
|
8196
8195
|
if (scrollXLoad) {
|
|
8197
|
-
if (showOverflow) {
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8196
|
+
// if (showOverflow) {
|
|
8197
|
+
// if (!rowOpts.height) {
|
|
8198
|
+
// const errColumn = internalData.tableFullColumn.find(column => column.showOverflow === false)
|
|
8199
|
+
// if (errColumn) {
|
|
8200
|
+
// errLog('vxe.error.errProp', [`column[field="${errColumn.field}"].show-overflow=false`, 'show-overflow=true'])
|
|
8201
|
+
// }
|
|
8202
|
+
// }
|
|
8203
|
+
// }
|
|
8204
|
+
// if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
8205
|
+
// if (props.showHeader && !props.showHeaderOverflow) {
|
|
8206
|
+
// warnLog('vxe.error.reqProp', ['show-header-overflow'])
|
|
8207
|
+
// }
|
|
8208
|
+
// if (props.showFooter && !props.showFooterOverflow) {
|
|
8209
|
+
// warnLog('vxe.error.reqProp', ['show-footer-overflow'])
|
|
8210
|
+
// }
|
|
8211
|
+
if (props.spanMethod) {
|
|
8212
|
+
warnLog('vxe.error.scrollErrProp', ['span-method']);
|
|
8204
8213
|
}
|
|
8205
|
-
if (
|
|
8206
|
-
|
|
8207
|
-
// warnLog('vxe.error.reqProp', ['show-header-overflow'])
|
|
8208
|
-
// }
|
|
8209
|
-
// if (props.showFooter && !props.showFooterOverflow) {
|
|
8210
|
-
// warnLog('vxe.error.reqProp', ['show-footer-overflow'])
|
|
8211
|
-
// }
|
|
8212
|
-
if (props.spanMethod) {
|
|
8213
|
-
warnLog('vxe.error.scrollErrProp', ['span-method']);
|
|
8214
|
-
}
|
|
8215
|
-
if (props.footerSpanMethod) {
|
|
8216
|
-
warnLog('vxe.error.scrollErrProp', ['footer-span-method']);
|
|
8217
|
-
}
|
|
8214
|
+
if (props.footerSpanMethod) {
|
|
8215
|
+
warnLog('vxe.error.scrollErrProp', ['footer-span-method']);
|
|
8218
8216
|
}
|
|
8217
|
+
// }
|
|
8219
8218
|
if (isReset) {
|
|
8220
8219
|
const {
|
|
8221
8220
|
visibleSize
|
|
@@ -8781,6 +8780,9 @@ const Methods = {
|
|
|
8781
8780
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
8782
8781
|
let treeData = [];
|
|
8783
8782
|
let fullData = datas ? datas.slice(0) : [];
|
|
8783
|
+
if (fullData.length > supportMaxRow) {
|
|
8784
|
+
errLog('vxe.error.errMaxRow', [supportMaxRow]);
|
|
8785
|
+
}
|
|
8784
8786
|
if (treeConfig) {
|
|
8785
8787
|
// 树结构自动转换
|
|
8786
8788
|
if (treeOpts.transform) {
|
|
@@ -15952,7 +15954,7 @@ const Methods = {
|
|
|
15952
15954
|
} = reactData;
|
|
15953
15955
|
const leftFixedWidth = $xeTable.computeLeftFixedWidth;
|
|
15954
15956
|
const rightFixedWidth = $xeTable.computeRightFixedWidth;
|
|
15955
|
-
if (!(
|
|
15957
|
+
if (!(leftFixedWidth || rightFixedWidth || expandColumn)) {
|
|
15956
15958
|
return;
|
|
15957
15959
|
}
|
|
15958
15960
|
const {
|