@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
@@ -14,13 +14,16 @@ import { CarouselProps } from '../carousel/interface';
14
14
  import { CascaderProps } from '../cascader/interface';
15
15
  import { CheckboxProps } from '../checkbox/interface';
16
16
  import { CollapseProps } from '../collapse/interface';
17
+ import { ColorPickerProps } from '../color-picker';
17
18
  import { CommentProps } from '../comment/interface';
18
19
  import { PickerProps as DatePickerCommonProps } from '../date-picker/interface';
19
20
  import { DescriptionsProps } from '../descriptions/interface';
21
+ import { DetailsProps } from '../details';
20
22
  import { DividerProps } from '../divider/interface';
21
23
  import { DrawerProps } from '../drawer/interface';
22
24
  import { DropdownButtonProps, DropdownProps } from '../dropdown/interface';
23
25
  import { EmptyProps } from '../empty/interface';
26
+ import type { FlexProps } from '../flex/interface';
24
27
  import { FormProps } from '../form/interface';
25
28
  import { ColProps, GridItemProps, GridProps, RowProps } from '../grid/interface';
26
29
  import { ImageProps } from '../image/interface';
@@ -29,8 +32,11 @@ import { InputTagProps } from '../input-tag/interface';
29
32
  import { InputProps } from '../input/interface';
30
33
  import { LayoutProps } from '../layout/interface';
31
34
  import { LinkProps } from '../link/interface';
35
+ import { LiquidFillProps } from '../liquid-fill';
32
36
  import { ListItemProps, ListProps } from '../list/interface';
37
+ import type { LoadingProps } from '../loading';
33
38
  import { Locale } from '../locale/interface';
39
+ import type { MarqueeProps } from '../marquee';
34
40
  import { MentionsProps } from '../mentions/interface';
35
41
  import { MenuProps } from '../menu/interface';
36
42
  import { ModalProps } from '../modal/interface';
@@ -39,15 +45,18 @@ import { PaginationProps } from '../pagination/interface';
39
45
  import { PopconfirmProps } from '../popconfirm/interface';
40
46
  import { PopoverProps } from '../popover/interface';
41
47
  import { ProgressProps } from '../progress/interface';
48
+ import { QRCodeProps } from '../qr-code';
42
49
  import { RadioGroupProps, RadioProps } from '../radio/interface';
43
50
  import { RateProps } from '../rate/interface';
44
51
  import { ResizeBoxProps } from '../resize-box/interface';
45
52
  import { ResultProps } from '../result/interface';
53
+ import type { SegmentedProps } from '../segmented/interface';
46
54
  import { SelectProps } from '../select/interface';
47
55
  import { SkeletonProps } from '../skeleton/interface';
48
56
  import { SliderProps } from '../slider/interface';
49
57
  import { SpaceProps } from '../space/interface';
50
58
  import { SpinProps } from '../spin/interface';
59
+ import { SplitterProps } from '../splitter/interface';
51
60
  import { StatisticProps } from '../statistic/interface';
52
61
  import { StepsProps } from '../steps/interface';
53
62
  import { SwitchProps } from '../switch/interface';
@@ -57,20 +66,14 @@ import { TagProps } from '../tag/interface';
57
66
  import { PickerProps as TimePickerCommonProps } from '../time-picker/interface';
58
67
  import { TimelineItemProps, TimelineProps } from '../timeline/interface';
59
68
  import { TooltipProps } from '../tooltip/interface';
69
+ import { TourProps } from '../tour';
60
70
  import { TransferProps } from '../transfer/interface';
61
71
  import { TreeSelectProps } from '../tree-select/interface';
62
72
  import { TreeProps } from '../tree/interface';
63
73
  import { TriggerProps } from '../trigger/interface';
64
- import { Omit } from '../utils/type';
65
- import { ColorPickerProps } from '../color-picker';
66
- import { LiquidFillProps } from '../liquid-fill';
67
- import type { MarqueeProps } from '../marquee';
68
- import { QRCodeProps } from '../qr-code';
69
- import type { SegmentedProps } from '../segmented/interface';
70
- import { SplitterProps } from '../splitter/interface';
71
- import { TourProps } from '../tour';
72
- import { TypographyEllipsisProps } from '../typography';
74
+ import { TypographyEllipsisProps, type TypographyProps } from '../typography';
73
75
  import { UploadProps } from '../upload/interface';
76
+ import { Omit } from '../utils/type';
74
77
  import { VerificationCodeProps } from '../verification-code/interface';
75
78
  import { WatermarkProps } from '../watermark/interface';
76
79
  export type ThemeConfig = Record<string, unknown>;
@@ -101,12 +104,13 @@ export type ComponentConfig = {
101
104
  Dropdown?: DropdownProps;
102
105
  'Dropdown.Button'?: DropdownButtonProps;
103
106
  Empty?: EmptyProps;
107
+ Typography?: TypographyProps;
104
108
  'Typography.Ellipsis'?: TypographyEllipsisProps;
105
109
  Form?: FormProps;
106
110
  'Grid.Row'?: RowProps;
107
111
  'Grid.Col'?: ColProps;
108
112
  Grid?: GridProps;
109
- 'Grid.GridItem'?: GridItemProps;
113
+ 'Grid.Item'?: GridItemProps;
110
114
  Image?: ImageProps;
111
115
  Input?: InputProps;
112
116
  InputNumber?: InputNumberProps;
@@ -158,6 +162,9 @@ export type ComponentConfig = {
158
162
  Marquee?: MarqueeProps;
159
163
  Segmented?: SegmentedProps;
160
164
  Splitter?: SplitterProps;
165
+ Flex?: FlexProps;
166
+ Details?: DetailsProps;
167
+ Loading?: LoadingProps;
161
168
  };
162
169
  /**
163
170
  * @title ConfigProvider
@@ -166,13 +173,11 @@ export interface ConfigProviderProps {
166
173
  /**
167
174
  * @zh 当按钮中是两个汉字时,自动在两个汉字中添加一个空格。
168
175
  * @en When there are two Chinese characters in the button, a space is automatically added between two Chinese characters.
169
- * @version 2.3.0
170
176
  */
171
177
  autoInsertSpaceInButton?: boolean;
172
178
  /**
173
179
  * @zh 用于全局配置所有组件的默认参数
174
180
  * @en Default parameters for global configuration of all component
175
- * @version 2.23.0
176
181
  */
177
182
  componentConfig?: ComponentConfig;
178
183
  /**
@@ -212,33 +217,28 @@ export interface ConfigProviderProps {
212
217
  /**
213
218
  * @zh Table 全局的分页配置。
214
219
  * @en Table Global pagination configuration.
215
- * @version 2.6.0
216
220
  */
217
221
  tablePagination?: PaginationProps;
218
222
  /**
219
223
  * @zh 全局配置组件内的空组件。
220
224
  * @en Empty component in component.
221
- * @version 2.10.0
222
225
  */
223
226
  renderEmpty?: (componentName?: string) => ReactNode;
224
227
  /**
225
228
  * @zh 视图的表现形式是从右开始向左结束。
226
229
  * @en View starts from the right and ends on the left.
227
- * @version 2.36.0
228
230
  */
229
231
  rtl?: boolean;
230
232
  /**
231
233
  * @zh 是否全局设置所有 `Message` 和 `Notification` 的配置。如果用了 `useMessage` 的 hook 局部设置请设置为 false
232
234
  * @en Whether to update the configuration of all `Message` and `Notification` with one click. Set to false if using the hook locale of `useMessage`
233
235
  * @defaultValue true
234
- * @version 2.40.0
235
236
  */
236
237
  effectGlobalNotice?: boolean;
237
238
  /**
238
239
  * @zh 是否全局设置所有 `Modal` 的配置。
239
240
  * @en Whether to set all `Modal` configuration globally.
240
241
  * @defaultValue true
241
- * @version 2.61.0
242
242
  */
243
243
  effectGlobalModal?: boolean;
244
244
  /**
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { CopyProps } from './interface';
3
- declare function Copy(props: PropsWithChildren<CopyProps>): import("react/jsx-dev-runtime").JSX.Element;
3
+ declare function Copy(props: PropsWithChildren<CopyProps>): import("react/jsx-runtime").JSX.Element;
4
4
  declare namespace Copy {
5
5
  var displayName: string;
6
6
  }
@@ -1,7 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  export interface CopyProps {
3
3
  className?: string | string[];
4
- text?: string;
4
+ text?: string | (() => string);
5
+ getText?: () => string;
5
6
  onCopy?: (text: string, e: any) => void;
6
7
  icon?: ReactNode;
7
8
  tooltips?: [ReactNode, ReactNode];
@@ -52,7 +52,6 @@ export interface PickerProps {
52
52
  /**
53
53
  * @zh 每周的第一天开始于周几,0 - 周日,1 - 周一,以此类推。
54
54
  * @en The first day of the week starts on the day of the week, `0`-Sunday, `1`-Monday, and so on.
55
- * @version 2 - 6 in `2.20.0`
56
55
  */
57
56
  dayStartOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
58
57
  /**
@@ -90,13 +89,11 @@ export interface PickerProps {
90
89
  /**
91
90
  * @zh 状态
92
91
  * @en Status
93
- * @version 2.45.0
94
92
  */
95
93
  status?: 'error' | 'warning';
96
94
  /**
97
95
  * @zh 前缀
98
96
  * @en prefix
99
- * @version 2.43.0
100
97
  */
101
98
  prefix?: ReactNode;
102
99
  /**
@@ -143,7 +140,6 @@ export interface PickerProps {
143
140
  /**
144
141
  * @zh 自定义渲染面板
145
142
  * @en Customize the panel node.
146
- * @version 2.34.0
147
143
  */
148
144
  panelRender?: (panelNode: ReactNode) => ReactNode;
149
145
  /**
@@ -165,7 +161,6 @@ export interface PickerProps {
165
161
  /**
166
162
  * @zh 日历分页的图标配置。
167
163
  * @en Icon configuration of panel.
168
- * @version 2.20.0
169
164
  */
170
165
  icons?: {
171
166
  prev?: ReactNode;
@@ -204,7 +199,6 @@ export interface PickerProps {
204
199
  /**
205
200
  * @zh 触发元素。
206
201
  * @en Trigger element.
207
- * @version 2.9.0
208
202
  */
209
203
  triggerElement?: ReactNode;
210
204
  /**
@@ -215,19 +209,16 @@ export interface PickerProps {
215
209
  /**
216
210
  * @zh 面板显示的日期。
217
211
  * @en Displayed date of panel.
218
- * @version 2.9.0
219
212
  */
220
213
  pickerValue?: CalendarValue;
221
214
  /**
222
215
  * @zh 面板日期改变的回调。
223
216
  * @en Callback when date of panel changes.
224
- * @version 2.9.0
225
217
  */
226
218
  onPickerValueChange?: (dateString: string, value: Dayjs) => void;
227
219
  /**
228
220
  * @zh 面板隐藏不在当前时间范围的灰色日期
229
221
  * @en The panel hides gray dates that are not in the current time range
230
- * @version 2.20.0
231
222
  */
232
223
  hideNotInViewDates?: boolean;
233
224
  /**
@@ -243,7 +234,6 @@ export interface PickerProps {
243
234
  /**
244
235
  * @zh 原生输入框属性
245
236
  * @en Native input attributes
246
- * @version 2.60.0
247
237
  */
248
238
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
249
239
  }
@@ -396,7 +386,6 @@ export interface BaseRangePickerProps {
396
386
  * @zh 展示日期的格式,参考[dayjs](https://github.com/iamkun/dayjs)
397
387
  * @en Date format, refer to [dayjs](https://github.com/iamkun/dayjs)
398
388
  * @defaultValue YYYY-MM-DD
399
- * @version string[] in 2.55.0
400
389
  */
401
390
  format?: string | string[];
402
391
  /**
@@ -407,7 +396,6 @@ export interface BaseRangePickerProps {
407
396
  /**
408
397
  * @zh 选中日期发生改变但组件值未改变时的回调
409
398
  * @en Callback when the show value changes but the selected value does not change
410
- * @version `extra` in `2.23.0`
411
399
  */
412
400
  onSelect?: (dateString: string[], value: Dayjs[], extra: {
413
401
  type: 'start' | 'end';
@@ -456,7 +444,6 @@ export interface BaseRangePickerProps {
456
444
  /**
457
445
  * @zh 触发元素。
458
446
  * @en Trigger element.
459
- * @version 2.9.0
460
447
  */
461
448
  triggerElement?: ReactNode;
462
449
  /**
@@ -467,25 +454,21 @@ export interface BaseRangePickerProps {
467
454
  /**
468
455
  * @zh 面板显示的日期。
469
456
  * @en Displayed date of panel.
470
- * @version 2.9.0
471
457
  */
472
458
  pickerValue?: CalendarValue[];
473
459
  /**
474
460
  * @zh 面板日期改变的回调。
475
461
  * @en Callback when date of panel changes.
476
- * @version 2.9.0
477
462
  */
478
463
  onPickerValueChange?: (dateString: string[], value: Dayjs[]) => void;
479
464
  /**
480
465
  * @zh 当重新选择范围的时候,会清空之前的范围重新进行选择
481
466
  * @en When reselect the range, the previous range will be cleared for next selection
482
- * @version 2.23.0
483
467
  */
484
468
  clearRangeOnReselect?: boolean;
485
469
  /**
486
470
  * @zh 原生输入框属性
487
471
  * @en Native input attributes
488
- * @version 2.60.0
489
472
  */
490
473
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>[];
491
474
  }
@@ -26,5 +26,5 @@ export interface PanelBodyProps {
26
26
  hideNotInViewDates?: boolean;
27
27
  valueShowHover?: Dayjs[];
28
28
  }
29
- declare function Body(props: PanelBodyProps): import("react/jsx-dev-runtime").JSX.Element;
29
+ declare function Body(props: PanelBodyProps): import("react/jsx-runtime").JSX.Element;
30
30
  export default Body;
@@ -1,2 +1,2 @@
1
- declare function Footer(props: any): import("react/jsx-dev-runtime").JSX.Element;
1
+ declare function Footer(props: any): import("react/jsx-runtime").JSX.Element;
2
2
  export default Footer;
@@ -16,5 +16,5 @@ export interface HeaderProps {
16
16
  rtl?: boolean;
17
17
  DATEPICKER_LOCALE?: Locale['DatePicker'];
18
18
  }
19
- declare function Header(props: HeaderProps): import("react/jsx-dev-runtime").JSX.Element;
19
+ declare function Header(props: HeaderProps): import("react/jsx-runtime").JSX.Element;
20
20
  export default Header;
@@ -4,5 +4,5 @@ interface WeekListProps {
4
4
  isWeek?: boolean;
5
5
  CALENDAR_LOCALE?: Record<string, any>;
6
6
  }
7
- declare function WeekList(props: WeekListProps): import("react/jsx-dev-runtime").JSX.Element;
7
+ declare function WeekList(props: WeekListProps): import("react/jsx-runtime").JSX.Element;
8
8
  export default WeekList;
@@ -20,5 +20,5 @@ interface InnerDatePickerProps extends DatePickerProps {
20
20
  panelMode?: ModeType;
21
21
  setPanelMode?: (mode: ModeType) => void;
22
22
  }
23
- declare function DatePicker(props: InnerDatePickerProps & PrivateCType): import("react/jsx-dev-runtime").JSX.Element;
23
+ declare function DatePicker(props: InnerDatePickerProps & PrivateCType): import("react/jsx-runtime").JSX.Element;
24
24
  export default DatePicker;
@@ -13,5 +13,5 @@ interface InnerMonthPickerProps extends MonthPickerProps {
13
13
  panelMode?: ModeType;
14
14
  setPanelMode?: (mode: ModeType) => void;
15
15
  }
16
- declare function MonthPicker(props: InnerMonthPickerProps & PrivateCType): import("react/jsx-dev-runtime").JSX.Element;
16
+ declare function MonthPicker(props: InnerMonthPickerProps & PrivateCType): import("react/jsx-runtime").JSX.Element;
17
17
  export default MonthPicker;
@@ -13,5 +13,5 @@ interface InnerQuarterPickerProps extends QuarterPickerProps {
13
13
  panelMode?: ModeType;
14
14
  setPanelMode?: (mode: ModeType) => void;
15
15
  }
16
- declare function QuarterPicker(props: InnerQuarterPickerProps & PrivateCType): import("react/jsx-dev-runtime").JSX.Element;
16
+ declare function QuarterPicker(props: InnerQuarterPickerProps & PrivateCType): import("react/jsx-runtime").JSX.Element;
17
17
  export default QuarterPicker;
@@ -24,5 +24,5 @@ interface InnerRangePickerProps extends RangePickerProps {
24
24
  panelModes?: ModeType[];
25
25
  setPanelModes?: (modes: ModeType[]) => void;
26
26
  }
27
- declare function RangePicker(props: InnerRangePickerProps & PrivateCType): import("react/jsx-dev-runtime").JSX.Element;
27
+ declare function RangePicker(props: InnerRangePickerProps & PrivateCType): import("react/jsx-runtime").JSX.Element;
28
28
  export default RangePicker;
@@ -12,5 +12,5 @@ interface InnerWeekPickerProps extends WeekPickerProps {
12
12
  panelMode?: ModeType;
13
13
  setPanelMode?: (mode: ModeType) => void;
14
14
  }
15
- declare function WeekPicker(props: InnerWeekPickerProps & PrivateCType): import("react/jsx-dev-runtime").JSX.Element;
15
+ declare function WeekPicker(props: InnerWeekPickerProps & PrivateCType): import("react/jsx-runtime").JSX.Element;
16
16
  export default WeekPicker;
@@ -12,5 +12,5 @@ interface InnerYearPickerProps extends YearPickerProps {
12
12
  onSuperPrev?: () => void;
13
13
  onSuperNext?: () => void;
14
14
  }
15
- declare function YearPicker(props: InnerYearPickerProps): import("react/jsx-dev-runtime").JSX.Element;
15
+ declare function YearPicker(props: InnerYearPickerProps): import("react/jsx-runtime").JSX.Element;
16
16
  export default YearPicker;
@@ -1,5 +1,5 @@
1
1
  import { DescriptionsProps } from './interface';
2
- declare function Descriptions(baseProps: DescriptionsProps): import("react/jsx-dev-runtime").JSX.Element;
2
+ declare function Descriptions(baseProps: DescriptionsProps): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace Descriptions {
4
4
  var displayName: string;
5
5
  }
@@ -73,7 +73,6 @@ export interface DescriptionsProps {
73
73
  * @zh 描述中表格样式的 `layout-fixed`,当设置成 `fixed` 时,宽度会均分。
74
74
  * @en The `layout-fixed` of the table style in the description. The width will be evenly distributed when it's set to `fixed`.
75
75
  * @defaultValue auto
76
- * @version 2.6.0
77
76
  */
78
77
  tableLayout?: 'auto' | 'fixed';
79
78
  }
@@ -1,4 +1,5 @@
1
+ import React from 'react';
1
2
  import { DetailsProps } from './interface';
2
- declare const DetailsComponent: import("react").ForwardRefExoticComponent<DetailsProps & import("react").RefAttributes<unknown>>;
3
- export default DetailsComponent;
3
+ declare const Details: React.ForwardRefExoticComponent<DetailsProps & React.RefAttributes<HTMLDetailsElement>>;
4
+ export default Details;
4
5
  export type { DetailsProps };
@@ -30,4 +30,20 @@ export interface DetailsProps {
30
30
  * @en Whether to show as banner
31
31
  */
32
32
  banner?: boolean;
33
+ /**
34
+ * @zh 受控模式,打开与关闭
35
+ */
36
+ open?: boolean;
37
+ /**
38
+ * @zh 非受控模式,默认打开或者默认关闭
39
+ */
40
+ defaultOpen?: boolean;
41
+ /**
42
+ * @zh 展示时的回调
43
+ */
44
+ onOpen?: () => void;
45
+ /**
46
+ * @zh 关闭时的回调
47
+ */
48
+ onClose?: () => void;
33
49
  }
@@ -1,2 +1,3 @@
1
+ import type { DevelopmentProps } from './interface';
2
+ declare const Development: import("react").ForwardRefExoticComponent<DevelopmentProps & import("react").RefAttributes<unknown>>;
1
3
  export default Development;
2
- declare const Development: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>;
@@ -0,0 +1,15 @@
1
+ import type { DevelopmentProps as DevelopmentPropsBase } from '../../common/development';
2
+ /**
3
+ * Development 组件的属性类型定义
4
+ * @property {string} [url] - 图片 URL,如果有则显示图片而不是图标
5
+ * @property {React.ReactNode} [icon] - 自定义图标,会覆盖默认的等待图标
6
+ * @property {string} [label] - 提示文字,默认为"等待开发"
7
+ * @property {string} [tip] - 提示文字别名,优先级低于 label
8
+ * @property {string} [className] - 根节点类名
9
+ * @property {string} [imgClassName] - 图片类名
10
+ * @property {string} [iconClassName] - 图标类名
11
+ * @property {string} [labelClassName] - 文字标签类名
12
+ */
13
+ export interface DevelopmentProps extends DevelopmentPropsBase {
14
+ url?: string;
15
+ }
@@ -1,5 +1,10 @@
1
1
  import React from 'react';
2
2
  import { DividerProps } from './interface';
3
- declare const DividerComponent: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<unknown>>;
4
- export default DividerComponent;
3
+ interface DividerComponent extends React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement>> {
4
+ Vertical: typeof DividerVertical;
5
+ }
6
+ declare const Divider: DividerComponent;
7
+ declare const DividerVertical: React.ForwardRefExoticComponent<Omit<DividerProps, "orientation"> & React.RefAttributes<HTMLDivElement>>;
8
+ export { DividerVertical };
9
+ export default Divider;
5
10
  export type { DividerProps };
@@ -1,3 +1,3 @@
1
1
  import { DraggableItemProps } from './interface';
2
- declare function Item(props: DraggableItemProps): import("react/jsx-dev-runtime").JSX.Element;
2
+ declare function Item(props: DraggableItemProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default Item;
@@ -1,3 +1,3 @@
1
1
  import { DraggableProps } from './interface';
2
- declare function Draggable(props: DraggableProps): import("react/jsx-dev-runtime").JSX.Element;
2
+ declare function Draggable(props: DraggableProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default Draggable;
@@ -9,7 +9,6 @@ export interface DrawerProps {
9
9
  /**
10
10
  * @zh 设置抽屉的 zIndex
11
11
  * @en Set the zIndex of the drawer
12
- * @version 2.42.0
13
12
  */
14
13
  zIndex?: number;
15
14
  children?: ReactNode;
@@ -31,13 +30,11 @@ export interface DrawerProps {
31
30
  /**
32
31
  * @zh 头部的样式
33
32
  * @en The additional css style for header
34
- * @version 2.9.0
35
33
  */
36
34
  headerStyle?: CSSProperties;
37
35
  /**
38
36
  * @zh 内容区域的样式
39
37
  * @en The additional css style for content
40
- * @version 2.9.0
41
38
  */
42
39
  bodyStyle?: CSSProperties;
43
40
  /**
@@ -58,7 +55,6 @@ export interface DrawerProps {
58
55
  /**
59
56
  * @zh 确认按钮的 props
60
57
  * @en The props of `ok` button
61
- * @version 2.26.0
62
58
  */
63
59
  okButtonProps?: ButtonProps;
64
60
  okButton?: {
@@ -69,7 +65,6 @@ export interface DrawerProps {
69
65
  /**
70
66
  * @zh 取消按钮的 props
71
67
  * @en The props of `cancel` button
72
- * @version 2.26.0
73
68
  */
74
69
  cancelButtonProps?: ButtonProps;
75
70
  cancelButton?: {
@@ -99,7 +94,6 @@ export interface DrawerProps {
99
94
  * @zh 按 `ESC` 键关闭
100
95
  * @en Whether to enable pressing `ESC` to close the drawer.
101
96
  * @defaultValue true
102
- * @version 2.10.0
103
97
  */
104
98
  escToExit?: boolean;
105
99
  /**
@@ -122,7 +116,6 @@ export interface DrawerProps {
122
116
  /**
123
117
  * @zh 自定义右上角关闭按钮
124
118
  * @en Custom the close button on top-right of the drawer dialog
125
- * @version 2.49.0
126
119
  */
127
120
  closeIcon?: ReactNode;
128
121
  /**
@@ -26,7 +26,6 @@ export interface DropdownProps {
26
26
  /**
27
27
  * @zh 是否禁用弹出
28
28
  * @en Whether to disable popup
29
- * @version 2.16.0
30
29
  */
31
30
  disabled?: boolean;
32
31
  /**
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { FlexProps } from './interface';
3
+ declare const FlexVertical: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
4
+ interface FlexInterface extends React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>> {
5
+ Vertical: typeof FlexVertical;
6
+ }
7
+ declare const Flex: FlexInterface;
8
+ export { FlexVertical };
9
+ export default Flex;
@@ -0,0 +1,16 @@
1
+ import { CSSProperties } from 'react';
2
+ import type { FlexProps as CommonFlexProps, GapType, SizeType } from '../../common/flex/interface';
3
+ export type { GapType, SizeType };
4
+ /**
5
+ * @title Flex
6
+ */
7
+ export interface FlexProps extends CommonFlexProps {
8
+ /**
9
+ * 自定义类名
10
+ */
11
+ className?: string;
12
+ /**
13
+ * 自定义样式
14
+ */
15
+ style?: CSSProperties;
16
+ }
@@ -59,6 +59,6 @@ declare class Control<FormData = any, FieldValue = FormData[keyof FormData], Fie
59
59
  handleTrigger: (_value: any, ...args: any[]) => void;
60
60
  renderControl(children: React.ReactNode, id: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
61
61
  getChild: () => React.ReactNode;
62
- render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-dev-runtime").JSX.Element | null | undefined;
62
+ render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
63
63
  }
64
64
  export default Control;
@@ -1,5 +1,5 @@
1
1
  import { FormListProps, KeyType } from './interface';
2
- declare function FormList<SubFieldValue = unknown, SubFieldKey extends KeyType = string, FieldKey extends KeyType = string>(props: FormListProps<SubFieldValue, SubFieldKey, FieldKey>): import("react/jsx-dev-runtime").JSX.Element;
2
+ declare function FormList<SubFieldValue = unknown, SubFieldKey extends KeyType = string, FieldKey extends KeyType = string>(props: FormListProps<SubFieldValue, SubFieldKey, FieldKey>): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace FormList {
4
4
  var displayName: string;
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
  import { JSX } from 'react/jsx-runtime';
3
- declare function IconUiCheck(props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>): import("react/jsx-dev-runtime").JSX.Element;
3
+ declare function IconUiCheck(props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>): JSX.Element;
4
4
  export default IconUiCheck;