@kne/table-page 0.1.26 → 0.1.30

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.
@@ -1916,7 +1916,7 @@ const resolveButtonGroupProps = (buttonGroup, getPopupContainer, {
1916
1916
  getPopupContainer: userGetPopupContainer
1917
1917
  } = buttonGroup,
1918
1918
  rest = _objectWithoutPropertiesLoose(buttonGroup, _excluded$2);
1919
- const resolvedShowLength = Number.isInteger(showLength) ? Math.max(minShowLength, showLength) : defaultShowLength;
1919
+ const resolvedShowLength = Number.isInteger(showLength) ? Math.max(minShowLength, showLength) : Number.isInteger(defaultShowLength) ? defaultShowLength : undefined;
1920
1920
  return _extends({}, rest, {
1921
1921
  list: normalizeButtonGroupList(list, defaultSize)
1922
1922
  }, defaultSize !== undefined ? {
@@ -1924,15 +1924,18 @@ const resolveButtonGroupProps = (buttonGroup, getPopupContainer, {
1924
1924
  } : size !== undefined ? {
1925
1925
  size
1926
1926
  } : {}, {
1927
- moreType: moreType != null ? moreType : 'link',
1928
- showLength: resolvedShowLength,
1927
+ moreType: moreType != null ? moreType : 'link'
1928
+ }, resolvedShowLength !== undefined ? {
1929
+ showLength: resolvedShowLength
1930
+ } : {}, {
1929
1931
  getPopupContainer: userGetPopupContainer != null ? userGetPopupContainer : getPopupContainer
1930
1932
  });
1931
1933
  };
1932
1934
  const resolveToolbarButtonGroupProps = (buttonGroup, getPopupContainer) => {
1933
1935
  return resolveButtonGroupProps(buttonGroup, getPopupContainer, {
1934
1936
  defaultSize: 'small',
1935
- defaultShowLength: 1,
1937
+ // 未显式传 showLength 时走 ButtonGroup 自适应测宽(@kne/overflow-items)
1938
+ defaultShowLength: undefined,
1936
1939
  minShowLength: 1
1937
1940
  });
1938
1941
  };