@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
@@ -43,13 +43,11 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
43
43
  /**
44
44
  * @zh 状态
45
45
  * @en Status
46
- * @version 2.45.0
47
46
  */
48
- status?: 'error' | 'warning';
47
+ status?: 'error' | 'warning' | 'success';
49
48
  /**
50
49
  * @zh 设置宽度自适应。minWidth 默认为 0,maxWidth 默认为 100%
51
50
  * @en auto width. minWidth defaults to 0, maxWidth defaults to 100%
52
- * @version 2.54.0
53
51
  */
54
52
  autoWidth?: boolean | {
55
53
  minWidth?: CSSProperties['minWidth'];
@@ -74,14 +72,12 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
74
72
  /**
75
73
  * @zh 指定 normalize 执行的时机
76
74
  * @en Specify the timing of normalize execution
77
- * @version 2.50.0
78
75
  * @defaultValue ['onBlur']
79
76
  */
80
77
  normalizeTrigger?: ('onBlur' | 'onPressEnter')[];
81
78
  /**
82
79
  * @zh 在指定时机对用户输入的值进行格式化处理。前后值不一致时,会触发 onChange
83
80
  * @en Format the value entered by the user at the specified time, and when the previous and subsequent values are inconsistent, onChange will be triggered
84
- * @version 2.50.0
85
81
  */
86
82
  normalize?: (value: string) => string;
87
83
  /**
@@ -133,7 +129,6 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
133
129
  /**
134
130
  * @zh 输入框最大输入的长度;设置 `errorOnly`为 `true` 后,超过 `maxLength` 会展示 `error` 状态,并不限制用户输入。
135
131
  * @en The max content length;After setting `errorOnly` to `true`, if `maxLength` is exceeded, the `error` status will be displayed, and user input will not be restricted.
136
- * @version `errorOnly` in 2.23.0
137
132
  */
138
133
  maxLength?: number | {
139
134
  length: number;
@@ -147,7 +142,6 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
147
142
  /**
148
143
  * @zh `allowClear` 时配置清除按钮的图标。
149
144
  * @en Configure the icon of the clear button when `allowClear`.
150
- * @version 2.50.0
151
145
  */
152
146
  clearIcon?: ReactNode;
153
147
  }
@@ -185,6 +179,10 @@ export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
185
179
  minRows?: number;
186
180
  maxRows?: number;
187
181
  };
182
+ /**
183
+ * @zh 用于设置元素是否可调整尺寸,以及可调整的方向
184
+ */
185
+ resize?: 'none' | 'both' | 'horizontal' | 'vertical' | 'block' | 'inline' | 'inherit' | 'initial' | 'revert' | 'revert-layer' | 'unset';
188
186
  /**
189
187
  * @zh 是否是错误状态。(废弃,下个大版本移除,使用 status='error' 替代)
190
188
  * @en Whether the textarea is error.(Deprecated, removed in the next major version, use status='error' instead)
@@ -194,7 +192,6 @@ export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
194
192
  /**
195
193
  * @zh 状态
196
194
  * @en Status
197
- * @version 2.45.0
198
195
  */
199
196
  status?: 'error' | 'warning';
200
197
  /**
@@ -215,7 +212,6 @@ export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
215
212
  /**
216
213
  * @zh 输入框最大输入的长度;设置 `errorOnly`为 `true` 后,超过 `maxLength` 会展示 `error` 状态,并不限制用户输入。
217
214
  * @en The max content length;After setting `errorOnly` to `true`, if `maxLength` is exceeded, the `error` status will be displayed, and user input will not be restricted.
218
- * @version `errorOnly` in 2.23.0
219
215
  */
220
216
  maxLength?: number | {
221
217
  length: number;
@@ -225,19 +221,16 @@ export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
225
221
  /**
226
222
  * @zh 允许清空输入框
227
223
  * @en Whether allow clear the content
228
- * @version 2.2.0
229
224
  */
230
225
  allowClear?: boolean;
231
226
  /**
232
227
  * @zh 点击清除按钮的回调
233
228
  * @en Callback when click clear button
234
- * @version 2.2.0
235
229
  */
236
230
  onClear?: () => void;
237
231
  /**
238
232
  * @zh `allowClear` 时配置清除按钮的图标。
239
233
  * @en Configure the icon of the clear button when `allowClear`.
240
- * @version 2.50.0
241
234
  */
242
235
  clearIcon?: ReactNode;
243
236
  }
@@ -289,7 +282,6 @@ export interface InputSearchProps extends InputButtonProps {
289
282
  /**
290
283
  * @zh 搜索按钮
291
284
  * @en Search button
292
- * @version `ReactNode` in 2.6.0
293
285
  */
294
286
  searchButton?: boolean | ReactNode;
295
287
  }
@@ -42,13 +42,11 @@ export interface InputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElem
42
42
  /**
43
43
  * @zh 是否只读
44
44
  * @en Whether input is readonly
45
- * @version 2.17.0
46
45
  */
47
46
  readOnly?: boolean;
48
47
  /**
49
48
  * @zh 严格模式下,`onChange` 回调将返回字符串类型
50
49
  * @en `onChange` will return a string in strict mode
51
- * @version 2.42.0
52
50
  */
53
51
  strictMode?: boolean;
54
52
  /**
@@ -90,7 +88,6 @@ export interface InputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElem
90
88
  /**
91
89
  * @zh 定义输入框展示值
92
90
  * @en Specifies the format of the value presented
93
- * @version Param `info` in `2.41.0`
94
91
  */
95
92
  formatter?: (value: number | string, info: {
96
93
  userTyping: boolean;
@@ -105,7 +102,6 @@ export interface InputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElem
105
102
  /**
106
103
  * @zh 变化回调
107
104
  * @en Callback when the value changes
108
- * @version `reason` in 2.61.0
109
105
  */
110
106
  onChange?: (value: number, reason?: InputNumberValueChangeReason) => void;
111
107
  /**
@@ -31,7 +31,6 @@ export interface InputTagProps<T = unknown> {
31
31
  /**
32
32
  * @zh 状态
33
33
  * @en Status
34
- * @version 2.45.0
35
34
  */
36
35
  status?: 'error' | 'warning';
37
36
  /**
@@ -57,14 +56,12 @@ export interface InputTagProps<T = unknown> {
57
56
  /**
58
57
  * @zh 是否为内部标签变化添加动画。
59
58
  * @en Whether to add animation for internal label changes
60
- * @version 2.15.0
61
59
  * @defaultValue true
62
60
  */
63
61
  animation?: boolean;
64
62
  /**
65
63
  * @zh 是否在失焦时自动存储正在输入的文本
66
64
  * @en Whether to automatically store the text entering when blur InputTag
67
- * @version 2.25.0
68
65
  */
69
66
  saveOnBlur?: boolean;
70
67
  /**
@@ -90,13 +87,11 @@ export interface InputTagProps<T = unknown> {
90
87
  /**
91
88
  * @zh 是否可以通过拖拽为 Tag 排序
92
89
  * @en Weather it is possible to sort tags by drag
93
- * @version 2.27.0
94
90
  */
95
91
  dragToSort?: boolean;
96
92
  /**
97
93
  * @zh 最多显示多少个 `tag`
98
94
  * @en The maximum number of `tags` is displayed
99
- * @version 2.59.0. `responsive ` in `2.62.0`
100
95
  */
101
96
  maxTagCount?: number | 'responsive' | {
102
97
  count: number | 'responsive';
@@ -106,7 +101,6 @@ export interface InputTagProps<T = unknown> {
106
101
  /**
107
102
  * @zh 添加前缀文字或者图标
108
103
  * @en The prefix icon or text for the input-tag
109
- * @version 2.47.0
110
104
  */
111
105
  prefix?: ReactNode;
112
106
  /**
@@ -117,13 +111,11 @@ export interface InputTagProps<T = unknown> {
117
111
  /**
118
112
  * @zh 输入框前添加元素
119
113
  * @en The label text displayed before (on the left side of) the input-tag field
120
- * @version 2.47.0
121
114
  */
122
115
  addBefore?: ReactNode;
123
116
  /**
124
117
  * @zh 输入框后添加元素
125
118
  * @en The label text displayed after (on the right side of) the input-tag field
126
- * @version 2.47.0
127
119
  */
128
120
  addAfter?: ReactNode;
129
121
  /**
@@ -137,20 +129,17 @@ export interface InputTagProps<T = unknown> {
137
129
  /**
138
130
  * @zh 触发自动分词的分隔符
139
131
  * @en Separator used to tokenize
140
- * @version 2.44.0
141
132
  */
142
133
  tokenSeparators?: string[];
143
134
  /**
144
135
  * @zh 校验函数,默认在 按下enter时候触发。
145
136
  * @en Function to check user's input, which is triggered when `Enter` is pressed
146
137
  * @defaultValue (inputValue, values) => inputValue && values.every((item) => item !== inputValue)
147
- * @version return type T and `Promise<T>` in 2.37.0
148
138
  */
149
139
  validate?: (inputValue: string, values: T[]) => boolean | Promise<boolean> | T | Promise<T>;
150
140
  /**
151
141
  * @zh 自定义标签渲染,`props` 为当前标签属性,`index` 为当前标签的顺序,`values` 为所有标签的值.
152
142
  * @en Custom tag rendering, `props` is the current tag attribute, `index` is the order of the current tag, `values` is the value of all tags
153
- * @version index、values added in 2.15.0
154
143
  */
155
144
  renderTag?: (props: {
156
145
  value: any;
@@ -166,7 +155,6 @@ export interface InputTagProps<T = unknown> {
166
155
  /**
167
156
  * @zh 控件值改变时触发
168
157
  * @en Callback when value changes
169
- * @version `reason` in 2.27.0
170
158
  */
171
159
  onChange?: (value: T[], reason: ValueChangeReason) => void;
172
160
  /**
@@ -202,7 +190,6 @@ export interface InputTagProps<T = unknown> {
202
190
  /**
203
191
  * @zh 点击清除按钮的回调
204
192
  * @en Callback when clear button is clicked
205
- * @version 2.20.0
206
193
  */
207
194
  onClear?: () => void;
208
195
  /**
@@ -113,7 +113,6 @@ export interface SiderProps {
113
113
  /**
114
114
  * @zh 可以接受 `ResizeBox` 所有参数,在伸缩开启时,可以通过 `resizeBoxProps` 对菜单栏的 `width` 进行受控展示或者与 `collapsed` 联动
115
115
  * @en All props of `ResizeBox` can be accepted. The `width` of the menu bar can be displayed in a controlled manner through `resizeBoxProps` or linked with `collapsed`
116
- * @version 2.34.0
117
116
  */
118
117
  resizeBoxProps?: ResizeBoxProps;
119
118
  onSiderMount?: (id: string) => void;
@@ -24,7 +24,6 @@ export interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>,
24
24
  * @zh 悬浮状态是否有底色
25
25
  * @en Whether to hide background when hover
26
26
  * @defaultValue true
27
- * @version 2.23.0
28
27
  */
29
28
  hoverable?: boolean;
30
29
  }
@@ -77,7 +77,6 @@ export interface ListProps<T = any> {
77
77
  /**
78
78
  * @zh 列表栅格配置
79
79
  * @en The grid type of list
80
- * @version `column` in 2.20.0
81
80
  */
82
81
  grid?: ListGridProps;
83
82
  /**
@@ -88,7 +87,6 @@ export interface ListProps<T = any> {
88
87
  /**
89
88
  * @zh 列表项是否可悬浮
90
89
  * @en Whether list items have hover style
91
- * @version 2.9.0
92
90
  */
93
91
  hoverable?: boolean;
94
92
  /**
@@ -117,7 +115,6 @@ export interface ListProps<T = any> {
117
115
  /**
118
116
  * @zh 当前列表的引用
119
117
  * @en Reference to the current list
120
- * @version 2.20.0
121
118
  */
122
119
  listRef?: MutableRefObject<ListHandle>;
123
120
  /**
@@ -138,7 +135,6 @@ export interface ListProps<T = any> {
138
135
  /**
139
136
  * @zh 传递虚拟列表属性,传入此参数以开启虚拟滚动
140
137
  * @en Pass the virtual-list properties, pass in this parameter to turn on virtual scrolling
141
- * @version 2.11.0
142
138
  */
143
139
  virtualListProps?: AvailableVirtualListProps;
144
140
  }
@@ -1,3 +1,4 @@
1
- declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
2
- export default _default;
3
- import React from 'react';
1
+ import type { LoadingProps } from './interface';
2
+ declare const Loading: import("react").ForwardRefExoticComponent<LoadingProps & import("react").RefAttributes<SVGSVGElement>>;
3
+ export default Loading;
4
+ export type { LoadingProps };
@@ -0,0 +1,6 @@
1
+ import type { CSSProperties } from 'react';
2
+ export interface LoadingProps {
3
+ style?: CSSProperties;
4
+ className?: string | string[];
5
+ colors?: string[];
6
+ }
@@ -2,5 +2,5 @@ declare function MenuIndent(props: {
2
2
  prefixCls: string | undefined;
3
3
  level?: number;
4
4
  levelIndent?: number | string;
5
- }): import("react/jsx-dev-runtime").JSX.Element | null;
5
+ }): import("react/jsx-runtime").JSX.Element | null;
6
6
  export default MenuIndent;
@@ -5,5 +5,5 @@ interface OverflowWrapProps {
5
5
  children: ReactNode;
6
6
  onEllipsisChange?: MenuProps['onEllipsisChange'];
7
7
  }
8
- declare const OverflowWrap: (props: OverflowWrapProps) => import("react/jsx-dev-runtime").JSX.Element;
8
+ declare const OverflowWrap: (props: OverflowWrapProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export default OverflowWrap;
@@ -63,7 +63,6 @@ export interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNa
63
63
  * @zh 水平菜单是否自动溢出省略
64
64
  * @en Whether the horizontal menu automatically collapses when it overflows
65
65
  * @defaultValue true
66
- * @version 2.24.0
67
66
  */
68
67
  ellipsis?: boolean | {
69
68
  text?: ReactNode;
@@ -101,13 +100,11 @@ export interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNa
101
100
  /**
102
101
  * @zh 点击菜单项的回调
103
102
  * @en Click menu item callback
104
- * @version `event` in 2.15.0, `keyPath` in 2.19.0
105
103
  */
106
104
  onClickMenuItem?: (key: string, event: any, keyPath: string[]) => any;
107
105
  /**
108
106
  * @zh 点击子菜单标题的回调
109
107
  * @en Callback when click sub menu
110
- * @version `keyPath` in 2.19.0
111
108
  */
112
109
  onClickSubMenu?: (key: string, openKeys: string[], keyPath: string[]) => void;
113
110
  /**
@@ -118,7 +115,6 @@ export interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNa
118
115
  /**
119
116
  * @zh 水平菜单自动超出省略发生变化时的回调
120
117
  * @en Callback when horizontal-menu ellipsis status changed
121
- * @version 2.57.0
122
118
  */
123
119
  onEllipsisChange?: (status: {
124
120
  lastVisibleIndex: number;
@@ -172,13 +168,11 @@ export interface MenuSubMenuProps extends Omit<HTMLAttributes<HTMLElement>, 'tit
172
168
  /**
173
169
  * @zh 是否强制使用弹出模式,`level` 表示当前子菜单的层级
174
170
  * @en Whether to force the use of popup mode, parameter `level` indicates the level of current subMenu.
175
- * @version 2.8.0
176
171
  */
177
172
  popup?: boolean | ((level: number) => boolean);
178
173
  /**
179
174
  * @zh 弹出模式下可接受所有 `Trigger` 的 `Props`
180
175
  * @en Pass all `Trigger` component properties
181
- * @version 2.19.0
182
176
  */
183
177
  triggerProps?: Partial<TriggerProps>;
184
178
  }
@@ -221,13 +215,11 @@ export interface MenuItemProps extends Omit<HTMLAttributes<HTMLElement>, 'classN
221
215
  * @zh 配置最外层标签,可以是 html 标签或是组件
222
216
  * @en Configure the outermost label, which can be a html label or a component
223
217
  * @defaultValue div
224
- * @version 2.16.0
225
218
  */
226
219
  wrapper?: string | React.FC<any> | React.ComponentClass<any>;
227
220
  /**
228
221
  * @zh 菜单折叠时,指定在 Tooltip 中展示的菜单项节点
229
222
  * @en Set the menu item displayed in Tooltip when menu is collapsed
230
- * @version 2.51.0
231
223
  */
232
224
  renderItemInTooltip?: () => ReactNode;
233
225
  }
@@ -1,5 +1,5 @@
1
1
  import { MenuSubMenuProps } from '../../menu/interface';
2
2
  declare const SubMenuInline: (props: MenuSubMenuProps & {
3
3
  forwardedRef: any;
4
- }) => import("react/jsx-dev-runtime").JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
5
  export default SubMenuInline;
@@ -1,5 +1,5 @@
1
1
  import { MenuSubMenuProps } from '../../menu/interface';
2
2
  declare const SubMenuPop: (props: MenuSubMenuProps & {
3
3
  forwardedRef: any;
4
- }) => import("react/jsx-dev-runtime").JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
5
  export default SubMenuPop;
@@ -15,7 +15,6 @@ export interface MessageProps {
15
15
  * @zh 动画持续时间,见 react-transition-group 的 `timeout`
16
16
  * @en timeout of `react-transition-group` of the message pop-up animation, see `timeout`
17
17
  * @defaultValue {enter: 100, exit: 300}
18
- * @version 2.43.0
19
18
  */
20
19
  transitionTimeout?: {
21
20
  enter?: number;
@@ -67,7 +66,6 @@ export interface MessageProps {
67
66
  /**
68
67
  * @zh 自定义右上角关闭按钮
69
68
  * @en Custom the close button on top-right of the drawer dialog
70
- * @version 2.50.0
71
69
  */
72
70
  closeIcon?: ReactNode;
73
71
  type?: string;
@@ -77,7 +77,6 @@ export interface ModalProps {
77
77
  /**
78
78
  * @zh 自定义页脚,传入 null 则不显示
79
79
  * @en Custom `footer`. if it is null, the footer will not be displayed.
80
- * @version 2.12.0
81
80
  */
82
81
  footer?: ReactNode | ((cancelButtonNode: ReactNode, okButtonNode: ReactNode) => ReactNode);
83
82
  /**
@@ -88,7 +87,6 @@ export interface ModalProps {
88
87
  /**
89
88
  * @zh 自定义右上角的关闭按钮节点
90
89
  * @en Customize the close icon
91
- * @version 2.21.0
92
90
  */
93
91
  closeIcon?: ReactNode;
94
92
  /**
@@ -100,7 +98,6 @@ export interface ModalProps {
100
98
  /**
101
99
  * @zh 蒙层的样式
102
100
  * @en The style of mask
103
- * @version 2.6.0
104
101
  */
105
102
  maskStyle?: CSSProperties;
106
103
  /**
@@ -149,14 +146,12 @@ export interface ModalProps {
149
146
  /**
150
147
  * @zh 弹出框外层样式
151
148
  * @en The style of the wrapped dom
152
- * @version 2.16.0
153
149
  */
154
150
  wrapStyle?: CSSProperties;
155
151
  hideCancel?: boolean;
156
152
  /**
157
153
  * @zh 自定义渲染对话框
158
154
  * @en Custom the render of Modal
159
- * @version 2.2.0
160
155
  */
161
156
  modalRender?: (modalNode: ReactNode) => ReactNode;
162
157
  prefixCls?: string;
@@ -61,7 +61,6 @@ export interface NotificationProps {
61
61
  /**
62
62
  * @zh 自定义右上角关闭按钮
63
63
  * @en Custom the close button on top-right of the drawer dialog
64
- * @version 2.50.0
65
64
  */
66
65
  closeIcon?: ReactNode;
67
66
  type?: string;
@@ -6,5 +6,5 @@ interface OverflowItemProps {
6
6
  hidden?: boolean;
7
7
  children: ReactNode;
8
8
  }
9
- declare function OverflowItem(props: OverflowItemProps): import("react/jsx-dev-runtime").JSX.Element;
9
+ declare function OverflowItem(props: OverflowItemProps): import("react/jsx-runtime").JSX.Element;
10
10
  export default OverflowItem;
@@ -7,5 +7,5 @@ interface OverflowEllipsisProps {
7
7
  ellipsisCount: number;
8
8
  }) => ReactNode;
9
9
  }
10
- declare function OverflowEllipsis(props: OverflowEllipsisProps): import("react/jsx-dev-runtime").JSX.Element;
10
+ declare function OverflowEllipsis(props: OverflowEllipsisProps): import("react/jsx-runtime").JSX.Element;
11
11
  export default OverflowEllipsis;
@@ -3,16 +3,16 @@ import { JumpPagerProps, PagerProps, StepPagerProps } from './interface';
3
3
  /**
4
4
  * default pager item
5
5
  */
6
- declare function Pager(props: PagerProps): import("react/jsx-dev-runtime").JSX.Element;
6
+ declare function Pager(props: PagerProps): import("react/jsx-runtime").JSX.Element;
7
7
  /**
8
8
  * preJump or nextJump button
9
9
  * @param props
10
10
  */
11
- export declare const JumpPager: (props: JumpPagerProps) => import("react/jsx-dev-runtime").JSX.Element;
11
+ export declare const JumpPager: (props: JumpPagerProps) => import("react/jsx-runtime").JSX.Element;
12
12
  /**
13
13
  * previous or next button
14
14
  * @param props
15
15
  */
16
- export declare const StepPager: (props: StepPagerProps) => import("react/jsx-dev-runtime").JSX.Element;
16
+ export declare const StepPager: (props: StepPagerProps) => import("react/jsx-runtime").JSX.Element;
17
17
  declare const _default: React.MemoExoticComponent<typeof Pager>;
18
18
  export default _default;
@@ -9,5 +9,5 @@ export interface PageJumperProps {
9
9
  onPageChange?: (value: any) => void;
10
10
  size?: 'mini' | 'small' | 'default' | 'large';
11
11
  }
12
- declare function PageJumper(props: PageJumperProps): import("react/jsx-dev-runtime").JSX.Element;
12
+ declare function PageJumper(props: PageJumperProps): import("react/jsx-runtime").JSX.Element;
13
13
  export default PageJumper;
@@ -10,6 +10,6 @@ export interface PageOptionProps {
10
10
  size?: 'mini' | 'small' | 'default' | 'large';
11
11
  selectProps?: Partial<SelectProps>;
12
12
  }
13
- declare function PageOption(props: PageOptionProps): import("react/jsx-dev-runtime").JSX.Element;
13
+ declare function PageOption(props: PageOptionProps): import("react/jsx-runtime").JSX.Element;
14
14
  declare const _default: React.MemoExoticComponent<typeof PageOption>;
15
15
  export default _default;
@@ -49,7 +49,6 @@ export interface PaginationProps {
49
49
  /**
50
50
  * @zh 是否在只有一页的情况下隐藏
51
51
  * @en Whether to hide when there is only one page
52
- * @version 2.6.0
53
52
  */
54
53
  hideOnSinglePage?: boolean;
55
54
  /**
@@ -81,7 +80,6 @@ export interface PaginationProps {
81
80
  * @zh `current` 页与 `...` 之间的页码个数
82
81
  * @en the number of pages between the `current` page and `...`
83
82
  * @defaultValue 2
84
- * @version 2.32.0
85
83
  */
86
84
  bufferSize?: number;
87
85
  /**
@@ -19,20 +19,18 @@ export interface PopconfirmProps {
19
19
  */
20
20
  position?: 'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br' | 'left' | 'lt' | 'lb' | 'right' | 'rt' | 'rb';
21
21
  /**
22
- * @zh 标题。 函数类型在 `2.48.0` 支持
23
- * @en Title of Popconfirm. Function types are supported in `2.48.0`
22
+ * @zh 标题
23
+ * @en Title of Popconfirm.
24
24
  */
25
25
  title?: ReactNode | (() => ReactNode);
26
26
  /**
27
- * @zh 内容.函数类型在 `2.48.0` 支持
28
- * @en Content of Popconfirm Function types are supported in `2.48.0`
29
- * @version 2.44.0
27
+ * @zh 内容
28
+ * @en Content of Popconfirm
30
29
  */
31
30
  content?: ReactNode | (() => ReactNode);
32
31
  /**
33
32
  * @zh 是否禁用
34
33
  * @en whether to disabled
35
- * @version 2.11.0
36
34
  */
37
35
  disabled?: boolean;
38
36
  /**
@@ -62,13 +60,13 @@ export interface PopconfirmProps {
62
60
  */
63
61
  cancelButtonProps?: ButtonProps;
64
62
  /**
65
- * @zh 点击确认按钮的回调函数。回调函数 `event` 参数在 `2.29.0` 支持
66
- * @en Callback when click the ok button. Callback `event` params is supported in `2.29.0`
63
+ * @zh 点击确认按钮的回调函数。
64
+ * @en Callback when click the ok button.
67
65
  */
68
66
  onOk?: (e: React.MouseEvent) => Promise<any> | void;
69
67
  /**
70
- * @zh 点击取消按钮的回调函数。 回调函数 `event` 参数在 `2.29.0` 支持
71
- * @en Callback when click the cancel button. Callback `event` params is supported in `2.29.0`
68
+ * @zh 点击取消按钮的回调函数。
69
+ * @en Callback when click the cancel button.
72
70
  */
73
71
  onCancel?: (e: React.MouseEvent) => void;
74
72
  /**
@@ -14,7 +14,6 @@ export interface PopoverProps extends Omit<TooltipProps, 'mini'> {
14
14
  /**
15
15
  * @zh 是否禁用
16
16
  * @en Whether to disabled
17
- * @version 2.11.0
18
17
  */
19
18
  disabled?: boolean;
20
19
  }
@@ -1,8 +1,4 @@
1
- import React, { ReactNode } from 'react';
2
- export interface PortalProps {
3
- /** Portal 挂载的容器 */
4
- getContainer?: () => Element;
5
- children?: ReactNode;
6
- }
1
+ import React from 'react';
2
+ import type { PortalProps } from './interface';
7
3
  declare const _default: React.ForwardRefExoticComponent<PortalProps & React.RefAttributes<unknown>>;
8
4
  export default _default;
@@ -1,11 +1,4 @@
1
- import React, { ReactNode } from 'react';
2
- export interface PortalWrapperProps {
3
- /** Portal 挂载的容器 */
4
- getContainer?: () => Element;
5
- childrenComponent?: Element;
6
- forceRender?: boolean;
7
- visible?: boolean;
8
- children?: ReactNode;
9
- }
1
+ import React from 'react';
2
+ import type { PortalWrapperProps } from './interface';
10
3
  declare const _default: React.ForwardRefExoticComponent<PortalWrapperProps & React.RefAttributes<unknown>>;
11
4
  export default _default;
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ export interface PortalProps {
3
+ /** Portal 挂载的容器 */
4
+ getContainer?: () => Element;
5
+ children?: ReactNode;
6
+ }
7
+ export interface PortalWrapperProps {
8
+ /** Portal 挂载的容器 */
9
+ getContainer?: () => Element;
10
+ childrenComponent?: Element;
11
+ forceRender?: boolean;
12
+ visible?: boolean;
13
+ children?: ReactNode;
14
+ }
@@ -4,5 +4,5 @@ declare const CircleProgress: (props: ProgressProps & {
4
4
  width: number;
5
5
  pathStrokeWidth?: number;
6
6
  pathStrokeColor?: string;
7
- }) => import("react/jsx-dev-runtime").JSX.Element;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
8
  export default CircleProgress;
@@ -1,2 +1,2 @@
1
- declare function LineProgress(props: any): import("react/jsx-dev-runtime").JSX.Element;
1
+ declare function LineProgress(props: any): import("react/jsx-runtime").JSX.Element;
2
2
  export default LineProgress;
@@ -1,2 +1,2 @@
1
- export declare const StepProgress: (props: any) => import("react/jsx-dev-runtime").JSX.Element;
1
+ export declare const StepProgress: (props: any) => import("react/jsx-runtime").JSX.Element;
2
2
  export default StepProgress;
@@ -14,7 +14,6 @@ export interface ProgressProps {
14
14
  /**
15
15
  * @zh 显示步骤进度条
16
16
  * @en Show step progress
17
- * @version 2.10.0
18
17
  */
19
18
  steps?: number;
20
19
  /**
@@ -25,13 +24,11 @@ export interface ProgressProps {
25
24
  /**
26
25
  * @zh 进度条状态
27
26
  * @en Progress status.
28
- * @version 2.16.0
29
27
  */
30
28
  status?: 'success' | 'error' | 'normal' | 'warning';
31
29
  /**
32
30
  * @zh 进度条颜色,优先级高于 `status`。传入对象时,会显示渐变色进度条。
33
31
  * @en Progress color, priority is higher than `status`
34
- * @version 2.10.0
35
32
  */
36
33
  color?: string | {
37
34
  [key: string]: string;