@kne/table-page 0.1.15 → 0.1.16

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.
@@ -1156,7 +1156,7 @@ const TreeExpandContent = ({
1156
1156
 
1157
1157
  const _excluded$3 = ["className", "dataSource", "columns", "rowKey", "rowSelection", "valueIsEmpty", "emptyIsPlaceholder", "placeholder", "empty", "onRowSelect", "render", "renderMobile", "context", "sticky", "scrollTopInset", "stickyOffset", "getStickyContainer", "headerStyle", "pagination", "sortRender", "mobileSortToolbar", "name", "controllerOpen", "tableServerApis", "scroll", "summary", "size", "dataType", "parentKey", "childrenKey", "hasChildrenKey", "treeTitleKey", "onLoadChildren", "expandedKeys", "defaultExpandedKeys", "onExpandedKeysChange", "indentSize"],
1158
1158
  _excluded2$2 = ["y"],
1159
- _excluded3 = ["getContainer"];
1159
+ _excluded3$1 = ["getContainer"];
1160
1160
  const mapJustifyToAlign = justify => {
1161
1161
  if (justify === 'center') {
1162
1162
  return 'center';
@@ -1870,7 +1870,7 @@ const Table = p => {
1870
1870
  }
1871
1871
  const config = typeof sticky === 'object' ? Object.assign({}, sticky) : {};
1872
1872
  if (hasScrollY) {
1873
- const scrollSticky = _objectWithoutPropertiesLoose(config, _excluded3);
1873
+ const scrollSticky = _objectWithoutPropertiesLoose(config, _excluded3$1);
1874
1874
  return Object.assign({
1875
1875
  offsetHeader: 0
1876
1876
  }, scrollSticky);
@@ -2324,8 +2324,9 @@ const resolveToolbarButtonGroupProps = (buttonGroup, getPopupContainer) => {
2324
2324
 
2325
2325
  var style = {"kne-responsive-boundary":"kne-table-page_u90lj","kne-responsive-scroll":"kne-table-page_bSj1H","table-toolbar-section":"kne-table-page_I21Xn","has-value-display":"kne-table-page_COnMY","table-toolbar":"kne-table-page_x6mv7","table-toolbar-value-display":"kne-table-page_vbwMg","table-toolbar-batch":"kne-table-page_k8-Ku","table-toolbar-batch-btn":"kne-table-page_gZtbT","table-toolbar-batch-clear-btn":"kne-table-page_o6Oml","table-toolbar-actions":"kne-table-page_t3-57","table-toolbar-button-group":"kne-table-page_2sdSC","table-toolbar-search":"kne-table-page_pB5en","table-page-tabs":"kne-table-page_UTy3R","is-mobile-render":"kne-table-page_J-AEV","is-mobile":"kne-table-page_n9eAS","table-toolbar-mobile-actions":"kne-table-page_I--A1","table-toolbar-mobile-filter-row":"kne-table-page_Qo5Zl","table-toolbar-filter":"kne-table-page_Jyfm7","has-mobile-search":"kne-table-page_14SJt","table-toolbar-search-row":"kne-table-page_zuGJv","has-mobile-search-only":"kne-table-page_Y5IR1","has-tabs":"kne-table-page_EImBh","table-toolbar-search-input":"kne-table-page_t60hK","table-toolbar-divider":"kne-table-page_z--2N","table-toolbar-filter-outer":"kne-table-page_PiWGM","table-toolbar-filter-inner":"kne-table-page_AX3aK"};
2326
2326
 
2327
- const _excluded$1 = ["list", "displayLine", "extraExpand", "className"],
2328
- _excluded2$1 = ["className", "style"];
2327
+ const _excluded$1 = ["getPopupContainer"],
2328
+ _excluded2$1 = ["list", "displayLine", "extraExpand", "className"],
2329
+ _excluded3 = ["className", "style"];
2329
2330
  const TAB_ALL_KEY = '__all__';
2330
2331
  const getTabActiveKey = (filterValue, tabName) => {
2331
2332
  var _entry$value;
@@ -2347,7 +2348,13 @@ const TablePageTabs = ({
2347
2348
  const {
2348
2349
  formatMessage
2349
2350
  } = useIntl();
2351
+ const getPopupContainer = usePopupContainer();
2350
2352
  const showTab = !!(tab != null && tab.name && Array.isArray(tab.list) && tab.list.length > 0);
2353
+ const _ref = tabProps || {},
2354
+ {
2355
+ getPopupContainer: userGetPopupContainer
2356
+ } = _ref,
2357
+ restTabProps = _objectWithoutPropertiesLoose(_ref, _excluded$1);
2351
2358
  const tabItems = useMemo(() => {
2352
2359
  if (!showTab) {
2353
2360
  return [];
@@ -2388,7 +2395,8 @@ const TablePageTabs = ({
2388
2395
  }),
2389
2396
  children: /*#__PURE__*/jsx(Tabs, _extends({
2390
2397
  size: "small"
2391
- }, tabProps, {
2398
+ }, restTabProps, {
2399
+ getPopupContainer: userGetPopupContainer != null ? userGetPopupContainer : getPopupContainer,
2392
2400
  activeKey: getTabActiveKey(filterValue, tab.name),
2393
2401
  onChange: handleTabChange,
2394
2402
  items: tabItems
@@ -2518,20 +2526,20 @@ const TableToolbar = ({
2518
2526
  if (!showBatchInToolbar && !showFilter && !showSearch && !showTab && !showButtonGroup && !showCardModeToggle) {
2519
2527
  return null;
2520
2528
  }
2521
- const _ref = filter || {},
2529
+ const _ref2 = filter || {},
2522
2530
  {
2523
2531
  list: filterList,
2524
2532
  displayLine = 1,
2525
2533
  extraExpand,
2526
2534
  className: filterClassName
2527
- } = _ref,
2528
- filterRest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
2529
- const _ref2 = search || {},
2535
+ } = _ref2,
2536
+ filterRest = _objectWithoutPropertiesLoose(_ref2, _excluded2$1);
2537
+ const _ref3 = search || {},
2530
2538
  {
2531
2539
  className: searchClassName,
2532
2540
  style: searchStyle
2533
- } = _ref2,
2534
- searchRest = _objectWithoutPropertiesLoose(_ref2, _excluded2$1);
2541
+ } = _ref3,
2542
+ searchRest = _objectWithoutPropertiesLoose(_ref3, _excluded3);
2535
2543
 
2536
2544
  // tab 已有选中态展示,已选筛选标签中不再重复显示 tab 的值
2537
2545
  const displayFilterValue = hasTab ? (filterValue || []).filter(item => (item == null ? void 0 : item.name) !== tab.name) : filterValue || [];