@unicom-cloud/ui 0.8.99 → 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 (136) hide show
  1. package/Anchor.js +3 -1
  2. package/Badge.js +7 -6
  3. package/Copy.js +49 -2
  4. package/Flex.js +12 -0
  5. package/Grid.js +1 -1
  6. package/LiquidFill.js +3 -2
  7. package/Marquee.js +3 -2
  8. package/QrCode.js +3 -2
  9. package/Splitter.js +4 -5
  10. package/Tag.js +3 -2
  11. package/Tour.js +3 -2
  12. package/alert/index.js +38 -39
  13. package/anchor/index.js +5 -3
  14. package/badge/index.js +19 -18
  15. package/copy/index.js +83 -35
  16. package/flex/index.js +59 -0
  17. package/flex/interface.js +34 -0
  18. package/flex/utils.js +13 -0
  19. package/grid/{GridItem.js → Item.js} +15 -15
  20. package/grid/index.js +1 -1
  21. package/index.js +503 -493
  22. package/input/Button.js +39 -34
  23. package/input/Textarea.js +108 -104
  24. package/liquid-fill/index.js +3 -2
  25. package/marquee/index.js +3 -2
  26. package/package.json +1 -1
  27. package/qr-code/index.js +3 -2
  28. package/segmented/index.js +112 -104
  29. package/spin/index.js +75 -62
  30. package/splitter/Panel.js +39 -0
  31. package/splitter/SplitBar.js +157 -0
  32. package/splitter/Splitter.js +139 -0
  33. package/splitter/hooks/useEvent.js +12 -0
  34. package/splitter/hooks/useItems.js +26 -0
  35. package/splitter/hooks/useResizable.js +26 -0
  36. package/splitter/hooks/useResize.js +68 -0
  37. package/splitter/hooks/useSizes.js +60 -0
  38. package/splitter/index.js +5 -115
  39. package/style.css +1 -1
  40. package/table/Table.js +1 -1
  41. package/table/hook/useThResizable.js +72 -26
  42. package/table/tbody/Td.js +80 -77
  43. package/table/th-resizable/index.js +92 -35
  44. package/tag/index.js +42 -41
  45. package/tooltip/index.js +89 -82
  46. package/tour/index.js +5 -6
  47. package/types/common/space/index.d.ts +2 -1
  48. package/types/pc/affix/interface.d.ts +0 -2
  49. package/types/pc/alert/index.d.ts +2 -2
  50. package/types/pc/anchor/index.d.ts +2 -1
  51. package/types/pc/anchor/interface.d.ts +0 -2
  52. package/types/pc/auto-complete/interface.d.ts +0 -6
  53. package/types/pc/avatar/interface.d.ts +0 -4
  54. package/types/pc/breadcrumb/interface.d.ts +0 -3
  55. package/types/pc/carousel/interface.d.ts +2 -6
  56. package/types/pc/cascader/interface.d.ts +6 -18
  57. package/types/pc/checkbox/interface.d.ts +0 -1
  58. package/types/pc/collapse/interface.d.ts +0 -2
  59. package/types/pc/color-picker/interface.d.ts +0 -2
  60. package/types/pc/config-provider/interface.d.ts +13 -17
  61. package/types/pc/copy/interface.d.ts +2 -1
  62. package/types/pc/date-picker/interface.d.ts +0 -17
  63. package/types/pc/descriptions/interface.d.ts +0 -1
  64. package/types/pc/drawer/interface.d.ts +0 -7
  65. package/types/pc/dropdown/interface.d.ts +0 -1
  66. package/types/pc/flex/index.d.ts +9 -0
  67. package/types/pc/flex/interface.d.ts +61 -0
  68. package/types/pc/flex/utils.d.ts +9 -0
  69. package/types/pc/form/interface.d.ts +9 -22
  70. package/types/pc/form/util.d.ts +1 -1
  71. package/types/pc/grid/index.d.ts +3 -3
  72. package/types/pc/grid/interface.d.ts +1 -6
  73. package/types/pc/image/interface.d.ts +0 -13
  74. package/types/pc/index.d.ts +6 -2
  75. package/types/pc/input/Textarea.d.ts +2 -6
  76. package/types/pc/input/interface.d.ts +5 -13
  77. package/types/pc/input-number/interface.d.ts +0 -4
  78. package/types/pc/input-tag/interface.d.ts +0 -13
  79. package/types/pc/layout/interface.d.ts +0 -1
  80. package/types/pc/link/interface.d.ts +0 -1
  81. package/types/pc/list/interface.d.ts +0 -4
  82. package/types/pc/menu/interface.d.ts +0 -8
  83. package/types/pc/message/interface.d.ts +0 -2
  84. package/types/pc/modal/interface.d.ts +0 -5
  85. package/types/pc/notification/interface.d.ts +0 -1
  86. package/types/pc/pagination/interface.d.ts +0 -2
  87. package/types/pc/popconfirm/interface.d.ts +8 -10
  88. package/types/pc/popover/interface.d.ts +0 -1
  89. package/types/pc/progress/interface.d.ts +0 -3
  90. package/types/pc/resize-box/interface.d.ts +1 -7
  91. package/types/pc/select/interface.d.ts +0 -12
  92. package/types/pc/select-view/interface.d.ts +0 -7
  93. package/types/pc/slider/interface.d.ts +0 -4
  94. package/types/pc/space/index.d.ts +1 -0
  95. package/types/pc/spin/interface.d.ts +4 -1
  96. package/types/pc/splitter/Panel.d.ts +8 -0
  97. package/types/pc/splitter/SplitBar.d.ts +21 -0
  98. package/types/pc/splitter/Splitter.d.ts +4 -0
  99. package/types/pc/splitter/hooks/useEvent.d.ts +3 -0
  100. package/types/pc/splitter/hooks/useItems.d.ts +10 -0
  101. package/types/pc/splitter/hooks/useResizable.d.ts +8 -0
  102. package/types/pc/splitter/hooks/useResize.d.ts +4 -0
  103. package/types/pc/splitter/hooks/useSizes.d.ts +5 -0
  104. package/types/pc/splitter/index.d.ts +8 -4
  105. package/types/pc/splitter/interface.d.ts +181 -38
  106. package/types/pc/statistic/interface.d.ts +0 -4
  107. package/types/pc/steps/interface.d.ts +0 -3
  108. package/types/pc/table/hook/useThResizable.d.ts +2 -2
  109. package/types/pc/table/interface.d.ts +4 -15
  110. package/types/pc/tabs/interface.d.ts +0 -7
  111. package/types/pc/tag/index.d.ts +2 -0
  112. package/types/pc/tag/interface.d.ts +0 -1
  113. package/types/pc/time-picker/interface.d.ts +0 -7
  114. package/types/pc/tooltip/interface.d.ts +4 -1
  115. package/types/pc/transfer/interface.d.ts +2 -9
  116. package/types/pc/tree/interface.d.ts +2 -8
  117. package/types/pc/tree-select/interface.d.ts +0 -8
  118. package/types/pc/trigger/interface.d.ts +0 -5
  119. package/types/pc/typography/EditContent.d.ts +2 -1
  120. package/types/pc/typography/interface.d.ts +45 -30
  121. package/types/pc/upload/interface.d.ts +6 -11
  122. package/types/pc/utils/index.d.ts +1 -0
  123. package/types/pc/utils/names.d.ts +6 -0
  124. package/types/pc/utils/toArray.d.ts +7 -0
  125. package/types/pc/verification-code/interface.d.ts +0 -2
  126. package/types/pc/watermark/interface.d.ts +0 -2
  127. package/typography/Base.js +73 -73
  128. package/typography/EditContent.js +43 -33
  129. package/typography/Ellipsis.js +117 -184
  130. package/typography/Operations.js +97 -49
  131. package/typography/useCssEllipsis.js +7 -6
  132. package/utils/index.js +117 -115
  133. package/utils/names.js +4 -0
  134. package/utils/toArray.js +12 -0
  135. package/version/index.js +1 -1
  136. /package/types/pc/grid/{GridItem.d.ts → Item.d.ts} +0 -0
@@ -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
  /**
@@ -73,7 +72,6 @@ export interface CollapseItemProps {
73
72
  /**
74
73
  * @zh 内容区域的附加样式。
75
74
  * @en Additional styles of the content area.
76
- * @version 2.15.0
77
75
  */
78
76
  contentStyle?: CSSProperties;
79
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,20 +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';
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';
72
+ import { TypographyEllipsisProps, type TypographyProps } from '../typography';
73
73
  import { UploadProps } from '../upload/interface';
74
+ import { Omit } from '../utils/type';
74
75
  import { VerificationCodeProps } from '../verification-code/interface';
75
76
  import { WatermarkProps } from '../watermark/interface';
76
77
  export type ThemeConfig = Record<string, unknown>;
@@ -101,12 +102,13 @@ export type ComponentConfig = {
101
102
  Dropdown?: DropdownProps;
102
103
  'Dropdown.Button'?: DropdownButtonProps;
103
104
  Empty?: EmptyProps;
105
+ Typography?: TypographyProps;
104
106
  'Typography.Ellipsis'?: TypographyEllipsisProps;
105
107
  Form?: FormProps;
106
108
  'Grid.Row'?: RowProps;
107
109
  'Grid.Col'?: ColProps;
108
110
  Grid?: GridProps;
109
- 'Grid.GridItem'?: GridItemProps;
111
+ 'Grid.Item'?: GridItemProps;
110
112
  Image?: ImageProps;
111
113
  Input?: InputProps;
112
114
  InputNumber?: InputNumberProps;
@@ -158,6 +160,7 @@ export type ComponentConfig = {
158
160
  Marquee?: MarqueeProps;
159
161
  Segmented?: SegmentedProps;
160
162
  Splitter?: SplitterProps;
163
+ Flex?: FlexProps;
161
164
  };
162
165
  /**
163
166
  * @title ConfigProvider
@@ -166,13 +169,11 @@ export interface ConfigProviderProps {
166
169
  /**
167
170
  * @zh 当按钮中是两个汉字时,自动在两个汉字中添加一个空格。
168
171
  * @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
172
  */
171
173
  autoInsertSpaceInButton?: boolean;
172
174
  /**
173
175
  * @zh 用于全局配置所有组件的默认参数
174
176
  * @en Default parameters for global configuration of all component
175
- * @version 2.23.0
176
177
  */
177
178
  componentConfig?: ComponentConfig;
178
179
  /**
@@ -212,33 +213,28 @@ export interface ConfigProviderProps {
212
213
  /**
213
214
  * @zh Table 全局的分页配置。
214
215
  * @en Table Global pagination configuration.
215
- * @version 2.6.0
216
216
  */
217
217
  tablePagination?: PaginationProps;
218
218
  /**
219
219
  * @zh 全局配置组件内的空组件。
220
220
  * @en Empty component in component.
221
- * @version 2.10.0
222
221
  */
223
222
  renderEmpty?: (componentName?: string) => ReactNode;
224
223
  /**
225
224
  * @zh 视图的表现形式是从右开始向左结束。
226
225
  * @en View starts from the right and ends on the left.
227
- * @version 2.36.0
228
226
  */
229
227
  rtl?: boolean;
230
228
  /**
231
229
  * @zh 是否全局设置所有 `Message` 和 `Notification` 的配置。如果用了 `useMessage` 的 hook 局部设置请设置为 false
232
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`
233
231
  * @defaultValue true
234
- * @version 2.40.0
235
232
  */
236
233
  effectGlobalNotice?: boolean;
237
234
  /**
238
235
  * @zh 是否全局设置所有 `Modal` 的配置。
239
236
  * @en Whether to set all `Modal` configuration globally.
240
237
  * @defaultValue true
241
- * @version 2.61.0
242
238
  */
243
239
  effectGlobalModal?: boolean;
244
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];
@@ -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;