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/lib/table/src/methods.js
CHANGED
|
@@ -21,6 +21,7 @@ const {
|
|
|
21
21
|
interceptor,
|
|
22
22
|
createEvent
|
|
23
23
|
} = _ui.VxeUI;
|
|
24
|
+
const supportMaxRow = 3e5;
|
|
24
25
|
const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
25
26
|
function eqCellValue(row1, row2, field) {
|
|
26
27
|
const val1 = _xeUtils.default.get(row1, field);
|
|
@@ -2027,10 +2028,8 @@ function parseColumns($xeTable, isReset) {
|
|
|
2027
2028
|
const props = $xeTable;
|
|
2028
2029
|
const reactData = $xeTable;
|
|
2029
2030
|
const internalData = $xeTable;
|
|
2030
|
-
const {
|
|
2031
|
-
|
|
2032
|
-
} = props;
|
|
2033
|
-
const rowOpts = $xeTable.computeRowOpts;
|
|
2031
|
+
// const { showOverflow } = props
|
|
2032
|
+
// const rowOpts = $xeTable.computeRowOpts
|
|
2034
2033
|
const leftList = [];
|
|
2035
2034
|
const centerList = [];
|
|
2036
2035
|
const rightList = [];
|
|
@@ -2107,28 +2106,28 @@ function parseColumns($xeTable, isReset) {
|
|
|
2107
2106
|
rightList
|
|
2108
2107
|
});
|
|
2109
2108
|
if (scrollXLoad) {
|
|
2110
|
-
if (showOverflow) {
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
}
|
|
2118
|
-
if (process.env.NODE_ENV === 'development') {
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
}
|
|
2109
|
+
// if (showOverflow) {
|
|
2110
|
+
// if (!rowOpts.height) {
|
|
2111
|
+
// const errColumn = internalData.tableFullColumn.find(column => column.showOverflow === false)
|
|
2112
|
+
// if (errColumn) {
|
|
2113
|
+
// errLog('vxe.error.errProp', [`column[field="${errColumn.field}"].show-overflow=false`, 'show-overflow=true'])
|
|
2114
|
+
// }
|
|
2115
|
+
// }
|
|
2116
|
+
// }
|
|
2117
|
+
// if (process.env.NODE_ENV === 'development') {
|
|
2118
|
+
// if (props.showHeader && !props.showHeaderOverflow) {
|
|
2119
|
+
// warnLog('vxe.error.reqProp', ['show-header-overflow'])
|
|
2120
|
+
// }
|
|
2121
|
+
// if (props.showFooter && !props.showFooterOverflow) {
|
|
2122
|
+
// warnLog('vxe.error.reqProp', ['show-footer-overflow'])
|
|
2123
|
+
// }
|
|
2124
|
+
if (props.spanMethod) {
|
|
2125
|
+
(0, _log.warnLog)('vxe.error.scrollErrProp', ['span-method']);
|
|
2126
|
+
}
|
|
2127
|
+
if (props.footerSpanMethod) {
|
|
2128
|
+
(0, _log.warnLog)('vxe.error.scrollErrProp', ['footer-span-method']);
|
|
2129
|
+
}
|
|
2130
|
+
// }
|
|
2132
2131
|
if (isReset) {
|
|
2133
2132
|
const {
|
|
2134
2133
|
visibleSize
|
|
@@ -2694,6 +2693,9 @@ const Methods = {
|
|
|
2694
2693
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
2695
2694
|
let treeData = [];
|
|
2696
2695
|
let fullData = datas ? datas.slice(0) : [];
|
|
2696
|
+
if (fullData.length > supportMaxRow) {
|
|
2697
|
+
(0, _log.errLog)('vxe.error.errMaxRow', [supportMaxRow]);
|
|
2698
|
+
}
|
|
2697
2699
|
if (treeConfig) {
|
|
2698
2700
|
// 树结构自动转换
|
|
2699
2701
|
if (treeOpts.transform) {
|
|
@@ -9837,7 +9839,7 @@ const Methods = {
|
|
|
9837
9839
|
} = reactData;
|
|
9838
9840
|
const leftFixedWidth = $xeTable.computeLeftFixedWidth;
|
|
9839
9841
|
const rightFixedWidth = $xeTable.computeRightFixedWidth;
|
|
9840
|
-
if (!(
|
|
9842
|
+
if (!(leftFixedWidth || rightFixedWidth || expandColumn)) {
|
|
9841
9843
|
return;
|
|
9842
9844
|
}
|
|
9843
9845
|
const {
|