bj-web-components 0.2.17 → 0.2.18

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.
Files changed (86) hide show
  1. package/README.md +205 -205
  2. package/dist/index.d.ts +26 -4
  3. package/dist/miniapp.d.ts +1 -1
  4. package/dist/mobile.d.ts +1 -1
  5. package/dist/react.d.ts +1 -1
  6. package/dist/shared.d.ts +1 -1
  7. package/dist/style.css +1 -1
  8. package/dist/web/Table/BTable.js +1 -1
  9. package/dist/web/Table/BTable.mjs +446 -419
  10. package/dist/web.d.ts +1139 -2
  11. package/package.json +92 -92
  12. package/dist/miniapp/index.d.ts +0 -0
  13. package/dist/mobile/index.d.ts +0 -0
  14. package/dist/react/index.d.ts +0 -0
  15. package/dist/shared/index.d.ts +0 -0
  16. package/dist/web/BasicInput/BInput.d.ts +0 -3
  17. package/dist/web/BasicInput/index.d.ts +0 -2
  18. package/dist/web/BasicInput/types.d.ts +0 -32
  19. package/dist/web/BasicInput/utils.d.ts +0 -13
  20. package/dist/web/CategoryDropdown/CategoryDropdown.d.ts +0 -2
  21. package/dist/web/CategoryDropdown/index.d.ts +0 -2
  22. package/dist/web/CategoryDropdown/types.d.ts +0 -31
  23. package/dist/web/CheckBox/BCheckBox.d.ts +0 -3
  24. package/dist/web/CheckBox/Group.d.ts +0 -3
  25. package/dist/web/CheckBox/context.d.ts +0 -11
  26. package/dist/web/CheckBox/index.d.ts +0 -9
  27. package/dist/web/CheckBox/types.d.ts +0 -54
  28. package/dist/web/Dropdown/BDropdown.d.ts +0 -2
  29. package/dist/web/Dropdown/index.d.ts +0 -2
  30. package/dist/web/Dropdown/types.d.ts +0 -41
  31. package/dist/web/EmptyInputBox/EmptyInputBox.d.ts +0 -3
  32. package/dist/web/EmptyInputBox/index.d.ts +0 -2
  33. package/dist/web/EmptyInputBox/types.d.ts +0 -28
  34. package/dist/web/FileCard/FileCard.d.ts +0 -2
  35. package/dist/web/FileCard/index.d.ts +0 -2
  36. package/dist/web/FileCard/types.d.ts +0 -20
  37. package/dist/web/Icon/Icon.d.ts +0 -6
  38. package/dist/web/Icon/index.d.ts +0 -2
  39. package/dist/web/Icon/types.d.ts +0 -11
  40. package/dist/web/Input/Input.d.ts +0 -3
  41. package/dist/web/Input/index.d.ts +0 -2
  42. package/dist/web/Input/types.d.ts +0 -55
  43. package/dist/web/InputNumber/BInputNumber.d.ts +0 -3
  44. package/dist/web/InputNumber/StepHandler.d.ts +0 -10
  45. package/dist/web/InputNumber/hooks/useCursor.d.ts +0 -2
  46. package/dist/web/InputNumber/hooks/useFrame.d.ts +0 -2
  47. package/dist/web/InputNumber/index.d.ts +0 -2
  48. package/dist/web/InputNumber/types.d.ts +0 -60
  49. package/dist/web/InputNumber/utils/decimal.d.ts +0 -46
  50. package/dist/web/Modal/Modal.d.ts +0 -2
  51. package/dist/web/Modal/index.d.ts +0 -2
  52. package/dist/web/Modal/types.d.ts +0 -42
  53. package/dist/web/OverlayScrollbar/BOverlayScrollbar.d.ts +0 -2
  54. package/dist/web/OverlayScrollbar/index.d.ts +0 -2
  55. package/dist/web/OverlayScrollbar/types.d.ts +0 -18
  56. package/dist/web/Pagination/Pagination.d.ts +0 -3
  57. package/dist/web/Pagination/index.d.ts +0 -2
  58. package/dist/web/Pagination/types.d.ts +0 -44
  59. package/dist/web/ProductField/ProductField.d.ts +0 -2
  60. package/dist/web/ProductField/index.d.ts +0 -2
  61. package/dist/web/ProductField/types.d.ts +0 -48
  62. package/dist/web/SkuInputCard/SkuInputCard.d.ts +0 -2
  63. package/dist/web/SkuInputCard/index.d.ts +0 -2
  64. package/dist/web/SkuInputCard/types.d.ts +0 -63
  65. package/dist/web/Switch/Switch.d.ts +0 -6
  66. package/dist/web/Switch/index.d.ts +0 -2
  67. package/dist/web/Switch/types.d.ts +0 -29
  68. package/dist/web/Table/BTable.d.ts +0 -10
  69. package/dist/web/Table/Column.d.ts +0 -3
  70. package/dist/web/Table/ColumnGroup.d.ts +0 -3
  71. package/dist/web/Table/index.d.ts +0 -4
  72. package/dist/web/Table/types.d.ts +0 -299
  73. package/dist/web/Table/utils/columns.d.ts +0 -11
  74. package/dist/web/Table/utils/sortFilter.d.ts +0 -7
  75. package/dist/web/Tabs/BTabs.d.ts +0 -8
  76. package/dist/web/Tabs/TabPane.d.ts +0 -7
  77. package/dist/web/Tabs/index.d.ts +0 -3
  78. package/dist/web/Tabs/types.d.ts +0 -32
  79. package/dist/web/Tooltip/ConfirmTooltip.d.ts +0 -2
  80. package/dist/web/Tooltip/ContentTooltip.d.ts +0 -2
  81. package/dist/web/Tooltip/ProgressTooltip.d.ts +0 -2
  82. package/dist/web/Tooltip/TooltipWrapper.d.ts +0 -3
  83. package/dist/web/Tooltip/index.d.ts +0 -6
  84. package/dist/web/Tooltip/types.d.ts +0 -36
  85. package/dist/web/Tooltip/useAutoPlacement.d.ts +0 -7
  86. package/dist/web/index.d.ts +0 -18
package/README.md CHANGED
@@ -1,205 +1,205 @@
1
- # bu-max-ui
2
-
3
- 企业级 UI 组件库,支持 Web、移动端、小程序三端,基于 React + TypeScript 构建。
4
-
5
- ## 安装
6
-
7
- ```bash
8
- npm install bu-max-ui
9
- # 或
10
- pnpm add bu-max-ui
11
- ```
12
-
13
- ## 快速上手
14
-
15
- 引入组件时需同步引入样式文件:
16
-
17
- ```tsx
18
- import { SkuInputCard } from 'bu-max-ui';
19
- import 'bu-max-ui/style';
20
- ```
21
-
22
- ## Iconfont 图标
23
-
24
- Web 组件中的图标使用 `BuIcon`(与下方 `Iconfont` 实现等价)。宿主应用或文档站需要先加载项目 iconfont symbol:
25
-
26
- ```html
27
- <script src="//at.alicdn.com/t/c/font_5123795_8zzfaepwkju.js"></script>
28
- ```
29
-
30
- 随后通过 `type` 传入 symbol id(不包含 `#`):
31
-
32
- ```tsx
33
- import { BuIcon } from 'bu-max-ui/web';
34
-
35
- <BuIcon type="icon-a-dagouxi" style={{ width: 14, height: 14, color: '#333' }} />
36
- ```
37
-
38
- `BuIcon` 的实现如下:
39
-
40
- ```tsx
41
- import React from 'react';
42
-
43
- function Iconfont({ type, style, onClick, className, ...rest }) {
44
- return (
45
- <svg
46
- style={style}
47
- className={className ? `icon ${className}` : 'icon'}
48
- aria-hidden="true"
49
- onClick={onClick}
50
- {...rest}
51
- >
52
- <use xlinkHref={`#${type}`} />
53
- </svg>
54
- );
55
- }
56
-
57
- export default Iconfont;
58
- ```
59
-
60
- ### 基础用法
61
-
62
- ```tsx
63
- import { useState } from 'react';
64
- import { SkuInputCard } from 'bu-max-ui';
65
- import 'bu-max-ui/style';
66
-
67
- function App() {
68
- const [name, setName] = useState('');
69
- const [lang, setLang] = useState<'zh' | 'en'>('zh');
70
-
71
- return (
72
- <SkuInputCard
73
- mode="bilingual"
74
- name={name}
75
- onNameChange={setName}
76
- activeLang={lang}
77
- onLangChange={setLang}
78
- onDelete={() => setName('')}
79
- />
80
- );
81
- }
82
- ```
83
-
84
- ## 按需引入
85
-
86
- 支持按平台路径单独引入,减少构建体积:
87
-
88
- ```tsx
89
- // Web 组件
90
- import { SkuInputCard } from 'bu-max-ui/web';
91
-
92
- // 移动端组件
93
- import { ... } from 'bu-max-ui/mobile';
94
-
95
- // 小程序组件
96
- import { ... } from 'bu-max-ui/miniapp';
97
-
98
- // 通用组件
99
- import { ... } from 'bu-max-ui/shared';
100
- ```
101
-
102
- ## 组件列表
103
-
104
- ### Web
105
-
106
- | 组件 | 说明 |
107
- |------|------|
108
- | `SkuInputCard` | 商品规格名称输入卡片,支持单语 / 双语模式、拖拽排序、图片上传 |
109
- | `Button` | 按钮 |
110
- | `Input` | 输入框 |
111
- | `Card` | 卡片 |
112
- | `Select` | 选择器 |
113
- | `Tooltip` | 气泡提示 |
114
-
115
- ### Mobile
116
-
117
- | 组件 | 说明 |
118
- |------|------|
119
- | `Button` | 移动端按钮 |
120
- | `Input` | 移动端输入框 |
121
- | `Card` | 移动端卡片 |
122
- | `TabBar` | 底部导航栏 |
123
- | `Navbar` | 顶部导航栏 |
124
- | `ActionSheet` | 动作面板 |
125
- | `Toast` | 轻提示 |
126
-
127
- ### 小程序
128
-
129
- | 组件 | 说明 |
130
- |------|------|
131
- | `Button` | 小程序按钮 |
132
- | `Input` | 小程序输入框 |
133
- | `Card` | 小程序卡片 |
134
- | `TabBar` | 底部导航栏 |
135
- | `Navbar` | 顶部导航栏 |
136
- | `ActionSheet` | 动作面板 |
137
- | `Modal` | 弹窗 |
138
- | `Loading` | 加载态 |
139
- | `Toast` | 轻提示 |
140
- | `Cell` | 单元格列表 |
141
-
142
- ## SkuInputCard Props
143
-
144
- | 参数 | 类型 | 默认值 | 说明 |
145
- |------|------|--------|------|
146
- | `name` | `string` | `''` | 产品名称输入值 |
147
- | `onNameChange` | `(value: string) => void` | — | 名称变更回调 |
148
- | `mode` | `'single' \| 'bilingual'` | `'single'` | 单语或双语模式 |
149
- | `activeLang` | `'zh' \| 'en'` | `'zh'` | 双语模式下当前语言 |
150
- | `onLangChange` | `(lang: 'zh' \| 'en') => void` | — | 语言切换回调 |
151
- | `showBody` | `boolean` | `true` | 是否显示内容区域 |
152
- | `error` | `boolean` | `false` | 错误状态 |
153
- | `onDelete` | `() => void` | — | 点击删除按钮回调 |
154
- | `onUpload` | `(file: File) => string \| Promise<string>` | — | 自定义上传方法,返回图片 URL |
155
- | `images` | `string[]` | — | 外部托管的图片列表 |
156
- | `id` | `string` | — | 拖拽把手 id,供 DnD 库使用 |
157
- | `className` | `string` | — | 自定义类名 |
158
- | `style` | `CSSProperties` | — | 自定义样式 |
159
-
160
- ## 本地开发
161
-
162
- ```bash
163
- # 克隆仓库
164
- git clone <repo-url>
165
- cd bu-max-ui
166
-
167
- # 安装依赖
168
- pnpm install
169
-
170
- # 启动文档站(端口 3000)
171
- pnpm dev
172
-
173
- # 构建组件库
174
- pnpm build:lib
175
-
176
- # 监听模式(开发库时使用)
177
- pnpm build:lib:watch
178
- ```
179
-
180
- ### 项目结构
181
-
182
- ```
183
- ├── lib/ # 组件库源码(npm 包)
184
- │ ├── index.ts
185
- │ ├── web/ # Web 平台组件
186
- │ ├── mobile/ # 移动端组件
187
- │ ├── miniapp/ # 小程序组件
188
- │ ├── react/ # React 通用组件
189
- │ └── shared/ # 共享工具 / 组件
190
- ├── src/ # 文档站源码
191
- │ ├── pages/ # 各组件演示页面
192
- │ └── components/ # 文档站内部组件
193
- └── dist/ # 构建产物(发布到 npm)
194
- ```
195
-
196
- ## 技术栈
197
-
198
- - **框架**: React 19 + TypeScript
199
- - **构建**: Vite 6(双模式:文档站 / 组件库)
200
- - **样式**: Less(BEM 命名规范)
201
- - **文档站**: React Router DOM 6 + Tailwind CSS v4
202
-
203
- ## 许可证
204
-
205
- MIT
1
+ # bu-max-ui
2
+
3
+ 企业级 UI 组件库,支持 Web、移动端、小程序三端,基于 React + TypeScript 构建。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ npm install bu-max-ui
9
+ # 或
10
+ pnpm add bu-max-ui
11
+ ```
12
+
13
+ ## 快速上手
14
+
15
+ 引入组件时需同步引入样式文件:
16
+
17
+ ```tsx
18
+ import { SkuInputCard } from 'bu-max-ui';
19
+ import 'bu-max-ui/style';
20
+ ```
21
+
22
+ ## Iconfont 图标
23
+
24
+ Web 组件中的图标使用 `BuIcon`(与下方 `Iconfont` 实现等价)。宿主应用或文档站需要先加载项目 iconfont symbol:
25
+
26
+ ```html
27
+ <script src="//at.alicdn.com/t/c/font_5123795_8zzfaepwkju.js"></script>
28
+ ```
29
+
30
+ 随后通过 `type` 传入 symbol id(不包含 `#`):
31
+
32
+ ```tsx
33
+ import { BuIcon } from 'bu-max-ui/web';
34
+
35
+ <BuIcon type="icon-a-dagouxi" style={{ width: 14, height: 14, color: '#333' }} />
36
+ ```
37
+
38
+ `BuIcon` 的实现如下:
39
+
40
+ ```tsx
41
+ import React from 'react';
42
+
43
+ function Iconfont({ type, style, onClick, className, ...rest }) {
44
+ return (
45
+ <svg
46
+ style={style}
47
+ className={className ? `icon ${className}` : 'icon'}
48
+ aria-hidden="true"
49
+ onClick={onClick}
50
+ {...rest}
51
+ >
52
+ <use xlinkHref={`#${type}`} />
53
+ </svg>
54
+ );
55
+ }
56
+
57
+ export default Iconfont;
58
+ ```
59
+
60
+ ### 基础用法
61
+
62
+ ```tsx
63
+ import { useState } from 'react';
64
+ import { SkuInputCard } from 'bu-max-ui';
65
+ import 'bu-max-ui/style';
66
+
67
+ function App() {
68
+ const [name, setName] = useState('');
69
+ const [lang, setLang] = useState<'zh' | 'en'>('zh');
70
+
71
+ return (
72
+ <SkuInputCard
73
+ mode="bilingual"
74
+ name={name}
75
+ onNameChange={setName}
76
+ activeLang={lang}
77
+ onLangChange={setLang}
78
+ onDelete={() => setName('')}
79
+ />
80
+ );
81
+ }
82
+ ```
83
+
84
+ ## 按需引入
85
+
86
+ 支持按平台路径单独引入,减少构建体积:
87
+
88
+ ```tsx
89
+ // Web 组件
90
+ import { SkuInputCard } from 'bu-max-ui/web';
91
+
92
+ // 移动端组件
93
+ import { ... } from 'bu-max-ui/mobile';
94
+
95
+ // 小程序组件
96
+ import { ... } from 'bu-max-ui/miniapp';
97
+
98
+ // 通用组件
99
+ import { ... } from 'bu-max-ui/shared';
100
+ ```
101
+
102
+ ## 组件列表
103
+
104
+ ### Web
105
+
106
+ | 组件 | 说明 |
107
+ |------|------|
108
+ | `SkuInputCard` | 商品规格名称输入卡片,支持单语 / 双语模式、拖拽排序、图片上传 |
109
+ | `Button` | 按钮 |
110
+ | `Input` | 输入框 |
111
+ | `Card` | 卡片 |
112
+ | `Select` | 选择器 |
113
+ | `Tooltip` | 气泡提示 |
114
+
115
+ ### Mobile
116
+
117
+ | 组件 | 说明 |
118
+ |------|------|
119
+ | `Button` | 移动端按钮 |
120
+ | `Input` | 移动端输入框 |
121
+ | `Card` | 移动端卡片 |
122
+ | `TabBar` | 底部导航栏 |
123
+ | `Navbar` | 顶部导航栏 |
124
+ | `ActionSheet` | 动作面板 |
125
+ | `Toast` | 轻提示 |
126
+
127
+ ### 小程序
128
+
129
+ | 组件 | 说明 |
130
+ |------|------|
131
+ | `Button` | 小程序按钮 |
132
+ | `Input` | 小程序输入框 |
133
+ | `Card` | 小程序卡片 |
134
+ | `TabBar` | 底部导航栏 |
135
+ | `Navbar` | 顶部导航栏 |
136
+ | `ActionSheet` | 动作面板 |
137
+ | `Modal` | 弹窗 |
138
+ | `Loading` | 加载态 |
139
+ | `Toast` | 轻提示 |
140
+ | `Cell` | 单元格列表 |
141
+
142
+ ## SkuInputCard Props
143
+
144
+ | 参数 | 类型 | 默认值 | 说明 |
145
+ |------|------|--------|------|
146
+ | `name` | `string` | `''` | 产品名称输入值 |
147
+ | `onNameChange` | `(value: string) => void` | — | 名称变更回调 |
148
+ | `mode` | `'single' \| 'bilingual'` | `'single'` | 单语或双语模式 |
149
+ | `activeLang` | `'zh' \| 'en'` | `'zh'` | 双语模式下当前语言 |
150
+ | `onLangChange` | `(lang: 'zh' \| 'en') => void` | — | 语言切换回调 |
151
+ | `showBody` | `boolean` | `true` | 是否显示内容区域 |
152
+ | `error` | `boolean` | `false` | 错误状态 |
153
+ | `onDelete` | `() => void` | — | 点击删除按钮回调 |
154
+ | `onUpload` | `(file: File) => string \| Promise<string>` | — | 自定义上传方法,返回图片 URL |
155
+ | `images` | `string[]` | — | 外部托管的图片列表 |
156
+ | `id` | `string` | — | 拖拽把手 id,供 DnD 库使用 |
157
+ | `className` | `string` | — | 自定义类名 |
158
+ | `style` | `CSSProperties` | — | 自定义样式 |
159
+
160
+ ## 本地开发
161
+
162
+ ```bash
163
+ # 克隆仓库
164
+ git clone <repo-url>
165
+ cd bu-max-ui
166
+
167
+ # 安装依赖
168
+ pnpm install
169
+
170
+ # 启动文档站(端口 3000)
171
+ pnpm dev
172
+
173
+ # 构建组件库
174
+ pnpm build:lib
175
+
176
+ # 监听模式(开发库时使用)
177
+ pnpm build:lib:watch
178
+ ```
179
+
180
+ ### 项目结构
181
+
182
+ ```
183
+ ├── lib/ # 组件库源码(npm 包)
184
+ │ ├── index.ts
185
+ │ ├── web/ # Web 平台组件
186
+ │ ├── mobile/ # 移动端组件
187
+ │ ├── miniapp/ # 小程序组件
188
+ │ ├── react/ # React 通用组件
189
+ │ └── shared/ # 共享工具 / 组件
190
+ ├── src/ # 文档站源码
191
+ │ ├── pages/ # 各组件演示页面
192
+ │ └── components/ # 文档站内部组件
193
+ └── dist/ # 构建产物(发布到 npm)
194
+ ```
195
+
196
+ ## 技术栈
197
+
198
+ - **框架**: React 19 + TypeScript
199
+ - **构建**: Vite 6(双模式:文档站 / 组件库)
200
+ - **样式**: Less(BEM 命名规范)
201
+ - **文档站**: React Router DOM 6 + Tailwind CSS v4
202
+
203
+ ## 许可证
204
+
205
+ MIT
package/dist/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  import { CSSProperties } from 'react';
2
+ import { default as default_2 } from 'react';
2
3
  import { FocusEvent as FocusEvent_2 } from 'react';
3
4
  import { FocusEventHandler } from 'react';
4
5
  import { ForwardRefExoticComponent } from 'react';
5
6
  import { HTMLAttributes } from 'react';
6
7
  import { InputHTMLAttributes } from 'react';
7
- import { JSX } from 'react/jsx-runtime';
8
+ import { JSX } from 'react';
8
9
  import { Key } from 'react';
9
10
  import { KeyboardEvent as KeyboardEvent_2 } from 'react';
10
11
  import { KeyboardEventHandler } from 'react';
@@ -246,7 +247,7 @@ export declare const BTable: typeof BTable_2 & {
246
247
  ColumnGroup: typeof ColumnGroup;
247
248
  };
248
249
 
249
- declare function BTable_2<RecordType extends object>({ columns, dataSource, rowKey, rowSelection, pagination, loading, bordered, size, showHeader, emptyText, emptyImage, emptyHeight, t, className, style, rowClassName, sortDirections, onChange, children, title, footer, summary, tableLayout, components, onRow, onHeaderRow, id, scroll, locale, }: TableProps<RecordType>): JSX.Element;
250
+ declare function BTable_2<RecordType extends object>({ columns, dataSource, rowKey, preserveSelectedRowKeys, rowSelection, pagination, loading, bordered, size, showHeader, emptyText, emptyImage, emptyHeight, t, className, style, rowClassName, sortDirections, onChange, children, title, footer, summary, tableLayout, components, onRow, onHeaderRow, id, scroll, locale, groupCollapse, }: TableProps<RecordType>): JSX.Element;
250
251
 
251
252
  export declare function BTabs({ activeKey, children, centered, className, defaultActiveKey, id, items, onChange, onTabClick, style, tabBarGutter, tabBarStyle, tabPosition, type, }: BTabsProps): JSX.Element;
252
253
 
@@ -784,6 +785,25 @@ export declare type GetRowKey<RecordType> = (record: RecordType, index?: number)
784
785
 
785
786
  declare const Group: ForwardRefExoticComponent<BCheckBoxGroupProps & RefAttributes<HTMLDivElement>>;
786
787
 
788
+ export declare interface GroupCollapseConfig<RecordType> {
789
+ /** Identify group header records. Defaults to `record.isGroup`. */
790
+ isGroupRow?: (record: RecordType, index: number) => boolean;
791
+ /** Return the stable key for a group header. Defaults to `record.groupId`. */
792
+ groupKey?: (record: RecordType, index: number) => TableKey;
793
+ /** Return the stable keys of the group's child records. */
794
+ childrenKeys?: (record: RecordType, index: number) => readonly TableKey[];
795
+ expandedKeys?: readonly TableKey[];
796
+ defaultExpandedKeys?: readonly TableKey[];
797
+ onExpandedKeysChange?: (expandedKeys: readonly TableKey[], record: RecordType, expanded: boolean) => void;
798
+ render?: (props: GroupCollapseRenderProps<RecordType>) => ReactNode;
799
+ }
800
+
801
+ export declare interface GroupCollapseRenderProps<RecordType> {
802
+ record: RecordType;
803
+ expanded: boolean;
804
+ onToggle: () => void;
805
+ }
806
+
787
807
  export declare type ModalLang = 'zh' | 'en';
788
808
 
789
809
  export declare type ModalMode = 'standard' | 'bilingual' | 'single';
@@ -848,7 +868,7 @@ export declare interface ProductFieldOption {
848
868
  searchText?: string;
849
869
  }
850
870
 
851
- export declare function ProgressTooltip({ placement, title, progress, className, style, }: ProgressTooltipProps): JSX.Element;
871
+ export declare function ProgressTooltip({ placement, title, progress, className, style, }: ProgressTooltipProps): default_2.JSX.Element;
852
872
 
853
873
  export declare interface ProgressTooltipProps extends BaseTooltipProps {
854
874
  title?: string;
@@ -1010,6 +1030,8 @@ export declare interface TableProps<RecordType extends object> {
1010
1030
  children?: ReactNode;
1011
1031
  dataSource?: readonly RecordType[];
1012
1032
  rowKey?: keyof RecordType | string | GetRowKey<RecordType>;
1033
+ /** Whether to preserve selected keys that are not in the current visible rows after pagination or filtering. */
1034
+ preserveSelectedRowKeys?: boolean;
1013
1035
  rowSelection?: TableRowSelection<RecordType>;
1014
1036
  pagination?: false | TablePaginationConfig;
1015
1037
  loading?: boolean | {
@@ -1052,6 +1074,7 @@ export declare interface TableProps<RecordType extends object> {
1052
1074
  onRow?: GetComponentProps<RecordType>;
1053
1075
  onHeaderRow?: GetComponentProps<readonly ColumnType<RecordType>[]>;
1054
1076
  expandable?: ExpandableConfig<RecordType>;
1077
+ groupCollapse?: GroupCollapseConfig<RecordType>;
1055
1078
  locale?: TableLocale;
1056
1079
  sortDirections?: SortOrder[];
1057
1080
  showSorterTooltip?: boolean | {
@@ -1063,7 +1086,6 @@ export declare interface TableProps<RecordType extends object> {
1063
1086
  }
1064
1087
 
1065
1088
  export declare interface TableRowSelection<RecordType> {
1066
- preserveSelectedRowKeys?: boolean;
1067
1089
  type?: TableSelectionType;
1068
1090
  selectedRowKeys?: TableKey[];
1069
1091
  defaultSelectedRowKeys?: TableKey[];
package/dist/miniapp.d.ts CHANGED
@@ -1 +1 @@
1
- export {}
1
+ export { }
package/dist/mobile.d.ts CHANGED
@@ -1 +1 @@
1
- export {}
1
+ export { }
package/dist/react.d.ts CHANGED
@@ -1 +1 @@
1
- export {}
1
+ export { }
package/dist/shared.d.ts CHANGED
@@ -1 +1 @@
1
- export {}
1
+ export { }