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.
@@ -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
- showOverflow
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
- if (!rowOpts.height) {
2112
- const errColumn = internalData.tableFullColumn.find(column => column.showOverflow === false);
2113
- if (errColumn) {
2114
- (0, _log.errLog)('vxe.error.errProp', [`column[field="${errColumn.field}"].show-overflow=false`, 'show-overflow=true']);
2115
- }
2116
- }
2117
- }
2118
- if (process.env.NODE_ENV === 'development') {
2119
- // if (props.showHeader && !props.showHeaderOverflow) {
2120
- // warnLog('vxe.error.reqProp', ['show-header-overflow'])
2121
- // }
2122
- // if (props.showFooter && !props.showFooterOverflow) {
2123
- // warnLog('vxe.error.reqProp', ['show-footer-overflow'])
2124
- // }
2125
- if (props.spanMethod) {
2126
- (0, _log.warnLog)('vxe.error.scrollErrProp', ['span-method']);
2127
- }
2128
- if (props.footerSpanMethod) {
2129
- (0, _log.warnLog)('vxe.error.scrollErrProp', ['footer-span-method']);
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 (!(scrollYLoad || leftFixedWidth || rightFixedWidth || expandColumn)) {
9842
+ if (!(leftFixedWidth || rightFixedWidth || expandColumn)) {
9841
9843
  return;
9842
9844
  }
9843
9845
  const {