linkmore-design 1.1.13-alpha.0 → 1.1.13-alpha.1

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/dist/index.umd.js CHANGED
@@ -312320,7 +312320,7 @@
312320
312320
  return isExpandRow(children) ? children === null || children === void 0 ? void 0 : (_children$2 = children[0]) === null || _children$2 === void 0 ? void 0 : (_children$2$props = _children$2.props) === null || _children$2$props === void 0 ? void 0 : (_children$2$props$chi = _children$2$props.children) === null || _children$2$props$chi === void 0 ? void 0 : (_children$2$props$chi2 = _children$2$props$chi[1]) === null || _children$2$props$chi2 === void 0 ? void 0 : (_children$2$props$chi3 = _children$2$props$chi2.props) === null || _children$2$props$chi3 === void 0 ? void 0 : _children$2$props$chi3['aria-label'] : '';
312321
312321
  }
312322
312322
  function checkMemoShouldUploadSpecialFun(prev, next) {
312323
- var _prevCol$componentPro, _nextCol$componentPro, _prevCol$componentPro3, _nextCol$componentPro3;
312323
+ var _prevCol$componentPro, _nextCol$componentPro, _prevCol$componentPro2, _nextCol$componentPro2, _prevCol$componentPro3, _nextCol$componentPro3;
312324
312324
 
312325
312325
  var checkExpandStatus = getExpandStatus(prev.children) === getExpandStatus(next.children);
312326
312326
 
@@ -312331,10 +312331,24 @@
312331
312331
  var prevCol = prev === null || prev === void 0 ? void 0 : prev.col;
312332
312332
  var nextCol = next === null || next === void 0 ? void 0 : next.col;
312333
312333
 
312334
- if ((prevCol === null || prevCol === void 0 ? void 0 : (_prevCol$componentPro = prevCol.componentProps) === null || _prevCol$componentPro === void 0 ? void 0 : _prevCol$componentPro.optionOnly) || (nextCol === null || nextCol === void 0 ? void 0 : (_nextCol$componentPro = nextCol.componentProps) === null || _nextCol$componentPro === void 0 ? void 0 : _nextCol$componentPro.optionOnly)) {
312335
- var _prevCol$componentPro2, _nextCol$componentPro2;
312334
+ if (((prevCol === null || prevCol === void 0 ? void 0 : prevCol.fixed) || (nextCol === null || nextCol === void 0 ? void 0 : nextCol.fixed)) && !lodash.isEqual(prev === null || prev === void 0 ? void 0 : prev.style, next === null || next === void 0 ? void 0 : next.style)) {
312335
+ return false;
312336
+ }
312337
+
312338
+ if (((prevCol === null || prevCol === void 0 ? void 0 : (_prevCol$componentPro = prevCol.componentProps) === null || _prevCol$componentPro === void 0 ? void 0 : _prevCol$componentPro.optionOnly) || (nextCol === null || nextCol === void 0 ? void 0 : (_nextCol$componentPro = nextCol.componentProps) === null || _nextCol$componentPro === void 0 ? void 0 : _nextCol$componentPro.optionOnly)) && !lodash.isEqual(prevCol === null || prevCol === void 0 ? void 0 : (_prevCol$componentPro2 = prevCol.componentProps) === null || _prevCol$componentPro2 === void 0 ? void 0 : _prevCol$componentPro2.options, nextCol === null || nextCol === void 0 ? void 0 : (_nextCol$componentPro2 = nextCol.componentProps) === null || _nextCol$componentPro2 === void 0 ? void 0 : _nextCol$componentPro2.options)) {
312339
+ // return isEqual(prevCol?.componentProps?.options, nextCol?.componentProps?.options)
312340
+ return false;
312341
+ }
312342
+
312343
+ if (((prevCol === null || prevCol === void 0 ? void 0 : prevCol.order) || (nextCol === null || nextCol === void 0 ? void 0 : nextCol.order)) && !lodash.isEqual(prevCol === null || prevCol === void 0 ? void 0 : prevCol.order, nextCol === null || nextCol === void 0 ? void 0 : nextCol.order)) {
312344
+ // return isEqual(prevCol?.order, nextCol?.fixed)
312345
+ return false;
312346
+ }
312347
+
312348
+ if (next.className.indexOf('ant-table-selection-column') > -1) {
312349
+ var _prev$children, _prev$children$, _next$children, _next$children$;
312336
312350
 
312337
- return lodash.isEqual(prevCol === null || prevCol === void 0 ? void 0 : (_prevCol$componentPro2 = prevCol.componentProps) === null || _prevCol$componentPro2 === void 0 ? void 0 : _prevCol$componentPro2.options, nextCol === null || nextCol === void 0 ? void 0 : (_nextCol$componentPro2 = nextCol.componentProps) === null || _nextCol$componentPro2 === void 0 ? void 0 : _nextCol$componentPro2.options);
312351
+ return lodash.isEqual((_prev$children = prev.children) === null || _prev$children === void 0 ? void 0 : (_prev$children$ = _prev$children[1]) === null || _prev$children$ === void 0 ? void 0 : _prev$children$.props, (_next$children = next.children) === null || _next$children === void 0 ? void 0 : (_next$children$ = _next$children[1]) === null || _next$children$ === void 0 ? void 0 : _next$children$.props);
312338
312352
  }
312339
312353
  /** 如果启用了快速复制功能,需要实时判断rowIndex与getLength */
312340
312354
 
@@ -312346,12 +312360,6 @@
312346
312360
  return lodash.isEqual(p, n);
312347
312361
  }
312348
312362
 
312349
- if (next.className.indexOf('ant-table-selection-column') > -1) {
312350
- var _prev$children, _prev$children$, _next$children, _next$children$;
312351
-
312352
- return lodash.isEqual((_prev$children = prev.children) === null || _prev$children === void 0 ? void 0 : (_prev$children$ = _prev$children[1]) === null || _prev$children$ === void 0 ? void 0 : _prev$children$.props, (_next$children = next.children) === null || _next$children === void 0 ? void 0 : (_next$children$ = _next$children[1]) === null || _next$children$ === void 0 ? void 0 : _next$children$.props);
312353
- }
312354
-
312355
312363
  return true;
312356
312364
  }
312357
312365
 
@@ -313021,7 +313029,6 @@
313021
313029
  var pickProps = ['record', 'colIndex'];
313022
313030
  var p = lodash.pick(prev, pickProps);
313023
313031
  var n = lodash.pick(next, pickProps); // console.log(prev, next, '22', checkMemoShouldUploadSpecialFun(prev, next), isEqual(p, n))
313024
- // console.log(prev, next, '-sss')
313025
313032
 
313026
313033
  /** TODO: 在record中带有children,子列表数据修改之后,会导致父级的record对比不一样 */
313027
313034
 
@@ -313410,6 +313417,7 @@
313410
313417
  width: 48,
313411
313418
  maxWidth: 48,
313412
313419
  className: 'drag-visible',
313420
+ fixed: 'left',
313413
313421
  render: function render(_, record) {
313414
313422
  return /*#__PURE__*/React__default['default'].createElement(Dragger$1, {
313415
313423
  id: record[_rowKey] || record.id