linkmore-design 1.0.20 → 1.0.21

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
@@ -73909,7 +73909,6 @@
73909
73909
  checkConfig: checkConfig,
73910
73910
  // components: vComponents,
73911
73911
  scroll: _objectSpread({
73912
- x: '100%',
73913
73912
  y: autoSize.height
73914
73913
  }, props.scroll),
73915
73914
  pagination: !hiddenPage && _objectSpread({
@@ -74050,32 +74049,31 @@
74050
74049
  var defaultRef = ref || React.useRef(null);
74051
74050
  var tableWarpRef = React.useRef(null);
74052
74051
  var resizeRef = React.useRef(null);
74053
- var throttleSize = React.useCallback(function () {
74054
- console.log(tableSize, '211');
74055
- var width = tableSize.width,
74056
- height = tableSize.height;
74052
+ var resetHeight = React.useMemo(function () {
74053
+ var height = tableSize.height;
74054
+ console.log(3);
74055
+ var h = height - 48;
74057
74056
 
74058
- var resetHeight = function resetHeight() {
74059
- var h = height - 48;
74060
-
74061
- if (!props.hiddenPage || props.customCheck) {
74062
- h -= 32;
74063
- }
74064
-
74065
- if (props.columns.some(function (v) {
74066
- return v.children;
74067
- })) {
74068
- h -= 32;
74069
- }
74057
+ if (!props.hiddenPage || props.customCheck) {
74058
+ h -= 32;
74059
+ }
74070
74060
 
74071
- return h;
74072
- };
74061
+ if (props.columns.some(function (v) {
74062
+ return v.children;
74063
+ })) {
74064
+ h -= 32;
74065
+ }
74073
74066
 
74067
+ return h;
74068
+ }, [props.hiddenPage, props.customCheck, props.column, tableSize]);
74069
+ var throttleSize = React.useCallback(function () {
74070
+ var width = tableSize.width,
74071
+ height = tableSize.height;
74074
74072
  return /*#__PURE__*/React__default['default'].createElement(ResetTable$1, _extends({
74075
74073
  ref: defaultRef
74076
74074
  }, props, {
74077
74075
  autoSize: {
74078
- height: resetHeight(),
74076
+ height: resetHeight,
74079
74077
  width: width
74080
74078
  }
74081
74079
  }));