@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
@@ -63,7 +63,6 @@ export interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNa
63
63
  * @zh 水平菜单是否自动溢出省略
64
64
  * @en Whether the horizontal menu automatically collapses when it overflows
65
65
  * @defaultValue true
66
- * @version 2.24.0
67
66
  */
68
67
  ellipsis?: boolean | {
69
68
  text?: ReactNode;
@@ -101,13 +100,11 @@ export interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNa
101
100
  /**
102
101
  * @zh 点击菜单项的回调
103
102
  * @en Click menu item callback
104
- * @version `event` in 2.15.0, `keyPath` in 2.19.0
105
103
  */
106
104
  onClickMenuItem?: (key: string, event: any, keyPath: string[]) => any;
107
105
  /**
108
106
  * @zh 点击子菜单标题的回调
109
107
  * @en Callback when click sub menu
110
- * @version `keyPath` in 2.19.0
111
108
  */
112
109
  onClickSubMenu?: (key: string, openKeys: string[], keyPath: string[]) => void;
113
110
  /**
@@ -118,7 +115,6 @@ export interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNa
118
115
  /**
119
116
  * @zh 水平菜单自动超出省略发生变化时的回调
120
117
  * @en Callback when horizontal-menu ellipsis status changed
121
- * @version 2.57.0
122
118
  */
123
119
  onEllipsisChange?: (status: {
124
120
  lastVisibleIndex: number;
@@ -172,13 +168,11 @@ export interface MenuSubMenuProps extends Omit<HTMLAttributes<HTMLElement>, 'tit
172
168
  /**
173
169
  * @zh 是否强制使用弹出模式,`level` 表示当前子菜单的层级
174
170
  * @en Whether to force the use of popup mode, parameter `level` indicates the level of current subMenu.
175
- * @version 2.8.0
176
171
  */
177
172
  popup?: boolean | ((level: number) => boolean);
178
173
  /**
179
174
  * @zh 弹出模式下可接受所有 `Trigger` 的 `Props`
180
175
  * @en Pass all `Trigger` component properties
181
- * @version 2.19.0
182
176
  */
183
177
  triggerProps?: Partial<TriggerProps>;
184
178
  }
@@ -221,13 +215,11 @@ export interface MenuItemProps extends Omit<HTMLAttributes<HTMLElement>, 'classN
221
215
  * @zh 配置最外层标签,可以是 html 标签或是组件
222
216
  * @en Configure the outermost label, which can be a html label or a component
223
217
  * @defaultValue div
224
- * @version 2.16.0
225
218
  */
226
219
  wrapper?: string | React.FC<any> | React.ComponentClass<any>;
227
220
  /**
228
221
  * @zh 菜单折叠时,指定在 Tooltip 中展示的菜单项节点
229
222
  * @en Set the menu item displayed in Tooltip when menu is collapsed
230
- * @version 2.51.0
231
223
  */
232
224
  renderItemInTooltip?: () => ReactNode;
233
225
  }
@@ -15,7 +15,6 @@ export interface MessageProps {
15
15
  * @zh 动画持续时间,见 react-transition-group 的 `timeout`
16
16
  * @en timeout of `react-transition-group` of the message pop-up animation, see `timeout`
17
17
  * @defaultValue {enter: 100, exit: 300}
18
- * @version 2.43.0
19
18
  */
20
19
  transitionTimeout?: {
21
20
  enter?: number;
@@ -67,7 +66,6 @@ export interface MessageProps {
67
66
  /**
68
67
  * @zh 自定义右上角关闭按钮
69
68
  * @en Custom the close button on top-right of the drawer dialog
70
- * @version 2.50.0
71
69
  */
72
70
  closeIcon?: ReactNode;
73
71
  type?: string;
@@ -77,7 +77,6 @@ export interface ModalProps {
77
77
  /**
78
78
  * @zh 自定义页脚,传入 null 则不显示
79
79
  * @en Custom `footer`. if it is null, the footer will not be displayed.
80
- * @version 2.12.0
81
80
  */
82
81
  footer?: ReactNode | ((cancelButtonNode: ReactNode, okButtonNode: ReactNode) => ReactNode);
83
82
  /**
@@ -88,7 +87,6 @@ export interface ModalProps {
88
87
  /**
89
88
  * @zh 自定义右上角的关闭按钮节点
90
89
  * @en Customize the close icon
91
- * @version 2.21.0
92
90
  */
93
91
  closeIcon?: ReactNode;
94
92
  /**
@@ -100,7 +98,6 @@ export interface ModalProps {
100
98
  /**
101
99
  * @zh 蒙层的样式
102
100
  * @en The style of mask
103
- * @version 2.6.0
104
101
  */
105
102
  maskStyle?: CSSProperties;
106
103
  /**
@@ -149,14 +146,12 @@ export interface ModalProps {
149
146
  /**
150
147
  * @zh 弹出框外层样式
151
148
  * @en The style of the wrapped dom
152
- * @version 2.16.0
153
149
  */
154
150
  wrapStyle?: CSSProperties;
155
151
  hideCancel?: boolean;
156
152
  /**
157
153
  * @zh 自定义渲染对话框
158
154
  * @en Custom the render of Modal
159
- * @version 2.2.0
160
155
  */
161
156
  modalRender?: (modalNode: ReactNode) => ReactNode;
162
157
  prefixCls?: string;
@@ -61,7 +61,6 @@ export interface NotificationProps {
61
61
  /**
62
62
  * @zh 自定义右上角关闭按钮
63
63
  * @en Custom the close button on top-right of the drawer dialog
64
- * @version 2.50.0
65
64
  */
66
65
  closeIcon?: ReactNode;
67
66
  type?: string;
@@ -49,7 +49,6 @@ export interface PaginationProps {
49
49
  /**
50
50
  * @zh 是否在只有一页的情况下隐藏
51
51
  * @en Whether to hide when there is only one page
52
- * @version 2.6.0
53
52
  */
54
53
  hideOnSinglePage?: boolean;
55
54
  /**
@@ -81,7 +80,6 @@ export interface PaginationProps {
81
80
  * @zh `current` 页与 `...` 之间的页码个数
82
81
  * @en the number of pages between the `current` page and `...`
83
82
  * @defaultValue 2
84
- * @version 2.32.0
85
83
  */
86
84
  bufferSize?: number;
87
85
  /**
@@ -19,20 +19,18 @@ export interface PopconfirmProps {
19
19
  */
20
20
  position?: 'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br' | 'left' | 'lt' | 'lb' | 'right' | 'rt' | 'rb';
21
21
  /**
22
- * @zh 标题。 函数类型在 `2.48.0` 支持
23
- * @en Title of Popconfirm. Function types are supported in `2.48.0`
22
+ * @zh 标题
23
+ * @en Title of Popconfirm.
24
24
  */
25
25
  title?: ReactNode | (() => ReactNode);
26
26
  /**
27
- * @zh 内容.函数类型在 `2.48.0` 支持
28
- * @en Content of Popconfirm Function types are supported in `2.48.0`
29
- * @version 2.44.0
27
+ * @zh 内容
28
+ * @en Content of Popconfirm
30
29
  */
31
30
  content?: ReactNode | (() => ReactNode);
32
31
  /**
33
32
  * @zh 是否禁用
34
33
  * @en whether to disabled
35
- * @version 2.11.0
36
34
  */
37
35
  disabled?: boolean;
38
36
  /**
@@ -62,13 +60,13 @@ export interface PopconfirmProps {
62
60
  */
63
61
  cancelButtonProps?: ButtonProps;
64
62
  /**
65
- * @zh 点击确认按钮的回调函数。回调函数 `event` 参数在 `2.29.0` 支持
66
- * @en Callback when click the ok button. Callback `event` params is supported in `2.29.0`
63
+ * @zh 点击确认按钮的回调函数。
64
+ * @en Callback when click the ok button.
67
65
  */
68
66
  onOk?: (e: React.MouseEvent) => Promise<any> | void;
69
67
  /**
70
- * @zh 点击取消按钮的回调函数。 回调函数 `event` 参数在 `2.29.0` 支持
71
- * @en Callback when click the cancel button. Callback `event` params is supported in `2.29.0`
68
+ * @zh 点击取消按钮的回调函数。
69
+ * @en Callback when click the cancel button.
72
70
  */
73
71
  onCancel?: (e: React.MouseEvent) => void;
74
72
  /**
@@ -14,7 +14,6 @@ export interface PopoverProps extends Omit<TooltipProps, 'mini'> {
14
14
  /**
15
15
  * @zh 是否禁用
16
16
  * @en Whether to disabled
17
- * @version 2.11.0
18
17
  */
19
18
  disabled?: boolean;
20
19
  }
@@ -14,7 +14,6 @@ export interface ProgressProps {
14
14
  /**
15
15
  * @zh 显示步骤进度条
16
16
  * @en Show step progress
17
- * @version 2.10.0
18
17
  */
19
18
  steps?: number;
20
19
  /**
@@ -25,13 +24,11 @@ export interface ProgressProps {
25
24
  /**
26
25
  * @zh 进度条状态
27
26
  * @en Progress status.
28
- * @version 2.16.0
29
27
  */
30
28
  status?: 'success' | 'error' | 'normal' | 'warning';
31
29
  /**
32
30
  * @zh 进度条颜色,优先级高于 `status`。传入对象时,会显示渐变色进度条。
33
31
  * @en Progress color, priority is higher than `status`
34
- * @version 2.10.0
35
32
  */
36
33
  color?: string | {
37
34
  [key: string]: string;
@@ -8,13 +8,11 @@ export interface ResizeBoxProps {
8
8
  /**
9
9
  * @zh 宽度,受控属性
10
10
  * @en The width of ResizeBox
11
- * @version 2.7.0
12
11
  */
13
12
  width?: number;
14
13
  /**
15
14
  * @zh 高度,受控属性
16
15
  * @en The height of ResizeBox
17
- * @version 2.7.0
18
16
  */
19
17
  height?: number;
20
18
  /**
@@ -59,7 +57,6 @@ export interface ResizeBoxProps {
59
57
  /**
60
58
  * @zh 拖拽中的回调
61
59
  * @en Callback when resizing
62
- * @version `size` in `2.7.0`
63
60
  */
64
61
  onMoving?: (e: MouseEvent, size: {
65
62
  width: number;
@@ -87,7 +84,6 @@ export interface SplitProps {
87
84
  * @zh 分割方向分为水平 `horizontal` 和垂直 `vertical`,默认是水平分割
88
85
  * @en The direction of Split. It can be `horizontal` and `vertical`
89
86
  * @defaultValue horizontal
90
- * @version `reverse` in `2.35.0`
91
87
  */
92
88
  direction?: 'horizontal' | 'vertical' | 'horizontal-reverse' | 'vertical-reverse';
93
89
  /**
@@ -134,7 +130,6 @@ export interface SplitProps {
134
130
  /**
135
131
  * @zh 拖拽中的回调
136
132
  * @en Callback when moving
137
- * @version `size` in `2.14.0`
138
133
  */
139
134
  onMoving?: (e: MouseEvent, size: number | string) => void;
140
135
  /**
@@ -145,12 +140,11 @@ export interface SplitProps {
145
140
  /**
146
141
  * @zh 面板大小变化的回调
147
142
  * @en Callback when pane resized
148
- * @version 2.25.0
149
143
  */
150
144
  onPaneResize?: (paneContainers: HTMLElement[]) => void;
151
145
  }
152
146
  /**
153
- * @title ResizeBox.SplitGroup in `2.27.0`
147
+ * @title ResizeBox.SplitGroup
154
148
  */
155
149
  export interface SplitGroupProps {
156
150
  style?: CSSProperties;
@@ -42,13 +42,11 @@ export interface SelectProps extends SelectViewCommonProps {
42
42
  mode?: 'multiple' | 'tags';
43
43
  /**
44
44
  * @zh 是否开启全选选项,仅在多选模式时才生效
45
- * 潘启宝添加
46
45
  */
47
46
  allowCheckAll?: boolean;
48
47
  /**
49
48
  * @zh 指定可选项
50
49
  * @en Select options
51
- * @version `extra` in 2.2.0
52
50
  */
53
51
  options?: (string | number | {
54
52
  label: ReactNode | string;
@@ -84,7 +82,6 @@ export interface SelectProps extends SelectViewCommonProps {
84
82
  /**
85
83
  * @zh 是否允许通过输入创建新的选项。
86
84
  * @en Whether to allow new options to be created by input.
87
- * @version 2.13.0, `{ formatter }` in 2.54.0
88
85
  */
89
86
  allowCreate?: boolean | {
90
87
  formatter: (inputValue: string, creating: boolean) => SelectProps['options'][number];
@@ -98,13 +95,11 @@ export interface SelectProps extends SelectViewCommonProps {
98
95
  /**
99
96
  * @zh 下拉框是否默认打开。
100
97
  * @en Whether to show dropdown by default.
101
- * @version 2.14.0
102
98
  */
103
99
  defaultPopupVisible?: boolean;
104
100
  /**
105
101
  * @zh 控制下拉框是否打开。
106
102
  * @en Whether to show dropdown.
107
- * @version 2.6.0
108
103
  */
109
104
  popupVisible?: boolean;
110
105
  /**
@@ -131,7 +126,6 @@ export interface SelectProps extends SelectViewCommonProps {
131
126
  /**
132
127
  * @zh 自定义触发元素。
133
128
  * @en The trigger element which executes the dropdown action.
134
- * @version `() => ReactNode` in 2.31.0
135
129
  */
136
130
  triggerElement?: ReactNode | ((params: {
137
131
  value: unknown;
@@ -160,7 +154,6 @@ export interface SelectProps extends SelectViewCommonProps {
160
154
  /**
161
155
  * @zh 传递虚拟滚动属性。
162
156
  * @en Pass properties used by VirtualList.
163
- * @version 2.1.0
164
157
  */
165
158
  virtualListProps?: AvailableVirtualListProps;
166
159
  /**
@@ -171,7 +164,6 @@ export interface SelectProps extends SelectViewCommonProps {
171
164
  /**
172
165
  * @zh 选中选项时触发的回调,(只在 `multiple` 模式下触发)。
173
166
  * @en Called when an option is selected. Only called for `multiple` mode.
174
- * @version 2.52.0
175
167
  */
176
168
  onSelect?: (value: string | number | LabeledValue, option: OptionInfo) => void;
177
169
  /**
@@ -212,13 +204,11 @@ export interface SelectProps extends SelectViewCommonProps {
212
204
  /**
213
205
  * @zh 输入框文本改变的回调。
214
206
  * @en Callback when the value of input is changed.
215
- * @version 2.3.0
216
207
  */
217
208
  onInputValueChange?: (value: string, reason: InputValueChangeReason) => void;
218
209
  /**
219
210
  * @zh 输入框文本粘贴的回调。
220
211
  * @en Callback when the you paste text in input box.
221
- * @version 2.9.0
222
212
  */
223
213
  onPaste?: (e: any) => void;
224
214
  }
@@ -246,7 +236,6 @@ export interface OptionProps extends Omit<HTMLAttributes<HTMLLIElement>, 'classN
246
236
  /**
247
237
  * @zh 携带任意自定义数据。
248
238
  * @en Any data you want to pass to Option.
249
- * @version 2.2.0
250
239
  */
251
240
  extra?: unknown;
252
241
  isSelectOption?: boolean;
@@ -315,7 +304,6 @@ export type SelectHandle = {
315
304
  /**
316
305
  * @zh 将下拉列表滚动至指定选项
317
306
  * @en Scroll the drop-down list to the specified option
318
- * @version 2.46.0
319
307
  */
320
308
  scrollIntoView: (value: OptionProps['value'], options?: ScrollIntoViewOptions) => void;
321
309
  };
@@ -50,7 +50,6 @@ export interface SelectViewCommonProps extends Pick<InputTagProps<unknown>, 'ani
50
50
  /**
51
51
  * @zh 状态
52
52
  * @en Status
53
- * @version 2.45.0
54
53
  */
55
54
  status?: 'error' | 'warning';
56
55
  /**
@@ -66,7 +65,6 @@ export interface SelectViewCommonProps extends Pick<InputTagProps<unknown>, 'ani
66
65
  /**
67
66
  * @zh 最多显示多少个 `tag`,仅在多选或标签模式有效。设置 `responsive` 响应式显示标签数不建议在选项较多时使用,可能存在性能问题,
68
67
  * @en The maximum number of `tags` is displayed, only valid in `multiple` and `label` mode. Setting the number of `responsive` responsive display tags is not recommended when there are many options, as there may be performance issues.
69
- * @version Object type in 2.37.0. `responsive ` in `2.62.0`
70
68
  */
71
69
  maxTagCount?: number | 'responsive' | {
72
70
  count: number | 'responsive';
@@ -76,7 +74,6 @@ export interface SelectViewCommonProps extends Pick<InputTagProps<unknown>, 'ani
76
74
  /**
77
75
  * @zh 前缀。
78
76
  * @en Customize select suffix
79
- * @version 2.11.0
80
77
  */
81
78
  prefix?: ReactNode;
82
79
  /**
@@ -97,13 +94,11 @@ export interface SelectViewCommonProps extends Pick<InputTagProps<unknown>, 'ani
97
94
  /**
98
95
  * @zh `allowClear` 时配置清除按钮的图标。
99
96
  * @en Configure the icon of the clear button when `allowClear`.
100
- * @version 2.26.0
101
97
  */
102
98
  clearIcon?: ReactNode;
103
99
  /**
104
100
  * @zh 设置宽度自适应。minWidth 默认为 0,maxWidth 默认为 100%
105
101
  * @en auto width. minWidth defaults to 0, maxWidth defaults to 100%
106
- * @version 2.54.0
107
102
  */
108
103
  autoWidth?: boolean | {
109
104
  minWidth?: CSSProperties['minWidth'];
@@ -112,7 +107,6 @@ export interface SelectViewCommonProps extends Pick<InputTagProps<unknown>, 'ani
112
107
  /**
113
108
  * @zh 选择框前添加元素
114
109
  * @en The label text displayed before (on the left side of) the select field
115
- * @version 2.41.0
116
110
  */
117
111
  addBefore?: ReactNode;
118
112
  /**
@@ -123,7 +117,6 @@ export interface SelectViewCommonProps extends Pick<InputTagProps<unknown>, 'ani
123
117
  /**
124
118
  * @zh 键盘输入时的回调
125
119
  * @en Callback when keyboard pressed
126
- * @version 2.40.0
127
120
  */
128
121
  onKeyDown?: (e: any) => void;
129
122
  }
@@ -37,7 +37,6 @@ export interface SliderProps {
37
37
  /**
38
38
  * @zh 是否是范围选择
39
39
  * @en Whether to allow range selection
40
- * @version 2.14.0
41
40
  */
42
41
  range?: boolean | {
43
42
  draggableBar: boolean;
@@ -61,7 +60,6 @@ export interface SliderProps {
61
60
  /**
62
61
  * @zh 针对区间配置,返回区间步长和相对于整个滑动轴的宽度比例(如 0.5 或 "50%")。**只在`marks`场景下生效**
63
62
  * @en For interval configuration, returns the interval step size and the ratio of the width relative to the entire sliding axis (e.g. 0.5 or "50%"). **Only valid in `marks` scene**
64
- * @version 2.30.0
65
63
  */
66
64
  getIntervalConfig?: (range: number[], index: number) => {
67
65
  step?: number;
@@ -90,7 +88,6 @@ export interface SliderProps {
90
88
  /**
91
89
  * @zh 是否展示输入框,`onlyMarkValue` 为 `true` 或范围内多点选择时输入框始终隐藏。可接受 `InputNumber` 的 `props`。
92
90
  * @en Whether to display the input box. When setting `onlyMarkValue` to `true` or selecting multiple points within the range, the input box will never be displayed. Accepts `props` for `InputNumber`.
93
- * @version `InputNumberProps` in `2.32.0`
94
91
  */
95
92
  showInput?: boolean | InputNumberProps | InputNumberProps[];
96
93
  /**
@@ -111,7 +108,6 @@ export interface SliderProps {
111
108
  /**
112
109
  * @zh 触发时机在 `mouseup`,参数是当前值
113
110
  * @en Callback when `onmouseup` is fired
114
- * @version 2.20.0
115
111
  */
116
112
  onAfterChange?: (val: number | number[]) => void;
117
113
  /**
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { SpaceVertical as SpaceVerticalCommon } from '../../common/space';
2
3
  import { SpaceProps } from './interface';
3
4
  declare const Space: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<unknown>> & {
@@ -44,7 +44,10 @@ export interface SpinProps {
44
44
  /**
45
45
  * @zh 是否为块级元素
46
46
  * @en Whether it is a block-level element
47
- * @version 2.29.0
48
47
  */
49
48
  block?: boolean;
49
+ /**
50
+ * @zh 是否全屏
51
+ */
52
+ fullscreen?: boolean;
50
53
  }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { InternalPanelProps, PanelProps } from './interface';
3
+ declare const InternalPanel: React.ForwardRefExoticComponent<InternalPanelProps & {
4
+ children?: React.ReactNode | undefined;
5
+ } & React.RefAttributes<HTMLDivElement>>;
6
+ declare const Panel: React.FC<React.PropsWithChildren<PanelProps>>;
7
+ export default Panel;
8
+ export { InternalPanel };
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ export interface SplitBarProps {
3
+ index: number;
4
+ active: boolean;
5
+ prefixCls?: string;
6
+ resizable: boolean;
7
+ startCollapsible: boolean;
8
+ endCollapsible: boolean;
9
+ onOffsetStart: (index: number) => void;
10
+ onOffsetUpdate: (index: number, offsetX: number, offsetY: number, lazyEnd?: boolean) => void;
11
+ onOffsetEnd: (lazyEnd?: boolean) => void;
12
+ onCollapse: (index: number, type: 'start' | 'end') => void;
13
+ vertical: boolean;
14
+ ariaNow: number;
15
+ ariaMin: number;
16
+ ariaMax: number;
17
+ lazy?: boolean;
18
+ containerSize: number;
19
+ }
20
+ declare const SplitBar: React.FC<SplitBarProps>;
21
+ export default SplitBar;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { SplitterProps } from './interface';
3
+ declare const Splitter: React.ForwardRefExoticComponent<SplitterProps & React.RefAttributes<unknown>>;
4
+ export default Splitter;
@@ -0,0 +1,3 @@
1
+ type AnyFunction<Args extends unknown[] = unknown[], Return = unknown> = (...args: Args) => Return;
2
+ declare function useEvent<Args extends unknown[], Return>(callback: AnyFunction<Args, Return>): AnyFunction<Args, Return>;
3
+ export default useEvent;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { PanelProps } from '../interface';
3
+ export type ItemType = Omit<PanelProps, 'collapsible'> & {
4
+ collapsible: {
5
+ start?: boolean;
6
+ end?: boolean;
7
+ };
8
+ };
9
+ declare function useItems(children: React.ReactNode): ItemType[];
10
+ export default useItems;
@@ -0,0 +1,8 @@
1
+ import type { ItemType } from './useItems';
2
+ export type ResizableInfo = {
3
+ resizable: boolean;
4
+ startCollapsible: boolean;
5
+ endCollapsible: boolean;
6
+ };
7
+ declare function useResizable(items: ItemType[], pxSizes: number[], isRTL: boolean | undefined): ResizableInfo[];
8
+ export default useResizable;
@@ -0,0 +1,4 @@
1
+ import type { ItemType } from './useItems';
2
+ import type { ResizableInfo } from './useResizable';
3
+ declare function useResize(items: ItemType[], resizableInfos: ResizableInfo[], percentSizes: number[], containerSize: number | undefined, updateSizes: (sizes: number[]) => void, isRTL: boolean | undefined): readonly [(index: number) => void, (index: number, offset: number) => number[], () => void, (index: number, type: "start" | "end") => number[], number | undefined];
4
+ export default useResize;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { PanelProps } from '../interface';
3
+ export declare function getPtg(str: string): number;
4
+ declare function useSizes(items: PanelProps[], containerSize?: number): readonly [(string | number | undefined)[], number[], number[], number[], number[], React.Dispatch<React.SetStateAction<(string | number | undefined)[]>>];
5
+ export default useSizes;
@@ -1,4 +1,8 @@
1
- import React from 'react';
2
- import { SplitterProps } from './interface';
3
- export declare const Splitter: React.FC<SplitterProps>;
4
- export default Splitter;
1
+ import Panel from './Panel';
2
+ import Splitter from './Splitter';
3
+ export type { SplitterProps } from './interface';
4
+ type CompoundedComponent = typeof Splitter & {
5
+ Panel: typeof Panel;
6
+ };
7
+ declare const SplitterComponent: CompoundedComponent;
8
+ export default SplitterComponent;