@unicom-cloud/ui 0.8.99 → 0.8.101

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 (293) hide show
  1. package/Anchor.js +3 -1
  2. package/Badge.js +7 -6
  3. package/Copy.js +49 -2
  4. package/Details.js +13 -2
  5. package/Divider.js +3 -2
  6. package/Flex.js +22 -0
  7. package/Grid.js +1 -1
  8. package/LiquidFill.js +3 -2
  9. package/Loading.js +16 -3
  10. package/Marquee.js +3 -2
  11. package/QrCode.js +3 -2
  12. package/Space.js +3 -3
  13. package/Splitter.js +5 -5
  14. package/SuspenseFallbackTest.js +2 -4
  15. package/Tag.js +3 -2
  16. package/Tour.js +3 -2
  17. package/alert/index.js +61 -64
  18. package/anchor/index.js +5 -3
  19. package/back-top/index.js +32 -33
  20. package/badge/index.js +19 -18
  21. package/calendar/index.js +85 -84
  22. package/components/common/development/index.js +44 -29
  23. package/components/common/empty/index.js +35 -23
  24. package/components/common/flex/index.js +64 -0
  25. package/components/common/flex/interface.js +9 -0
  26. package/components/common/higher-order/with-speech-synthesis/index.js +79 -55
  27. package/components/common/space/index.js +71 -91
  28. package/components/common/suspense-fallback-test/index.js +16 -0
  29. package/components/common/utils/toArray.js +12 -0
  30. package/copy/index.js +83 -35
  31. package/details/index.js +102 -62
  32. package/divider/index.js +27 -21
  33. package/empty/index.js +13 -13
  34. package/flex/index.js +47 -0
  35. package/flex/interface.js +1 -0
  36. package/grid/{GridItem.js → Item.js} +15 -15
  37. package/grid/index.js +1 -1
  38. package/icon/interface.js +1 -0
  39. package/icon-hover/interface.js +1 -0
  40. package/index.js +610 -599
  41. package/input/Button.js +39 -34
  42. package/input/Textarea.js +108 -104
  43. package/liquid-fill/index.js +3 -2
  44. package/loading/index.js +72 -53
  45. package/loading/interface.js +1 -0
  46. package/marquee/index.js +3 -2
  47. package/modal/Modal.js +73 -74
  48. package/package.json +1 -1
  49. package/portal/interface.js +1 -0
  50. package/qr-code/index.js +3 -2
  51. package/segmented/index.js +113 -105
  52. package/space/index.js +41 -35
  53. package/speech-synthesis/interface.js +1 -0
  54. package/spin/index.js +75 -62
  55. package/splitter/Panel.js +39 -0
  56. package/splitter/SplitBar.js +157 -0
  57. package/splitter/Splitter.js +135 -0
  58. package/splitter/hooks/useEvent.js +12 -0
  59. package/splitter/hooks/useItems.js +26 -0
  60. package/splitter/hooks/useResizable.js +26 -0
  61. package/splitter/hooks/useResize.js +68 -0
  62. package/splitter/hooks/useSizes.js +60 -0
  63. package/splitter/index.js +6 -115
  64. package/style.css +1 -1
  65. package/suspense-fallback-test/index.js +2 -11
  66. package/suspense-fallback-test/interface.js +1 -0
  67. package/table/Table.js +38 -38
  68. package/table/hook/useThResizable.js +72 -26
  69. package/table/tbody/Td.js +80 -77
  70. package/table/th-resizable/index.js +92 -35
  71. package/tag/index.js +42 -41
  72. package/tooltip/index.js +89 -82
  73. package/tour/index.js +5 -6
  74. package/trigger/index.js +67 -70
  75. package/types/common/development/index.d.ts +7 -1
  76. package/types/common/development/interface.d.ts +22 -0
  77. package/types/common/empty/index.d.ts +2 -1
  78. package/types/common/flex/index.d.ts +14 -0
  79. package/types/common/flex/interface.d.ts +62 -0
  80. package/types/common/higher-order/with-speech-synthesis/index.d.ts +6 -1
  81. package/types/common/higher-order/with-speech-synthesis/interface.d.ts +13 -0
  82. package/types/common/space/index.d.ts +4 -3
  83. package/types/common/space/interface.d.ts +10 -18
  84. package/types/common/suspense-fallback-test/index.d.ts +7 -0
  85. package/types/common/suspense-fallback-test/interface.d.ts +1 -0
  86. package/types/common/utils/PqbCSSTransition.d.ts +1 -1
  87. package/types/common/utils/toArray.d.ts +13 -0
  88. package/types/pc/affix/interface.d.ts +0 -2
  89. package/types/pc/alert/index.d.ts +3 -2
  90. package/types/pc/alert/interface.d.ts +7 -1
  91. package/types/pc/anchor/index.d.ts +2 -1
  92. package/types/pc/anchor/interface.d.ts +0 -2
  93. package/types/pc/auto-complete/interface.d.ts +0 -6
  94. package/types/pc/avatar/interface.d.ts +0 -4
  95. package/types/pc/badge/Count.d.ts +1 -1
  96. package/types/pc/breadcrumb/Item.d.ts +1 -1
  97. package/types/pc/breadcrumb/interface.d.ts +0 -3
  98. package/types/pc/calendar/Month.d.ts +1 -1
  99. package/types/pc/calendar/WeekList.d.ts +1 -1
  100. package/types/pc/calendar/Year.d.ts +1 -1
  101. package/types/pc/calendar/header/Panel.d.ts +1 -1
  102. package/types/pc/calendar/header/index.d.ts +1 -1
  103. package/types/pc/calendar/index.d.ts +1 -1
  104. package/types/pc/calendar/interface.d.ts +2 -1
  105. package/types/pc/carousel/interface.d.ts +2 -6
  106. package/types/pc/cascader/interface.d.ts +7 -19
  107. package/types/pc/cascader/panel/List.d.ts +1 -1
  108. package/types/pc/cascader/panel/Option.d.ts +1 -1
  109. package/types/pc/cascader/panel/Search.d.ts +1 -1
  110. package/types/pc/checkbox/Group.d.ts +2 -2
  111. package/types/pc/checkbox/GroupBlock.d.ts +1 -1
  112. package/types/pc/checkbox/IconCheck.d.ts +1 -1
  113. package/types/pc/checkbox/interface.d.ts +0 -1
  114. package/types/pc/collapse/interface.d.ts +0 -2
  115. package/types/pc/color-picker/InputRgb.d.ts +1 -1
  116. package/types/pc/color-picker/Palette.d.ts +1 -1
  117. package/types/pc/color-picker/interface.d.ts +0 -2
  118. package/types/pc/config-provider/ConfigProvider.d.ts +1 -1
  119. package/types/pc/config-provider/interface.d.ts +17 -17
  120. package/types/pc/copy/index.d.ts +1 -1
  121. package/types/pc/copy/interface.d.ts +2 -1
  122. package/types/pc/date-picker/interface.d.ts +0 -17
  123. package/types/pc/date-picker/panel/Body.d.ts +1 -1
  124. package/types/pc/date-picker/panel/Footer.d.ts +1 -1
  125. package/types/pc/date-picker/panel/Header.d.ts +1 -1
  126. package/types/pc/date-picker/panel/WeekList.d.ts +1 -1
  127. package/types/pc/date-picker/panel/date/index.d.ts +1 -1
  128. package/types/pc/date-picker/panel/month/index.d.ts +1 -1
  129. package/types/pc/date-picker/panel/quarter/index.d.ts +1 -1
  130. package/types/pc/date-picker/panel/range/index.d.ts +1 -1
  131. package/types/pc/date-picker/panel/week/index.d.ts +1 -1
  132. package/types/pc/date-picker/panel/year/index.d.ts +1 -1
  133. package/types/pc/descriptions/index.d.ts +1 -1
  134. package/types/pc/descriptions/interface.d.ts +0 -1
  135. package/types/pc/details/index.d.ts +3 -2
  136. package/types/pc/details/interface.d.ts +16 -0
  137. package/types/pc/development/index.d.ts +2 -1
  138. package/types/pc/development/interface.d.ts +15 -0
  139. package/types/pc/divider/index.d.ts +7 -2
  140. package/types/pc/draggable/Item.d.ts +1 -1
  141. package/types/pc/draggable/index.d.ts +1 -1
  142. package/types/pc/drawer/interface.d.ts +0 -7
  143. package/types/pc/dropdown/interface.d.ts +0 -1
  144. package/types/pc/flex/index.d.ts +9 -0
  145. package/types/pc/flex/interface.d.ts +16 -0
  146. package/types/pc/form/Control.d.ts +1 -1
  147. package/types/pc/form/FormList.d.ts +1 -1
  148. package/types/pc/form/IconSymbol.d.ts +1 -1
  149. package/types/pc/form/interface.d.ts +9 -22
  150. package/types/pc/form/util.d.ts +1 -1
  151. package/types/pc/grid/index.d.ts +3 -3
  152. package/types/pc/grid/interface.d.ts +1 -6
  153. package/types/pc/icon/addFromIconFontCn.d.ts +1 -7
  154. package/types/pc/icon/index.d.ts +2 -7
  155. package/types/pc/icon/interface.d.ts +13 -0
  156. package/types/pc/icon-hover/index.d.ts +2 -8
  157. package/types/pc/icon-hover/interface.d.ts +8 -0
  158. package/types/pc/image/ImageFooter.d.ts +1 -1
  159. package/types/pc/image/ImagePreviewArrow.d.ts +1 -1
  160. package/types/pc/image/TriggerForToolbar.d.ts +1 -1
  161. package/types/pc/image/interface.d.ts +0 -13
  162. package/types/pc/index.d.ts +63 -50
  163. package/types/pc/input/Textarea.d.ts +2 -6
  164. package/types/pc/input/interface.d.ts +5 -13
  165. package/types/pc/input-number/interface.d.ts +0 -4
  166. package/types/pc/input-tag/interface.d.ts +0 -13
  167. package/types/pc/layout/interface.d.ts +0 -1
  168. package/types/pc/link/interface.d.ts +0 -1
  169. package/types/pc/list/interface.d.ts +0 -4
  170. package/types/pc/loading/index.d.ts +4 -3
  171. package/types/pc/loading/interface.d.ts +6 -0
  172. package/types/pc/menu/Indent.d.ts +1 -1
  173. package/types/pc/menu/OverflowWrap.d.ts +1 -1
  174. package/types/pc/menu/interface.d.ts +0 -8
  175. package/types/pc/menu/sub-menu/Inline.d.ts +1 -1
  176. package/types/pc/menu/sub-menu/Pop.d.ts +1 -1
  177. package/types/pc/message/interface.d.ts +0 -2
  178. package/types/pc/modal/interface.d.ts +0 -5
  179. package/types/pc/notification/interface.d.ts +0 -1
  180. package/types/pc/overflow-ellipsis/OverflowItem.d.ts +1 -1
  181. package/types/pc/overflow-ellipsis/index.d.ts +1 -1
  182. package/types/pc/pagination/PageItem.d.ts +3 -3
  183. package/types/pc/pagination/PageJumper.d.ts +1 -1
  184. package/types/pc/pagination/PageOption.d.ts +1 -1
  185. package/types/pc/pagination/interface.d.ts +0 -2
  186. package/types/pc/popconfirm/interface.d.ts +8 -10
  187. package/types/pc/popover/interface.d.ts +0 -1
  188. package/types/pc/portal/Portal.d.ts +2 -6
  189. package/types/pc/portal/index.d.ts +2 -9
  190. package/types/pc/portal/interface.d.ts +14 -0
  191. package/types/pc/progress/CircleProgress.d.ts +1 -1
  192. package/types/pc/progress/LineProgess.d.ts +1 -1
  193. package/types/pc/progress/StepProgress.d.ts +1 -1
  194. package/types/pc/progress/interface.d.ts +0 -3
  195. package/types/pc/radio/Group.d.ts +2 -2
  196. package/types/pc/radio/GroupBlock.d.ts +1 -1
  197. package/types/pc/radio/Radio.d.ts +1 -1
  198. package/types/pc/resize-box/ResizeTrigger.d.ts +1 -1
  199. package/types/pc/resize-box/interface.d.ts +1 -7
  200. package/types/pc/result/403.d.ts +1 -1
  201. package/types/pc/result/404.d.ts +1 -1
  202. package/types/pc/result/500.d.ts +1 -1
  203. package/types/pc/segmented/interface.d.ts +6 -6
  204. package/types/pc/select/interface.d.ts +0 -12
  205. package/types/pc/select-view/interface.d.ts +0 -7
  206. package/types/pc/skeleton/Image.d.ts +1 -1
  207. package/types/pc/skeleton/Text.d.ts +2 -1
  208. package/types/pc/slider/Button.d.ts +1 -1
  209. package/types/pc/slider/Input.d.ts +1 -1
  210. package/types/pc/slider/Tick.d.ts +1 -1
  211. package/types/pc/slider/interface.d.ts +0 -4
  212. package/types/pc/space/index.d.ts +7 -5
  213. package/types/pc/speech-synthesis/index.d.ts +3 -1
  214. package/types/pc/speech-synthesis/interface.d.ts +7 -0
  215. package/types/pc/spin/DotLoading.d.ts +1 -1
  216. package/types/pc/spin/interface.d.ts +4 -1
  217. package/types/pc/splitter/Panel.d.ts +8 -0
  218. package/types/pc/splitter/SplitBar.d.ts +21 -0
  219. package/types/pc/splitter/Splitter.d.ts +4 -0
  220. package/types/pc/splitter/hooks/useEvent.d.ts +3 -0
  221. package/types/pc/splitter/hooks/useItems.d.ts +10 -0
  222. package/types/pc/splitter/hooks/useResizable.d.ts +8 -0
  223. package/types/pc/splitter/hooks/useResize.d.ts +4 -0
  224. package/types/pc/splitter/hooks/useSizes.d.ts +5 -0
  225. package/types/pc/splitter/index.d.ts +8 -3
  226. package/types/pc/splitter/interface.d.ts +181 -38
  227. package/types/pc/statistic/interface.d.ts +0 -4
  228. package/types/pc/steps/interface.d.ts +0 -3
  229. package/types/pc/suspense-fallback-test/index.d.ts +2 -3
  230. package/types/pc/suspense-fallback-test/interface.d.ts +2 -0
  231. package/types/pc/table/ColGroup.d.ts +1 -1
  232. package/types/pc/table/hook/useThResizable.d.ts +2 -2
  233. package/types/pc/table/interface.d.ts +4 -15
  234. package/types/pc/table/summary/Cell.d.ts +1 -1
  235. package/types/pc/table/summary/Row.d.ts +1 -1
  236. package/types/pc/table/tbody/Td.d.ts +1 -1
  237. package/types/pc/table/tbody/index.d.ts +1 -1
  238. package/types/pc/table/tfoot/index.d.ts +1 -1
  239. package/types/pc/table/th-resizable/index.d.ts +1 -1
  240. package/types/pc/table/thead/Column.d.ts +1 -1
  241. package/types/pc/table/thead/index.d.ts +1 -1
  242. package/types/pc/tabs/TabContent.d.ts +1 -1
  243. package/types/pc/tabs/interface.d.ts +0 -7
  244. package/types/pc/tabs/tab-header/DropdownIcon.d.ts +1 -1
  245. package/types/pc/tabs/tab-header/TabInk.d.ts +1 -1
  246. package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
  247. package/types/pc/tag/index.d.ts +2 -0
  248. package/types/pc/tag/interface.d.ts +0 -1
  249. package/types/pc/time-picker/Picker.d.ts +1 -1
  250. package/types/pc/time-picker/RangePicker.d.ts +1 -1
  251. package/types/pc/time-picker/TimeColumn.d.ts +1 -1
  252. package/types/pc/time-picker/TimePicker.d.ts +1 -1
  253. package/types/pc/time-picker/index.d.ts +1 -1
  254. package/types/pc/time-picker/interface.d.ts +0 -7
  255. package/types/pc/tooltip/interface.d.ts +4 -1
  256. package/types/pc/transfer/Item.d.ts +1 -1
  257. package/types/pc/transfer/List.d.ts +1 -1
  258. package/types/pc/transfer/interface.d.ts +2 -9
  259. package/types/pc/tree/Animation.d.ts +1 -1
  260. package/types/pc/tree/interface.d.ts +2 -8
  261. package/types/pc/tree-select/interface.d.ts +0 -8
  262. package/types/pc/trigger/interface.d.ts +0 -5
  263. package/types/pc/typography/EditContent.d.ts +2 -1
  264. package/types/pc/typography/Operations.d.ts +1 -1
  265. package/types/pc/typography/interface.d.ts +45 -30
  266. package/types/pc/upload/interface.d.ts +6 -11
  267. package/types/pc/upload/list/index.d.ts +1 -1
  268. package/types/pc/utils/index.d.ts +1 -0
  269. package/types/pc/utils/names.d.ts +6 -0
  270. package/types/pc/utils/toArray.d.ts +3 -0
  271. package/types/pc/verification-code/VerificationCode.d.ts +1 -1
  272. package/types/pc/verification-code/interface.d.ts +0 -2
  273. package/types/pc/virtual-list/VirtualList.d.ts +2 -38
  274. package/types/pc/virtual-list/index.d.ts +2 -1
  275. package/types/pc/virtual-list/interface.d.ts +56 -0
  276. package/types/pc/watermark/Watermark.d.ts +1 -1
  277. package/types/pc/watermark/interface.d.ts +0 -2
  278. package/typography/Base.js +73 -73
  279. package/typography/EditContent.js +43 -33
  280. package/typography/Ellipsis.js +117 -184
  281. package/typography/Operations.js +97 -49
  282. package/typography/useCssEllipsis.js +7 -6
  283. package/utils/index.js +117 -115
  284. package/utils/names.js +4 -0
  285. package/utils/toArray.js +5 -0
  286. package/version/index.js +1 -1
  287. package/virtual-list/interface.js +1 -0
  288. package/components/common/space/toArray.js +0 -11
  289. package/loading/style/index.module.less.js +0 -4
  290. package/types/common/space/toArray.d.ts +0 -3
  291. package/types/pc/suspense-fallback-test/style/index.d.ts +0 -1
  292. /package/{suspense-fallback-test/style/index.less.js → development/interface.js} +0 -0
  293. /package/types/pc/grid/{GridItem.d.ts → Item.d.ts} +0 -0
@@ -1,70 +1,213 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import React from 'react';
2
2
  /**
3
- * @title Splitter 分隔面板
3
+ * Splitter 组件属性接口
4
4
  */
5
5
  export interface SplitterProps {
6
6
  /**
7
- * 分割方向
8
- * @default 'horizontal'
7
+ * @zh 自定义样式
8
+ * @en Custom style
9
9
  */
10
- direction?: 'horizontal' | 'vertical';
10
+ style?: React.CSSProperties;
11
11
  /**
12
- * 初始分割比例 (0~1)
13
- * @default 0.5
12
+ * @zh 自定义类名(字符串或数组)
13
+ * @en Custom class name (string or array)
14
14
  */
15
- initialSize?: number;
15
+ className?: string | string[];
16
16
  /**
17
- * 第一个面板最小尺寸
18
- * @default '10%'
17
+ * @zh 自定义类名前缀
18
+ * @en Custom prefix class name
19
19
  */
20
- minSize?: number | string;
20
+ prefixCls?: string;
21
21
  /**
22
- * 第一个面板最大尺寸
23
- * @default '90%'
22
+ * @zh 布局方向
23
+ * @defaultValue 'horizontal'
24
+ * @en Layout direction
24
25
  */
25
- maxSize?: number | string;
26
+ layout?: 'horizontal' | 'vertical';
26
27
  /**
27
- * 分隔条尺寸(像素)
28
- * @default 8
28
+ * @zh 是否启用懒加载模式(只在拖动结束时触发回调)
29
+ * @en Whether to enable lazy mode (only trigger callback when drag ends)
29
30
  */
30
- gutterSize?: number;
31
+ lazy?: boolean;
31
32
  /**
32
- * 分隔条样式
33
+ * @zh 子元素
34
+ * @en Children elements
33
35
  */
34
- gutterStyle?: CSSProperties;
36
+ children?: React.ReactNode;
35
37
  /**
36
- * 是否禁用拖拽
37
- * @default false
38
+ * @zh 开始调整大小时的回调
39
+ * @en Callback when resize starts
40
+ * @param sizes - 各面板当前尺寸数组
38
41
  */
39
- disabled?: boolean;
42
+ onResizeStart?: (sizes: number[]) => void;
40
43
  /**
41
- * 拖拽开始回调
44
+ * @zh 调整大小过程中的回调
45
+ * @en Callback during resizing
46
+ * @param sizes - 各面板当前尺寸数组
42
47
  */
43
- onDragStart?: () => void;
48
+ onResize?: (sizes: number[]) => void;
44
49
  /**
45
- * 拖拽结束回调
46
- * @param newSize - 新分割比例 (0~1)
50
+ * @zh 调整大小结束时的回调
51
+ * @en Callback when resize ends
52
+ * @param sizes - 各面板最终尺寸数组
47
53
  */
48
- onDragEnd?: (newSize: number) => void;
54
+ onResizeEnd?: (sizes: number[]) => void;
55
+ }
56
+ /**
57
+ * Splitter.Panel 组件属性接口
58
+ */
59
+ export interface PanelProps {
60
+ /**
61
+ * @zh 自定义类名(字符串或数组)
62
+ * @en Custom class name (string or array)
63
+ */
64
+ className?: string | string[];
65
+ /**
66
+ * @zh 自定义样式
67
+ * @en Custom style
68
+ */
69
+ style?: React.CSSProperties;
70
+ /**
71
+ * @zh 最小尺寸(像素或百分比字符串,如 "20%")
72
+ * @en Minimum size (pixels or percentage string e.g. "20%")
73
+ */
74
+ min?: number | string;
49
75
  /**
50
- * 拖拽中回调
51
- * @param newSize - 当前分割比例 (0~1)
76
+ * @zh 最大尺寸(像素或百分比字符串)
77
+ * @en Maximum size (pixels or percentage string)
52
78
  */
53
- onDrag?: (newSize: number) => void;
79
+ max?: number | string;
54
80
  /**
55
- * 第一个面板内容
81
+ * @zh 当前尺寸(像素或百分比字符串)
82
+ * @en Current size (pixels or percentage string)
56
83
  */
57
- firstPane: ReactNode;
84
+ size?: number | string;
58
85
  /**
59
- * 第二个面板内容
86
+ * @zh 是否可折叠(或配置具体哪边可折叠)
87
+ * @en Whether collapsible (or configure which side is collapsible)
60
88
  */
61
- secondPane: ReactNode;
89
+ collapsible?: boolean | {
90
+ /** @zh 起始边是否可折叠 */
91
+ start?: boolean;
92
+ /** @zh 结束边是否可折叠 */
93
+ end?: boolean;
94
+ };
62
95
  /**
63
- * 容器样式
96
+ * @zh 是否可调整大小
97
+ * @defaultValue true
98
+ * @en Whether resizable
64
99
  */
65
- style?: CSSProperties;
100
+ resizable?: boolean;
66
101
  /**
67
- * 容器类名
102
+ * @zh 默认尺寸(像素或百分比字符串)
103
+ * @en Default size (pixels or percentage string)
68
104
  */
69
- className?: string;
105
+ defaultSize?: number | string;
106
+ }
107
+ /**
108
+ * 内部使用的 Panel 组件属性(继承自 PanelProps 并扩展)
109
+ */
110
+ export interface InternalPanelProps extends PanelProps {
111
+ /** @zh 类名前缀 */
112
+ prefixCls?: string;
113
+ }
114
+ /**
115
+ * 调整大小相关属性
116
+ */
117
+ export interface UseResizeProps extends Pick<SplitterProps, 'onResize'> {
118
+ /** @zh 基础尺寸状态 */
119
+ basicsState: number[];
120
+ /** @zh 面板项数组 */
121
+ items: PanelProps[];
122
+ /** @zh 面板引用数组 */
123
+ panelsRef: React.RefObject<(HTMLDivElement | null)[]>;
124
+ /** @zh 是否反向(RTL模式) */
125
+ reverse: boolean;
126
+ /** @zh 设置基础尺寸状态的函数 */
127
+ setBasicsState: React.Dispatch<React.SetStateAction<number[]>>;
128
+ }
129
+ /**
130
+ * 调整大小返回值接口
131
+ */
132
+ export interface UseResize {
133
+ /** @zh 设置尺寸函数 */
134
+ setSize: (data: {
135
+ size: number;
136
+ index: number;
137
+ }[]) => void;
138
+ /** @zh 设置偏移量函数 */
139
+ setOffset: (offset: number, containerSize: number, index: number) => void;
140
+ }
141
+ /**
142
+ * 拖拽处理相关属性
143
+ */
144
+ export interface UseHandleProps extends Pick<SplitterProps, 'layout' | 'onResizeStart' | 'onResizeEnd'> {
145
+ /** @zh 基础尺寸状态 */
146
+ basicsState: number[];
147
+ /** @zh 容器引用 */
148
+ containerRef?: React.RefObject<HTMLDivElement | null>;
149
+ /** @zh 设置偏移量函数 */
150
+ setOffset: UseResize['setOffset'];
151
+ /** @zh 设置调整状态函数 */
152
+ setResizing: React.Dispatch<React.SetStateAction<boolean>>;
153
+ }
154
+ /**
155
+ * 拖拽处理返回值接口
156
+ */
157
+ export interface UseHandle {
158
+ /** @zh 开始拖拽函数 */
159
+ onStart: (x: number, y: number, index: number) => void;
160
+ }
161
+ /**
162
+ * 可折叠相关属性
163
+ */
164
+ export interface UseCollapsibleProps {
165
+ /** @zh 基础尺寸状态 */
166
+ basicsState: number[];
167
+ /** @zh 可折叠配置 */
168
+ collapsible?: PanelProps['collapsible'];
169
+ /** @zh 当前索引 */
170
+ index: number;
171
+ /** @zh 是否反向 */
172
+ reverse: boolean;
173
+ /** @zh 设置尺寸函数 */
174
+ setSize?: UseResize['setSize'];
175
+ }
176
+ /**
177
+ * 可折叠返回值接口
178
+ */
179
+ export interface UseCollapsible {
180
+ /** @zh 是否显示下一个图标 */
181
+ nextIcon: boolean;
182
+ /** @zh 是否重叠 */
183
+ overlap: boolean;
184
+ /** @zh 是否显示上一个图标 */
185
+ previousIcon: boolean;
186
+ /** @zh 折叠/展开函数 */
187
+ onFold: (type: 'previous' | 'next') => void;
188
+ /** @zh 保存旧尺寸函数 */
189
+ setOldBasics: () => void;
190
+ }
191
+ /**
192
+ * 可调整大小信息接口
193
+ */
194
+ export interface ResizableInfo {
195
+ /** @zh 是否可调整大小 */
196
+ resizable: boolean;
197
+ /** @zh 起始边是否可折叠 */
198
+ startCollapsible: boolean;
199
+ /** @zh 结束边是否可折叠 */
200
+ endCollapsible: boolean;
201
+ }
202
+ /**
203
+ * 面板项类型(用于内部处理)
204
+ */
205
+ export interface PanelItemType extends Omit<PanelProps, 'collapsible'> {
206
+ /** @zh 可折叠配置 */
207
+ collapsible: {
208
+ /** @zh 起始边是否可折叠 */
209
+ start?: boolean;
210
+ /** @zh 结束边是否可折叠 */
211
+ end?: boolean;
212
+ };
70
213
  }
@@ -14,7 +14,6 @@ export interface StatisticProps {
14
14
  /**
15
15
  * @zh 数值小数部分的样式
16
16
  * @en The style of the decimal part of the value
17
- * @version 2.47.0
18
17
  */
19
18
  styleDecimal?: CSSProperties;
20
19
  /**
@@ -77,13 +76,11 @@ export interface StatisticProps {
77
76
  /**
78
77
  * @zh 自定义 render 函数。`formattedValue` 表示格式化后的值。
79
78
  * @en Custom render function. `formattedValue` represents the formatted value.
80
- * @version 2.36.0
81
79
  */
82
80
  renderFormat?: (value: StatisticProps['value'], formattedValue: string) => ReactNode;
83
81
  /**
84
82
  * @zh 数字是否加载中
85
83
  * @en Is the number loading
86
- * @version 2.20.0
87
84
  */
88
85
  loading?: boolean;
89
86
  }
@@ -117,7 +114,6 @@ export interface CountdownProps {
117
114
  /**
118
115
  * @zh 自定义 render 函数。`valueDiff` 表示两个时间的时间差,`formattedDiff` 表示格式化后的时间差,
119
116
  * @en Custom render function, the input parameter is the result formatted by `dayjs`
120
- * @version 2.36.0
121
117
  */
122
118
  renderFormat?: (valueDiff: number, formattedDiff: string) => ReactNode;
123
119
  /**
@@ -70,13 +70,11 @@ export interface StepProps {
70
70
  /**
71
71
  * @zh 节点样式
72
72
  * @en The additional css style
73
- * @version 2.11.0
74
73
  */
75
74
  style?: CSSProperties;
76
75
  /**
77
76
  * @zh 节点类名
78
77
  * @en The additional css className
79
- * @version 2.11.0
80
78
  */
81
79
  className?: string | string[];
82
80
  prefixCls?: string;
@@ -92,7 +90,6 @@ export interface StepProps {
92
90
  /**
93
91
  * @zh 点击回调
94
92
  * @en Callback when item is clicked
95
- * @version `e` in `2.40.0`
96
93
  */
97
94
  onClick?: (index: number, id: any, e: any) => void;
98
95
  onChange?: (index: number, id: any) => void;
@@ -1,3 +1,2 @@
1
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>>;
2
- export default _default;
3
- import React from 'react';
1
+ import SuspenseFallbackTest from '../../common/suspense-fallback-test';
2
+ export default SuspenseFallbackTest;
@@ -0,0 +1,2 @@
1
+ import type { SuspenseFallbackTestProps } from '../../common/suspense-fallback-test/interface';
2
+ export type { SuspenseFallbackTestProps };
@@ -9,5 +9,5 @@ type ColGroupType = {
9
9
  expandedRowKeys?: React.Key[];
10
10
  data?: any[];
11
11
  };
12
- declare function ColGroup(props: ColGroupType): import("react/jsx-dev-runtime").JSX.Element;
12
+ declare function ColGroup(props: ColGroupType): import("react/jsx-runtime").JSX.Element;
13
13
  export default ColGroup;
@@ -1,7 +1,7 @@
1
1
  export default useThResizable;
2
- declare function useThResizable(props?: {}): {
2
+ declare function useThResizable(props?: {}, deps?: any[]): {
3
3
  columns: any;
4
- setColumns(columns_: any): void;
4
+ setColumns(c: any): void;
5
5
  ThResizable: typeof ThResizable;
6
6
  };
7
7
  import ThResizable from '../th-resizable';
@@ -125,7 +125,6 @@ export interface TableProps<T = any> {
125
125
  * @en
126
126
  * Whether the header shows the tooltip for the next sorting. The object can be set,
127
127
  * and all the parameters of the `Tooltip` component can be passed.
128
- * @version 2.19.0
129
128
  * @defaultValue true
130
129
  */
131
130
  showSorterTooltip?: boolean | TooltipProps;
@@ -142,7 +141,6 @@ export interface TableProps<T = any> {
142
141
  /**
143
142
  * @zh 分页、排序、筛选时的回调
144
143
  * @en Callback when pagination, sorting, and filtering changes
145
- * @version extra in `2.19.0`, currentAllData in 2.53.0
146
144
  */
147
145
  onChange?: (pagination: PaginationProps, sorter: SorterInfo | SorterInfo[], filters: Partial<Record<keyof T, string[]>>, extra: {
148
146
  currentData: T[];
@@ -157,7 +155,6 @@ export interface TableProps<T = any> {
157
155
  /**
158
156
  * @zh 自定义分页渲染。
159
157
  * @en Customized pagination render
160
- * @version 2.11.0
161
158
  */
162
159
  renderPagination?: (paginationNode?: ReactNode) => ReactNode;
163
160
  /**
@@ -196,7 +193,6 @@ export interface TableProps<T = any> {
196
193
  /**
197
194
  * @zh 当单元格内容为空时,显示占位符,优先级低于 `column.placeholder`。
198
195
  * @en When the cell content is empty, a placeholder is displayed, and the priority is lower than `column.placeholder`.
199
- * @version 2.23.0
200
196
  */
201
197
  placeholder?: ReactNode;
202
198
  /**
@@ -240,13 +236,11 @@ export interface TableProps<T = any> {
240
236
  * 用于配置虚拟滚动。
241
237
  * @en
242
238
  * Used to configure `VirtualList`.
243
- * @version 2.46.0
244
239
  */
245
240
  virtualListProps?: AvailableVirtualListProps;
246
241
  /**
247
242
  * @zh 总结栏
248
243
  * @en Table Summary
249
- * @version 2.17.0
250
244
  */
251
245
  summary?: (currentData?: T[]) => ReactNode;
252
246
  }
@@ -265,7 +259,6 @@ export interface RowSelectionProps<T = any> {
265
259
  /**
266
260
  * @zh 设置为 `false` 的时候父子选择会自动关联。
267
261
  * @en When set to `false`, parent-child selections are automatically associated.
268
- * @version 2.33.0
269
262
  * @defaultValue true
270
263
  */
271
264
  checkStrictly?: boolean;
@@ -304,25 +297,21 @@ export interface RowSelectionProps<T = any> {
304
297
  /**
305
298
  * @zh 用户手动选择/取消选择的回调
306
299
  * @en Callback for user manual selection/deselection
307
- * @version 2.22.0
308
300
  */
309
301
  onSelect?: (selected: boolean, record: T, selectedRows: T[]) => void;
310
302
  /**
311
303
  * @zh 用户手动选择/取消选择所有行的回调
312
304
  * @en Callback when the user to manually select/deselect all rows
313
- * @version 2.6.0
314
305
  */
315
306
  onSelectAll?: (selected: boolean, selectedRows: any) => void;
316
307
  /**
317
308
  * @zh 在数据项被删除时仍然保留选项的 `key`
318
309
  * @en The `key` is still retained in `selectedRowKeys` when the data item is deleted
319
- * @version 2.19.0
320
310
  */
321
311
  preserveSelectedRowKeys?: boolean;
322
312
  /**
323
313
  * @zh 定制复选框,用法与 `column.render` 相同。
324
314
  * @en Customize checkbox, the usage is same as `column.render`.
325
- * @version 2.19.0
326
315
  */
327
316
  renderCell?: (originNode: any, checked: boolean, record: T) => ReactNode;
328
317
  /**
@@ -368,20 +357,17 @@ export interface ExpandProps<T = any> {
368
357
  * @en
369
358
  * Whether to allow row expansion. If this parameter is not specified,
370
359
  * it will be determined by whether expandedRowRender has a return value. When performance problems occur, rowExpandable is recommended.
371
- * @version 2.16.0
372
360
  */
373
361
  rowExpandable?: (record: T) => boolean;
374
362
  /**
375
363
  * @zh 支持通过点击行来展开
376
364
  * @en Clicking on the row to expand
377
- * @version 2.19.0
378
365
  */
379
366
  expandRowByClick?: boolean;
380
367
  /**
381
368
  * @zh 树形数据时,只有 `children` 是数组且长度大于 1 才显示展开图标。
382
369
  * @en For tree data, only when `children` is an array and the length is greater than 1, the expand icon will be displayed.
383
370
  * @defaultValue true
384
- * @version 2.27.0
385
371
  */
386
372
  strictTreeData?: boolean;
387
373
  }
@@ -458,7 +444,6 @@ export interface ColumnProps<T = unknown> {
458
444
  /**
459
445
  * @zh 当单元格内容为空时,显示占位符,优先级低于 `render`。
460
446
  * @en When the cell content is empty, a placeholder is displayed, and the priority is lower than `render`.
461
- * @version 2.22.0
462
447
  */
463
448
  placeholder?: ReactNode;
464
449
  /**
@@ -572,6 +557,10 @@ export interface ColumnProps<T = unknown> {
572
557
  columnFixedStyle?: CSSProperties;
573
558
  column?: any;
574
559
  [key: string]: any;
560
+ tooltip: TooltipProps & {
561
+ show: boolean;
562
+ render?: (record: any, trIndex: any, column: any) => ReactNode;
563
+ };
575
564
  }
576
565
  export type InternalColumnProps<T = any> = ColumnProps<T> & {
577
566
  $$isOperation?: boolean;
@@ -5,7 +5,7 @@ interface SummaryCellProps extends Omit<HTMLAttributes<HTMLElement>, 'children'>
5
5
  colSpan?: number;
6
6
  rowSpan?: number;
7
7
  }
8
- declare function Cell(props: SummaryCellProps): import("react/jsx-dev-runtime").JSX.Element;
8
+ declare function Cell(props: SummaryCellProps): import("react/jsx-runtime").JSX.Element;
9
9
  declare namespace Cell {
10
10
  var __PQB_TABLE_SUMMARY_CELL__: boolean;
11
11
  }
@@ -3,5 +3,5 @@ import { Omit } from '../../utils/type';
3
3
  interface SummaryRowProps extends Omit<HTMLAttributes<HTMLTableRowElement>, 'children'> {
4
4
  children?: ReactNode;
5
5
  }
6
- declare function Row(props: SummaryRowProps): import("react/jsx-dev-runtime").JSX.Element;
6
+ declare function Row(props: SummaryRowProps): import("react/jsx-runtime").JSX.Element;
7
7
  export default Row;
@@ -20,6 +20,6 @@ type TdType = {
20
20
  rowKey?: string;
21
21
  renderExpandIcon?: (record: any, rowKey: string) => ReactNode;
22
22
  };
23
- declare function Td(props: TdType): import("react/jsx-dev-runtime").JSX.Element | null;
23
+ declare function Td(props: TdType): import("react/jsx-runtime").JSX.Element | null;
24
24
  declare const _default: React.MemoExoticComponent<typeof Td>;
25
25
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { TbodyProps } from '../../table/interface';
2
- declare function TBody<T>(props: TbodyProps<T>): import("react/jsx-dev-runtime").JSX.Element;
2
+ declare function TBody<T>(props: TbodyProps<T>): import("react/jsx-runtime").JSX.Element;
3
3
  export default TBody;
@@ -1,3 +1,3 @@
1
1
  import { TfootProps } from '../../table/interface';
2
- declare function Tfoot<T>(props: TfootProps<T>): import("react/jsx-dev-runtime").JSX.Element;
2
+ declare function Tfoot<T>(props: TfootProps<T>): import("react/jsx-runtime").JSX.Element;
3
3
  export default Tfoot;
@@ -1,2 +1,2 @@
1
1
  export default ThResizable;
2
- declare function ThResizable(props: any): import("react/jsx-dev-runtime").JSX.Element;
2
+ declare function ThResizable(props: any): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- declare function Column<T>(props: any): false | import("react/jsx-dev-runtime").JSX.Element;
1
+ declare function Column<T>(props: any): false | import("react/jsx-runtime").JSX.Element;
2
2
  export default Column;
@@ -1,3 +1,3 @@
1
1
  import { TheadProps } from '../../table/interface';
2
- declare function THead<T>(props: TheadProps<T>): import("react/jsx-dev-runtime").JSX.Element;
2
+ declare function THead<T>(props: TheadProps<T>): import("react/jsx-runtime").JSX.Element;
3
3
  export default THead;
@@ -5,5 +5,5 @@ interface TabContentProps extends Pick<TabsProps, 'animation' | 'activeTab' | 'd
5
5
  prefixCls: string | undefined;
6
6
  paneChildren: ReactElement<TabPaneProps, TabPaneType>[];
7
7
  }
8
- declare function TabContent(props: TabContentProps): import("react/jsx-dev-runtime").JSX.Element | null;
8
+ declare function TabContent(props: TabContentProps): import("react/jsx-runtime").JSX.Element | null;
9
9
  export default TabContent;
@@ -50,7 +50,6 @@ export interface TabsProps {
50
50
  /**
51
51
  * @zh 定制下划线尺寸
52
52
  * @en custom the size of underline
53
- * @version 2.54.0
54
53
  */
55
54
  inkBarSize?: {
56
55
  width?: CSSProperties['width'];
@@ -60,7 +59,6 @@ export interface TabsProps {
60
59
  * @zh 选项卡头部是否存在水平边距。仅对 `type`等于 `line`、`text`类型的选项卡生效
61
60
  * @en Whether there is a horizontal margin on the tab. It only effect when `type` is `line` or `text`
62
61
  * @defaultValue true
63
- * @version 2.6.0
64
62
  */
65
63
  headerPadding?: boolean;
66
64
  /**
@@ -83,7 +81,6 @@ export interface TabsProps {
83
81
  /**
84
82
  * @zh 标签页头部 编辑/滚动/下拉 图标配置。对于不想展示的图标可以将其设置为`null`
85
83
  * @en Tab header edit/scroll/dropdown icon configuration. You can set it to `null` for icons you don't want to display
86
- * @version 2.15.0, `prev`,`next`,`dropdown` in `2.47.0`
87
84
  */
88
85
  icons?: {
89
86
  add?: ReactNode;
@@ -96,7 +93,6 @@ export interface TabsProps {
96
93
  * @zh 是否在标签增减后,自动进行滚动调整(`editable`为`true`时生效)
97
94
  * @en Whether to automatically scroll to the selected label after the label is dynamically increased or decreased (only effective when `editable` is `true`)
98
95
  * @defaultValue { add: true, delete: true }
99
- * @version 2.25.0
100
96
  */
101
97
  scrollAfterEdit?: {
102
98
  delete?: boolean;
@@ -126,19 +122,16 @@ export interface TabsProps {
126
122
  /**
127
123
  * @zh 自定义删除按钮
128
124
  * @en Custom delete button
129
- * @version 2.16.0
130
125
  */
131
126
  deleteButton?: ReactNode;
132
127
  /**
133
128
  * @zh 自定义新增按钮
134
129
  * @en Custom add button
135
- * @version 2.16.0
136
130
  */
137
131
  addButton?: ReactNode;
138
132
  /**
139
133
  * @zh 被选中 tab 的滚动位置,默认 auto 即会将 activeTab 滚动到可见区域,但不会特意做位置调整
140
134
  * @en The scroll position of the selected tab, the default auto will scroll the activeTab to the visible area, but will not adjust the position intentionally
141
- * @version 2.25.0
142
135
  * @defaultValue auto
143
136
  */
144
137
  scrollPosition?: 'start' | 'end' | 'center' | 'auto' | number;
@@ -1,2 +1,2 @@
1
- declare function DropdownIcon(props: any): import("react/jsx-dev-runtime").JSX.Element | null;
1
+ declare function DropdownIcon(props: any): import("react/jsx-runtime").JSX.Element | null;
2
2
  export default DropdownIcon;
@@ -7,5 +7,5 @@ declare const TabInk: ({ prefixCls, animation, disabled, direction, getTitleRef,
7
7
  activeTab: any;
8
8
  getHeaderRef: any;
9
9
  inkBarSize: any;
10
- }) => import("react/jsx-dev-runtime").JSX.Element;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
11
  export default TabInk;
@@ -13,5 +13,5 @@ interface TabNavIconProps {
13
13
  rtl?: boolean;
14
14
  onChange?: (offset: number) => void;
15
15
  }
16
- declare const TabNavIcon: (props: TabNavIconProps) => import("react/jsx-dev-runtime").JSX.Element | null;
16
+ declare const TabNavIcon: (props: TabNavIconProps) => import("react/jsx-runtime").JSX.Element | null;
17
17
  export default TabNavIcon;
@@ -1,4 +1,6 @@
1
1
  import { TagProps } from './interface';
2
+ declare const COLORS: string[];
2
3
  declare const TagComponent: import("react").ForwardRefExoticComponent<TagProps & import("react").RefAttributes<unknown>>;
4
+ export { COLORS as TAG_COLORS };
3
5
  export default TagComponent;
4
6
  export type { TagProps };
@@ -14,7 +14,6 @@ export interface TagProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNam
14
14
  /**
15
15
  * @zh 是否显示边框
16
16
  * @en Whether the tag is bordered
17
- * @version 2.26.0
18
17
  */
19
18
  bordered?: boolean;
20
19
  /**
@@ -11,5 +11,5 @@ interface InnerPickerProps extends PickerProps {
11
11
  hideFooter?: boolean;
12
12
  order?: boolean;
13
13
  }
14
- declare const Picker: (baseProps: InnerPickerProps) => import("react/jsx-dev-runtime").JSX.Element;
14
+ declare const Picker: (baseProps: InnerPickerProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export default Picker;
@@ -8,5 +8,5 @@ interface InnerRangePickerProps extends RangePickerProps {
8
8
  valueShow?: Dayjs[];
9
9
  setValueShow?: (valueShow: Dayjs[]) => void;
10
10
  }
11
- declare function RangePicker(props: InnerRangePickerProps): import("react/jsx-dev-runtime").JSX.Element;
11
+ declare function RangePicker(props: InnerRangePickerProps): import("react/jsx-runtime").JSX.Element;
12
12
  export default RangePicker;
@@ -13,5 +13,5 @@ export interface TimeColumnProps {
13
13
  popupVisible?: boolean;
14
14
  scrollSticky?: boolean;
15
15
  }
16
- declare function TimeColumn(props: TimeColumnProps): import("react/jsx-dev-runtime").JSX.Element;
16
+ declare function TimeColumn(props: TimeColumnProps): import("react/jsx-runtime").JSX.Element;
17
17
  export default TimeColumn;
@@ -20,5 +20,5 @@ interface InnerTimePickerProps extends TimePickerProps {
20
20
  setValueShow?: (valueShow: Dayjs) => void;
21
21
  hideFooter?: boolean;
22
22
  }
23
- declare function TimePicker(props: InnerTimePickerProps): import("react/jsx-dev-runtime").JSX.Element;
23
+ declare function TimePicker(props: InnerTimePickerProps): import("react/jsx-runtime").JSX.Element;
24
24
  export default TimePicker;
@@ -1,6 +1,6 @@
1
1
  import { RangePickerProps, TimePickerDecorator, TimePickerProps } from './interface';
2
2
  declare const RangePicker: {
3
- (props: RangePickerProps): import("react/jsx-dev-runtime").JSX.Element;
3
+ (props: RangePickerProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
5
5
  };
6
6
  export { RangePicker as TimePickerRange };