@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
|
@@ -69,7 +69,6 @@ export interface FormProps<FormData = any, FieldValue = FormData[keyof FormData]
|
|
|
69
69
|
* @zh 是否在 required 的时候显示加重的红色星号,设置 position 可选择将星号置于 label 前/后
|
|
70
70
|
* @en Whether show red symbol when item is required,Set position props, you can choose to place the symbol before/after the label
|
|
71
71
|
* @defaultValue true
|
|
72
|
-
* @version `position` in 2.24.0
|
|
73
72
|
*/
|
|
74
73
|
requiredSymbol?: boolean | {
|
|
75
74
|
position: 'start' | 'end';
|
|
@@ -91,7 +90,6 @@ export interface FormProps<FormData = any, FieldValue = FormData[keyof FormData]
|
|
|
91
90
|
* @en
|
|
92
91
|
* When to trigger verification.
|
|
93
92
|
* @defaultValue onChange
|
|
94
|
-
* @version 2.28.0
|
|
95
93
|
*/
|
|
96
94
|
validateTrigger?: string | string[];
|
|
97
95
|
/**
|
|
@@ -121,19 +119,18 @@ export interface FormProps<FormData = any, FieldValue = FormData[keyof FormData]
|
|
|
121
119
|
*/
|
|
122
120
|
disabled?: boolean;
|
|
123
121
|
/**
|
|
124
|
-
* @zh 是否显示标签后的一个冒号,优先级小于 `Form.Item` 中 `colon` 的优先级。
|
|
125
|
-
* @en Whether show colon after `label`. Priority is lower than `colon` in `Form.Item`.
|
|
122
|
+
* @zh 是否显示标签后的一个冒号,优先级小于 `Form.Item` 中 `colon` 的优先级。
|
|
123
|
+
* @en Whether show colon after `label`. Priority is lower than `colon` in `Form.Item`.
|
|
126
124
|
*/
|
|
127
125
|
colon?: boolean | ReactNode;
|
|
128
126
|
/**
|
|
129
|
-
* @zh 验证失败后滚动到第一个错误字段。
|
|
130
|
-
* @en Whether scroll to first error item after validation fails.
|
|
127
|
+
* @zh 验证失败后滚动到第一个错误字段。
|
|
128
|
+
* @en Whether scroll to first error item after validation fails.
|
|
131
129
|
*/
|
|
132
130
|
scrollToFirstError?: boolean | ScrollIntoViewOptions;
|
|
133
131
|
/**
|
|
134
132
|
* @zh 校验提示信息模板 [demo](/react/component/form#表单校验信息模板)
|
|
135
133
|
* @en validation prompt template [demo](/react/en-US/component/form#validate%20messages)
|
|
136
|
-
* @version 2.32.0
|
|
137
134
|
*/
|
|
138
135
|
validateMessages?: Partial<{
|
|
139
136
|
[key in keyof ValidateMessagesTemplateType]: ValidateMessagesTemplateType[key] extends string ? ValidateMessagesTemplateType[key] | ((data: any, { label }: {
|
|
@@ -155,7 +152,6 @@ export interface FormProps<FormData = any, FieldValue = FormData[keyof FormData]
|
|
|
155
152
|
/**
|
|
156
153
|
* @zh 数据验证失败后回调事件
|
|
157
154
|
* @en Callback when validate fail
|
|
158
|
-
* @version 2.21.0
|
|
159
155
|
*/
|
|
160
156
|
onSubmitFailed?: (errors: {
|
|
161
157
|
[key: string]: FieldError;
|
|
@@ -213,7 +209,6 @@ export interface FormItemProps<FormData = any, FieldValue = FormData[keyof FormD
|
|
|
213
209
|
/**
|
|
214
210
|
* @zh 提示文本
|
|
215
211
|
* @en Tooltip text
|
|
216
|
-
* @version 2.43.0
|
|
217
212
|
*/
|
|
218
213
|
tooltip?: ReactNode | (TooltipProps & {
|
|
219
214
|
icon?: ReactElement;
|
|
@@ -232,8 +227,8 @@ export interface FormItemProps<FormData = any, FieldValue = FormData[keyof FormD
|
|
|
232
227
|
*/
|
|
233
228
|
wrapperCol?: ColProps;
|
|
234
229
|
/**
|
|
235
|
-
* @zh 是否显示标签后的一个冒号,优先级小于 `Form.Item` 中 `colon` 的优先级。
|
|
236
|
-
* @en Whether show colon after `label`. Priority is lower than `colon` in `Form.Item`.
|
|
230
|
+
* @zh 是否显示标签后的一个冒号,优先级小于 `Form.Item` 中 `colon` 的优先级。
|
|
231
|
+
* @en Whether show colon after `label`. Priority is lower than `colon` in `Form.Item`.
|
|
237
232
|
*/
|
|
238
233
|
colon?: boolean | ReactNode;
|
|
239
234
|
/**
|
|
@@ -261,7 +256,6 @@ export interface FormItemProps<FormData = any, FieldValue = FormData[keyof FormD
|
|
|
261
256
|
/**
|
|
262
257
|
* @zh 指定在子节点触发`onChange`事件时如何处理值。(如果自定义了`trigger`属性,那么这里的参数就是对应的事件回调函数的参数类型)
|
|
263
258
|
* @en Specify how to handle the value when the child node triggers the `onChange` event. (If the `trigger` attribute is customized, then the parameter here is the parameter type of the corresponding event callback function)
|
|
264
|
-
* @version 2.23.0
|
|
265
259
|
*/
|
|
266
260
|
getValueFromEvent?: (...args: any[]) => FieldValue;
|
|
267
261
|
/**
|
|
@@ -279,10 +273,10 @@ export interface FormItemProps<FormData = any, FieldValue = FormData[keyof FormD
|
|
|
279
273
|
/**
|
|
280
274
|
* @zh
|
|
281
275
|
* 不渲染任何外部标签/样式,只进行字段绑定。**注意**: 设置该属性为true时,该字段若未通过校验,
|
|
282
|
-
* 错误信息将不会显示出来。可以传入对象,并设置 showErrorTip
|
|
276
|
+
* 错误信息将不会显示出来。可以传入对象,并设置 showErrorTip 为true,错误信息将会展示在上层 formItem 节点下。
|
|
283
277
|
* @en
|
|
284
278
|
* No external tags/styles are rendered, only binding field. **Notice**: When set to true, if the field verification failed,
|
|
285
|
-
* the error message will not be displayed. You can pass in an object and set showErrorTip to true
|
|
279
|
+
* the error message will not be displayed. You can pass in an object and set showErrorTip to true,
|
|
286
280
|
* The error message will be displayed under the upper formItem node
|
|
287
281
|
*/
|
|
288
282
|
noStyle?: boolean | {
|
|
@@ -299,7 +293,6 @@ export interface FormItemProps<FormData = any, FieldValue = FormData[keyof FormD
|
|
|
299
293
|
/**
|
|
300
294
|
* @zh 隐藏表单项. 表单字段值仍然会被获取
|
|
301
295
|
* @en hide the form item
|
|
302
|
-
* @version
|
|
303
296
|
*/
|
|
304
297
|
hidden?: boolean;
|
|
305
298
|
/**
|
|
@@ -330,13 +323,11 @@ export interface FormItemProps<FormData = any, FieldValue = FormData[keyof FormD
|
|
|
330
323
|
/**
|
|
331
324
|
* @zh 将Form内保存的当前控件对应的值进行一定的转换,再传递给控件。
|
|
332
325
|
* @en Convert the `value` of the FormItem to children;
|
|
333
|
-
* @version 2.23.0
|
|
334
326
|
*/
|
|
335
327
|
formatter?: (value: FieldValue | undefined) => any;
|
|
336
328
|
/**
|
|
337
329
|
* @zh 设置依赖字段。当依赖的字段值改变时,触发自身的校验。如果是想动态渲染某个表单控件/表单区域,使用 shouldUpdate
|
|
338
330
|
* @en the dependency fields. When the value of the dependent field changes, trigger its own validation.If you want to dynamically render a form control/form area, use shouldUpdate
|
|
339
|
-
* @version 2.40.0
|
|
340
331
|
*/
|
|
341
332
|
dependencies?: string[];
|
|
342
333
|
/**
|
|
@@ -363,7 +354,6 @@ export interface FormItemProps<FormData = any, FieldValue = FormData[keyof FormD
|
|
|
363
354
|
* @zh 是否在 required 的时候显示加重的红色星号,设置 position 可选择将星号置于 label 前/后
|
|
364
355
|
* @en Whether show red symbol when item is required,Set position props, you can choose to place the symbol before/after the label
|
|
365
356
|
* @defaultValue true
|
|
366
|
-
* @version `position` in 2.24.0
|
|
367
357
|
*/
|
|
368
358
|
requiredSymbol?: boolean | {
|
|
369
359
|
position: 'start' | 'end';
|
|
@@ -417,19 +407,16 @@ export interface FormListProps<SubFieldValue = any, SubFieldKey extends KeyType
|
|
|
417
407
|
/**
|
|
418
408
|
* @zh 初始值
|
|
419
409
|
* @en Default value
|
|
420
|
-
* @version 2.22.0
|
|
421
410
|
*/
|
|
422
411
|
initialValue?: SubFieldValue[];
|
|
423
412
|
/**
|
|
424
413
|
* @zh FormItemProps['noStyle']. `rules` 存在时默认为 `false`(需要渲染校验信息),否则默认为 `true`
|
|
425
414
|
* @en FormItemProps['noStyle'].Defaults to `false` when `rules` exists (requires rendering validation information), otherwise defaults to `true`
|
|
426
|
-
* @version 2.46.0
|
|
427
415
|
*/
|
|
428
416
|
noStyle?: FormItemProps['noStyle'];
|
|
429
417
|
/**
|
|
430
418
|
* @zh 受控模式下的验证规则,[RulesProps](#rules)
|
|
431
419
|
* @en Validation rules in controlled component, [RulesProps](#rules)
|
|
432
|
-
* @version 2.46.0
|
|
433
420
|
*/
|
|
434
421
|
rules?: RulesProps<SubFieldValue[]>[];
|
|
435
422
|
/**
|
|
@@ -502,7 +489,7 @@ export declare const VALIDATE_STATUS: {
|
|
|
502
489
|
validating: string;
|
|
503
490
|
};
|
|
504
491
|
/**
|
|
505
|
-
* @title Form.Provider
|
|
492
|
+
* @title Form.Provider
|
|
506
493
|
*/
|
|
507
494
|
export interface FormProviderProps {
|
|
508
495
|
/**
|
package/types/pc/form/util.d.ts
CHANGED
package/types/pc/grid/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import Col from './Col';
|
|
2
2
|
import OriginGrid from './Grid';
|
|
3
|
-
import
|
|
3
|
+
import Item from './Item';
|
|
4
4
|
import Row from './Row';
|
|
5
5
|
declare const Grid: typeof OriginGrid & {
|
|
6
6
|
Col: typeof Col;
|
|
7
7
|
Row: typeof Row;
|
|
8
|
-
Item: typeof
|
|
8
|
+
Item: typeof Item;
|
|
9
9
|
};
|
|
10
|
-
export { Col, Col as GridCol, GridItem, Row as GridRow, Row };
|
|
10
|
+
export { Col, Col as GridCol, Item as GridItem, Row as GridRow, Row };
|
|
11
11
|
export default Grid;
|
|
12
12
|
export type { ColProps, GridProps, ResponsiveValue, RowProps, } from './interface';
|
|
@@ -13,7 +13,6 @@ export interface RowProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNam
|
|
|
13
13
|
* @en
|
|
14
14
|
* Spacing between grids, could be a number or a object like { xs: 8, sm: 16, md: 24}.
|
|
15
15
|
* Or you can use array to make horizontal and vertical spacing work at the same time [horizontal, vertical]
|
|
16
|
-
* @version vertical gutter in 2.5.0
|
|
17
16
|
* @defaultValue 0
|
|
18
17
|
*/
|
|
19
18
|
gutter?: GridRowGutter | Array<GridRowGutter>;
|
|
@@ -60,13 +59,11 @@ export interface ColProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNam
|
|
|
60
59
|
/**
|
|
61
60
|
* @zh 对元素进行排序
|
|
62
61
|
* @en Raster order
|
|
63
|
-
* @version 2.20.0
|
|
64
62
|
*/
|
|
65
63
|
push?: number;
|
|
66
64
|
/**
|
|
67
65
|
* @zh 对元素进行排序
|
|
68
66
|
* @en Raster order
|
|
69
|
-
* @version 2.20.0
|
|
70
67
|
*/
|
|
71
68
|
pull?: number;
|
|
72
69
|
/**
|
|
@@ -114,7 +111,6 @@ export interface ColProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNam
|
|
|
114
111
|
/**
|
|
115
112
|
* @zh >= 2000px 响应式栅格
|
|
116
113
|
* @en `screen >= 2000px`
|
|
117
|
-
* @version 2.40.0
|
|
118
114
|
*/
|
|
119
115
|
xxxl?: number | {
|
|
120
116
|
[key: string]: any;
|
|
@@ -122,7 +118,6 @@ export interface ColProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNam
|
|
|
122
118
|
/**
|
|
123
119
|
* @zh 设置 flex 布局属性
|
|
124
120
|
* @en Set flex layout properties
|
|
125
|
-
* @version 2.26.0
|
|
126
121
|
*/
|
|
127
122
|
flex?: FlexType;
|
|
128
123
|
}
|
|
@@ -164,7 +159,7 @@ export interface GridProps extends Omit<HTMLAttributes<HTMLDivElement>, 'classNa
|
|
|
164
159
|
collapsedRows?: number;
|
|
165
160
|
}
|
|
166
161
|
/**
|
|
167
|
-
* @title
|
|
162
|
+
* @title Item
|
|
168
163
|
*/
|
|
169
164
|
export interface GridItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
170
165
|
style?: CSSProperties;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IconProps } from '
|
|
3
|
-
export interface IconfontOptions {
|
|
4
|
-
src?: string;
|
|
5
|
-
extraProps?: {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
2
|
+
import type { IconfontOptions, IconProps } from './interface';
|
|
9
3
|
declare function addFromIconFontCn(options?: IconfontOptions): React.FC<IconProps & React.RefAttributes<unknown>>;
|
|
10
4
|
export default addFromIconFontCn;
|
package/types/pc/icon/index.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import IconContext from '@unicom-cloud/icons/context';
|
|
2
2
|
import useIconProps from '@unicom-cloud/icons/useProps';
|
|
3
|
-
import React, { CSSProperties
|
|
3
|
+
import React, { CSSProperties } from 'react';
|
|
4
4
|
import addFromIconFontCn from './addFromIconFontCn';
|
|
5
|
-
|
|
6
|
-
style?: CSSProperties;
|
|
7
|
-
type?: string;
|
|
8
|
-
spin?: boolean;
|
|
9
|
-
className?: string | string[];
|
|
10
|
-
}
|
|
5
|
+
import type { IconProps } from './interface';
|
|
11
6
|
export interface CustomIconComponentProps {
|
|
12
7
|
style?: CSSProperties;
|
|
13
8
|
className?: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CSSProperties, SVGAttributes } from 'react';
|
|
2
|
+
export interface IconProps extends Omit<SVGAttributes<SVGElement>, 'className'> {
|
|
3
|
+
style?: CSSProperties;
|
|
4
|
+
type?: string;
|
|
5
|
+
spin?: boolean;
|
|
6
|
+
className?: string | string[];
|
|
7
|
+
}
|
|
8
|
+
export interface IconfontOptions {
|
|
9
|
+
src?: string;
|
|
10
|
+
extraProps?: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
className?: string;
|
|
5
|
-
prefix?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
onClick?: (e: any) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const IconHover: React.ForwardRefExoticComponent<HoverProps & {
|
|
2
|
+
import type { IconHoverProps } from './interface';
|
|
3
|
+
declare const IconHover: React.ForwardRefExoticComponent<IconHoverProps & {
|
|
10
4
|
children?: React.ReactNode | undefined;
|
|
11
5
|
} & React.RefAttributes<unknown>>;
|
|
12
6
|
export default IconHover;
|
|
@@ -9,5 +9,5 @@ interface ImageFooterProps {
|
|
|
9
9
|
prefixCls: string | undefined;
|
|
10
10
|
simple?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const ImageFooter: (props: ImageFooterProps) => import("react/jsx-
|
|
12
|
+
export declare const ImageFooter: (props: ImageFooterProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
13
|
export {};
|
|
@@ -7,5 +7,5 @@ interface ImagePreviewArrowProps {
|
|
|
7
7
|
onPrev?: () => void;
|
|
8
8
|
onNext?: () => void;
|
|
9
9
|
}
|
|
10
|
-
declare function ImagePreviewArrow(props: ImagePreviewArrowProps): import("react/jsx-
|
|
10
|
+
declare function ImagePreviewArrow(props: ImagePreviewArrowProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default ImagePreviewArrow;
|
|
@@ -6,5 +6,5 @@ interface TriggerForToolbarProps {
|
|
|
6
6
|
prefixCls: string | undefined;
|
|
7
7
|
popup: TriggerProps['popup'];
|
|
8
8
|
}
|
|
9
|
-
export declare const TriggerForToolbar: (props: PropsWithChildren<TriggerForToolbarProps>) => import("react/jsx-
|
|
9
|
+
export declare const TriggerForToolbar: (props: PropsWithChildren<TriggerForToolbarProps>) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -76,13 +76,11 @@ export interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'c
|
|
|
76
76
|
/**
|
|
77
77
|
* @zh 使用 `Image.PreviewGroup`包裹时的预览索引,一般不用指定,当多图预览顺序出现问题时,可手动指定当前 `image` 的预览顺序
|
|
78
78
|
* @en Use `Image.PreviewGroup` to wrap the preview index. Generally, you don't need to specify it. When there is a problem with the preview order of multiple images, you can manually specify the preview order of the current `image`
|
|
79
|
-
* @version 2.23.0
|
|
80
79
|
*/
|
|
81
80
|
index?: number;
|
|
82
81
|
/**
|
|
83
82
|
* @zh 开启懒加载 [Intersection_Observer](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)
|
|
84
83
|
* @en lazyload loading [Intersection_Observer](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)
|
|
85
|
-
* @version 2.47.0
|
|
86
84
|
*/
|
|
87
85
|
lazyload?: boolean | IntersectionObserverInit;
|
|
88
86
|
/**
|
|
@@ -110,13 +108,11 @@ export interface ImagePreviewProps {
|
|
|
110
108
|
/**
|
|
111
109
|
* @zh 图片属性,透传至预览弹窗中的 `img` 标签上
|
|
112
110
|
* @en Image props, passthrough to the `img` tag in the preview modal
|
|
113
|
-
* @version 2.39.0
|
|
114
111
|
*/
|
|
115
112
|
imgAttributes?: Omit<ImgHTMLAttributes<HTMLImageElement>, 'src'>;
|
|
116
113
|
/**
|
|
117
114
|
* @zh 自定义图片预览区域的额外节点
|
|
118
115
|
* @en Additional nodes add to the image preview area
|
|
119
|
-
* @version 2.53.0
|
|
120
116
|
*/
|
|
121
117
|
extra?: ReactNode;
|
|
122
118
|
/**
|
|
@@ -145,7 +141,6 @@ export interface ImagePreviewProps {
|
|
|
145
141
|
* @zh 是否显示关闭按钮
|
|
146
142
|
* @en Whether display close button
|
|
147
143
|
* @defaultValue true
|
|
148
|
-
* @version 2.16.0
|
|
149
144
|
*/
|
|
150
145
|
closable?: boolean;
|
|
151
146
|
/**
|
|
@@ -163,7 +158,6 @@ export interface ImagePreviewProps {
|
|
|
163
158
|
* @zh 在预览缩放时会使用当前数组中的缩放百分比。若不包含 `100%`,则会自动添加在最相邻的位置。
|
|
164
159
|
* @en The zoom percentage in the current array is used when previewing zooms. If `100%` is not included, the `100%` scale will be automatically added in the most adjacent position.
|
|
165
160
|
* @defaultValue [25, 33, 50, 67, 75, 80, 90, 100, 110, 125, 150, 175, 200, 250, 300, 400, 500];
|
|
166
|
-
* @version 2.30.0
|
|
167
161
|
*/
|
|
168
162
|
scales?: number[];
|
|
169
163
|
/**
|
|
@@ -175,35 +169,29 @@ export interface ImagePreviewProps {
|
|
|
175
169
|
* @zh 弹出层挂载的节点
|
|
176
170
|
* @en Get popup's parent node
|
|
177
171
|
* @defaultValue () => document.body
|
|
178
|
-
* @version 2.16.0
|
|
179
172
|
*/
|
|
180
173
|
getPopupContainer?: () => HTMLElement;
|
|
181
174
|
/**
|
|
182
175
|
* @zh 按 `ESC` 键关闭预览
|
|
183
176
|
* @en Whether to enable pressing `ESC` to close the preview.
|
|
184
177
|
* @defaultValue true
|
|
185
|
-
* @version 2.24.0
|
|
186
178
|
*/
|
|
187
179
|
escToExit?: boolean;
|
|
188
180
|
/**
|
|
189
181
|
* @zh 自定义 IMG 元素的渲染
|
|
190
182
|
* @en Rendering of custom IMG elements
|
|
191
|
-
* @version 2.58.0
|
|
192
183
|
*/
|
|
193
184
|
imageRender?: (originalNode: ReactElement) => ReactNode;
|
|
194
185
|
/**
|
|
195
186
|
* @zh 开启位置修正
|
|
196
187
|
* @en Enable position correction
|
|
197
188
|
* @defaultValue true
|
|
198
|
-
* @version 2.61.0
|
|
199
189
|
*/
|
|
200
190
|
resetTranslate?: boolean;
|
|
201
191
|
}
|
|
202
192
|
export type PartialImagePreviewProps = Partial<ImagePreviewProps>;
|
|
203
193
|
/**
|
|
204
194
|
* @title Image.PreviewGroup
|
|
205
|
-
* @zh 从 `v2.14.0` 开始支持
|
|
206
|
-
* @en Start from `v2.14.0`
|
|
207
195
|
*/
|
|
208
196
|
export interface ImagePreviewGroupProps extends Omit<PartialImagePreviewProps, 'src'> {
|
|
209
197
|
/**
|
|
@@ -229,7 +217,6 @@ export interface ImagePreviewGroupProps extends Omit<PartialImagePreviewProps, '
|
|
|
229
217
|
/**
|
|
230
218
|
* @zh 是否渲染图片列表,用于提前加载图片
|
|
231
219
|
* @en Whether to render the image list for loading images in advance
|
|
232
|
-
* @version 2.58.0
|
|
233
220
|
*/
|
|
234
221
|
forceRender?: boolean;
|
|
235
222
|
/**
|
package/types/pc/index.d.ts
CHANGED
|
@@ -1,102 +1,112 @@
|
|
|
1
1
|
export * from './hooks';
|
|
2
2
|
export * from './utils';
|
|
3
3
|
export { default as Affix } from './affix';
|
|
4
|
+
export type { AffixProps } from './affix/interface';
|
|
4
5
|
export { default as Alert } from './alert';
|
|
5
|
-
export {
|
|
6
|
+
export type { AlertProps } from './alert/interface';
|
|
7
|
+
export { default as Anchor, AnchorLink, findAnchorLinkNode } from './anchor';
|
|
8
|
+
export type { AnchorLinkProps, AnchorProps } from './anchor/interface';
|
|
6
9
|
export { default as AutoComplete, AutoCompleteOptGroup, AutoCompleteOption, } from './auto-complete';
|
|
10
|
+
export type { AutoCompleteProps } from './auto-complete/interface';
|
|
7
11
|
export { default as Avatar, AvatarGroup } from './avatar';
|
|
12
|
+
export type { AvatarGroupProps, AvatarProps } from './avatar/interface';
|
|
8
13
|
export { default as BackTop } from './back-top';
|
|
14
|
+
export type { BackTopProps } from './back-top/interface';
|
|
9
15
|
export { default as Badge, BADGE_COLORS, BADGE_STATUS, BadgeCount, } from './badge';
|
|
16
|
+
export type { BadgeProps } from './badge/interface';
|
|
10
17
|
export { default as Breadcrumb, BreadcrumbItem } from './breadcrumb';
|
|
18
|
+
export type { BreadCrumbItemProps, BreadcrumbProps, } from './breadcrumb/interface';
|
|
11
19
|
export { default as Button, BUTTON_STATUS, BUTTON_TYPE, ButtonGroup, } from './button';
|
|
20
|
+
export type { ButtonGroupProps, ButtonProps } from './button/interface';
|
|
12
21
|
export { default as Calendar, CalendarMonth, CalendarYear } from './calendar';
|
|
22
|
+
export type { CalendarProps } from './calendar/interface';
|
|
13
23
|
export { default as Card, CardGrid, CardMeta } from './card';
|
|
24
|
+
export type { CardGridProps, CardMetaProps, CardProps } from './card/interface';
|
|
14
25
|
export { default as Carousel } from './carousel';
|
|
26
|
+
export type { CarouselProps } from './carousel/interface';
|
|
15
27
|
export { default as Cascader } from './cascader';
|
|
28
|
+
export type { CascaderProps } from './cascader/interface';
|
|
16
29
|
export { default as Checkbox, CheckboxGroup, CheckboxGroupBlock, useCheckbox, } from './checkbox';
|
|
30
|
+
export type { CheckboxGroupProps, CheckboxProps } from './checkbox/interface';
|
|
17
31
|
export { default as Collapse, CollapseItem } from './collapse';
|
|
32
|
+
export type { CollapseItemProps, CollapseProps } from './collapse/interface';
|
|
33
|
+
export { default as ColorPicker, ColorPickerPanel } from './color-picker';
|
|
34
|
+
export type { ColorPickerProps } from './color-picker/interface';
|
|
18
35
|
export { default as Comment } from './comment';
|
|
36
|
+
export type { CommentProps } from './comment/interface';
|
|
19
37
|
export { ConfigConsumer, ConfigContext, default as ConfigProvider, ConfigProviderDefaultProps, } from './config-provider';
|
|
38
|
+
export type { ConfigProviderProps } from './config-provider/interface';
|
|
20
39
|
export { default as Copy } from './copy';
|
|
40
|
+
export type { CopyProps } from './copy/interface';
|
|
21
41
|
export { default as DatePicker, DatePickerMonth, DatePickerQuarter, DatePickerRange, DatePickerWeek, DatePickerYear, } from './date-picker';
|
|
42
|
+
export type { DatePickerProps, MonthPickerProps, QuarterPickerProps, RangePickerProps, WeekPickerProps, YearPickerProps, } from './date-picker/interface';
|
|
22
43
|
export { default as Descriptions } from './descriptions';
|
|
44
|
+
export type { DescriptionsProps } from './descriptions/interface';
|
|
23
45
|
export { default as Details } from './details';
|
|
46
|
+
export type { DetailsProps } from './details/interface';
|
|
24
47
|
export { default as Development } from './development';
|
|
25
|
-
export {
|
|
48
|
+
export type { DevelopmentProps } from './development/interface';
|
|
49
|
+
export { default as Divider, DividerVertical } from './divider';
|
|
50
|
+
export type { DividerProps } from './divider/interface';
|
|
26
51
|
export { default as Drawer } from './drawer';
|
|
52
|
+
export type { DrawerProps } from './drawer/interface';
|
|
27
53
|
export { default as Dropdown, DropdownButton } from './dropdown';
|
|
54
|
+
export type { DropdownButtonProps, DropdownProps } from './dropdown/interface';
|
|
28
55
|
export { default as Empty } from './empty';
|
|
56
|
+
export type { EmptyProps } from './empty/interface';
|
|
57
|
+
export { default as Flex, FlexVertical } from './flex';
|
|
58
|
+
export type { FlexProps } from './flex/interface';
|
|
29
59
|
export { default as Form, FormControl, FormItem, FormList, FormProvider, useForm, useFormContext, useFormState, useFormWatch, } from './form';
|
|
60
|
+
export type { FormInstance, FormItemProps, FormListProps, FormProps, RulesProps, } from './form/interface';
|
|
30
61
|
export { Col, default as Grid, GridCol, GridItem, GridRow, Row } from './grid';
|
|
62
|
+
export type { ColProps, GridItemProps, GridProps, RowProps, } from './grid/interface';
|
|
31
63
|
export { addFromIconFontCn, default as Icon, IconContext, useIconProps, } from './icon';
|
|
64
|
+
export { default as IconHover } from './icon-hover';
|
|
65
|
+
export type { IconHoverProps } from './icon-hover/interface';
|
|
66
|
+
export type { IconProps } from './icon/interface';
|
|
32
67
|
export { default as IconFile } from './icons/file';
|
|
68
|
+
export type { IconFileProps } from './icons/file/interface';
|
|
33
69
|
export { default as Image, ImagePreview, ImagePreviewGroup } from './image';
|
|
70
|
+
export type { ImagePreviewActionProps, ImagePreviewGroupProps, ImagePreviewProps, ImageProps, } from './image/interface';
|
|
34
71
|
export { default as Input, InputButton, InputGroup, InputPassword, InputSearch, InputTextArea, TextArea, } from './input';
|
|
35
72
|
export { default as InputNumber } from './input-number';
|
|
36
|
-
export { default as InputTag } from './input-tag';
|
|
37
|
-
export { default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, } from './layout';
|
|
38
|
-
export { default as Link } from './link';
|
|
39
|
-
export { default as List, ListItem } from './list';
|
|
40
|
-
export { default as Mentions } from './mentions';
|
|
41
|
-
export { default as Menu, MenuItem, MenuItemGroup, MenuSubMenu, SubMenu, } from './menu';
|
|
42
|
-
export { default as Message, useMessage } from './message';
|
|
43
|
-
export { default as Modal } from './modal';
|
|
44
|
-
export { default as Notification, useNotification } from './notification';
|
|
45
|
-
export { default as PageHeader } from './page-header';
|
|
46
|
-
export { default as Pagination } from './pagination';
|
|
47
|
-
export { default as Popconfirm } from './popconfirm';
|
|
48
|
-
export { default as Popover } from './popover';
|
|
49
|
-
export { default as Portal } from './portal';
|
|
50
|
-
export { default as Progress } from './progress';
|
|
51
|
-
export type { AffixProps } from './affix/interface';
|
|
52
|
-
export type { AlertProps } from './alert/interface';
|
|
53
|
-
export type { AnchorLinkProps, AnchorProps } from './anchor/interface';
|
|
54
|
-
export type { AutoCompleteProps } from './auto-complete/interface';
|
|
55
|
-
export type { AvatarGroupProps, AvatarProps } from './avatar/interface';
|
|
56
|
-
export type { BackTopProps } from './back-top/interface';
|
|
57
|
-
export type { BadgeProps } from './badge/interface';
|
|
58
|
-
export type { BreadCrumbItemProps, BreadcrumbProps, } from './breadcrumb/interface';
|
|
59
|
-
export type { ButtonGroupProps, ButtonProps } from './button/interface';
|
|
60
|
-
export type { CalendarProps } from './calendar/interface';
|
|
61
|
-
export type { CardGridProps, CardMetaProps, CardProps } from './card/interface';
|
|
62
|
-
export type { CarouselProps } from './carousel/interface';
|
|
63
|
-
export type { CascaderProps } from './cascader/interface';
|
|
64
|
-
export type { CheckboxGroupProps, CheckboxProps } from './checkbox/interface';
|
|
65
|
-
export type { CollapseItemProps, CollapseProps } from './collapse/interface';
|
|
66
|
-
export { default as ColorPicker, ColorPickerPanel } from './color-picker';
|
|
67
|
-
export type { ColorPickerProps } from './color-picker/interface';
|
|
68
|
-
export type { CommentProps } from './comment/interface';
|
|
69
|
-
export type { ConfigProviderProps } from './config-provider/interface';
|
|
70
|
-
export type { DatePickerProps, MonthPickerProps, QuarterPickerProps, RangePickerProps, WeekPickerProps, YearPickerProps, } from './date-picker/interface';
|
|
71
|
-
export type { DescriptionsProps } from './descriptions/interface';
|
|
72
|
-
export type { DividerProps } from './divider/interface';
|
|
73
|
-
export type { DrawerProps } from './drawer/interface';
|
|
74
|
-
export type { DropdownButtonProps, DropdownProps } from './dropdown/interface';
|
|
75
|
-
export type { EmptyProps } from './empty/interface';
|
|
76
|
-
export type { FormInstance, FormItemProps, FormListProps, FormProps, RulesProps, } from './form/interface';
|
|
77
|
-
export type { ColProps, GridItemProps, GridProps, RowProps, } from './grid/interface';
|
|
78
|
-
export { default as IconHover } from './icon-hover';
|
|
79
|
-
export type { ImagePreviewActionProps, ImagePreviewGroupProps, ImagePreviewProps, ImageProps, } from './image/interface';
|
|
80
73
|
export type { InputNumberProps } from './input-number/interface';
|
|
74
|
+
export { default as InputTag } from './input-tag';
|
|
81
75
|
export type { InputTagProps } from './input-tag/interface';
|
|
82
76
|
export type { InputProps, TextAreaProps } from './input/interface';
|
|
77
|
+
export { default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, } from './layout';
|
|
83
78
|
export type { ContentProps, FooterProps, HeaderProps, LayoutProps, SiderProps, } from './layout/interface';
|
|
79
|
+
export { default as Link } from './link';
|
|
84
80
|
export type { LinkProps } from './link/interface';
|
|
85
81
|
export { default as LiquidFill } from './liquid-fill';
|
|
86
82
|
export type { LiquidFillProps } from './liquid-fill';
|
|
83
|
+
export { default as List, ListItem } from './list';
|
|
87
84
|
export type { ListItemMetaProps, ListItemProps, ListProps, } from './list/interface';
|
|
88
85
|
export { default as Loading } from './loading';
|
|
86
|
+
export type { LoadingProps } from './loading/interface';
|
|
89
87
|
export { default as Marquee } from './marquee';
|
|
90
88
|
export type { MarqueeProps } from './marquee';
|
|
89
|
+
export { default as Mentions } from './mentions';
|
|
91
90
|
export type { MentionsProps } from './mentions/interface';
|
|
91
|
+
export { default as Menu, MenuItem, MenuItemGroup, MenuSubMenu, SubMenu, } from './menu';
|
|
92
92
|
export type { MenuItemGroupProps, MenuItemProps, MenuProps, MenuSubMenuProps, } from './menu/interface';
|
|
93
|
+
export { default as Message, useMessage } from './message';
|
|
93
94
|
export type { MessageHookReturnType, MessageProps } from './message/interface';
|
|
95
|
+
export { default as Modal } from './modal';
|
|
94
96
|
export type { ModalHookReturnType, ModalProps } from './modal/interface';
|
|
97
|
+
export { default as Notification, useNotification } from './notification';
|
|
95
98
|
export type { NotificationHookReturnType, NotificationProps, } from './notification/interface';
|
|
99
|
+
export { default as PageHeader } from './page-header';
|
|
96
100
|
export type { PageHeaderProps } from './page-header/interface';
|
|
101
|
+
export { default as Pagination } from './pagination';
|
|
97
102
|
export type { PaginationProps } from './pagination/interface';
|
|
103
|
+
export { default as Popconfirm } from './popconfirm';
|
|
98
104
|
export type { PopconfirmProps } from './popconfirm/interface';
|
|
105
|
+
export { default as Popover } from './popover';
|
|
99
106
|
export type { PopoverProps } from './popover/interface';
|
|
107
|
+
export { default as Portal } from './portal';
|
|
108
|
+
export type { PortalProps, PortalWrapperProps } from './portal/interface';
|
|
109
|
+
export { default as Progress } from './progress';
|
|
100
110
|
export type { ProgressProps } from './progress/interface';
|
|
101
111
|
export { default as QRCode } from './qr-code';
|
|
102
112
|
export type { QRCodeProps } from './qr-code';
|
|
@@ -116,25 +126,27 @@ export { default as Skeleton } from './skeleton';
|
|
|
116
126
|
export type { SkeletonImageProps, SkeletonProps, SkeletonTextProps, } from './skeleton/interface';
|
|
117
127
|
export { default as Slider } from './slider';
|
|
118
128
|
export type { SliderProps } from './slider/interface';
|
|
119
|
-
export { default as Space, default as Space_,
|
|
120
|
-
SpaceVertical, SpaceVertical as SpaceVertical_, } from './space';
|
|
129
|
+
export { default as Space, default as Space_, SpaceVertical, } from './space';
|
|
121
130
|
export type { SpaceGap, SpaceProps } from './space/interface';
|
|
122
131
|
export { default as SpeechSynthesis } from './speech-synthesis';
|
|
132
|
+
export type { SpeechSynthesisProps } from './speech-synthesis/interface';
|
|
123
133
|
export { default as Spin } from './spin';
|
|
124
134
|
export type { SpinProps } from './spin/interface';
|
|
135
|
+
export { default as Splitter, SplitterPanel } from './splitter';
|
|
136
|
+
export type { SplitterProps } from './splitter/interface';
|
|
125
137
|
export { default as Statistic, StatisticCountdown } from './statistic';
|
|
126
138
|
export type { CountdownProps, StatisticProps } from './statistic/interface';
|
|
127
139
|
export { default as Steps, StepsItem, StepsStep } from './steps';
|
|
128
140
|
export type { StepProps, StepsProps } from './steps/interface';
|
|
129
141
|
export { default as SuspenseFallbackTest } from './suspense-fallback-test';
|
|
142
|
+
export type { SuspenseFallbackTestProps } from './suspense-fallback-test/interface';
|
|
130
143
|
export { default as Switch } from './switch';
|
|
131
144
|
export type { SwitchProps } from './switch/interface';
|
|
132
145
|
export { default as Table, tableDefaultComponent, TableSummary, TableSummaryCell, TableSummaryRow, useTableColumns, useTableComponent, useTableExpand, useTableRowSelection, useTableSorter, useTableStickyClassNames, useTableStickyOffsets, useTableThResizable, } from './table';
|
|
133
146
|
export type { ColumnProps as TableColumnProps, TableProps, RowSelectionProps as TableRowSelectionProps, } from './table/interface';
|
|
134
|
-
export type { TableInstance } from './table/Table';
|
|
135
147
|
export { TabPane, default as Tabs, TabsTabPane } from './tabs';
|
|
136
148
|
export type { TabsProps } from './tabs/interface';
|
|
137
|
-
export { default as Tag } from './tag';
|
|
149
|
+
export { default as Tag, TAG_COLORS } from './tag';
|
|
138
150
|
export type { TagProps } from './tag/interface';
|
|
139
151
|
export { default as TimePicker, TimePickerRange } from './time-picker';
|
|
140
152
|
export type { TimePickerProps, RangePickerProps as TimeRangePickerProps, } from './time-picker/interface';
|
|
@@ -160,5 +172,6 @@ export { default as VerificationCode } from './verification-code';
|
|
|
160
172
|
export type { VerificationCodeProps } from './verification-code/interface';
|
|
161
173
|
export { VERSION, VERSION_BUILD_DATE, VERSION_BUILD_TIME } from './version';
|
|
162
174
|
export { default as VirtualList } from './virtual-list';
|
|
175
|
+
export type { VirtualListProps } from './virtual-list/interface';
|
|
163
176
|
export { default as Watermark } from './watermark';
|
|
164
177
|
export type { WatermarkProps } from './watermark/interface';
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextAreaProps } from './interface';
|
|
2
|
+
import { TextAreaProps, type RefInputType } from './interface';
|
|
3
3
|
export type RefTextAreaType = {
|
|
4
|
-
/** 使输入框失去焦点 */
|
|
5
|
-
blur: () => void;
|
|
6
|
-
/** 使输入框获取焦点 */
|
|
7
|
-
focus: () => void;
|
|
8
4
|
/** textarea dom元素 */
|
|
9
5
|
dom: HTMLTextAreaElement;
|
|
10
|
-
};
|
|
6
|
+
} & RefInputType;
|
|
11
7
|
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<RefTextAreaType>>;
|
|
12
8
|
export default TextArea;
|