@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.
- package/Anchor.js +3 -1
- package/Badge.js +7 -6
- package/Copy.js +49 -2
- package/Details.js +13 -2
- package/Divider.js +3 -2
- package/Flex.js +22 -0
- package/Grid.js +1 -1
- package/LiquidFill.js +3 -2
- package/Loading.js +16 -3
- package/Marquee.js +3 -2
- package/QrCode.js +3 -2
- package/Space.js +3 -3
- package/Splitter.js +5 -5
- package/SuspenseFallbackTest.js +2 -4
- package/Tag.js +3 -2
- package/Tour.js +3 -2
- package/alert/index.js +61 -64
- package/anchor/index.js +5 -3
- package/back-top/index.js +32 -33
- package/badge/index.js +19 -18
- package/calendar/index.js +85 -84
- package/components/common/development/index.js +44 -29
- package/components/common/empty/index.js +35 -23
- package/components/common/flex/index.js +64 -0
- package/components/common/flex/interface.js +9 -0
- package/components/common/higher-order/with-speech-synthesis/index.js +79 -55
- package/components/common/space/index.js +71 -91
- package/components/common/suspense-fallback-test/index.js +16 -0
- package/components/common/utils/toArray.js +12 -0
- package/copy/index.js +83 -35
- package/details/index.js +102 -62
- package/divider/index.js +27 -21
- package/empty/index.js +13 -13
- package/flex/index.js +47 -0
- package/flex/interface.js +1 -0
- package/grid/{GridItem.js → Item.js} +15 -15
- package/grid/index.js +1 -1
- package/icon/interface.js +1 -0
- package/icon-hover/interface.js +1 -0
- package/index.js +610 -599
- package/input/Button.js +39 -34
- package/input/Textarea.js +108 -104
- package/liquid-fill/index.js +3 -2
- package/loading/index.js +72 -53
- package/loading/interface.js +1 -0
- package/marquee/index.js +3 -2
- package/modal/Modal.js +73 -74
- package/package.json +1 -1
- package/portal/interface.js +1 -0
- package/qr-code/index.js +3 -2
- package/segmented/index.js +113 -105
- package/space/index.js +41 -35
- package/speech-synthesis/interface.js +1 -0
- package/spin/index.js +75 -62
- package/splitter/Panel.js +39 -0
- package/splitter/SplitBar.js +157 -0
- package/splitter/Splitter.js +135 -0
- package/splitter/hooks/useEvent.js +12 -0
- package/splitter/hooks/useItems.js +26 -0
- package/splitter/hooks/useResizable.js +26 -0
- package/splitter/hooks/useResize.js +68 -0
- package/splitter/hooks/useSizes.js +60 -0
- package/splitter/index.js +6 -115
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +2 -11
- package/suspense-fallback-test/interface.js +1 -0
- package/table/Table.js +38 -38
- package/table/hook/useThResizable.js +72 -26
- package/table/tbody/Td.js +80 -77
- package/table/th-resizable/index.js +92 -35
- package/tag/index.js +42 -41
- package/tooltip/index.js +89 -82
- package/tour/index.js +5 -6
- package/trigger/index.js +67 -70
- package/types/common/development/index.d.ts +7 -1
- package/types/common/development/interface.d.ts +22 -0
- package/types/common/empty/index.d.ts +2 -1
- package/types/common/flex/index.d.ts +14 -0
- package/types/common/flex/interface.d.ts +62 -0
- package/types/common/higher-order/with-speech-synthesis/index.d.ts +6 -1
- package/types/common/higher-order/with-speech-synthesis/interface.d.ts +13 -0
- package/types/common/space/index.d.ts +4 -3
- package/types/common/space/interface.d.ts +10 -18
- package/types/common/suspense-fallback-test/index.d.ts +7 -0
- package/types/common/suspense-fallback-test/interface.d.ts +1 -0
- package/types/common/utils/PqbCSSTransition.d.ts +1 -1
- package/types/common/utils/toArray.d.ts +13 -0
- package/types/pc/affix/interface.d.ts +0 -2
- package/types/pc/alert/index.d.ts +3 -2
- package/types/pc/alert/interface.d.ts +7 -1
- package/types/pc/anchor/index.d.ts +2 -1
- package/types/pc/anchor/interface.d.ts +0 -2
- package/types/pc/auto-complete/interface.d.ts +0 -6
- package/types/pc/avatar/interface.d.ts +0 -4
- package/types/pc/badge/Count.d.ts +1 -1
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/breadcrumb/interface.d.ts +0 -3
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/WeekList.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/header/Panel.d.ts +1 -1
- package/types/pc/calendar/header/index.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/calendar/interface.d.ts +2 -1
- package/types/pc/carousel/interface.d.ts +2 -6
- package/types/pc/cascader/interface.d.ts +7 -19
- package/types/pc/cascader/panel/List.d.ts +1 -1
- package/types/pc/cascader/panel/Option.d.ts +1 -1
- package/types/pc/cascader/panel/Search.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +2 -2
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/IconCheck.d.ts +1 -1
- package/types/pc/checkbox/interface.d.ts +0 -1
- package/types/pc/collapse/interface.d.ts +0 -2
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/color-picker/interface.d.ts +0 -2
- package/types/pc/config-provider/ConfigProvider.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +17 -17
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/copy/interface.d.ts +2 -1
- package/types/pc/date-picker/interface.d.ts +0 -17
- package/types/pc/date-picker/panel/Body.d.ts +1 -1
- package/types/pc/date-picker/panel/Footer.d.ts +1 -1
- package/types/pc/date-picker/panel/Header.d.ts +1 -1
- package/types/pc/date-picker/panel/WeekList.d.ts +1 -1
- package/types/pc/date-picker/panel/date/index.d.ts +1 -1
- package/types/pc/date-picker/panel/month/index.d.ts +1 -1
- package/types/pc/date-picker/panel/quarter/index.d.ts +1 -1
- package/types/pc/date-picker/panel/range/index.d.ts +1 -1
- package/types/pc/date-picker/panel/week/index.d.ts +1 -1
- package/types/pc/date-picker/panel/year/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/descriptions/interface.d.ts +0 -1
- package/types/pc/details/index.d.ts +3 -2
- package/types/pc/details/interface.d.ts +16 -0
- package/types/pc/development/index.d.ts +2 -1
- package/types/pc/development/interface.d.ts +15 -0
- package/types/pc/divider/index.d.ts +7 -2
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -1
- package/types/pc/drawer/interface.d.ts +0 -7
- package/types/pc/dropdown/interface.d.ts +0 -1
- package/types/pc/flex/index.d.ts +9 -0
- package/types/pc/flex/interface.d.ts +16 -0
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/IconSymbol.d.ts +1 -1
- package/types/pc/form/interface.d.ts +9 -22
- package/types/pc/form/util.d.ts +1 -1
- package/types/pc/grid/index.d.ts +3 -3
- package/types/pc/grid/interface.d.ts +1 -6
- package/types/pc/icon/addFromIconFontCn.d.ts +1 -7
- package/types/pc/icon/index.d.ts +2 -7
- package/types/pc/icon/interface.d.ts +13 -0
- package/types/pc/icon-hover/index.d.ts +2 -8
- package/types/pc/icon-hover/interface.d.ts +8 -0
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreviewArrow.d.ts +1 -1
- package/types/pc/image/TriggerForToolbar.d.ts +1 -1
- package/types/pc/image/interface.d.ts +0 -13
- package/types/pc/index.d.ts +63 -50
- package/types/pc/input/Textarea.d.ts +2 -6
- package/types/pc/input/interface.d.ts +5 -13
- package/types/pc/input-number/interface.d.ts +0 -4
- package/types/pc/input-tag/interface.d.ts +0 -13
- package/types/pc/layout/interface.d.ts +0 -1
- package/types/pc/link/interface.d.ts +0 -1
- package/types/pc/list/interface.d.ts +0 -4
- package/types/pc/loading/index.d.ts +4 -3
- package/types/pc/loading/interface.d.ts +6 -0
- package/types/pc/menu/Indent.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/interface.d.ts +0 -8
- package/types/pc/menu/sub-menu/Inline.d.ts +1 -1
- package/types/pc/menu/sub-menu/Pop.d.ts +1 -1
- package/types/pc/message/interface.d.ts +0 -2
- package/types/pc/modal/interface.d.ts +0 -5
- package/types/pc/notification/interface.d.ts +0 -1
- package/types/pc/overflow-ellipsis/OverflowItem.d.ts +1 -1
- package/types/pc/overflow-ellipsis/index.d.ts +1 -1
- package/types/pc/pagination/PageItem.d.ts +3 -3
- package/types/pc/pagination/PageJumper.d.ts +1 -1
- package/types/pc/pagination/PageOption.d.ts +1 -1
- package/types/pc/pagination/interface.d.ts +0 -2
- package/types/pc/popconfirm/interface.d.ts +8 -10
- package/types/pc/popover/interface.d.ts +0 -1
- package/types/pc/portal/Portal.d.ts +2 -6
- package/types/pc/portal/index.d.ts +2 -9
- package/types/pc/portal/interface.d.ts +14 -0
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/LineProgess.d.ts +1 -1
- package/types/pc/progress/StepProgress.d.ts +1 -1
- package/types/pc/progress/interface.d.ts +0 -3
- package/types/pc/radio/Group.d.ts +2 -2
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/resize-box/ResizeTrigger.d.ts +1 -1
- package/types/pc/resize-box/interface.d.ts +1 -7
- package/types/pc/result/403.d.ts +1 -1
- package/types/pc/result/404.d.ts +1 -1
- package/types/pc/result/500.d.ts +1 -1
- package/types/pc/segmented/interface.d.ts +6 -6
- package/types/pc/select/interface.d.ts +0 -12
- package/types/pc/select-view/interface.d.ts +0 -7
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +2 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/Input.d.ts +1 -1
- package/types/pc/slider/Tick.d.ts +1 -1
- package/types/pc/slider/interface.d.ts +0 -4
- package/types/pc/space/index.d.ts +7 -5
- package/types/pc/speech-synthesis/index.d.ts +3 -1
- package/types/pc/speech-synthesis/interface.d.ts +7 -0
- package/types/pc/spin/DotLoading.d.ts +1 -1
- package/types/pc/spin/interface.d.ts +4 -1
- package/types/pc/splitter/Panel.d.ts +8 -0
- package/types/pc/splitter/SplitBar.d.ts +21 -0
- package/types/pc/splitter/Splitter.d.ts +4 -0
- package/types/pc/splitter/hooks/useEvent.d.ts +3 -0
- package/types/pc/splitter/hooks/useItems.d.ts +10 -0
- package/types/pc/splitter/hooks/useResizable.d.ts +8 -0
- package/types/pc/splitter/hooks/useResize.d.ts +4 -0
- package/types/pc/splitter/hooks/useSizes.d.ts +5 -0
- package/types/pc/splitter/index.d.ts +8 -3
- package/types/pc/splitter/interface.d.ts +181 -38
- package/types/pc/statistic/interface.d.ts +0 -4
- package/types/pc/steps/interface.d.ts +0 -3
- package/types/pc/suspense-fallback-test/index.d.ts +2 -3
- package/types/pc/suspense-fallback-test/interface.d.ts +2 -0
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/hook/useThResizable.d.ts +2 -2
- package/types/pc/table/interface.d.ts +4 -15
- package/types/pc/table/summary/Cell.d.ts +1 -1
- package/types/pc/table/summary/Row.d.ts +1 -1
- package/types/pc/table/tbody/Td.d.ts +1 -1
- package/types/pc/table/tbody/index.d.ts +1 -1
- package/types/pc/table/tfoot/index.d.ts +1 -1
- package/types/pc/table/th-resizable/index.d.ts +1 -1
- package/types/pc/table/thead/Column.d.ts +1 -1
- package/types/pc/table/thead/index.d.ts +1 -1
- package/types/pc/tabs/TabContent.d.ts +1 -1
- package/types/pc/tabs/interface.d.ts +0 -7
- package/types/pc/tabs/tab-header/DropdownIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabInk.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/tag/index.d.ts +2 -0
- package/types/pc/tag/interface.d.ts +0 -1
- package/types/pc/time-picker/Picker.d.ts +1 -1
- package/types/pc/time-picker/RangePicker.d.ts +1 -1
- package/types/pc/time-picker/TimeColumn.d.ts +1 -1
- package/types/pc/time-picker/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/time-picker/interface.d.ts +0 -7
- package/types/pc/tooltip/interface.d.ts +4 -1
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/transfer/interface.d.ts +2 -9
- package/types/pc/tree/Animation.d.ts +1 -1
- package/types/pc/tree/interface.d.ts +2 -8
- package/types/pc/tree-select/interface.d.ts +0 -8
- package/types/pc/trigger/interface.d.ts +0 -5
- package/types/pc/typography/EditContent.d.ts +2 -1
- package/types/pc/typography/Operations.d.ts +1 -1
- package/types/pc/typography/interface.d.ts +45 -30
- package/types/pc/upload/interface.d.ts +6 -11
- package/types/pc/upload/list/index.d.ts +1 -1
- package/types/pc/utils/index.d.ts +1 -0
- package/types/pc/utils/names.d.ts +6 -0
- package/types/pc/utils/toArray.d.ts +3 -0
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/verification-code/interface.d.ts +0 -2
- package/types/pc/virtual-list/VirtualList.d.ts +2 -38
- package/types/pc/virtual-list/index.d.ts +2 -1
- package/types/pc/virtual-list/interface.d.ts +56 -0
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/types/pc/watermark/interface.d.ts +0 -2
- package/typography/Base.js +73 -73
- package/typography/EditContent.js +43 -33
- package/typography/Ellipsis.js +117 -184
- package/typography/Operations.js +97 -49
- package/typography/useCssEllipsis.js +7 -6
- package/utils/index.js +117 -115
- package/utils/names.js +4 -0
- package/utils/toArray.js +5 -0
- package/version/index.js +1 -1
- package/virtual-list/interface.js +1 -0
- package/components/common/space/toArray.js +0 -11
- package/loading/style/index.module.less.js +0 -4
- package/types/common/space/toArray.d.ts +0 -3
- package/types/pc/suspense-fallback-test/style/index.d.ts +0 -1
- /package/{suspense-fallback-test/style/index.less.js → development/interface.js} +0 -0
- /package/types/pc/grid/{GridItem.d.ts → Item.d.ts} +0 -0
|
@@ -43,13 +43,11 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
43
43
|
/**
|
|
44
44
|
* @zh 状态
|
|
45
45
|
* @en Status
|
|
46
|
-
* @version 2.45.0
|
|
47
46
|
*/
|
|
48
|
-
status?: 'error' | 'warning';
|
|
47
|
+
status?: 'error' | 'warning' | 'success';
|
|
49
48
|
/**
|
|
50
49
|
* @zh 设置宽度自适应。minWidth 默认为 0,maxWidth 默认为 100%
|
|
51
50
|
* @en auto width. minWidth defaults to 0, maxWidth defaults to 100%
|
|
52
|
-
* @version 2.54.0
|
|
53
51
|
*/
|
|
54
52
|
autoWidth?: boolean | {
|
|
55
53
|
minWidth?: CSSProperties['minWidth'];
|
|
@@ -74,14 +72,12 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
74
72
|
/**
|
|
75
73
|
* @zh 指定 normalize 执行的时机
|
|
76
74
|
* @en Specify the timing of normalize execution
|
|
77
|
-
* @version 2.50.0
|
|
78
75
|
* @defaultValue ['onBlur']
|
|
79
76
|
*/
|
|
80
77
|
normalizeTrigger?: ('onBlur' | 'onPressEnter')[];
|
|
81
78
|
/**
|
|
82
79
|
* @zh 在指定时机对用户输入的值进行格式化处理。前后值不一致时,会触发 onChange
|
|
83
80
|
* @en Format the value entered by the user at the specified time, and when the previous and subsequent values are inconsistent, onChange will be triggered
|
|
84
|
-
* @version 2.50.0
|
|
85
81
|
*/
|
|
86
82
|
normalize?: (value: string) => string;
|
|
87
83
|
/**
|
|
@@ -133,7 +129,6 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
133
129
|
/**
|
|
134
130
|
* @zh 输入框最大输入的长度;设置 `errorOnly`为 `true` 后,超过 `maxLength` 会展示 `error` 状态,并不限制用户输入。
|
|
135
131
|
* @en The max content length;After setting `errorOnly` to `true`, if `maxLength` is exceeded, the `error` status will be displayed, and user input will not be restricted.
|
|
136
|
-
* @version `errorOnly` in 2.23.0
|
|
137
132
|
*/
|
|
138
133
|
maxLength?: number | {
|
|
139
134
|
length: number;
|
|
@@ -147,7 +142,6 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
147
142
|
/**
|
|
148
143
|
* @zh `allowClear` 时配置清除按钮的图标。
|
|
149
144
|
* @en Configure the icon of the clear button when `allowClear`.
|
|
150
|
-
* @version 2.50.0
|
|
151
145
|
*/
|
|
152
146
|
clearIcon?: ReactNode;
|
|
153
147
|
}
|
|
@@ -185,6 +179,10 @@ export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
185
179
|
minRows?: number;
|
|
186
180
|
maxRows?: number;
|
|
187
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* @zh 用于设置元素是否可调整尺寸,以及可调整的方向
|
|
184
|
+
*/
|
|
185
|
+
resize?: 'none' | 'both' | 'horizontal' | 'vertical' | 'block' | 'inline' | 'inherit' | 'initial' | 'revert' | 'revert-layer' | 'unset';
|
|
188
186
|
/**
|
|
189
187
|
* @zh 是否是错误状态。(废弃,下个大版本移除,使用 status='error' 替代)
|
|
190
188
|
* @en Whether the textarea is error.(Deprecated, removed in the next major version, use status='error' instead)
|
|
@@ -194,7 +192,6 @@ export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
194
192
|
/**
|
|
195
193
|
* @zh 状态
|
|
196
194
|
* @en Status
|
|
197
|
-
* @version 2.45.0
|
|
198
195
|
*/
|
|
199
196
|
status?: 'error' | 'warning';
|
|
200
197
|
/**
|
|
@@ -215,7 +212,6 @@ export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
215
212
|
/**
|
|
216
213
|
* @zh 输入框最大输入的长度;设置 `errorOnly`为 `true` 后,超过 `maxLength` 会展示 `error` 状态,并不限制用户输入。
|
|
217
214
|
* @en The max content length;After setting `errorOnly` to `true`, if `maxLength` is exceeded, the `error` status will be displayed, and user input will not be restricted.
|
|
218
|
-
* @version `errorOnly` in 2.23.0
|
|
219
215
|
*/
|
|
220
216
|
maxLength?: number | {
|
|
221
217
|
length: number;
|
|
@@ -225,19 +221,16 @@ export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
225
221
|
/**
|
|
226
222
|
* @zh 允许清空输入框
|
|
227
223
|
* @en Whether allow clear the content
|
|
228
|
-
* @version 2.2.0
|
|
229
224
|
*/
|
|
230
225
|
allowClear?: boolean;
|
|
231
226
|
/**
|
|
232
227
|
* @zh 点击清除按钮的回调
|
|
233
228
|
* @en Callback when click clear button
|
|
234
|
-
* @version 2.2.0
|
|
235
229
|
*/
|
|
236
230
|
onClear?: () => void;
|
|
237
231
|
/**
|
|
238
232
|
* @zh `allowClear` 时配置清除按钮的图标。
|
|
239
233
|
* @en Configure the icon of the clear button when `allowClear`.
|
|
240
|
-
* @version 2.50.0
|
|
241
234
|
*/
|
|
242
235
|
clearIcon?: ReactNode;
|
|
243
236
|
}
|
|
@@ -289,7 +282,6 @@ export interface InputSearchProps extends InputButtonProps {
|
|
|
289
282
|
/**
|
|
290
283
|
* @zh 搜索按钮
|
|
291
284
|
* @en Search button
|
|
292
|
-
* @version `ReactNode` in 2.6.0
|
|
293
285
|
*/
|
|
294
286
|
searchButton?: boolean | ReactNode;
|
|
295
287
|
}
|
|
@@ -42,13 +42,11 @@ export interface InputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElem
|
|
|
42
42
|
/**
|
|
43
43
|
* @zh 是否只读
|
|
44
44
|
* @en Whether input is readonly
|
|
45
|
-
* @version 2.17.0
|
|
46
45
|
*/
|
|
47
46
|
readOnly?: boolean;
|
|
48
47
|
/**
|
|
49
48
|
* @zh 严格模式下,`onChange` 回调将返回字符串类型
|
|
50
49
|
* @en `onChange` will return a string in strict mode
|
|
51
|
-
* @version 2.42.0
|
|
52
50
|
*/
|
|
53
51
|
strictMode?: boolean;
|
|
54
52
|
/**
|
|
@@ -90,7 +88,6 @@ export interface InputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElem
|
|
|
90
88
|
/**
|
|
91
89
|
* @zh 定义输入框展示值
|
|
92
90
|
* @en Specifies the format of the value presented
|
|
93
|
-
* @version Param `info` in `2.41.0`
|
|
94
91
|
*/
|
|
95
92
|
formatter?: (value: number | string, info: {
|
|
96
93
|
userTyping: boolean;
|
|
@@ -105,7 +102,6 @@ export interface InputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElem
|
|
|
105
102
|
/**
|
|
106
103
|
* @zh 变化回调
|
|
107
104
|
* @en Callback when the value changes
|
|
108
|
-
* @version `reason` in 2.61.0
|
|
109
105
|
*/
|
|
110
106
|
onChange?: (value: number, reason?: InputNumberValueChangeReason) => void;
|
|
111
107
|
/**
|
|
@@ -31,7 +31,6 @@ export interface InputTagProps<T = unknown> {
|
|
|
31
31
|
/**
|
|
32
32
|
* @zh 状态
|
|
33
33
|
* @en Status
|
|
34
|
-
* @version 2.45.0
|
|
35
34
|
*/
|
|
36
35
|
status?: 'error' | 'warning';
|
|
37
36
|
/**
|
|
@@ -57,14 +56,12 @@ export interface InputTagProps<T = unknown> {
|
|
|
57
56
|
/**
|
|
58
57
|
* @zh 是否为内部标签变化添加动画。
|
|
59
58
|
* @en Whether to add animation for internal label changes
|
|
60
|
-
* @version 2.15.0
|
|
61
59
|
* @defaultValue true
|
|
62
60
|
*/
|
|
63
61
|
animation?: boolean;
|
|
64
62
|
/**
|
|
65
63
|
* @zh 是否在失焦时自动存储正在输入的文本
|
|
66
64
|
* @en Whether to automatically store the text entering when blur InputTag
|
|
67
|
-
* @version 2.25.0
|
|
68
65
|
*/
|
|
69
66
|
saveOnBlur?: boolean;
|
|
70
67
|
/**
|
|
@@ -90,13 +87,11 @@ export interface InputTagProps<T = unknown> {
|
|
|
90
87
|
/**
|
|
91
88
|
* @zh 是否可以通过拖拽为 Tag 排序
|
|
92
89
|
* @en Weather it is possible to sort tags by drag
|
|
93
|
-
* @version 2.27.0
|
|
94
90
|
*/
|
|
95
91
|
dragToSort?: boolean;
|
|
96
92
|
/**
|
|
97
93
|
* @zh 最多显示多少个 `tag`
|
|
98
94
|
* @en The maximum number of `tags` is displayed
|
|
99
|
-
* @version 2.59.0. `responsive ` in `2.62.0`
|
|
100
95
|
*/
|
|
101
96
|
maxTagCount?: number | 'responsive' | {
|
|
102
97
|
count: number | 'responsive';
|
|
@@ -106,7 +101,6 @@ export interface InputTagProps<T = unknown> {
|
|
|
106
101
|
/**
|
|
107
102
|
* @zh 添加前缀文字或者图标
|
|
108
103
|
* @en The prefix icon or text for the input-tag
|
|
109
|
-
* @version 2.47.0
|
|
110
104
|
*/
|
|
111
105
|
prefix?: ReactNode;
|
|
112
106
|
/**
|
|
@@ -117,13 +111,11 @@ export interface InputTagProps<T = unknown> {
|
|
|
117
111
|
/**
|
|
118
112
|
* @zh 输入框前添加元素
|
|
119
113
|
* @en The label text displayed before (on the left side of) the input-tag field
|
|
120
|
-
* @version 2.47.0
|
|
121
114
|
*/
|
|
122
115
|
addBefore?: ReactNode;
|
|
123
116
|
/**
|
|
124
117
|
* @zh 输入框后添加元素
|
|
125
118
|
* @en The label text displayed after (on the right side of) the input-tag field
|
|
126
|
-
* @version 2.47.0
|
|
127
119
|
*/
|
|
128
120
|
addAfter?: ReactNode;
|
|
129
121
|
/**
|
|
@@ -137,20 +129,17 @@ export interface InputTagProps<T = unknown> {
|
|
|
137
129
|
/**
|
|
138
130
|
* @zh 触发自动分词的分隔符
|
|
139
131
|
* @en Separator used to tokenize
|
|
140
|
-
* @version 2.44.0
|
|
141
132
|
*/
|
|
142
133
|
tokenSeparators?: string[];
|
|
143
134
|
/**
|
|
144
135
|
* @zh 校验函数,默认在 按下enter时候触发。
|
|
145
136
|
* @en Function to check user's input, which is triggered when `Enter` is pressed
|
|
146
137
|
* @defaultValue (inputValue, values) => inputValue && values.every((item) => item !== inputValue)
|
|
147
|
-
* @version return type T and `Promise<T>` in 2.37.0
|
|
148
138
|
*/
|
|
149
139
|
validate?: (inputValue: string, values: T[]) => boolean | Promise<boolean> | T | Promise<T>;
|
|
150
140
|
/**
|
|
151
141
|
* @zh 自定义标签渲染,`props` 为当前标签属性,`index` 为当前标签的顺序,`values` 为所有标签的值.
|
|
152
142
|
* @en Custom tag rendering, `props` is the current tag attribute, `index` is the order of the current tag, `values` is the value of all tags
|
|
153
|
-
* @version index、values added in 2.15.0
|
|
154
143
|
*/
|
|
155
144
|
renderTag?: (props: {
|
|
156
145
|
value: any;
|
|
@@ -166,7 +155,6 @@ export interface InputTagProps<T = unknown> {
|
|
|
166
155
|
/**
|
|
167
156
|
* @zh 控件值改变时触发
|
|
168
157
|
* @en Callback when value changes
|
|
169
|
-
* @version `reason` in 2.27.0
|
|
170
158
|
*/
|
|
171
159
|
onChange?: (value: T[], reason: ValueChangeReason) => void;
|
|
172
160
|
/**
|
|
@@ -202,7 +190,6 @@ export interface InputTagProps<T = unknown> {
|
|
|
202
190
|
/**
|
|
203
191
|
* @zh 点击清除按钮的回调
|
|
204
192
|
* @en Callback when clear button is clicked
|
|
205
|
-
* @version 2.20.0
|
|
206
193
|
*/
|
|
207
194
|
onClear?: () => void;
|
|
208
195
|
/**
|
|
@@ -113,7 +113,6 @@ export interface SiderProps {
|
|
|
113
113
|
/**
|
|
114
114
|
* @zh 可以接受 `ResizeBox` 所有参数,在伸缩开启时,可以通过 `resizeBoxProps` 对菜单栏的 `width` 进行受控展示或者与 `collapsed` 联动
|
|
115
115
|
* @en All props of `ResizeBox` can be accepted. The `width` of the menu bar can be displayed in a controlled manner through `resizeBoxProps` or linked with `collapsed`
|
|
116
|
-
* @version 2.34.0
|
|
117
116
|
*/
|
|
118
117
|
resizeBoxProps?: ResizeBoxProps;
|
|
119
118
|
onSiderMount?: (id: string) => void;
|
|
@@ -77,7 +77,6 @@ export interface ListProps<T = any> {
|
|
|
77
77
|
/**
|
|
78
78
|
* @zh 列表栅格配置
|
|
79
79
|
* @en The grid type of list
|
|
80
|
-
* @version `column` in 2.20.0
|
|
81
80
|
*/
|
|
82
81
|
grid?: ListGridProps;
|
|
83
82
|
/**
|
|
@@ -88,7 +87,6 @@ export interface ListProps<T = any> {
|
|
|
88
87
|
/**
|
|
89
88
|
* @zh 列表项是否可悬浮
|
|
90
89
|
* @en Whether list items have hover style
|
|
91
|
-
* @version 2.9.0
|
|
92
90
|
*/
|
|
93
91
|
hoverable?: boolean;
|
|
94
92
|
/**
|
|
@@ -117,7 +115,6 @@ export interface ListProps<T = any> {
|
|
|
117
115
|
/**
|
|
118
116
|
* @zh 当前列表的引用
|
|
119
117
|
* @en Reference to the current list
|
|
120
|
-
* @version 2.20.0
|
|
121
118
|
*/
|
|
122
119
|
listRef?: MutableRefObject<ListHandle>;
|
|
123
120
|
/**
|
|
@@ -138,7 +135,6 @@ export interface ListProps<T = any> {
|
|
|
138
135
|
/**
|
|
139
136
|
* @zh 传递虚拟列表属性,传入此参数以开启虚拟滚动
|
|
140
137
|
* @en Pass the virtual-list properties, pass in this parameter to turn on virtual scrolling
|
|
141
|
-
* @version 2.11.0
|
|
142
138
|
*/
|
|
143
139
|
virtualListProps?: AvailableVirtualListProps;
|
|
144
140
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { LoadingProps } from './interface';
|
|
2
|
+
declare const Loading: import("react").ForwardRefExoticComponent<LoadingProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
3
|
+
export default Loading;
|
|
4
|
+
export type { LoadingProps };
|
|
@@ -5,5 +5,5 @@ interface OverflowWrapProps {
|
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
onEllipsisChange?: MenuProps['onEllipsisChange'];
|
|
7
7
|
}
|
|
8
|
-
declare const OverflowWrap: (props: OverflowWrapProps) => import("react/jsx-
|
|
8
|
+
declare const OverflowWrap: (props: OverflowWrapProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default OverflowWrap;
|
|
@@ -63,7 +63,6 @@ export interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNa
|
|
|
63
63
|
* @zh 水平菜单是否自动溢出省略
|
|
64
64
|
* @en Whether the horizontal menu automatically collapses when it overflows
|
|
65
65
|
* @defaultValue true
|
|
66
|
-
* @version 2.24.0
|
|
67
66
|
*/
|
|
68
67
|
ellipsis?: boolean | {
|
|
69
68
|
text?: ReactNode;
|
|
@@ -101,13 +100,11 @@ export interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNa
|
|
|
101
100
|
/**
|
|
102
101
|
* @zh 点击菜单项的回调
|
|
103
102
|
* @en Click menu item callback
|
|
104
|
-
* @version `event` in 2.15.0, `keyPath` in 2.19.0
|
|
105
103
|
*/
|
|
106
104
|
onClickMenuItem?: (key: string, event: any, keyPath: string[]) => any;
|
|
107
105
|
/**
|
|
108
106
|
* @zh 点击子菜单标题的回调
|
|
109
107
|
* @en Callback when click sub menu
|
|
110
|
-
* @version `keyPath` in 2.19.0
|
|
111
108
|
*/
|
|
112
109
|
onClickSubMenu?: (key: string, openKeys: string[], keyPath: string[]) => void;
|
|
113
110
|
/**
|
|
@@ -118,7 +115,6 @@ export interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNa
|
|
|
118
115
|
/**
|
|
119
116
|
* @zh 水平菜单自动超出省略发生变化时的回调
|
|
120
117
|
* @en Callback when horizontal-menu ellipsis status changed
|
|
121
|
-
* @version 2.57.0
|
|
122
118
|
*/
|
|
123
119
|
onEllipsisChange?: (status: {
|
|
124
120
|
lastVisibleIndex: number;
|
|
@@ -172,13 +168,11 @@ export interface MenuSubMenuProps extends Omit<HTMLAttributes<HTMLElement>, 'tit
|
|
|
172
168
|
/**
|
|
173
169
|
* @zh 是否强制使用弹出模式,`level` 表示当前子菜单的层级
|
|
174
170
|
* @en Whether to force the use of popup mode, parameter `level` indicates the level of current subMenu.
|
|
175
|
-
* @version 2.8.0
|
|
176
171
|
*/
|
|
177
172
|
popup?: boolean | ((level: number) => boolean);
|
|
178
173
|
/**
|
|
179
174
|
* @zh 弹出模式下可接受所有 `Trigger` 的 `Props`
|
|
180
175
|
* @en Pass all `Trigger` component properties
|
|
181
|
-
* @version 2.19.0
|
|
182
176
|
*/
|
|
183
177
|
triggerProps?: Partial<TriggerProps>;
|
|
184
178
|
}
|
|
@@ -221,13 +215,11 @@ export interface MenuItemProps extends Omit<HTMLAttributes<HTMLElement>, 'classN
|
|
|
221
215
|
* @zh 配置最外层标签,可以是 html 标签或是组件
|
|
222
216
|
* @en Configure the outermost label, which can be a html label or a component
|
|
223
217
|
* @defaultValue div
|
|
224
|
-
* @version 2.16.0
|
|
225
218
|
*/
|
|
226
219
|
wrapper?: string | React.FC<any> | React.ComponentClass<any>;
|
|
227
220
|
/**
|
|
228
221
|
* @zh 菜单折叠时,指定在 Tooltip 中展示的菜单项节点
|
|
229
222
|
* @en Set the menu item displayed in Tooltip when menu is collapsed
|
|
230
|
-
* @version 2.51.0
|
|
231
223
|
*/
|
|
232
224
|
renderItemInTooltip?: () => ReactNode;
|
|
233
225
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MenuSubMenuProps } from '../../menu/interface';
|
|
2
2
|
declare const SubMenuInline: (props: MenuSubMenuProps & {
|
|
3
3
|
forwardedRef: any;
|
|
4
|
-
}) => import("react/jsx-
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default SubMenuInline;
|
|
@@ -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;
|
|
@@ -6,5 +6,5 @@ interface OverflowItemProps {
|
|
|
6
6
|
hidden?: boolean;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
}
|
|
9
|
-
declare function OverflowItem(props: OverflowItemProps): import("react/jsx-
|
|
9
|
+
declare function OverflowItem(props: OverflowItemProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default OverflowItem;
|
|
@@ -7,5 +7,5 @@ interface OverflowEllipsisProps {
|
|
|
7
7
|
ellipsisCount: number;
|
|
8
8
|
}) => ReactNode;
|
|
9
9
|
}
|
|
10
|
-
declare function OverflowEllipsis(props: OverflowEllipsisProps): import("react/jsx-
|
|
10
|
+
declare function OverflowEllipsis(props: OverflowEllipsisProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default OverflowEllipsis;
|
|
@@ -3,16 +3,16 @@ import { JumpPagerProps, PagerProps, StepPagerProps } from './interface';
|
|
|
3
3
|
/**
|
|
4
4
|
* default pager item
|
|
5
5
|
*/
|
|
6
|
-
declare function Pager(props: PagerProps): import("react/jsx-
|
|
6
|
+
declare function Pager(props: PagerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
/**
|
|
8
8
|
* preJump or nextJump button
|
|
9
9
|
* @param props
|
|
10
10
|
*/
|
|
11
|
-
export declare const JumpPager: (props: JumpPagerProps) => import("react/jsx-
|
|
11
|
+
export declare const JumpPager: (props: JumpPagerProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
/**
|
|
13
13
|
* previous or next button
|
|
14
14
|
* @param props
|
|
15
15
|
*/
|
|
16
|
-
export declare const StepPager: (props: StepPagerProps) => import("react/jsx-
|
|
16
|
+
export declare const StepPager: (props: StepPagerProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
declare const _default: React.MemoExoticComponent<typeof Pager>;
|
|
18
18
|
export default _default;
|
|
@@ -9,5 +9,5 @@ export interface PageJumperProps {
|
|
|
9
9
|
onPageChange?: (value: any) => void;
|
|
10
10
|
size?: 'mini' | 'small' | 'default' | 'large';
|
|
11
11
|
}
|
|
12
|
-
declare function PageJumper(props: PageJumperProps): import("react/jsx-
|
|
12
|
+
declare function PageJumper(props: PageJumperProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default PageJumper;
|
|
@@ -10,6 +10,6 @@ export interface PageOptionProps {
|
|
|
10
10
|
size?: 'mini' | 'small' | 'default' | 'large';
|
|
11
11
|
selectProps?: Partial<SelectProps>;
|
|
12
12
|
}
|
|
13
|
-
declare function PageOption(props: PageOptionProps): import("react/jsx-
|
|
13
|
+
declare function PageOption(props: PageOptionProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
declare const _default: React.MemoExoticComponent<typeof PageOption>;
|
|
15
15
|
export default _default;
|
|
@@ -49,7 +49,6 @@ export interface PaginationProps {
|
|
|
49
49
|
/**
|
|
50
50
|
* @zh 是否在只有一页的情况下隐藏
|
|
51
51
|
* @en Whether to hide when there is only one page
|
|
52
|
-
* @version 2.6.0
|
|
53
52
|
*/
|
|
54
53
|
hideOnSinglePage?: boolean;
|
|
55
54
|
/**
|
|
@@ -81,7 +80,6 @@ export interface PaginationProps {
|
|
|
81
80
|
* @zh `current` 页与 `...` 之间的页码个数
|
|
82
81
|
* @en the number of pages between the `current` page and `...`
|
|
83
82
|
* @defaultValue 2
|
|
84
|
-
* @version 2.32.0
|
|
85
83
|
*/
|
|
86
84
|
bufferSize?: number;
|
|
87
85
|
/**
|
|
@@ -19,20 +19,18 @@ export interface PopconfirmProps {
|
|
|
19
19
|
*/
|
|
20
20
|
position?: 'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br' | 'left' | 'lt' | 'lb' | 'right' | 'rt' | 'rb';
|
|
21
21
|
/**
|
|
22
|
-
* @zh
|
|
23
|
-
* @en Title of Popconfirm.
|
|
22
|
+
* @zh 标题
|
|
23
|
+
* @en Title of Popconfirm.
|
|
24
24
|
*/
|
|
25
25
|
title?: ReactNode | (() => ReactNode);
|
|
26
26
|
/**
|
|
27
|
-
* @zh
|
|
28
|
-
* @en Content of Popconfirm
|
|
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
|
|
66
|
-
* @en Callback when click the ok button.
|
|
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 点击取消按钮的回调函数。
|
|
71
|
-
* @en Callback when click the cancel button.
|
|
68
|
+
* @zh 点击取消按钮的回调函数。
|
|
69
|
+
* @en Callback when click the cancel button.
|
|
72
70
|
*/
|
|
73
71
|
onCancel?: (e: React.MouseEvent) => void;
|
|
74
72
|
/**
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
/** Portal 挂载的容器 */
|
|
4
|
-
getContainer?: () => Element;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PortalProps } from './interface';
|
|
7
3
|
declare const _default: React.ForwardRefExoticComponent<PortalProps & React.RefAttributes<unknown>>;
|
|
8
4
|
export default _default;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
/** Portal 挂载的容器 */
|
|
4
|
-
getContainer?: () => Element;
|
|
5
|
-
childrenComponent?: Element;
|
|
6
|
-
forceRender?: boolean;
|
|
7
|
-
visible?: boolean;
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PortalWrapperProps } from './interface';
|
|
10
3
|
declare const _default: React.ForwardRefExoticComponent<PortalWrapperProps & React.RefAttributes<unknown>>;
|
|
11
4
|
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface PortalProps {
|
|
3
|
+
/** Portal 挂载的容器 */
|
|
4
|
+
getContainer?: () => Element;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface PortalWrapperProps {
|
|
8
|
+
/** Portal 挂载的容器 */
|
|
9
|
+
getContainer?: () => Element;
|
|
10
|
+
childrenComponent?: Element;
|
|
11
|
+
forceRender?: boolean;
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function LineProgress(props: any): import("react/jsx-
|
|
1
|
+
declare function LineProgress(props: any): import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default LineProgress;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const StepProgress: (props: any) => import("react/jsx-
|
|
1
|
+
export declare const StepProgress: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default StepProgress;
|
|
@@ -14,7 +14,6 @@ export interface ProgressProps {
|
|
|
14
14
|
/**
|
|
15
15
|
* @zh 显示步骤进度条
|
|
16
16
|
* @en Show step progress
|
|
17
|
-
* @version 2.10.0
|
|
18
17
|
*/
|
|
19
18
|
steps?: number;
|
|
20
19
|
/**
|
|
@@ -25,13 +24,11 @@ export interface ProgressProps {
|
|
|
25
24
|
/**
|
|
26
25
|
* @zh 进度条状态
|
|
27
26
|
* @en Progress status.
|
|
28
|
-
* @version 2.16.0
|
|
29
27
|
*/
|
|
30
28
|
status?: 'success' | 'error' | 'normal' | 'warning';
|
|
31
29
|
/**
|
|
32
30
|
* @zh 进度条颜色,优先级高于 `status`。传入对象时,会显示渐变色进度条。
|
|
33
31
|
* @en Progress color, priority is higher than `status`
|
|
34
|
-
* @version 2.10.0
|
|
35
32
|
*/
|
|
36
33
|
color?: string | {
|
|
37
34
|
[key: string]: string;
|