@unicom-cloud/ui 0.8.98 → 0.8.100

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 (180) hide show
  1. package/Anchor.js +3 -1
  2. package/Badge.js +54 -7
  3. package/Copy.js +49 -2
  4. package/Flex.js +12 -0
  5. package/Grid.js +1 -1
  6. package/LiquidFill.js +60 -2
  7. package/Marquee.js +62 -0
  8. package/QrCode.js +14 -9
  9. package/Segmented.js +11 -0
  10. package/Space.js +14 -6
  11. package/Splitter.js +6 -0
  12. package/Tag.js +3 -2
  13. package/Tour.js +14 -9
  14. package/alert/index.js +38 -39
  15. package/anchor/index.js +5 -3
  16. package/badge/index.js +174 -80
  17. package/collapse/Collapse.js +54 -48
  18. package/components/common/space/index.js +90 -106
  19. package/copy/index.js +83 -35
  20. package/flex/index.js +59 -0
  21. package/flex/interface.js +34 -0
  22. package/flex/utils.js +13 -0
  23. package/grid/{GridItem.js → Item.js} +15 -15
  24. package/grid/index.js +1 -1
  25. package/index.js +490 -477
  26. package/input/Button.js +39 -34
  27. package/input/Textarea.js +108 -104
  28. package/liquid-fill/index.js +256 -2
  29. package/marquee/index.js +283 -0
  30. package/menu/Item.js +17 -16
  31. package/package.json +1 -1
  32. package/qr-code/index.js +54 -36
  33. package/rate/index.js +8 -8
  34. package/segmented/index.js +225 -0
  35. package/space/index.js +28 -29
  36. package/spin/index.js +75 -62
  37. package/splitter/Panel.js +39 -0
  38. package/splitter/SplitBar.js +157 -0
  39. package/splitter/Splitter.js +139 -0
  40. package/splitter/hooks/useEvent.js +12 -0
  41. package/splitter/hooks/useItems.js +26 -0
  42. package/splitter/hooks/useResizable.js +26 -0
  43. package/splitter/hooks/useResize.js +68 -0
  44. package/splitter/hooks/useSizes.js +60 -0
  45. package/splitter/index.js +7 -0
  46. package/splitter/interface.js +1 -0
  47. package/style.css +1 -1
  48. package/table/Table.js +1 -1
  49. package/table/hook/useThResizable.js +72 -26
  50. package/table/tbody/Td.js +80 -77
  51. package/table/th-resizable/index.js +92 -35
  52. package/tag/index.js +42 -41
  53. package/tooltip/index.js +89 -82
  54. package/tour/index.js +110 -89
  55. package/types/common/hooks/useMergeProps.d.ts +1 -1
  56. package/types/common/space/index.d.ts +7 -5
  57. package/types/common/space/interface.d.ts +29 -16
  58. package/types/pc/affix/interface.d.ts +0 -2
  59. package/types/pc/alert/index.d.ts +2 -2
  60. package/types/pc/anchor/index.d.ts +2 -1
  61. package/types/pc/anchor/interface.d.ts +0 -2
  62. package/types/pc/auto-complete/interface.d.ts +0 -6
  63. package/types/pc/avatar/interface.d.ts +0 -4
  64. package/types/pc/badge/index.d.ts +4 -4
  65. package/types/pc/badge/interface.d.ts +26 -0
  66. package/types/pc/breadcrumb/interface.d.ts +0 -3
  67. package/types/pc/carousel/interface.d.ts +2 -6
  68. package/types/pc/cascader/interface.d.ts +6 -18
  69. package/types/pc/checkbox/interface.d.ts +0 -1
  70. package/types/pc/collapse/interface.d.ts +4 -2
  71. package/types/pc/color-picker/interface.d.ts +0 -2
  72. package/types/pc/config-provider/interface.d.ts +16 -14
  73. package/types/pc/copy/interface.d.ts +2 -1
  74. package/types/pc/date-picker/RangePicker.d.ts +1 -1
  75. package/types/pc/date-picker/interface.d.ts +0 -17
  76. package/types/pc/descriptions/interface.d.ts +0 -1
  77. package/types/pc/drawer/interface.d.ts +0 -7
  78. package/types/pc/dropdown/interface.d.ts +0 -1
  79. package/types/pc/flex/index.d.ts +9 -0
  80. package/types/pc/flex/interface.d.ts +61 -0
  81. package/types/pc/flex/utils.d.ts +9 -0
  82. package/types/pc/form/interface.d.ts +9 -22
  83. package/types/pc/form/util.d.ts +1 -1
  84. package/types/pc/grid/index.d.ts +3 -3
  85. package/types/pc/grid/interface.d.ts +1 -6
  86. package/types/pc/image/interface.d.ts +0 -13
  87. package/types/pc/index.d.ts +16 -6
  88. package/types/pc/input/Textarea.d.ts +2 -6
  89. package/types/pc/input/interface.d.ts +5 -13
  90. package/types/pc/input-number/interface.d.ts +0 -4
  91. package/types/pc/input-tag/interface.d.ts +0 -13
  92. package/types/pc/layout/interface.d.ts +0 -1
  93. package/types/pc/link/interface.d.ts +0 -1
  94. package/types/pc/liquid-fill/index.d.ts +114 -1
  95. package/types/pc/list/interface.d.ts +0 -4
  96. package/types/pc/marquee/index.d.ts +61 -0
  97. package/types/pc/menu/context.d.ts +1 -1
  98. package/types/pc/menu/interface.d.ts +0 -8
  99. package/types/pc/message/interface.d.ts +0 -2
  100. package/types/pc/modal/interface.d.ts +0 -5
  101. package/types/pc/notification/interface.d.ts +0 -1
  102. package/types/pc/pagination/interface.d.ts +0 -2
  103. package/types/pc/popconfirm/interface.d.ts +8 -10
  104. package/types/pc/popover/interface.d.ts +0 -1
  105. package/types/pc/progress/interface.d.ts +0 -3
  106. package/types/pc/qr-code/index.d.ts +1 -1
  107. package/types/pc/rate/index.d.ts +2 -2
  108. package/types/pc/resize-box/interface.d.ts +1 -7
  109. package/types/pc/segmented/index.d.ts +8 -0
  110. package/types/pc/segmented/interface.d.ts +88 -0
  111. package/types/pc/select/interface.d.ts +0 -12
  112. package/types/pc/select-view/interface.d.ts +0 -7
  113. package/types/pc/slider/interface.d.ts +0 -4
  114. package/types/pc/space/index.d.ts +4 -1
  115. package/types/pc/space/interface.d.ts +6 -10
  116. package/types/pc/spin/interface.d.ts +4 -1
  117. package/types/pc/splitter/Panel.d.ts +8 -0
  118. package/types/pc/splitter/SplitBar.d.ts +21 -0
  119. package/types/pc/splitter/Splitter.d.ts +4 -0
  120. package/types/pc/splitter/hooks/useEvent.d.ts +3 -0
  121. package/types/pc/splitter/hooks/useItems.d.ts +10 -0
  122. package/types/pc/splitter/hooks/useResizable.d.ts +8 -0
  123. package/types/pc/splitter/hooks/useResize.d.ts +4 -0
  124. package/types/pc/splitter/hooks/useSizes.d.ts +5 -0
  125. package/types/pc/splitter/index.d.ts +8 -0
  126. package/types/pc/splitter/interface.d.ts +213 -0
  127. package/types/pc/statistic/interface.d.ts +0 -4
  128. package/types/pc/steps/interface.d.ts +0 -3
  129. package/types/pc/table/hook/useThResizable.d.ts +2 -2
  130. package/types/pc/table/interface.d.ts +4 -15
  131. package/types/pc/tabs/interface.d.ts +0 -7
  132. package/types/pc/tag/index.d.ts +2 -0
  133. package/types/pc/tag/interface.d.ts +0 -1
  134. package/types/pc/time-picker/interface.d.ts +0 -7
  135. package/types/pc/tooltip/interface.d.ts +4 -1
  136. package/types/pc/tour/index.d.ts +6 -1
  137. package/types/pc/transfer/interface.d.ts +2 -9
  138. package/types/pc/tree/interface.d.ts +2 -8
  139. package/types/pc/tree-select/interface.d.ts +0 -8
  140. package/types/pc/trigger/interface.d.ts +0 -5
  141. package/types/pc/typography/EditContent.d.ts +2 -1
  142. package/types/pc/typography/interface.d.ts +45 -30
  143. package/types/pc/upload/interface.d.ts +6 -11
  144. package/types/pc/utils/index.d.ts +1 -0
  145. package/types/pc/utils/names.d.ts +24 -0
  146. package/types/pc/utils/toArray.d.ts +7 -0
  147. package/types/pc/verification-code/interface.d.ts +0 -2
  148. package/types/pc/watermark/interface.d.ts +0 -2
  149. package/typography/Base.js +73 -73
  150. package/typography/EditContent.js +43 -33
  151. package/typography/Ellipsis.js +117 -184
  152. package/typography/Operations.js +97 -49
  153. package/typography/useCssEllipsis.js +7 -6
  154. package/utils/index.js +117 -115
  155. package/utils/names.js +16 -0
  156. package/utils/toArray.js +12 -0
  157. package/version/index.js +1 -1
  158. package/_virtual/_commonjsHelpers.js +0 -6
  159. package/_virtual/index.js +0 -7
  160. package/_virtual/index2.js +0 -4
  161. package/liquid-fill/LiquidFill.js +0 -226
  162. package/liquid-fill/LiquidFill2.js +0 -3
  163. package/space-/index.js +0 -93
  164. package/types/common/utils/color.d.ts +0 -1
  165. package/types/common/utils/computeScrollIntoView.d.ts +0 -1
  166. package/types/common/utils/index.d.ts +0 -45
  167. package/types/common/utils/math.d.ts +0 -1
  168. package/types/common/utils/reactTransitionGroup.d.ts +0 -1
  169. package/types/common/utils/tree.d.ts +0 -1
  170. package/types/common/utils/tween.d.ts +0 -1
  171. package/types/common/utils/uuid.d.ts +0 -1
  172. package/types/common/utils/validate.d.ts +0 -1
  173. package/types/pc/liquid-fill/LiquidFill.d.ts +0 -115
  174. package/types/pc/liquid-fill/LiquidFill2.d.ts +0 -1
  175. package/types/pc/space-/index.d.ts +0 -6
  176. package/types/pc/space-/interface.d.ts +0 -38
  177. /package/{space- → components/common/space}/toArray.js +0 -0
  178. /package/{space- → segmented}/interface.js +0 -0
  179. /package/types/{pc/space- → common/space}/toArray.d.ts +0 -0
  180. /package/types/pc/grid/{GridItem.d.ts → Item.d.ts} +0 -0
@@ -27,10 +27,10 @@ export interface CarouselProps {
27
27
  currentIndex?: number;
28
28
  /**
29
29
  * @zh
30
- * 是否自动循环展示,或者传入 `{ interval: 自动切换的时间间隔(默认: 3000), hoverToPause: 鼠标悬浮时是否暂停自动切换(默认: true) }` 进行高级配置 (`2.14.0` 支持传入对象)
30
+ * 是否自动循环展示,或者传入 `{ interval: 自动切换的时间间隔(默认: 3000), hoverToPause: 鼠标悬浮时是否暂停自动切换(默认: true) }` 进行高级配置
31
31
  * @en
32
32
  * Whether to scroll automatically, or pass in `{ interval: the time interval for switching (default: 3000),
33
- * hoverToPause: whether to pause switching while hover (default: true) }` for configuration (object is supported from `2.14.0`)
33
+ * hoverToPause: whether to pause switching while hover (default: true) }` for configuration
34
34
  */
35
35
  autoPlay?: boolean | {
36
36
  interval?: number;
@@ -41,7 +41,6 @@ export interface CarouselProps {
41
41
  * 是否仅渲染满足动画效果的最少数量的 children
42
42
  * @en
43
43
  * Whether to render only the minimum number of children that meet the animation effect
44
- * @version 2.21.0
45
44
  */
46
45
  miniRender?: boolean;
47
46
  autoPlaySpeed?: number;
@@ -83,7 +82,6 @@ export interface CarouselProps {
83
82
  /**
84
83
  * @zh 自定义图标
85
84
  * @en Customize icons
86
- * @version 2.25.0
87
85
  */
88
86
  icons?: {
89
87
  prev?: ReactNode;
@@ -118,13 +116,11 @@ export interface CarouselProps {
118
116
  /**
119
117
  * @zh 幻灯片发生切换时的回调函数。
120
118
  * @en Callback when slide changes.
121
- * @version `isManual` in 2.4.0
122
119
  */
123
120
  onChange?: (index: number, prevIndex: number, isManual: boolean) => void;
124
121
  /**
125
122
  * @zh 用于获得带有 API 方法的 Carousel 引用。
126
123
  * @en Carousel reference for imperative API calls.
127
- * @version 2.16.1
128
124
  */
129
125
  carousel?: MutableRefObject<CarouselHandle>;
130
126
  }
@@ -16,7 +16,6 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
16
16
  /**
17
17
  * @zh 输入框的值
18
18
  * @en Input Value
19
- * @version 2.34.0
20
19
  */
21
20
  inputValue?: string;
22
21
  /**
@@ -66,13 +65,13 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
66
65
  * @zh
67
66
  * 使单选模式可搜索,传入 `{ retainInputValue: true }` 在搜索框聚焦时保留现有内容
68
67
  * 传入 `{ retainInputValueWhileSelect: true }` 在多选选择时保留输入框内容。
69
- * 传入 `{ panelMode: 'select' }` 以搜索面板形式展示可选项 (`2.39.0`)
70
- * `renderOption` 自定义渲染搜索项 (`2.39.0`)
68
+ * 传入 `{ panelMode: 'select' }` 以搜索面板形式展示可选项
69
+ * `renderOption` 自定义渲染搜索项
71
70
  * @en
72
71
  * Whether single mode Select is searchable. `{ retainInputValue: true }` to retain the existing content when the search box is focused,
73
72
  * `{ retainInputValueWhileSelect: true }` to retain the existing content when multiple selection is selected.
74
- * `{ panelMode: 'select' }` Display options as a search panel (`2.39.0`)
75
- * `renderOption` Custom rendering search option (`2.39.0`)
73
+ * `{ panelMode: 'select' }` Display options as a search panel
74
+ * `renderOption` Custom rendering search option
76
75
  */
77
76
  showSearch?: boolean | {
78
77
  panelMode?: 'cascader' | 'select';
@@ -108,44 +107,37 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
108
107
  * Customize the return value <br/> parent:
109
108
  * Only return the parent node when all child nodes are selected <br/> child: Return child nodes
110
109
  * @defaultValue child
111
- * @version 2.31.0
112
110
  */
113
111
  checkedStrategy?: 'parent' | 'child';
114
112
  /**
115
113
  * @zh 自定义下拉列表类名
116
114
  * @en Custom dropdown list classname
117
- * @version 2.35.0
118
115
  */
119
116
  dropdownMenuClassName?: string | string[];
120
117
  /**
121
118
  * @zh 菜单列样式
122
119
  * @en dropdown menu column style
123
- * @version 2.35.0
124
120
  */
125
121
  dropdownMenuColumnStyle?: CSSProperties;
126
122
  /**
127
123
  * @zh 传递虚拟滚动属性。开启虚拟滚动后,每列级联菜单的会存在默认宽度,可通过 `dropdownMenuColumnStyle` 进行样式调整
128
124
  * @en virtual list props. After virtual scrolling is enabled, there will be a default width for each column of cascading menus, which can be adjusted by `dropdownMenuColumnStyle`
129
- * @version 2.35.0
130
125
  */
131
126
  virtualListProps?: Pick<VirtualListProps<any>, 'threshold' | 'isStaticItemHeight'>;
132
127
  /**
133
128
  * @zh 是否默认高亮搜索结果第一个选项。
134
129
  * @en Whether to highlight the first option of search results by default
135
- * @version 2.37.0
136
130
  * @defaultValue true
137
131
  */
138
132
  defaultActiveFirstOption?: boolean;
139
133
  /**
140
134
  * @zh 自定义下拉菜单的展示。
141
135
  * @en Customize the popup menu.
142
- * @version 2.15.0
143
136
  */
144
137
  dropdownRender?: (menu: ReactNode) => ReactNode;
145
138
  /**
146
139
  * @zh 自定义下拉菜单每一列的展示。
147
140
  * @en Customize columns of the menu.
148
- * @version 2.15.0, `level` in 2.17.0
149
141
  */
150
142
  dropdownColumnRender?: (menu: ReactNode, level: number) => ReactNode;
151
143
  /**
@@ -169,9 +161,8 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
169
161
  */
170
162
  renderFormat?: (valueShow: any[]) => ReactNode;
171
163
  /**
172
- * @zh 搜索时的回调。(reason in `2.34.0`)
173
- * @en Callback when input changed.(reason in `2.34.0`)
174
- * @version 2.20.0
164
+ * @zh 搜索时的回调。
165
+ * @en Callback when input changed.
175
166
  */
176
167
  onSearch?: (inputValue: string, reason: InputValueChangeReason) => void;
177
168
  /**
@@ -184,7 +175,6 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
184
175
  /**
185
176
  * @zh inputValue改变时的回调
186
177
  * @en Callback when inputValue change.
187
- * @version 2.34.0
188
178
  */
189
179
  onInputValueChange?: (inputValue: string, reason: InputValueChangeReason) => void;
190
180
  /**
@@ -210,7 +200,6 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
210
200
  /**
211
201
  * @zh 图标配置。
212
202
  * @en Icon configuration.
213
- * @version 2.50.0
214
203
  */
215
204
  icons?: {
216
205
  loading?: ReactNode;
@@ -248,7 +237,6 @@ export interface OptionProps {
248
237
  /**
249
238
  * @zh 是否禁用复选框选中
250
239
  * @en Whether to disable the check box is selected
251
- * @version 2.21.0
252
240
  */
253
241
  disableCheckbox?: boolean;
254
242
  /**
@@ -45,7 +45,6 @@ export interface CheckboxProps<T extends ReactText = any> extends Omit<HTMLAttri
45
45
  /**
46
46
  * @zh 自定义 IconUiCheck
47
47
  * @en Custom IconUiCheck
48
- * @version 2.43.0
49
48
  */
50
49
  icon?: ReactNode;
51
50
  checkboxGroupValue?: T[];
@@ -51,7 +51,6 @@ export interface CollapseProps {
51
51
  /**
52
52
  * @zh 可触发折叠操作的区域
53
53
  * @en The area that can trigger the collapse operation
54
- * @version 2.41.0
55
54
  */
56
55
  triggerRegion?: 'header' | 'icon';
57
56
  /**
@@ -59,6 +58,10 @@ export interface CollapseProps {
59
58
  * @en Callback when the active panel changes
60
59
  */
61
60
  onChange?: (key: string, keys: string[], e: any) => void;
61
+ /**
62
+ * @zh 是否反转头部区域和内容区域的背景色(潘启宝添加)
63
+ */
64
+ invertHeaderContentBackgrounds?: boolean;
62
65
  }
63
66
  /**
64
67
  * @title Collapse.Item
@@ -69,7 +72,6 @@ export interface CollapseItemProps {
69
72
  /**
70
73
  * @zh 内容区域的附加样式。
71
74
  * @en Additional styles of the content area.
72
- * @version 2.15.0
73
75
  */
74
76
  contentStyle?: CSSProperties;
75
77
  /**
@@ -96,7 +96,6 @@ export interface ColorPickerProps {
96
96
  /**
97
97
  * @zh 自定义触发元素。
98
98
  * @en The trigger element which executes the dropdown action.
99
- * @version 2.60.0
100
99
  */
101
100
  triggerElement?: ReactNode | ((params: {
102
101
  value: string | GradientColor[];
@@ -114,7 +113,6 @@ export interface ColorPickerProps {
114
113
  /**
115
114
  * @zh 自定义面板底部内容
116
115
  * @en Customize the bottom content of the panel
117
- * @version 2.62.0
118
116
  */
119
117
  renderFooter?: () => ReactNode;
120
118
  }
@@ -14,6 +14,7 @@ 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,6 +22,7 @@ import { DividerProps } from '../divider/interface';
21
22
  import { DrawerProps } from '../drawer/interface';
22
23
  import { DropdownButtonProps, DropdownProps } from '../dropdown/interface';
23
24
  import { EmptyProps } from '../empty/interface';
25
+ import type { FlexProps } from '../flex/interface';
24
26
  import { FormProps } from '../form/interface';
25
27
  import { ColProps, GridItemProps, GridProps, RowProps } from '../grid/interface';
26
28
  import { ImageProps } from '../image/interface';
@@ -29,8 +31,10 @@ import { InputTagProps } from '../input-tag/interface';
29
31
  import { InputProps } from '../input/interface';
30
32
  import { LayoutProps } from '../layout/interface';
31
33
  import { LinkProps } from '../link/interface';
34
+ import { LiquidFillProps } from '../liquid-fill';
32
35
  import { ListItemProps, ListProps } from '../list/interface';
33
36
  import { Locale } from '../locale/interface';
37
+ import type { MarqueeProps } from '../marquee';
34
38
  import { MentionsProps } from '../mentions/interface';
35
39
  import { MenuProps } from '../menu/interface';
36
40
  import { ModalProps } from '../modal/interface';
@@ -39,15 +43,18 @@ import { PaginationProps } from '../pagination/interface';
39
43
  import { PopconfirmProps } from '../popconfirm/interface';
40
44
  import { PopoverProps } from '../popover/interface';
41
45
  import { ProgressProps } from '../progress/interface';
46
+ import { QRCodeProps } from '../qr-code';
42
47
  import { RadioGroupProps, RadioProps } from '../radio/interface';
43
48
  import { RateProps } from '../rate/interface';
44
49
  import { ResizeBoxProps } from '../resize-box/interface';
45
50
  import { ResultProps } from '../result/interface';
51
+ import type { SegmentedProps } from '../segmented/interface';
46
52
  import { SelectProps } from '../select/interface';
47
53
  import { SkeletonProps } from '../skeleton/interface';
48
54
  import { SliderProps } from '../slider/interface';
49
55
  import { SpaceProps } from '../space/interface';
50
56
  import { SpinProps } from '../spin/interface';
57
+ import { SplitterProps } from '../splitter/interface';
51
58
  import { StatisticProps } from '../statistic/interface';
52
59
  import { StepsProps } from '../steps/interface';
53
60
  import { SwitchProps } from '../switch/interface';
@@ -57,17 +64,14 @@ import { TagProps } from '../tag/interface';
57
64
  import { PickerProps as TimePickerCommonProps } from '../time-picker/interface';
58
65
  import { TimelineItemProps, TimelineProps } from '../timeline/interface';
59
66
  import { TooltipProps } from '../tooltip/interface';
67
+ import { TourProps } from '../tour';
60
68
  import { TransferProps } from '../transfer/interface';
61
69
  import { TreeSelectProps } from '../tree-select/interface';
62
70
  import { TreeProps } from '../tree/interface';
63
71
  import { TriggerProps } from '../trigger/interface';
64
- import { Omit } from '../utils/type';
65
- import { ColorPickerProps } from '../color-picker';
66
- import { LiquidFillProps } from '../liquid-fill/LiquidFill';
67
- import { QRCodeProps } from '../qr-code';
68
- import { TourProps } from '../tour';
69
- import { TypographyEllipsisProps } from '../typography';
72
+ import { TypographyEllipsisProps, type TypographyProps } from '../typography';
70
73
  import { UploadProps } from '../upload/interface';
74
+ import { Omit } from '../utils/type';
71
75
  import { VerificationCodeProps } from '../verification-code/interface';
72
76
  import { WatermarkProps } from '../watermark/interface';
73
77
  export type ThemeConfig = Record<string, unknown>;
@@ -98,12 +102,13 @@ export type ComponentConfig = {
98
102
  Dropdown?: DropdownProps;
99
103
  'Dropdown.Button'?: DropdownButtonProps;
100
104
  Empty?: EmptyProps;
105
+ Typography?: TypographyProps;
101
106
  'Typography.Ellipsis'?: TypographyEllipsisProps;
102
107
  Form?: FormProps;
103
108
  'Grid.Row'?: RowProps;
104
109
  'Grid.Col'?: ColProps;
105
110
  Grid?: GridProps;
106
- 'Grid.GridItem'?: GridItemProps;
111
+ 'Grid.Item'?: GridItemProps;
107
112
  Image?: ImageProps;
108
113
  Input?: InputProps;
109
114
  InputNumber?: InputNumberProps;
@@ -152,6 +157,10 @@ export type ComponentConfig = {
152
157
  QRCode?: QRCodeProps;
153
158
  LiquidFill?: LiquidFillProps;
154
159
  Tour?: TourProps;
160
+ Marquee?: MarqueeProps;
161
+ Segmented?: SegmentedProps;
162
+ Splitter?: SplitterProps;
163
+ Flex?: FlexProps;
155
164
  };
156
165
  /**
157
166
  * @title ConfigProvider
@@ -160,13 +169,11 @@ export interface ConfigProviderProps {
160
169
  /**
161
170
  * @zh 当按钮中是两个汉字时,自动在两个汉字中添加一个空格。
162
171
  * @en When there are two Chinese characters in the button, a space is automatically added between two Chinese characters.
163
- * @version 2.3.0
164
172
  */
165
173
  autoInsertSpaceInButton?: boolean;
166
174
  /**
167
175
  * @zh 用于全局配置所有组件的默认参数
168
176
  * @en Default parameters for global configuration of all component
169
- * @version 2.23.0
170
177
  */
171
178
  componentConfig?: ComponentConfig;
172
179
  /**
@@ -206,33 +213,28 @@ export interface ConfigProviderProps {
206
213
  /**
207
214
  * @zh Table 全局的分页配置。
208
215
  * @en Table Global pagination configuration.
209
- * @version 2.6.0
210
216
  */
211
217
  tablePagination?: PaginationProps;
212
218
  /**
213
219
  * @zh 全局配置组件内的空组件。
214
220
  * @en Empty component in component.
215
- * @version 2.10.0
216
221
  */
217
222
  renderEmpty?: (componentName?: string) => ReactNode;
218
223
  /**
219
224
  * @zh 视图的表现形式是从右开始向左结束。
220
225
  * @en View starts from the right and ends on the left.
221
- * @version 2.36.0
222
226
  */
223
227
  rtl?: boolean;
224
228
  /**
225
229
  * @zh 是否全局设置所有 `Message` 和 `Notification` 的配置。如果用了 `useMessage` 的 hook 局部设置请设置为 false
226
230
  * @en Whether to update the configuration of all `Message` and `Notification` with one click. Set to false if using the hook locale of `useMessage`
227
231
  * @defaultValue true
228
- * @version 2.40.0
229
232
  */
230
233
  effectGlobalNotice?: boolean;
231
234
  /**
232
235
  * @zh 是否全局设置所有 `Modal` 的配置。
233
236
  * @en Whether to set all `Modal` configuration globally.
234
237
  * @defaultValue true
235
- * @version 2.61.0
236
238
  */
237
239
  effectGlobalModal?: boolean;
238
240
  /**
@@ -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];
@@ -1,3 +1,3 @@
1
1
  import { RangePickerHandle } from './interface';
2
- declare const PickerComponent: import("react").ForwardRefExoticComponent<import("./interface").BaseRangePickerProps & import("components/common/utils").Omit<import("./interface").PickerProps, "onChange" | "onSelect" | "onOk" | "inputProps" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange"> & import("react").RefAttributes<RangePickerHandle>>;
2
+ declare const PickerComponent: import("react").ForwardRefExoticComponent<import("./interface").BaseRangePickerProps & import("components/common/utils/type").Omit<import("./interface").PickerProps, "onChange" | "onSelect" | "onOk" | "inputProps" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange"> & import("react").RefAttributes<RangePickerHandle>>;
3
3
  export default PickerComponent;
@@ -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
  }
@@ -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
  }
@@ -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 type { FlexProps } from './interface';
3
+ interface FlexWithStaticComponents extends React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLElement>> {
4
+ Vertical: typeof FlexVertical;
5
+ }
6
+ declare const Flex: FlexWithStaticComponents;
7
+ declare const FlexVertical: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLElement>>;
8
+ export { FlexVertical };
9
+ export default Flex;
@@ -0,0 +1,61 @@
1
+ import React from 'react';
2
+ export type SizeType = 'mini' | 'small' | 'medium' | 'large' | undefined;
3
+ /**
4
+ * @title Flex
5
+ * @description Flex布局组件属性
6
+ */
7
+ export interface FlexProps extends React.HTMLAttributes<HTMLElement> {
8
+ /**
9
+ * @zh 自定义类名前缀
10
+ * @en Custom prefix class name
11
+ */
12
+ prefixCls?: string;
13
+ /**
14
+ * @zh 根节点类名
15
+ * @en Root node class name
16
+ */
17
+ rootClassName?: string;
18
+ /**
19
+ * @zh 是否垂直布局
20
+ * @en Whether to use vertical layout
21
+ */
22
+ vertical?: boolean;
23
+ /**
24
+ * @zh 换行方式
25
+ * @en Flex wrap style
26
+ */
27
+ wrap?: boolean | React.CSSProperties['flexWrap'];
28
+ /**
29
+ * @zh 主轴对齐方式
30
+ * @en Justify content alignment
31
+ */
32
+ justify?: React.CSSProperties['justifyContent'];
33
+ /**
34
+ * @zh 交叉轴对齐方式
35
+ * @en Align items alignment
36
+ */
37
+ align?: React.CSSProperties['alignItems'];
38
+ /**
39
+ * @zh flex属性
40
+ * @en Flex property
41
+ */
42
+ flex?: React.CSSProperties['flex'];
43
+ /**
44
+ * @zh 间距大小
45
+ * @en Gap size
46
+ */
47
+ gap?: React.CSSProperties['gap'] | SizeType;
48
+ /**
49
+ * @zh 子元素
50
+ * @en Children elements
51
+ */
52
+ children: React.ReactNode;
53
+ /**
54
+ * @zh 自定义渲染元素
55
+ * @en Custom component type
56
+ */
57
+ component?: React.ElementType;
58
+ }
59
+ export declare const flexWrapValues: React.CSSProperties['flexWrap'][];
60
+ export declare const justifyContentValues: React.CSSProperties['justifyContent'][];
61
+ export declare const alignItemsValues: React.CSSProperties['alignItems'][];
@@ -0,0 +1,9 @@
1
+ import { type FlexProps, type SizeType } from './interface';
2
+ /**
3
+ * 生成Flex组件的类名
4
+ */
5
+ export declare function createFlexClassNames(prefixCls: string | undefined, props: FlexProps): string;
6
+ /**
7
+ * 检查是否是预设的gap尺寸
8
+ */
9
+ export declare function isPresetSize(gap?: FlexProps['gap']): gap is SizeType;