linkmore-design 1.1.19-beta.3 → 1.1.19-beta.4

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.
@@ -0,0 +1,2 @@
1
+ export default App;
2
+ declare function App(): JSX.Element;
package/dist/index.umd.js CHANGED
@@ -223014,6 +223014,9 @@
223014
223014
  _useState2 = _slicedToArray$1(_useState, 2),
223015
223015
  items = _useState2[0],
223016
223016
  setItems = _useState2[1];
223017
+ React.useEffect(function () {
223018
+ setItems(initialItems);
223019
+ }, [initialItems]);
223017
223020
  var _useState3 = React.useState(Object.keys(items)),
223018
223021
  _useState4 = _slicedToArray$1(_useState3, 2),
223019
223022
  containers = _useState4[0],
@@ -224396,9 +224399,6 @@
224396
224399
  _useState2 = _slicedToArray$1(_useState, 2),
224397
224400
  dndColumns = _useState2[0],
224398
224401
  setDndColumns = _useState2[1];
224399
- React.useEffect(function () {
224400
- setDndColumns(columns);
224401
- }, [columns]);
224402
224402
  var _useState3 = React.useState([]),
224403
224403
  _useState4 = _slicedToArray$1(_useState3, 2),
224404
224404
  groupRowKeys = _useState4[0],
@@ -224427,6 +224427,10 @@
224427
224427
  _useState8 = _slicedToArray$1(_useState7, 2),
224428
224428
  items = _useState8[0],
224429
224429
  setItems = _useState8[1];
224430
+ React.useEffect(function () {
224431
+ setDndColumns(columns);
224432
+ setItems(defaultItems);
224433
+ }, [columns]);
224430
224434
  // 更新
224431
224435
  var updateItems = function updateItems(value, resume) {
224432
224436
  if (resume) {
@@ -224482,7 +224486,7 @@
224482
224486
  }, attributes, listeners), title);
224483
224487
  }
224484
224488
 
224485
- var _excluded$1_ = ["columns", "dataSource", "autoSize", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "colSortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size", "openSheet", "editSheet", "dataChange", "openColGroup", "colGroupTitle", "openRowGroup", "rowGroupTitle", "emptyProps"],
224489
+ var _excluded$1_ = ["columns", "dataSource", "autoSize", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "colSortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size", "openSheet", "editSheet", "dataChange", "openColGroup", "colGroupTitle", "openRowGroup", "rowGroupTitle", "groupWidth", "emptyProps"],
224486
224490
  _excluded2$r = ["className", "style"],
224487
224491
  _excluded3$6 = ["onResize", "width", "dataIndex", "onResizeStop"];
224488
224492
  var Summary$1 = ProviderWarp.Summary;
@@ -224555,6 +224559,7 @@
224555
224559
  colGroupTitle = props.colGroupTitle,
224556
224560
  openRowGroup = props.openRowGroup,
224557
224561
  rowGroupTitle = props.rowGroupTitle,
224562
+ groupWidth = props.groupWidth,
224558
224563
  emptyProps = props.emptyProps,
224559
224564
  resetProps = _objectWithoutProperties$1(props, _excluded$1_);
224560
224565
  var _resetProps$rowKey = resetProps.rowKey,
@@ -224622,7 +224627,6 @@
224622
224627
  }),
224623
224628
  _useGroupDataSource2 = _slicedToArray$1(_useGroupDataSource, 1),
224624
224629
  groupDataSource = _useGroupDataSource2[0];
224625
-
224626
224630
  /** 列分组 */
224627
224631
  var _useMemo = React.useMemo(function () {
224628
224632
  if (!(groupColKeys === null || groupColKeys === void 0 ? void 0 : groupColKeys.length)) {
@@ -225364,7 +225368,7 @@
225364
225368
  title: '分组',
225365
225369
  dataIndex: '_group',
225366
225370
  key: '_group',
225367
- width: 100,
225371
+ width: groupWidth || 100,
225368
225372
  fixed: true
225369
225373
  }].concat(_toConsumableArray$1(innerColumns));
225370
225374
  }
@@ -225743,7 +225747,9 @@
225743
225747
  /** 1: 使用scroll.x y 来控制宽高 默认都是100% */
225744
225748
  var ResizeSize = /*#__PURE__*/React.forwardRef(function (props, ref) {
225745
225749
  var _props$autoSizer = props.autoSizer,
225746
- autoSizer = _props$autoSizer === void 0 ? false : _props$autoSizer;
225750
+ autoSizer = _props$autoSizer === void 0 ? false : _props$autoSizer,
225751
+ openRowGroup = props.openRowGroup,
225752
+ openColGroup = props.openColGroup;
225747
225753
  var _useState21 = React.useState({
225748
225754
  width: '100%',
225749
225755
  height: '100%'
@@ -225773,6 +225779,9 @@
225773
225779
  }
225774
225780
  var resetHeight = React.useMemo(function () {
225775
225781
  var height = tableSize.height;
225782
+ if (typeof height === 'string') {
225783
+ return height;
225784
+ }
225776
225785
  // 头部高度
225777
225786
  var h = height - (props.size === 'middle' ? 47 : 40);
225778
225787
  if (!props.hiddenPage || props.customCheck) {
@@ -225783,6 +225792,9 @@
225783
225792
  })) {
225784
225793
  h -= 32;
225785
225794
  }
225795
+ if (openRowGroup || openColGroup) {
225796
+ h -= 100;
225797
+ }
225786
225798
  return h;
225787
225799
  }, [props.hiddenPage, props.customCheck, props.columns, tableSize]);
225788
225800
  var throttleSize = React.useCallback(function () {