@unicom-cloud/ui 0.8.82 → 0.8.84
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/Affix.js +1 -1
- package/Alert.js +1 -1
- package/AutoComplete.js +2 -2
- package/BackTop.js +2 -2
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +4 -4
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +2 -2
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +1 -1
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Development.js +8 -0
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +2 -4
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +9 -9
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/List.js +2 -2
- package/Mentions.js +2 -2
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/Select.js +1 -1
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +2 -44
- package/Spin.js +1 -1
- package/Statistic.js +2 -2
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +2 -2
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/Typography.js +1 -1
- package/affix/index.js +1 -1
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/anchor/util.js +1 -1
- package/auto-complete/index.js +2 -2
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +9 -9
- package/badge/index.js +1 -1
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/Month.js +2 -2
- package/calendar/Year.js +11 -11
- package/calendar/index.js +4 -4
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +2 -2
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/{dKvAiKxr.js → B1kymbJZ.js} +2 -2
- package/chunk/B44Hj5ad.js +697 -0
- package/chunk/B6r8jPCd.js +6 -0
- package/chunk/{BZ9g7J4R.js → BC2OXILt.js} +1 -1
- package/chunk/{DfrB26fI.js → BJjotfW6.js} +1 -1
- package/chunk/{uKZyjtff.js → BNevupAU.js} +4 -5
- package/chunk/BRPQJFSI.js +649 -0
- package/chunk/{D0338Pbq.js → BZJwzdhZ.js} +1 -1
- package/chunk/C7bohPVD.js +185 -0
- package/chunk/{w221i0nK.js → DO3k0z6J.js} +2803 -2791
- package/chunk/Doi4-DdV.js +1472 -0
- package/chunk/{CQI1gsQs.js → DuWBv5j3.js} +1 -1
- package/chunk/DzekwbB4.js +53 -0
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +4 -4
- package/color-picker/InputRgb.js +3 -3
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +2 -2
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +6 -5
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +1 -1
- package/date-picker/Picker.js +2 -2
- package/date-picker/RangePicker.js +3 -3
- package/date-picker/index.js +1 -1
- package/date-picker/util.js +1 -1
- package/descriptions/index.js +1 -1
- package/development/index.js +42 -0
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +153 -152
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +2 -4
- package/form/Form.js +1 -1
- package/form/FormItem.js +1 -1
- package/form/context.js +1 -1
- package/grid/Col.js +1 -1
- package/grid/Row.js +1 -1
- package/grid/grid-item.js +1 -1
- package/grid/grid.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/image/Image.js +2 -2
- package/image/ImagePreview.js +2 -2
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +447 -442
- package/input/Button.js +11 -0
- package/input/Group.js +1 -1
- package/input/Input.js +456 -400
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input/index.js +12 -12
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +2 -2
- package/mentions/index.js +2 -2
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +1 -1
- package/notice/index.js +1 -1
- package/notification/index.js +1 -1
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +1 -1
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +4 -4
- package/pagination/PageOption.js +2 -2
- package/pagination/Pagination.js +2 -2
- package/pagination/index.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/index.js +1 -1
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/select/Option.js +1 -1
- package/select/Select.js +2 -2
- package/select/index.js +2 -2
- package/select/util.js +1 -1
- package/select-view/Core.js +77 -77
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/index.js +59 -59
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +41 -83
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/statistic/Countdown.js +2 -2
- package/statistic/index.js +18 -18
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +3 -3
- package/table/index.js +1 -1
- package/tabs/Tab.js +2 -2
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +92 -90
- package/time-picker/RangePicker.js +1 -1
- package/time-picker/TimePicker.js +2 -2
- package/time-picker/util.js +6 -6
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +1 -1
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +2 -2
- package/tree/Animation.js +2 -2
- package/tree/Node.js +2 -2
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree/util.js +34 -34
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +2 -2
- package/tree-select/index.js +2 -2
- package/trigger/index.js +1 -1
- package/types/common/assets/hourglass.d.ts +2 -0
- package/types/common/development/index.d.ts +2 -0
- package/types/common/empty/index.d.ts +4 -0
- package/types/common/empty/interface.d.ts +24 -0
- package/types/common/higher-order/with-speech-synthesis/index.d.ts +2 -0
- package/types/common/hooks/useComputedState.d.ts +4 -0
- package/types/common/hooks/useCreate.d.ts +2 -0
- package/types/common/hooks/useForceUpdate.d.ts +16 -0
- package/types/common/hooks/useId.d.ts +6 -0
- package/types/common/hooks/useInView.d.ts +11 -0
- package/types/common/hooks/useIntersectionObserver.d.ts +7 -0
- package/types/common/hooks/useInterval.d.ts +2 -0
- package/types/common/hooks/useIsFirstRender.d.ts +2 -0
- package/types/common/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/types/common/hooks/useKeyboardEvent.d.ts +8 -0
- package/types/common/hooks/useListenResize.d.ts +18 -0
- package/types/common/hooks/useMedia.d.ts +2 -0
- package/types/common/hooks/useMergeProps.d.ts +5 -0
- package/types/common/hooks/useMergeValue.d.ts +6 -0
- package/types/common/hooks/useOnlineStatus.d.ts +2 -0
- package/types/common/hooks/useOverflowHidden.d.ts +5 -0
- package/types/common/hooks/useOverrideRef.d.ts +6 -0
- package/types/common/hooks/usePersistCallback.d.ts +2 -0
- package/types/common/hooks/usePrefersColorSchemeDark.d.ts +2 -0
- package/types/common/hooks/usePrevious.d.ts +3 -0
- package/types/common/hooks/useRefs.d.ts +2 -0
- package/types/common/hooks/useResizeObserver.d.ts +6 -0
- package/types/common/hooks/useStateCallback.d.ts +5 -0
- package/types/common/hooks/useStateWithPromise.d.ts +2 -0
- package/types/common/hooks/useUpdateEffect.d.ts +19 -0
- package/types/common/hooks/useWatch.d.ts +3 -0
- package/types/common/hooks/useWindowSize.d.ts +18 -0
- package/types/common/utils/PqbCSSTransition.d.ts +4 -0
- package/types/common/utils/caseName.d.ts +1 -0
- package/types/common/utils/className.d.ts +1 -0
- package/types/common/utils/constant.d.ts +2 -0
- package/types/{utils → common/utils}/copy.d.ts +1 -1
- package/types/common/utils/dayjs.d.ts +22 -0
- package/types/common/utils/dom.d.ts +12 -0
- package/types/common/utils/fileToURL.d.ts +1 -0
- package/types/common/utils/fillNBSP.d.ts +3 -0
- package/types/common/utils/getHighlightText.d.ts +7 -0
- package/types/common/utils/getHotkeyHandler.d.ts +18 -0
- package/types/common/utils/getStringLength.d.ts +3 -0
- package/types/common/utils/include.d.ts +3 -0
- package/types/common/utils/is.d.ts +17 -0
- package/types/common/utils/lodash.d.ts +17 -0
- package/types/common/utils/mergeProps.d.ts +3 -0
- package/types/common/utils/mergedToString.d.ts +4 -0
- package/types/common/utils/omit.d.ts +3 -0
- package/types/common/utils/pad.d.ts +2 -0
- package/types/common/utils/pick.d.ts +6 -0
- package/types/common/utils/react19Adapter.d.ts +1 -0
- package/types/common/utils/reactDOM.d.ts +14 -0
- package/types/common/utils/resizeObserverEffect.d.ts +2 -0
- package/types/common/utils/saveAs.d.ts +1 -0
- package/types/common/utils/screenfull.d.ts +1 -0
- package/types/common/utils/scrollIntoView.d.ts +4 -0
- package/types/common/utils/setTheme.d.ts +2 -0
- package/types/common/utils/style.d.ts +3 -0
- package/types/common/utils/throttleByRaf.d.ts +6 -0
- package/types/common/utils/warning.d.ts +3 -0
- package/types/pc/affix/interface.d.ts +52 -0
- package/types/pc/alert/interface.d.ts +66 -0
- package/types/pc/anchor/interface.d.ts +105 -0
- package/types/{anchor → pc/anchor}/util.d.ts +1 -1
- package/types/pc/auto-complete/interface.d.ts +127 -0
- package/types/pc/avatar/interface.d.ts +95 -0
- package/types/pc/back-top/interface.d.ts +42 -0
- package/types/pc/badge/interface.d.ts +66 -0
- package/types/pc/breadcrumb/interface.d.ts +78 -0
- package/types/{button → pc/button}/index.d.ts +2 -2
- package/types/pc/button/interface.d.ts +115 -0
- package/types/pc/calendar/hook/useCellClassName.d.ts +2 -0
- package/types/pc/calendar/interface.d.ts +122 -0
- package/types/pc/card/interface.d.ts +99 -0
- package/types/pc/carousel/interface.d.ts +144 -0
- package/types/{cascader → pc/cascader}/base/node.d.ts +30 -0
- package/types/{cascader → pc/cascader}/base/store.d.ts +17 -0
- package/types/pc/cascader/interface.d.ts +308 -0
- package/types/pc/checkbox/interface.d.ts +102 -0
- package/types/{checkbox → pc/checkbox}/useCheckbox.d.ts +9 -0
- package/types/pc/collapse/interface.d.ts +111 -0
- package/types/{color-picker → pc/color-picker}/hooks/useColorPicker.d.ts +2 -2
- package/types/pc/color-picker/interface.d.ts +149 -0
- package/types/pc/comment/interface.d.ts +41 -0
- package/types/{config-provider → pc/config-provider}/interface.d.ts +71 -0
- package/types/pc/date-picker/RangePicker.d.ts +3 -0
- package/types/pc/date-picker/hook/useCellClassName.d.ts +2 -0
- package/types/pc/date-picker/interface.d.ts +518 -0
- package/types/pc/descriptions/interface.d.ts +79 -0
- package/types/pc/development/index.d.ts +2 -0
- package/types/pc/divider/interface.d.ts +21 -0
- package/types/{draggable → pc/draggable}/interface.d.ts +2 -0
- package/types/pc/drawer/interface.d.ts +181 -0
- package/types/pc/dropdown/interface.d.ts +110 -0
- package/types/pc/empty/index.d.ts +4 -0
- package/types/pc/empty/interface.d.ts +8 -0
- package/types/{form → pc/form}/Control.d.ts +8 -0
- package/types/{form → pc/form}/hook/useContext.d.ts +3 -0
- package/types/pc/form/interface.d.ts +544 -0
- package/types/{form → pc/form}/store.d.ts +10 -0
- package/types/pc/grid/interface.d.ts +239 -0
- package/types/{hooks → pc/hooks}/use-verification-code/interface.d.ts +41 -0
- package/types/pc/hooks/use-watermark/interface.d.ts +81 -0
- package/types/pc/hooks/useComputedState.d.ts +1 -0
- package/types/pc/hooks/useCreate.d.ts +1 -0
- package/types/pc/hooks/useForceUpdate.d.ts +1 -0
- package/types/pc/hooks/useId.d.ts +1 -0
- package/types/pc/hooks/useInView.d.ts +1 -0
- package/types/pc/hooks/useIntersectionObserver.d.ts +1 -0
- package/types/pc/hooks/useInterval.d.ts +1 -0
- package/types/pc/hooks/useIsFirstRender.d.ts +1 -0
- package/types/pc/hooks/useIsomorphicLayoutEffect.d.ts +1 -0
- package/types/pc/hooks/useKeyboardEvent.d.ts +1 -0
- package/types/pc/hooks/useListenResize.d.ts +1 -0
- package/types/pc/hooks/useMedia.d.ts +1 -0
- package/types/pc/hooks/useMergeProps.d.ts +2 -0
- package/types/pc/hooks/useMergeValue.d.ts +1 -0
- package/types/pc/hooks/useOnlineStatus.d.ts +1 -0
- package/types/pc/hooks/useOverflowHidden.d.ts +1 -0
- package/types/pc/hooks/useOverrideRef.d.ts +1 -0
- package/types/pc/hooks/usePersistCallback.d.ts +1 -0
- package/types/pc/hooks/usePrefersColorSchemeDark.d.ts +1 -0
- package/types/pc/hooks/usePrevious.d.ts +1 -0
- package/types/pc/hooks/useRefs.d.ts +1 -0
- package/types/pc/hooks/useResizeObserver.d.ts +1 -0
- package/types/pc/hooks/useStateCallback.d.ts +1 -0
- package/types/pc/hooks/useStateWithPromise.d.ts +1 -0
- package/types/pc/hooks/useUpdateEffect.d.ts +1 -0
- package/types/pc/hooks/useWatch.d.ts +1 -0
- package/types/pc/hooks/useWindowSize.d.ts +1 -0
- package/types/pc/image/interface.d.ts +275 -0
- package/types/{index.d.ts → pc/index.d.ts} +2 -1
- package/types/pc/input/Button.d.ts +5 -0
- package/types/{input → pc/input}/Input.d.ts +9 -7
- package/types/{input → pc/input}/Textarea.d.ts +3 -0
- package/types/{input → pc/input}/index.d.ts +2 -2
- package/types/pc/input/interface.d.ts +344 -0
- package/types/{input-number → pc/input-number}/decimal.d.ts +5 -0
- package/types/pc/input-number/interface.d.ts +141 -0
- package/types/{input-number → pc/input-number}/util.d.ts +15 -0
- package/types/pc/input-tag/interface.d.ts +215 -0
- package/types/pc/layout/interface.d.ts +121 -0
- package/types/pc/link/interface.d.ts +30 -0
- package/types/pc/list/interface.d.ts +192 -0
- package/types/pc/mentions/interface.d.ts +92 -0
- package/types/{menu → pc/menu}/context.d.ts +1 -1
- package/types/pc/menu/interface.d.ts +233 -0
- package/types/pc/message/interface.d.ts +84 -0
- package/types/pc/modal/interface.d.ts +186 -0
- package/types/pc/notification/interface.d.ts +78 -0
- package/types/pc/page-header/interface.d.ts +49 -0
- package/types/{pagination → pc/pagination}/PageItem.d.ts +11 -0
- package/types/pc/pagination/interface.d.ts +134 -0
- package/types/pc/popconfirm/interface.d.ts +114 -0
- package/types/{popover → pc/popover}/interface.d.ts +12 -0
- package/types/{portal → pc/portal}/Portal.d.ts +1 -0
- package/types/{portal → pc/portal}/index.d.ts +1 -0
- package/types/pc/progress/interface.d.ts +92 -0
- package/types/pc/radio/interface.d.ts +103 -0
- package/types/pc/rate/interface.d.ts +70 -0
- package/types/{resize-box → pc/resize-box}/ResizeTrigger.d.ts +6 -0
- package/types/pc/resize-box/interface.d.ts +264 -0
- package/types/pc/result/interface.d.ts +35 -0
- package/types/pc/select/interface.d.ts +321 -0
- package/types/{select → pc/select}/util.d.ts +2 -1
- package/types/pc/select-view/interface.d.ts +151 -0
- package/types/{skeleton → pc/skeleton}/interface.d.ts +26 -0
- package/types/pc/slider/interface.d.ts +122 -0
- package/types/pc/space/interface.d.ts +38 -0
- package/types/pc/spin/interface.d.ts +50 -0
- package/types/pc/statistic/interface.d.ts +139 -0
- package/types/pc/steps/interface.d.ts +124 -0
- package/types/pc/switch/interface.d.ts +65 -0
- package/types/{table → pc/table}/hook/useThResizable.d.ts +1 -1
- package/types/pc/table/interface.d.ts +713 -0
- package/types/pc/tabs/interface.d.ts +217 -0
- package/types/pc/tag/interface.d.ts +76 -0
- package/types/pc/time-picker/interface.d.ts +244 -0
- package/types/pc/timeline/interface.d.ts +95 -0
- package/types/pc/tooltip/interface.d.ts +92 -0
- package/types/pc/transfer/interface.d.ts +225 -0
- package/types/pc/tree/interface.d.ts +354 -0
- package/types/pc/tree-select/interface.d.ts +211 -0
- package/types/pc/trigger/interface.d.ts +247 -0
- package/types/pc/typography/interface.d.ts +262 -0
- package/types/pc/upload/interface.d.ts +337 -0
- package/types/pc/utils/PqbCSSTransition.d.ts +3 -0
- package/types/pc/utils/caseName.d.ts +3 -0
- package/types/pc/utils/className.d.ts +3 -0
- package/types/pc/utils/constant.d.ts +4 -0
- package/types/pc/utils/copy.d.ts +3 -0
- package/types/{utils → pc/utils}/dayjs.d.ts +1 -1
- package/types/{utils → pc/utils}/dom.d.ts +1 -1
- package/types/pc/utils/fileToURL.d.ts +3 -0
- package/types/pc/utils/fillNBSP.d.ts +3 -0
- package/types/pc/utils/getHighlightText.d.ts +3 -0
- package/types/pc/utils/getHotkeyHandler.d.ts +4 -0
- package/types/pc/utils/getStringLength.d.ts +3 -0
- package/types/pc/utils/include.d.ts +3 -0
- package/types/{utils → pc/utils}/index.d.ts +1 -0
- package/types/{utils → pc/utils}/is.d.ts +1 -1
- package/types/pc/utils/keyboardCode.d.ts +4 -0
- package/types/{utils → pc/utils}/lodash.d.ts +1 -1
- package/types/pc/utils/mergeProps.d.ts +3 -0
- package/types/pc/utils/mergedToString.d.ts +3 -0
- package/types/{utils → pc/utils}/names.d.ts +6 -0
- package/types/pc/utils/omit.d.ts +3 -0
- package/types/pc/utils/pad.d.ts +1 -0
- package/types/pc/utils/pick.d.ts +3 -0
- package/types/pc/utils/react19Adapter.d.ts +1 -0
- package/types/pc/utils/reactDOM.d.ts +1 -0
- package/types/pc/utils/resizeObserverEffect.d.ts +2 -0
- package/types/pc/utils/saveAs.d.ts +3 -0
- package/types/pc/utils/screenfull.d.ts +3 -0
- package/types/{utils → pc/utils}/scrollIntoView.d.ts +1 -1
- package/types/pc/utils/setDarkTheme.d.ts +3 -0
- package/types/pc/utils/setPrimaryColor.d.ts +2 -0
- package/types/pc/utils/setTheme.d.ts +2 -0
- package/types/pc/utils/style.d.ts +1 -0
- package/types/pc/utils/throttleByRaf.d.ts +1 -0
- package/types/pc/utils/throttleByRaf2.d.ts +1 -0
- package/types/pc/utils/tinycolor.d.ts +1 -0
- package/types/pc/utils/type.d.ts +1 -0
- package/types/pc/utils/warning.d.ts +1 -0
- package/types/pc/verification-code/interface.d.ts +80 -0
- package/types/{virtual-list → pc/virtual-list}/Filler.d.ts +5 -0
- package/types/{virtual-list → pc/virtual-list}/VirtualList.d.ts +1 -0
- package/types/pc/virtual-list/util/algorithm.d.ts +23 -0
- package/types/{virtual-list → pc/virtual-list}/util/item.d.ts +31 -0
- package/types/pc/watermark/interface.d.ts +70 -0
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +11 -10
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/upload/request.js +1 -1
- package/upload/request_.js +1 -1
- package/utils/constant.js +5 -5
- package/utils/contextHolder.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/index.js +114 -112
- package/utils/names.js +4 -0
- package/utils/setDarkTheme.js +23 -22
- package/utils/setPrimaryColor.js +21 -20
- package/utils/setTheme.js +9 -0
- package/utils/tween.js +1 -1
- package/utils/type.js +1 -4
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/CmMehQON.js +0 -1464
- package/chunk/Cplu5dtQ.js +0 -730
- package/chunk/D0ZWT7db.js +0 -5
- package/chunk/DXDbeIai.js +0 -648
- package/chunk/tamGhTJp.js +0 -186
- package/types/affix/interface.d.ts +0 -12
- package/types/affix/style/index.d.ts +0 -2
- package/types/alert/interface.d.ts +0 -17
- package/types/alert/style/index.d.ts +0 -2
- package/types/anchor/interface.d.ts +0 -24
- package/types/anchor/style/index.d.ts +0 -3
- package/types/auto-complete/interface.d.ts +0 -36
- package/types/auto-complete/style/index.d.ts +0 -4
- package/types/avatar/interface.d.ts +0 -24
- package/types/avatar/style/index.d.ts +0 -3
- package/types/back-top/interface.d.ts +0 -11
- package/types/back-top/style/index.d.ts +0 -2
- package/types/badge/interface.d.ts +0 -18
- package/types/badge/style/index.d.ts +0 -2
- package/types/breadcrumb/interface.d.ts +0 -31
- package/types/breadcrumb/style/index.d.ts +0 -3
- package/types/button/interface.d.ts +0 -37
- package/types/button/style/index.d.ts +0 -2
- package/types/calendar/hook/useCellClassName.d.ts +0 -2
- package/types/calendar/interface.d.ts +0 -41
- package/types/calendar/style/index.d.ts +0 -4
- package/types/card/interface.d.ts +0 -32
- package/types/card/style/index.d.ts +0 -3
- package/types/carousel/interface.d.ts +0 -52
- package/types/carousel/style/index.d.ts +0 -2
- package/types/cascader/interface.d.ts +0 -105
- package/types/cascader/style/index.d.ts +0 -6
- package/types/checkbox/interface.d.ts +0 -36
- package/types/checkbox/style/index.d.ts +0 -2
- package/types/collapse/interface.d.ts +0 -27
- package/types/collapse/style/index.d.ts +0 -2
- package/types/color-picker/interface.d.ts +0 -61
- package/types/color-picker/style/index.d.ts +0 -4
- package/types/comment/interface.d.ts +0 -14
- package/types/comment/style/index.d.ts +0 -2
- package/types/config-provider/style/index.d.ts +0 -2
- package/types/copy/style/index.d.ts +0 -3
- package/types/date-picker/RangePicker.d.ts +0 -3
- package/types/date-picker/hook/useCellClassName.d.ts +0 -2
- package/types/date-picker/interface.d.ts +0 -167
- package/types/date-picker/style/index.d.ts +0 -7
- package/types/descriptions/interface.d.ts +0 -29
- package/types/descriptions/style/index.d.ts +0 -2
- package/types/divider/interface.d.ts +0 -8
- package/types/divider/style/index.d.ts +0 -2
- package/types/draggable/style/index.d.ts +0 -2
- package/types/drawer/interface.d.ts +0 -46
- package/types/drawer/style/index.d.ts +0 -3
- package/types/dropdown/interface.d.ts +0 -29
- package/types/dropdown/style/index.d.ts +0 -4
- package/types/empty/index.d.ts +0 -5
- package/types/empty/interface.d.ts +0 -8
- package/types/empty/style/index.d.ts +0 -2
- package/types/form/interface.d.ts +0 -228
- package/types/form/style/index.d.ts +0 -3
- package/types/grid/interface.d.ts +0 -76
- package/types/grid/style/index.d.ts +0 -2
- package/types/hooks/use-watermark/interface.d.ts +0 -22
- package/types/hooks/useComputedState.d.ts +0 -1
- package/types/hooks/useCreate.d.ts +0 -1
- package/types/hooks/useForceUpdate.d.ts +0 -1
- package/types/hooks/useId.d.ts +0 -1
- package/types/hooks/useInView.d.ts +0 -1
- package/types/hooks/useIntersectionObserver.d.ts +0 -1
- package/types/hooks/useInterval.d.ts +0 -1
- package/types/hooks/useIsFirstRender.d.ts +0 -1
- package/types/hooks/useIsomorphicLayoutEffect.d.ts +0 -1
- package/types/hooks/useKeyboardEvent.d.ts +0 -1
- package/types/hooks/useListenResize.d.ts +0 -1
- package/types/hooks/useMedia.d.ts +0 -1
- package/types/hooks/useMergeProps.d.ts +0 -1
- package/types/hooks/useMergeValue.d.ts +0 -1
- package/types/hooks/useOnlineStatus.d.ts +0 -1
- package/types/hooks/useOverflowHidden.d.ts +0 -1
- package/types/hooks/useOverrideRef.d.ts +0 -1
- package/types/hooks/usePersistCallback.d.ts +0 -1
- package/types/hooks/usePrefersColorSchemeDark.d.ts +0 -1
- package/types/hooks/usePrevious.d.ts +0 -1
- package/types/hooks/useRefs.d.ts +0 -1
- package/types/hooks/useResizeObserver.d.ts +0 -1
- package/types/hooks/useStateCallback.d.ts +0 -1
- package/types/hooks/useStateWithPromise.d.ts +0 -1
- package/types/hooks/useUpdateEffect.d.ts +0 -1
- package/types/hooks/useWatch.d.ts +0 -1
- package/types/hooks/useWindowSize.d.ts +0 -1
- package/types/icon/style/index.d.ts +0 -2
- package/types/icon-hover/style/index.d.ts +0 -2
- package/types/image/interface.d.ts +0 -59
- package/types/image/style/index.d.ts +0 -2
- package/types/input/interface.d.ts +0 -93
- package/types/input/style/index.d.ts +0 -3
- package/types/input-number/interface.d.ts +0 -37
- package/types/input-number/style/index.d.ts +0 -3
- package/types/input-tag/interface.d.ts +0 -60
- package/types/input-tag/style/index.d.ts +0 -3
- package/types/layout/interface.d.ts +0 -39
- package/types/layout/style/index.d.ts +0 -4
- package/types/link/interface.d.ts +0 -9
- package/types/link/style/index.d.ts +0 -2
- package/types/list/interface.d.ts +0 -57
- package/types/list/style/index.d.ts +0 -6
- package/types/loading/style/index.d.ts +0 -2
- package/types/mentions/interface.d.ts +0 -26
- package/types/mentions/style/index.d.ts +0 -2
- package/types/menu/interface.d.ts +0 -77
- package/types/menu/style/index.d.ts +0 -4
- package/types/message/interface.d.ts +0 -31
- package/types/message/style/index.d.ts +0 -2
- package/types/modal/interface.d.ts +0 -57
- package/types/modal/style/index.d.ts +0 -3
- package/types/notice/style/index.d.ts +0 -2
- package/types/notification/interface.d.ts +0 -27
- package/types/notification/style/index.d.ts +0 -2
- package/types/page-header/interface.d.ts +0 -14
- package/types/page-header/style/index.d.ts +0 -3
- package/types/pagination/interface.d.ts +0 -35
- package/types/pagination/style/index.d.ts +0 -4
- package/types/picker/style/index.d.ts +0 -2
- package/types/popconfirm/interface.d.ts +0 -28
- package/types/popconfirm/style/index.d.ts +0 -5
- package/types/popover/style/index.d.ts +0 -3
- package/types/portal/style/index.d.ts +0 -2
- package/types/progress/interface.d.ts +0 -22
- package/types/progress/style/index.d.ts +0 -3
- package/types/radio/interface.d.ts +0 -39
- package/types/radio/style/index.d.ts +0 -2
- package/types/rate/interface.d.ts +0 -17
- package/types/rate/style/index.d.ts +0 -3
- package/types/resize-box/interface.d.ts +0 -73
- package/types/resize-box/style/index.d.ts +0 -2
- package/types/result/interface.d.ts +0 -11
- package/types/result/style/index.d.ts +0 -2
- package/types/select/interface.d.ts +0 -103
- package/types/select/style/index.d.ts +0 -6
- package/types/select-view/interface.d.ts +0 -62
- package/types/select-view/style/index.d.ts +0 -2
- package/types/skeleton/style/index.d.ts +0 -2
- package/types/slider/interface.d.ts +0 -32
- package/types/slider/style/index.d.ts +0 -5
- package/types/space/interface.d.ts +0 -12
- package/types/space/style/index.d.ts +0 -2
- package/types/spin/interface.d.ts +0 -14
- package/types/spin/style/index.d.ts +0 -2
- package/types/statistic/interface.d.ts +0 -33
- package/types/statistic/style/index.d.ts +0 -3
- package/types/steps/interface.d.ts +0 -42
- package/types/steps/style/index.d.ts +0 -2
- package/types/switch/interface.d.ts +0 -17
- package/types/switch/style/index.d.ts +0 -2
- package/types/table/interface.d.ts +0 -301
- package/types/table/style/index.d.ts +0 -12
- package/types/tabs/interface.d.ts +0 -66
- package/types/tabs/style/index.d.ts +0 -3
- package/types/tag/interface.d.ts +0 -23
- package/types/tag/style/index.d.ts +0 -2
- package/types/time-picker/interface.d.ts +0 -62
- package/types/time-picker/style/index.d.ts +0 -5
- package/types/timeline/interface.d.ts +0 -26
- package/types/timeline/style/index.d.ts +0 -2
- package/types/tooltip/interface.d.ts +0 -23
- package/types/tooltip/style/index.d.ts +0 -3
- package/types/transfer/interface.d.ts +0 -91
- package/types/transfer/style/index.d.ts +0 -6
- package/types/tree/interface.d.ts +0 -153
- package/types/tree/style/index.d.ts +0 -3
- package/types/tree-select/interface.d.ts +0 -79
- package/types/tree-select/style/index.d.ts +0 -5
- package/types/trigger/interface.d.ts +0 -73
- package/types/trigger/style/index.d.ts +0 -2
- package/types/typography/interface.d.ts +0 -97
- package/types/typography/style/index.d.ts +0 -5
- package/types/upload/interface.d.ts +0 -126
- package/types/upload/style/index.d.ts +0 -6
- package/types/utils/PqbCSSTransition.d.ts +0 -3
- package/types/utils/caseName.d.ts +0 -3
- package/types/utils/className.d.ts +0 -3
- package/types/utils/constant.d.ts +0 -4
- package/types/utils/fileToURL.d.ts +0 -3
- package/types/utils/fillNBSP.d.ts +0 -3
- package/types/utils/getHighlightText.d.ts +0 -3
- package/types/utils/getHotkeyHandler.d.ts +0 -3
- package/types/utils/getStringLength.d.ts +0 -3
- package/types/utils/include.d.ts +0 -3
- package/types/utils/mergeProps.d.ts +0 -3
- package/types/utils/mergedToString.d.ts +0 -3
- package/types/utils/omit.d.ts +0 -3
- package/types/utils/pad.d.ts +0 -1
- package/types/utils/pick.d.ts +0 -3
- package/types/utils/react19Adapter.d.ts +0 -1
- package/types/utils/reactDOM.d.ts +0 -1
- package/types/utils/resizeObserverEffect.d.ts +0 -2
- package/types/utils/saveAs.d.ts +0 -3
- package/types/utils/screenfull.d.ts +0 -3
- package/types/utils/style.d.ts +0 -1
- package/types/utils/throttleByRaf.d.ts +0 -1
- package/types/utils/throttleByRaf2.d.ts +0 -1
- package/types/utils/warning.d.ts +0 -1
- package/types/verification-code/interface.d.ts +0 -25
- package/types/verification-code/style/index.d.ts +0 -3
- package/types/virtual-list/style/index.d.ts +0 -2
- package/types/virtual-list/util/algorithm.d.ts +0 -6
- package/types/watermark/interface.d.ts +0 -21
- package/types/watermark/style/index.d.ts +0 -1
- /package/types/{utils → common/utils}/keyboardCode.d.ts +0 -0
- /package/types/{utils → common/utils}/setDarkTheme.d.ts +0 -0
- /package/types/{utils → common/utils}/setPrimaryColor.d.ts +0 -0
- /package/types/{utils → common/utils}/tinycolor.d.ts +0 -0
- /package/types/{utils → common/utils}/type.d.ts +0 -0
- /package/types/{affix → pc/affix}/index.d.ts +0 -0
- /package/types/{alert → pc/alert}/index.d.ts +0 -0
- /package/types/{anchor → pc/anchor}/Anchor.d.ts +0 -0
- /package/types/{anchor → pc/anchor}/Link.d.ts +0 -0
- /package/types/{anchor → pc/anchor}/context.d.ts +0 -0
- /package/types/{anchor → pc/anchor}/index.d.ts +0 -0
- /package/types/{auto-complete → pc/auto-complete}/index.d.ts +0 -0
- /package/types/{avatar → pc/avatar}/Avatar.d.ts +0 -0
- /package/types/{avatar → pc/avatar}/Group.d.ts +0 -0
- /package/types/{avatar → pc/avatar}/context.d.ts +0 -0
- /package/types/{avatar → pc/avatar}/index.d.ts +0 -0
- /package/types/{back-top → pc/back-top}/index.d.ts +0 -0
- /package/types/{badge → pc/badge}/Count.d.ts +0 -0
- /package/types/{badge → pc/badge}/index.d.ts +0 -0
- /package/types/{breadcrumb → pc/breadcrumb}/Item.d.ts +0 -0
- /package/types/{breadcrumb → pc/breadcrumb}/index.d.ts +0 -0
- /package/types/{button → pc/button}/Group.d.ts +0 -0
- /package/types/{calendar → pc/calendar}/Month.d.ts +0 -0
- /package/types/{calendar → pc/calendar}/WeekList.d.ts +0 -0
- /package/types/{calendar → pc/calendar}/Year.d.ts +0 -0
- /package/types/{calendar → pc/calendar}/header/Panel.d.ts +0 -0
- /package/types/{calendar → pc/calendar}/header/index.d.ts +0 -0
- /package/types/{calendar → pc/calendar}/index.d.ts +0 -0
- /package/types/{card → pc/card}/Grid.d.ts +0 -0
- /package/types/{card → pc/card}/Meta.d.ts +0 -0
- /package/types/{card → pc/card}/index.d.ts +0 -0
- /package/types/{carousel → pc/carousel}/Arrow.d.ts +0 -0
- /package/types/{carousel → pc/carousel}/Indicator.d.ts +0 -0
- /package/types/{carousel → pc/carousel}/index.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/Cascader.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/hook/useRefCurrent.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/index.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/panel/List.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/panel/Option.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/panel/Search.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/util.d.ts +0 -0
- /package/types/{checkbox → pc/checkbox}/Checkbox.d.ts +0 -0
- /package/types/{checkbox → pc/checkbox}/Group.d.ts +0 -0
- /package/types/{checkbox → pc/checkbox}/GroupBlock.d.ts +0 -0
- /package/types/{checkbox → pc/checkbox}/IconCheck.d.ts +0 -0
- /package/types/{checkbox → pc/checkbox}/index.d.ts +0 -0
- /package/types/{collapse → pc/collapse}/Collapse.d.ts +0 -0
- /package/types/{collapse → pc/collapse}/Item.d.ts +0 -0
- /package/types/{collapse → pc/collapse}/index.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/ControlBar.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/InputAlpha.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/InputHex.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/InputRgb.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/Mode.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/Palette.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/Panel.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/colors.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/hooks/useControlBlock.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/index.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/utils.d.ts +0 -0
- /package/types/{comment → pc/comment}/index.d.ts +0 -0
- /package/types/{config-provider → pc/config-provider}/ConfigProvider.d.ts +0 -0
- /package/types/{config-provider → pc/config-provider}/context.d.ts +0 -0
- /package/types/{config-provider → pc/config-provider}/index.d.ts +0 -0
- /package/types/{copy → pc/copy}/index.d.ts +0 -0
- /package/types/{copy → pc/copy}/interface.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/Picker.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/context.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/Body.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/Footer.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/Header.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/Shortcut.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/WeekList.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/date/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/month/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/quarter/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/range/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/week/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/year/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/util.d.ts +0 -0
- /package/types/{descriptions → pc/descriptions}/index.d.ts +0 -0
- /package/types/{divider → pc/divider}/index.d.ts +0 -0
- /package/types/{draggable → pc/draggable}/Item.d.ts +0 -0
- /package/types/{draggable → pc/draggable}/index.d.ts +0 -0
- /package/types/{drawer → pc/drawer}/Drawer.d.ts +0 -0
- /package/types/{drawer → pc/drawer}/index.d.ts +0 -0
- /package/types/{dropdown → pc/dropdown}/Button.d.ts +0 -0
- /package/types/{dropdown → pc/dropdown}/index.d.ts +0 -0
- /package/types/{form → pc/form}/Form.d.ts +0 -0
- /package/types/{form → pc/form}/FormItem.d.ts +0 -0
- /package/types/{form → pc/form}/FormLabel.d.ts +0 -0
- /package/types/{form → pc/form}/FormList.d.ts +0 -0
- /package/types/{form → pc/form}/FormProvider.d.ts +0 -0
- /package/types/{form → pc/form}/IconSymbol.d.ts +0 -0
- /package/types/{form → pc/form}/context.d.ts +0 -0
- /package/types/{form → pc/form}/hook/useState.d.ts +0 -0
- /package/types/{form → pc/form}/hook/useWatch.d.ts +0 -0
- /package/types/{form → pc/form}/index.d.ts +0 -0
- /package/types/{form → pc/form}/promisify.d.ts +0 -0
- /package/types/{form → pc/form}/useForm.d.ts +0 -0
- /package/types/{form → pc/form}/util.d.ts +0 -0
- /package/types/{grid → pc/grid}/Col.d.ts +0 -0
- /package/types/{grid → pc/grid}/Row.d.ts +0 -0
- /package/types/{grid → pc/grid}/context.d.ts +0 -0
- /package/types/{grid → pc/grid}/grid-item.d.ts +0 -0
- /package/types/{grid → pc/grid}/grid.d.ts +0 -0
- /package/types/{grid → pc/grid}/hook/useResponsiveState.d.ts +0 -0
- /package/types/{grid → pc/grid}/index.d.ts +0 -0
- /package/types/{grid → pc/grid}/util.d.ts +0 -0
- /package/types/{hooks → pc/hooks}/index.d.ts +0 -0
- /package/types/{hooks → pc/hooks}/use-verification-code/index.d.ts +0 -0
- /package/types/{hooks → pc/hooks}/use-watermark/index.d.ts +0 -0
- /package/types/{hooks → pc/hooks}/use-watermark/utils.d.ts +0 -0
- /package/types/{icon → pc/icon}/addFromIconFontCn.d.ts +0 -0
- /package/types/{icon → pc/icon}/index.d.ts +0 -0
- /package/types/{icon-hover → pc/icon-hover}/index.d.ts +0 -0
- /package/types/{icons.d.ts → pc/icons.d.ts} +0 -0
- /package/types/{image → pc/image}/Image.d.ts +0 -0
- /package/types/{image → pc/image}/ImageFooter.d.ts +0 -0
- /package/types/{image → pc/image}/ImagePreview.d.ts +0 -0
- /package/types/{image → pc/image}/ImagePreviewArrow.d.ts +0 -0
- /package/types/{image → pc/image}/ImagePreviewGroup.d.ts +0 -0
- /package/types/{image → pc/image}/ImagePreviewToolbar.d.ts +0 -0
- /package/types/{image → pc/image}/TriggerForToolbar.d.ts +0 -0
- /package/types/{image → pc/image}/index.d.ts +0 -0
- /package/types/{image → pc/image}/previewGroupContext.d.ts +0 -0
- /package/types/{image → pc/image}/util/getFixTranslate.d.ts +0 -0
- /package/types/{image → pc/image}/util/getScale.d.ts +0 -0
- /package/types/{image → pc/image}/util/hook/useImageStatus.d.ts +0 -0
- /package/types/{image → pc/image}/util/hook/useShowFooter.d.ts +0 -0
- /package/types/{input → pc/input}/Group.d.ts +0 -0
- /package/types/{input → pc/input}/InputElement.d.ts +0 -0
- /package/types/{input → pc/input}/Number.d.ts +0 -0
- /package/types/{input → pc/input}/Password.d.ts +0 -0
- /package/types/{input → pc/input}/Search.d.ts +0 -0
- /package/types/{input → pc/input}/Tag.d.ts +0 -0
- /package/types/{input → pc/input}/autoSizeTextAreaHeight.d.ts +0 -0
- /package/types/{input → pc/input}/useComposition.d.ts +0 -0
- /package/types/{input-number → pc/input-number}/index.d.ts +0 -0
- /package/types/{input-number → pc/input-number}/useSelectionRange.d.ts +0 -0
- /package/types/{input-tag → pc/input-tag}/InputTag.d.ts +0 -0
- /package/types/{input-tag → pc/input-tag}/index.d.ts +0 -0
- /package/types/{layout → pc/layout}/Content.d.ts +0 -0
- /package/types/{layout → pc/layout}/Footer.d.ts +0 -0
- /package/types/{layout → pc/layout}/Header.d.ts +0 -0
- /package/types/{layout → pc/layout}/Sider.d.ts +0 -0
- /package/types/{layout → pc/layout}/index.d.ts +0 -0
- /package/types/{link → pc/link}/index.d.ts +0 -0
- /package/types/{list → pc/list}/Item.d.ts +0 -0
- /package/types/{list → pc/list}/Meta.d.ts +0 -0
- /package/types/{list → pc/list}/index.d.ts +0 -0
- /package/types/{loading → pc/loading}/index.d.ts +0 -0
- /package/types/{locale → pc/locale}/ar-EG.d.ts +0 -0
- /package/types/{locale → pc/locale}/de-DE.d.ts +0 -0
- /package/types/{locale → pc/locale}/default.d.ts +0 -0
- /package/types/{locale → pc/locale}/en-US.d.ts +0 -0
- /package/types/{locale → pc/locale}/es-ES.d.ts +0 -0
- /package/types/{locale → pc/locale}/fr-FR.d.ts +0 -0
- /package/types/{locale → pc/locale}/id-ID.d.ts +0 -0
- /package/types/{locale → pc/locale}/interface.d.ts +0 -0
- /package/types/{locale → pc/locale}/it-IT.d.ts +0 -0
- /package/types/{locale → pc/locale}/ja-JP.d.ts +0 -0
- /package/types/{locale → pc/locale}/ko-KR.d.ts +0 -0
- /package/types/{locale → pc/locale}/ms-MY.d.ts +0 -0
- /package/types/{locale → pc/locale}/pt-BR.d.ts +0 -0
- /package/types/{locale → pc/locale}/pt-PT.d.ts +0 -0
- /package/types/{locale → pc/locale}/ru-RU.d.ts +0 -0
- /package/types/{locale → pc/locale}/th-TH.d.ts +0 -0
- /package/types/{locale → pc/locale}/tr-TR.d.ts +0 -0
- /package/types/{locale → pc/locale}/vi-VN.d.ts +0 -0
- /package/types/{locale → pc/locale}/zh-CN.d.ts +0 -0
- /package/types/{locale → pc/locale}/zh-HK.d.ts +0 -0
- /package/types/{locale → pc/locale}/zh-TW.d.ts +0 -0
- /package/types/{mentions → pc/mentions}/index.d.ts +0 -0
- /package/types/{mentions → pc/mentions}/util.d.ts +0 -0
- /package/types/{menu → pc/menu}/Indent.d.ts +0 -0
- /package/types/{menu → pc/menu}/Item.d.ts +0 -0
- /package/types/{menu → pc/menu}/ItemGroup.d.ts +0 -0
- /package/types/{menu → pc/menu}/Menu.d.ts +0 -0
- /package/types/{menu → pc/menu}/OverflowWrap.d.ts +0 -0
- /package/types/{menu → pc/menu}/index.d.ts +0 -0
- /package/types/{menu → pc/menu}/sub-menu/Inline.d.ts +0 -0
- /package/types/{menu → pc/menu}/sub-menu/Pop.d.ts +0 -0
- /package/types/{menu → pc/menu}/sub-menu/index.d.ts +0 -0
- /package/types/{menu → pc/menu}/util.d.ts +0 -0
- /package/types/{message → pc/message}/index.d.ts +0 -0
- /package/types/{message → pc/message}/useMessage.d.ts +0 -0
- /package/types/{modal → pc/modal}/Confirm.d.ts +0 -0
- /package/types/{modal → pc/modal}/Modal.d.ts +0 -0
- /package/types/{modal → pc/modal}/config.d.ts +0 -0
- /package/types/{modal → pc/modal}/index.d.ts +0 -0
- /package/types/{modal → pc/modal}/use-modal/Hook.d.ts +0 -0
- /package/types/{modal → pc/modal}/use-modal/index.d.ts +0 -0
- /package/types/{notice → pc/notice}/index.d.ts +0 -0
- /package/types/{notification → pc/notification}/index.d.ts +0 -0
- /package/types/{notification → pc/notification}/useNotification.d.ts +0 -0
- /package/types/{notification → pc/notification}/withNotification.d.ts +0 -0
- /package/types/{overflow-ellipsis → pc/overflow-ellipsis}/OverflowItem.d.ts +0 -0
- /package/types/{overflow-ellipsis → pc/overflow-ellipsis}/index.d.ts +0 -0
- /package/types/{page-header → pc/page-header}/index.d.ts +0 -0
- /package/types/{pagination → pc/pagination}/PageJumper.d.ts +0 -0
- /package/types/{pagination → pc/pagination}/PageOption.d.ts +0 -0
- /package/types/{pagination → pc/pagination}/Pagination.d.ts +0 -0
- /package/types/{pagination → pc/pagination}/index.d.ts +0 -0
- /package/types/{picker → pc/picker}/Input.d.ts +0 -0
- /package/types/{picker → pc/picker}/InputRange.d.ts +0 -0
- /package/types/{picker → pc/picker}/index.d.ts +0 -0
- /package/types/{popconfirm → pc/popconfirm}/index.d.ts +0 -0
- /package/types/{popover → pc/popover}/index.d.ts +0 -0
- /package/types/{progress → pc/progress}/CircleProgress.d.ts +0 -0
- /package/types/{progress → pc/progress}/LineProgess.d.ts +0 -0
- /package/types/{progress → pc/progress}/StepProgress.d.ts +0 -0
- /package/types/{progress → pc/progress}/index.d.ts +0 -0
- /package/types/{radio → pc/radio}/Group.d.ts +0 -0
- /package/types/{radio → pc/radio}/GroupBlock.d.ts +0 -0
- /package/types/{radio → pc/radio}/Radio.d.ts +0 -0
- /package/types/{radio → pc/radio}/index.d.ts +0 -0
- /package/types/{rate → pc/rate}/index.d.ts +0 -0
- /package/types/{resize-box → pc/resize-box}/Split.d.ts +0 -0
- /package/types/{resize-box → pc/resize-box}/SplitGroup.d.ts +0 -0
- /package/types/{resize-box → pc/resize-box}/index.d.ts +0 -0
- /package/types/{result → pc/result}/403.d.ts +0 -0
- /package/types/{result → pc/result}/404.d.ts +0 -0
- /package/types/{result → pc/result}/500.d.ts +0 -0
- /package/types/{result → pc/result}/index.d.ts +0 -0
- /package/types/{select → pc/select}/OptGroup.d.ts +0 -0
- /package/types/{select → pc/select}/Option.d.ts +0 -0
- /package/types/{select → pc/select}/Select.d.ts +0 -0
- /package/types/{select → pc/select}/index.d.ts +0 -0
- /package/types/{select-view → pc/select-view}/Core.d.ts +0 -0
- /package/types/{select-view → pc/select-view}/index.d.ts +0 -0
- /package/types/{skeleton → pc/skeleton}/Image.d.ts +0 -0
- /package/types/{skeleton → pc/skeleton}/Text.d.ts +0 -0
- /package/types/{skeleton → pc/skeleton}/index.d.ts +0 -0
- /package/types/{slider → pc/slider}/Button.d.ts +0 -0
- /package/types/{slider → pc/slider}/Dot.d.ts +0 -0
- /package/types/{slider → pc/slider}/Input.d.ts +0 -0
- /package/types/{slider → pc/slider}/Mark.d.ts +0 -0
- /package/types/{slider → pc/slider}/Tick.d.ts +0 -0
- /package/types/{slider → pc/slider}/hook/useInterval.d.ts +0 -0
- /package/types/{slider → pc/slider}/hook/useLegalValue.d.ts +0 -0
- /package/types/{slider → pc/slider}/index.d.ts +0 -0
- /package/types/{slider → pc/slider}/util.d.ts +0 -0
- /package/types/{space → pc/space}/index.d.ts +0 -0
- /package/types/{space → pc/space}/toArray.d.ts +0 -0
- /package/types/{speech-synthesis → pc/speech-synthesis}/index.d.ts +0 -0
- /package/types/{speech-synthesis → pc/speech-synthesis}/style/index.d.ts +0 -0
- /package/types/{spin → pc/spin}/DotLoading.d.ts +0 -0
- /package/types/{spin → pc/spin}/index.d.ts +0 -0
- /package/types/{statistic → pc/statistic}/Countdown.d.ts +0 -0
- /package/types/{statistic → pc/statistic}/index.d.ts +0 -0
- /package/types/{statistic → pc/statistic}/util.d.ts +0 -0
- /package/types/{steps → pc/steps}/Step.d.ts +0 -0
- /package/types/{steps → pc/steps}/index.d.ts +0 -0
- /package/types/{suspense-fallback-test → pc/suspense-fallback-test}/index.d.ts +0 -0
- /package/types/{suspense-fallback-test → pc/suspense-fallback-test}/style/index.d.ts +0 -0
- /package/types/{switch → pc/switch}/index.d.ts +0 -0
- /package/types/{table → pc/table}/ColGroup.d.ts +0 -0
- /package/types/{table → pc/table}/Table.d.ts +0 -0
- /package/types/{table → pc/table}/constant.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useColumns.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useComponent.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useExpand.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useRowSelection.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useSorter.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useStickyClassNames.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useStickyOffsets.d.ts +0 -0
- /package/types/{table → pc/table}/index.d.ts +0 -0
- /package/types/{table → pc/table}/summary/Cell.d.ts +0 -0
- /package/types/{table → pc/table}/summary/Row.d.ts +0 -0
- /package/types/{table → pc/table}/summary/context.d.ts +0 -0
- /package/types/{table → pc/table}/summary/index.d.ts +0 -0
- /package/types/{table → pc/table}/tbody/Td.d.ts +0 -0
- /package/types/{table → pc/table}/tbody/Tr.d.ts +0 -0
- /package/types/{table → pc/table}/tbody/index.d.ts +0 -0
- /package/types/{table → pc/table}/tfoot/index.d.ts +0 -0
- /package/types/{table → pc/table}/th-resizable/index.d.ts +0 -0
- /package/types/{table → pc/table}/thead/Column.d.ts +0 -0
- /package/types/{table → pc/table}/thead/index.d.ts +0 -0
- /package/types/{table → pc/table}/util.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/Tab.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/TabContent.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/TabPane.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/hook/useDomSize.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/hook/useHeaderScroll.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/index.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/tab-header/DropdownIcon.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/tab-header/TabInk.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/tab-header/TabNavIcon.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/tab-header/TabTitle.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/tab-header/index.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/util.d.ts +0 -0
- /package/types/{tag → pc/tag}/index.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/Picker.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/RangePicker.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/TimeColumn.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/TimePicker.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/context.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/index.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/util.d.ts +0 -0
- /package/types/{timeline → pc/timeline}/Item.d.ts +0 -0
- /package/types/{timeline → pc/timeline}/Timeline.d.ts +0 -0
- /package/types/{timeline → pc/timeline}/index.d.ts +0 -0
- /package/types/{tooltip → pc/tooltip}/index.d.ts +0 -0
- /package/types/{transfer → pc/transfer}/Item.d.ts +0 -0
- /package/types/{transfer → pc/transfer}/List.d.ts +0 -0
- /package/types/{transfer → pc/transfer}/index.d.ts +0 -0
- /package/types/{tree → pc/tree}/Animation.d.ts +0 -0
- /package/types/{tree → pc/tree}/Context.d.ts +0 -0
- /package/types/{tree → pc/tree}/Node.d.ts +0 -0
- /package/types/{tree → pc/tree}/NodeList.d.ts +0 -0
- /package/types/{tree → pc/tree}/Tree.d.ts +0 -0
- /package/types/{tree → pc/tree}/index.d.ts +0 -0
- /package/types/{tree → pc/tree}/util.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/List.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/Select.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/hook/useKeyCache.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/hook/useStateValue.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/hook/useTreeData.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/index.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/util.d.ts +0 -0
- /package/types/{trigger → pc/trigger}/getPopupStyle.d.ts +0 -0
- /package/types/{trigger → pc/trigger}/index.d.ts +0 -0
- /package/types/{typography → pc/typography}/Base.d.ts +0 -0
- /package/types/{typography → pc/typography}/EditContent.d.ts +0 -0
- /package/types/{typography → pc/typography}/Ellipsis.d.ts +0 -0
- /package/types/{typography → pc/typography}/Operations.d.ts +0 -0
- /package/types/{typography → pc/typography}/Paragraph.d.ts +0 -0
- /package/types/{typography → pc/typography}/Text.d.ts +0 -0
- /package/types/{typography → pc/typography}/Title.d.ts +0 -0
- /package/types/{typography → pc/typography}/Typography.d.ts +0 -0
- /package/types/{typography → pc/typography}/index.d.ts +0 -0
- /package/types/{typography → pc/typography}/useCssEllipsis.d.ts +0 -0
- /package/types/{typography → pc/typography}/useEllipsis.d.ts +0 -0
- /package/types/{upload → pc/upload}/TriggerNode.d.ts +0 -0
- /package/types/{upload → pc/upload}/Upload.d.ts +0 -0
- /package/types/{upload → pc/upload}/Uploader.d.ts +0 -0
- /package/types/{upload → pc/upload}/index.d.ts +0 -0
- /package/types/{upload → pc/upload}/list/PictureItem.d.ts +0 -0
- /package/types/{upload → pc/upload}/list/TextItem.d.ts +0 -0
- /package/types/{upload → pc/upload}/list/UploadProgress.d.ts +0 -0
- /package/types/{upload → pc/upload}/list/index.d.ts +0 -0
- /package/types/{upload → pc/upload}/request.d.ts +0 -0
- /package/types/{upload → pc/upload}/request_.d.ts +0 -0
- /package/types/{upload → pc/upload}/util.d.ts +0 -0
- /package/types/{utils → pc/utils}/color.d.ts +0 -0
- /package/types/{utils → pc/utils}/computeScrollIntoView.d.ts +0 -0
- /package/types/{utils → pc/utils}/contextHolder.d.ts +0 -0
- /package/types/{utils → pc/utils}/math.d.ts +0 -0
- /package/types/{utils → pc/utils}/reactTransitionGroup.d.ts +0 -0
- /package/types/{utils → pc/utils}/responsiveObserve.d.ts +0 -0
- /package/types/{utils → pc/utils}/tree.d.ts +0 -0
- /package/types/{utils → pc/utils}/tween.d.ts +0 -0
- /package/types/{utils → pc/utils}/uuid.d.ts +0 -0
- /package/types/{utils → pc/utils}/validate.d.ts +0 -0
- /package/types/{verification-code → pc/verification-code}/VerificationCode.d.ts +0 -0
- /package/types/{verification-code → pc/verification-code}/index.d.ts +0 -0
- /package/types/{version → pc/version}/index.d.ts +0 -0
- /package/types/{virtual-list → pc/virtual-list}/index.d.ts +0 -0
- /package/types/{watermark → pc/watermark}/Watermark.d.ts +0 -0
- /package/types/{watermark → pc/watermark}/index.d.ts +0 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { CSSProperties, HTMLAttributes, ImgHTMLAttributes, ReactElement, ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @title Image
|
|
4
|
+
*/
|
|
5
|
+
export interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'className'> {
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
className?: string | string[];
|
|
8
|
+
/**
|
|
9
|
+
* @zh 图片获取地址
|
|
10
|
+
* @en Image path
|
|
11
|
+
*/
|
|
12
|
+
src?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @zh 图片显示宽度
|
|
15
|
+
* @en Image width
|
|
16
|
+
*/
|
|
17
|
+
width?: string | number;
|
|
18
|
+
/**
|
|
19
|
+
* @zh 图片显示高度
|
|
20
|
+
* @en Image height
|
|
21
|
+
*/
|
|
22
|
+
height?: string | number;
|
|
23
|
+
/**
|
|
24
|
+
* @zh 标题
|
|
25
|
+
* @en Image title
|
|
26
|
+
*/
|
|
27
|
+
title?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @zh 描述
|
|
30
|
+
* @en Image description
|
|
31
|
+
*/
|
|
32
|
+
description?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @zh 额外操作
|
|
35
|
+
* @en Extra operations
|
|
36
|
+
*/
|
|
37
|
+
actions?: ReactNode[];
|
|
38
|
+
/**
|
|
39
|
+
* @zh 底部显示的位置
|
|
40
|
+
* @en The position of footer
|
|
41
|
+
* @defaultValue inner
|
|
42
|
+
*/
|
|
43
|
+
footerPosition?: 'inner' | 'outer';
|
|
44
|
+
/**
|
|
45
|
+
* @zh 是否开启简洁模式
|
|
46
|
+
* @en Whether to enable simple mode
|
|
47
|
+
*/
|
|
48
|
+
simple?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* @zh 加载过渡效果,为 true 显示默认加载效果
|
|
51
|
+
* @en Load transition effect, set `true` to show the default loading effect
|
|
52
|
+
*/
|
|
53
|
+
loader?: boolean | ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* @zh loader 的样式,将覆盖默认过渡效果
|
|
56
|
+
* @en The style of the loader, will override the default transition effect
|
|
57
|
+
*/
|
|
58
|
+
loaderClassName?: string | string[];
|
|
59
|
+
loaderTip: string;
|
|
60
|
+
/**
|
|
61
|
+
* @zh error 状态下显示的内容
|
|
62
|
+
* @en Content displayed in error state
|
|
63
|
+
*/
|
|
64
|
+
error?: ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* @zh 是否开启预览
|
|
67
|
+
* @en Whether to enable preview
|
|
68
|
+
* @defaultValue true
|
|
69
|
+
*/
|
|
70
|
+
preview?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* @zh 预览的配置项 (所有选项都是可选的)[ImagePreviewProps](#imagepreview)
|
|
73
|
+
* @en Preview options (all options are optional) [ImagePreviewProps](#imagepreview)
|
|
74
|
+
*/
|
|
75
|
+
previewProps?: PartialImagePreviewProps;
|
|
76
|
+
/**
|
|
77
|
+
* @zh 使用 `Image.PreviewGroup`包裹时的预览索引,一般不用指定,当多图预览顺序出现问题时,可手动指定当前 `image` 的预览顺序
|
|
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
|
+
*/
|
|
81
|
+
index?: number;
|
|
82
|
+
/**
|
|
83
|
+
* @zh 开启懒加载 [Intersection_Observer](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)
|
|
84
|
+
* @en lazyload loading [Intersection_Observer](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)
|
|
85
|
+
* @version 2.47.0
|
|
86
|
+
*/
|
|
87
|
+
lazyload?: boolean | IntersectionObserverInit;
|
|
88
|
+
/**
|
|
89
|
+
* @zh 图片加载完成时触发
|
|
90
|
+
* @en Triggered when the image is loaded
|
|
91
|
+
*/
|
|
92
|
+
onLoad?: (ev: SyntheticEvent<HTMLImageElement>) => void;
|
|
93
|
+
/**
|
|
94
|
+
* @zh 图片加载失败时触发
|
|
95
|
+
* @en Triggered when image loading fails
|
|
96
|
+
*/
|
|
97
|
+
onError?: (ev: SyntheticEvent<HTMLImageElement>) => void;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @title Image.Preview
|
|
101
|
+
*/
|
|
102
|
+
export interface ImagePreviewProps {
|
|
103
|
+
style?: CSSProperties;
|
|
104
|
+
className?: string | string[];
|
|
105
|
+
/**
|
|
106
|
+
* @zh 图片获取地址, 在 Image 中默认是 Image 的 src
|
|
107
|
+
* @en Image path, The default in Image is the src of Image
|
|
108
|
+
*/
|
|
109
|
+
src: string;
|
|
110
|
+
/**
|
|
111
|
+
* @zh 图片属性,透传至预览弹窗中的 `img` 标签上
|
|
112
|
+
* @en Image props, passthrough to the `img` tag in the preview modal
|
|
113
|
+
* @version 2.39.0
|
|
114
|
+
*/
|
|
115
|
+
imgAttributes?: Omit<ImgHTMLAttributes<HTMLImageElement>, 'src'>;
|
|
116
|
+
/**
|
|
117
|
+
* @zh 自定义图片预览区域的额外节点
|
|
118
|
+
* @en Additional nodes add to the image preview area
|
|
119
|
+
* @version 2.53.0
|
|
120
|
+
*/
|
|
121
|
+
extra?: ReactNode;
|
|
122
|
+
/**
|
|
123
|
+
* @zh 是否可见,受控属性
|
|
124
|
+
* @en Whether is visible
|
|
125
|
+
*/
|
|
126
|
+
visible?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* @zh 默认是否可见,非受控
|
|
129
|
+
* @en Whether visible by default
|
|
130
|
+
*/
|
|
131
|
+
defaultVisible?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* @zh 触发 toolbar 切换为 simple 模式的宽度
|
|
134
|
+
* @en The width that triggers the toolbar to switch to simple mode
|
|
135
|
+
* @defaultValue 316
|
|
136
|
+
*/
|
|
137
|
+
breakPoint?: number;
|
|
138
|
+
/**
|
|
139
|
+
* @zh 点击 mask 是否触发关闭
|
|
140
|
+
* @en Whether click mask to close
|
|
141
|
+
* @defaultValue true
|
|
142
|
+
*/
|
|
143
|
+
maskClosable?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* @zh 是否显示关闭按钮
|
|
146
|
+
* @en Whether display close button
|
|
147
|
+
* @defaultValue true
|
|
148
|
+
* @version 2.16.0
|
|
149
|
+
*/
|
|
150
|
+
closable?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* @zh 额外操作,[ImagePreviewActionProps](#imagepreviewactionprops)
|
|
153
|
+
* @en Extra operations, [ImagePreviewActionProps](#imagepreviewactionprops)
|
|
154
|
+
*/
|
|
155
|
+
actions?: ImagePreviewActionProps[];
|
|
156
|
+
/**
|
|
157
|
+
* @zh 控制条的布局
|
|
158
|
+
* @en The layout of the control bar
|
|
159
|
+
* @defaultValue ['fullScreen', 'rotateRight', 'rotateLeft', 'zoomIn', 'zoomOut', 'originalSize', 'extra']
|
|
160
|
+
*/
|
|
161
|
+
actionsLayout?: string[];
|
|
162
|
+
/**
|
|
163
|
+
* @zh 在预览缩放时会使用当前数组中的缩放百分比。若不包含 `100%`,则会自动添加在最相邻的位置。
|
|
164
|
+
* @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
|
+
* @defaultValue [25, 33, 50, 67, 75, 80, 90, 100, 110, 125, 150, 175, 200, 250, 300, 400, 500];
|
|
166
|
+
* @version 2.30.0
|
|
167
|
+
*/
|
|
168
|
+
scales?: number[];
|
|
169
|
+
/**
|
|
170
|
+
* @zh 切换可见状态触发的事件
|
|
171
|
+
* @en Callback when visibility changes
|
|
172
|
+
*/
|
|
173
|
+
onVisibleChange?: (visible: boolean, preVisible: boolean) => void;
|
|
174
|
+
/**
|
|
175
|
+
* @zh 弹出层挂载的节点
|
|
176
|
+
* @en Get popup's parent node
|
|
177
|
+
* @defaultValue () => document.body
|
|
178
|
+
* @version 2.16.0
|
|
179
|
+
*/
|
|
180
|
+
getPopupContainer?: () => HTMLElement;
|
|
181
|
+
/**
|
|
182
|
+
* @zh 按 `ESC` 键关闭预览
|
|
183
|
+
* @en Whether to enable pressing `ESC` to close the preview.
|
|
184
|
+
* @defaultValue true
|
|
185
|
+
* @version 2.24.0
|
|
186
|
+
*/
|
|
187
|
+
escToExit?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* @zh 自定义 IMG 元素的渲染
|
|
190
|
+
* @en Rendering of custom IMG elements
|
|
191
|
+
* @version 2.58.0
|
|
192
|
+
*/
|
|
193
|
+
imageRender?: (originalNode: ReactElement) => ReactNode;
|
|
194
|
+
/**
|
|
195
|
+
* @zh 开启位置修正
|
|
196
|
+
* @en Enable position correction
|
|
197
|
+
* @defaultValue true
|
|
198
|
+
* @version 2.61.0
|
|
199
|
+
*/
|
|
200
|
+
resetTranslate?: boolean;
|
|
201
|
+
}
|
|
202
|
+
export type PartialImagePreviewProps = Partial<ImagePreviewProps>;
|
|
203
|
+
/**
|
|
204
|
+
* @title Image.PreviewGroup
|
|
205
|
+
* @zh 从 `v2.14.0` 开始支持
|
|
206
|
+
* @en Start from `v2.14.0`
|
|
207
|
+
*/
|
|
208
|
+
export interface ImagePreviewGroupProps extends Omit<PartialImagePreviewProps, 'src'> {
|
|
209
|
+
/**
|
|
210
|
+
* @zh 图片列表 (设置了本属性之后,将不再收集 Image 子组件的图片信息)
|
|
211
|
+
* @en Image path list(After setting this property, the information of the `Image` sub-component will no longer be collected)
|
|
212
|
+
*/
|
|
213
|
+
srcList?: undefined | string[];
|
|
214
|
+
/**
|
|
215
|
+
* @zh 当前展示的图片的下标 (受控属性)
|
|
216
|
+
* @en The index of current image (controlled prop)
|
|
217
|
+
*/
|
|
218
|
+
current?: number;
|
|
219
|
+
/**
|
|
220
|
+
* @zh 第一张展示的图片的下标
|
|
221
|
+
* @en The default index of first image
|
|
222
|
+
*/
|
|
223
|
+
defaultCurrent?: number;
|
|
224
|
+
/**
|
|
225
|
+
* @zh 是否无限循环
|
|
226
|
+
* @en Whether to loop infinitely
|
|
227
|
+
*/
|
|
228
|
+
infinite?: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* @zh 是否渲染图片列表,用于提前加载图片
|
|
231
|
+
* @en Whether to render the image list for loading images in advance
|
|
232
|
+
* @version 2.58.0
|
|
233
|
+
*/
|
|
234
|
+
forceRender?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* @zh 切换图片触发的事件
|
|
237
|
+
* @en Callback when image switches
|
|
238
|
+
*/
|
|
239
|
+
onChange?: (index: number) => void;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @title ImagePreviewActionProps
|
|
243
|
+
* @zh `<Image.Preview>` 中类型 `ImagePreviewActionProps` 详细参数。
|
|
244
|
+
* @en Detailed parameters of type `ImagePreviewActionProps` in `<Image.Preview>`.
|
|
245
|
+
*/
|
|
246
|
+
export interface ImagePreviewActionProps extends HTMLAttributes<HTMLDivElement> {
|
|
247
|
+
/**
|
|
248
|
+
* @zh 唯一标识
|
|
249
|
+
* @en Unique identifier
|
|
250
|
+
*/
|
|
251
|
+
key: string;
|
|
252
|
+
/**
|
|
253
|
+
* @zh 内容
|
|
254
|
+
* @en content
|
|
255
|
+
*/
|
|
256
|
+
content: ReactNode;
|
|
257
|
+
/**
|
|
258
|
+
* @zh
|
|
259
|
+
* 因为 content 只能定义内容,所以提供这个函数用于支持自定义外围元素,需要注意的是设置了 `getContainer`, 显示 `name` 的 `Tooltip` 将失效。
|
|
260
|
+
* @en
|
|
261
|
+
* Because content can only specify content, this function is provided to support custom peripheral elements.
|
|
262
|
+
* Note that if `getContainer` is set, the `Tooltip` displaying `name` will be invalid
|
|
263
|
+
*/
|
|
264
|
+
getContainer?: (actionElement: ReactNode) => ReactNode;
|
|
265
|
+
/**
|
|
266
|
+
* @zh 名称
|
|
267
|
+
* @en name
|
|
268
|
+
*/
|
|
269
|
+
name?: string;
|
|
270
|
+
/**
|
|
271
|
+
* @zh 是否禁用
|
|
272
|
+
* @en Whether disabled
|
|
273
|
+
*/
|
|
274
|
+
disabled?: boolean;
|
|
275
|
+
}
|
|
@@ -20,6 +20,7 @@ export { ConfigConsumer, ConfigContext, default as ConfigProvider, ConfigProvide
|
|
|
20
20
|
export { default as Copy } from './copy';
|
|
21
21
|
export { default as DatePicker, MonthPicker, QuarterPicker, RangePicker, WeekPicker, YearPicker, } from './date-picker';
|
|
22
22
|
export { default as Descriptions } from './descriptions';
|
|
23
|
+
export { default as Development } from './development';
|
|
23
24
|
export { default as Divider } from './divider';
|
|
24
25
|
export { default as Drawer } from './drawer';
|
|
25
26
|
export { default as Dropdown, DropdownButton } from './dropdown';
|
|
@@ -28,7 +29,7 @@ export { default as Form, FormControl, FormItem, FormList, FormProvider, useForm
|
|
|
28
29
|
export { Col, default as Grid, GridItem, Row } from './grid';
|
|
29
30
|
export { addFromIconFontCn, default as Icon, IconContext, useIconProps, } from './icon';
|
|
30
31
|
export { default as Image, ImagePreview, ImagePreviewGroup } from './image';
|
|
31
|
-
export { default as Input, InputGroup, InputPassword, InputSearch, InputTextArea, TextArea, } from './input';
|
|
32
|
+
export { default as Input, InputButton, InputGroup, InputPassword, InputSearch, InputTextArea, TextArea, } from './input';
|
|
32
33
|
export { default as InputNumber } from './input-number';
|
|
33
34
|
export { default as InputTag } from './input-tag';
|
|
34
35
|
export { default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, } from './layout';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { MergePropsOptions } from '../hooks/useMergeProps';
|
|
3
|
+
import InputButton from './Button';
|
|
3
4
|
import Group from './Group';
|
|
4
5
|
import InputNumber from './Number';
|
|
5
6
|
import Password from './Password';
|
|
@@ -8,17 +9,18 @@ import InputTag from './Tag';
|
|
|
8
9
|
import TextArea from './Textarea';
|
|
9
10
|
import type { InputProps, RefInputType } from './interface';
|
|
10
11
|
export declare function formatValue(value: any, maxLength: any): any;
|
|
11
|
-
|
|
12
|
+
declare const ForwardRefInput: React.ForwardRefExoticComponent<InputProps & MergePropsOptions & React.RefAttributes<RefInputType>>;
|
|
13
|
+
declare const Input: typeof ForwardRefInput & {
|
|
12
14
|
Search: typeof Search;
|
|
13
15
|
TextArea: typeof TextArea;
|
|
14
16
|
Password: typeof Password;
|
|
17
|
+
Group: typeof Group;
|
|
15
18
|
Number: typeof InputNumber;
|
|
16
19
|
InputNumber: typeof InputNumber;
|
|
17
20
|
Tag: typeof InputTag;
|
|
18
21
|
InputTag: typeof InputTag;
|
|
19
|
-
|
|
22
|
+
Button: typeof InputButton;
|
|
23
|
+
InputButton: typeof InputButton;
|
|
20
24
|
};
|
|
21
|
-
|
|
22
|
-
export
|
|
23
|
-
export { Group as InputGroup, InputNumber, Password as InputPassword, Search as InputSearch, InputTag, TextArea as InputTextArea, TextArea, };
|
|
24
|
-
export default InputElement;
|
|
25
|
+
export { InputButton, Group as InputGroup, InputNumber, Password as InputPassword, Search as InputSearch, InputTag, TextArea as InputTextArea, TextArea, };
|
|
26
|
+
export default Input;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TextAreaProps } from './interface';
|
|
3
3
|
export type RefTextAreaType = {
|
|
4
|
+
/** 使输入框失去焦点 */
|
|
4
5
|
blur: () => void;
|
|
6
|
+
/** 使输入框获取焦点 */
|
|
5
7
|
focus: () => void;
|
|
8
|
+
/** textarea dom元素 */
|
|
6
9
|
dom: HTMLTextAreaElement;
|
|
7
10
|
};
|
|
8
11
|
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<RefTextAreaType>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Input from './Input';
|
|
2
|
-
import
|
|
2
|
+
import { InputProps, RefInputType, TextAreaProps } from './interface';
|
|
3
3
|
import { InputPasswordProps } from './Password';
|
|
4
4
|
import { InputSearchProps } from './Search';
|
|
5
5
|
import { RefTextAreaType } from './Textarea';
|
|
6
6
|
export type { InputPasswordProps, InputProps, InputSearchProps, RefInputType, RefTextAreaType, TextAreaProps, };
|
|
7
|
-
export
|
|
7
|
+
export { InputButton, InputGroup, InputNumber, InputPassword, InputSearch, InputTag, InputTextArea, TextArea, } from './Input';
|
|
8
8
|
export default Input;
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { CSSProperties, InputHTMLAttributes, ReactNode, TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import { ButtonProps } from '../button';
|
|
3
|
+
import { Omit } from '../utils/type';
|
|
4
|
+
/**
|
|
5
|
+
* @title Input
|
|
6
|
+
* @zh **Input 接受所有原生的属性值**
|
|
7
|
+
* @en **Input Accept all native attribute values**
|
|
8
|
+
*/
|
|
9
|
+
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'prefix' | 'className' | 'size' | 'height' | 'maxLength'> {
|
|
10
|
+
style?: CSSProperties;
|
|
11
|
+
className?: string | string[];
|
|
12
|
+
/**
|
|
13
|
+
* @zh 允许清空输入框
|
|
14
|
+
* @en Whether allow clear value
|
|
15
|
+
*/
|
|
16
|
+
allowClear?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @zh 是否禁用
|
|
19
|
+
* @en Whether the input is disabled
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @zh 是否只读
|
|
24
|
+
* @en Whether the input is readOnly
|
|
25
|
+
*/
|
|
26
|
+
readOnly?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @zh 默认值
|
|
29
|
+
* @en The initial input content
|
|
30
|
+
*/
|
|
31
|
+
defaultValue?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @zh 输入框提示文字
|
|
34
|
+
* @en Input box prompt text
|
|
35
|
+
*/
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
/**
|
|
38
|
+
* @zh 是否是错误状态.(废弃,下个大版本移除,使用 status='error' 替代)
|
|
39
|
+
* @en Whether the input is error.(Deprecated, removed in the next major version, use status='error' instead)
|
|
40
|
+
* @deprecated status="error"
|
|
41
|
+
*/
|
|
42
|
+
error?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @zh 状态
|
|
45
|
+
* @en Status
|
|
46
|
+
* @version 2.45.0
|
|
47
|
+
*/
|
|
48
|
+
status?: 'error' | 'warning';
|
|
49
|
+
/**
|
|
50
|
+
* @zh 设置宽度自适应。minWidth 默认为 0,maxWidth 默认为 100%
|
|
51
|
+
* @en auto width. minWidth defaults to 0, maxWidth defaults to 100%
|
|
52
|
+
* @version 2.54.0
|
|
53
|
+
*/
|
|
54
|
+
autoWidth?: boolean | {
|
|
55
|
+
minWidth?: CSSProperties['minWidth'];
|
|
56
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
/**
|
|
60
|
+
* @zh 输入时的回调
|
|
61
|
+
* @en Callback when user input
|
|
62
|
+
*/
|
|
63
|
+
onChange?: (value: string, e: any) => void;
|
|
64
|
+
/**
|
|
65
|
+
* @zh 点击清除按钮的回调
|
|
66
|
+
* @en Callback when click clear button
|
|
67
|
+
*/
|
|
68
|
+
onClear?: () => void;
|
|
69
|
+
/**
|
|
70
|
+
* @zh 按下回车键的回调
|
|
71
|
+
* @en Callback when press enter key
|
|
72
|
+
*/
|
|
73
|
+
onPressEnter?: (e: any) => void;
|
|
74
|
+
/**
|
|
75
|
+
* @zh 指定 normalize 执行的时机
|
|
76
|
+
* @en Specify the timing of normalize execution
|
|
77
|
+
* @version 2.50.0
|
|
78
|
+
* @defaultValue ['onBlur']
|
|
79
|
+
*/
|
|
80
|
+
normalizeTrigger?: ('onBlur' | 'onPressEnter')[];
|
|
81
|
+
/**
|
|
82
|
+
* @zh 在指定时机对用户输入的值进行格式化处理。前后值不一致时,会触发 onChange
|
|
83
|
+
* @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
|
+
*/
|
|
86
|
+
normalize?: (value: string) => string;
|
|
87
|
+
/**
|
|
88
|
+
* @zh 输入框前添加元素
|
|
89
|
+
* @en The label text displayed before (on the left side of) the input field
|
|
90
|
+
*/
|
|
91
|
+
addBefore?: ReactNode;
|
|
92
|
+
/**
|
|
93
|
+
* @zh 输入框后添加元素
|
|
94
|
+
* @en The label text displayed after (on the right side of) the input field
|
|
95
|
+
*/
|
|
96
|
+
addAfter?: ReactNode;
|
|
97
|
+
/**
|
|
98
|
+
* @zh 添加前缀文字或者图标
|
|
99
|
+
* @en The prefix icon or text for the Input
|
|
100
|
+
*/
|
|
101
|
+
prefix?: ReactNode;
|
|
102
|
+
/**
|
|
103
|
+
* @zh 添加后缀文字或者图标
|
|
104
|
+
* @en The suffix icon or text for the Input
|
|
105
|
+
*/
|
|
106
|
+
suffix?: ReactNode;
|
|
107
|
+
/**
|
|
108
|
+
* @zh 输入框的值,受控模式
|
|
109
|
+
* @en The input content value
|
|
110
|
+
*/
|
|
111
|
+
value?: string;
|
|
112
|
+
/**
|
|
113
|
+
* @zh 输入框前添加元素的样式
|
|
114
|
+
* @en The additional css style of the `addBefore` element
|
|
115
|
+
*/
|
|
116
|
+
beforeStyle?: object;
|
|
117
|
+
/**
|
|
118
|
+
* @zh 输入框后添加元素的样式
|
|
119
|
+
* @en The additional css style of the `addAfter` element
|
|
120
|
+
*/
|
|
121
|
+
afterStyle?: object;
|
|
122
|
+
/**
|
|
123
|
+
* @zh 输入框的尺寸
|
|
124
|
+
* @en The size of the input box
|
|
125
|
+
* @defaultValue default
|
|
126
|
+
*/
|
|
127
|
+
size?: 'mini' | 'small' | 'default' | 'large';
|
|
128
|
+
/**
|
|
129
|
+
* @zh 自定义输入框高度
|
|
130
|
+
* @en Custom input height
|
|
131
|
+
*/
|
|
132
|
+
height?: number | string;
|
|
133
|
+
/**
|
|
134
|
+
* @zh 输入框最大输入的长度;设置 `errorOnly`为 `true` 后,超过 `maxLength` 会展示 `error` 状态,并不限制用户输入。
|
|
135
|
+
* @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
|
+
*/
|
|
138
|
+
maxLength?: number | {
|
|
139
|
+
length: number;
|
|
140
|
+
errorOnly?: boolean;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* @zh 配合 `maxLength`,显示字数统计
|
|
144
|
+
* @en With `maxLength`, Show word count.
|
|
145
|
+
*/
|
|
146
|
+
showWordLimit?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* @zh `allowClear` 时配置清除按钮的图标。
|
|
149
|
+
* @en Configure the icon of the clear button when `allowClear`.
|
|
150
|
+
* @version 2.50.0
|
|
151
|
+
*/
|
|
152
|
+
clearIcon?: ReactNode;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @title Input.TextArea
|
|
156
|
+
*/
|
|
157
|
+
export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'className' | 'maxLength'> {
|
|
158
|
+
style?: CSSProperties;
|
|
159
|
+
/**
|
|
160
|
+
* @zh 开启字数统计之后,会在 `textarea` 标签外包一层 `div`,`wrapperStyle` 用来配置这个 `div` 的样式。
|
|
161
|
+
* @en With `showWordLimit`, a `div` will be outside the `textarea` tag, and `wrapperStyle` is used to configure the style of it.
|
|
162
|
+
*/
|
|
163
|
+
wrapperStyle?: CSSProperties;
|
|
164
|
+
className?: string | string[];
|
|
165
|
+
/**
|
|
166
|
+
* @zh 是否禁用
|
|
167
|
+
* @en Whether the textarea is disabled
|
|
168
|
+
*/
|
|
169
|
+
disabled?: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* @zh 默认值
|
|
172
|
+
* @en To set default value
|
|
173
|
+
*/
|
|
174
|
+
defaultValue?: string;
|
|
175
|
+
/**
|
|
176
|
+
* @zh 值
|
|
177
|
+
* @en To set value
|
|
178
|
+
*/
|
|
179
|
+
value?: string;
|
|
180
|
+
/**
|
|
181
|
+
* @zh 是否自动调整输入框的高度
|
|
182
|
+
* @en Height autoSize feature
|
|
183
|
+
*/
|
|
184
|
+
autoSize?: boolean | {
|
|
185
|
+
minRows?: number;
|
|
186
|
+
maxRows?: number;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* @zh 是否是错误状态。(废弃,下个大版本移除,使用 status='error' 替代)
|
|
190
|
+
* @en Whether the textarea is error.(Deprecated, removed in the next major version, use status='error' instead)
|
|
191
|
+
* @deprecated
|
|
192
|
+
*/
|
|
193
|
+
error?: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* @zh 状态
|
|
196
|
+
* @en Status
|
|
197
|
+
* @version 2.45.0
|
|
198
|
+
*/
|
|
199
|
+
status?: 'error' | 'warning';
|
|
200
|
+
/**
|
|
201
|
+
* @zh 输入框提示文字
|
|
202
|
+
* @en textarea placeholder
|
|
203
|
+
*/
|
|
204
|
+
placeholder?: string;
|
|
205
|
+
/**
|
|
206
|
+
* @zh 输入时的回调
|
|
207
|
+
* @en Callback when user input
|
|
208
|
+
*/
|
|
209
|
+
onChange?: (value: string, e: any) => void;
|
|
210
|
+
/**
|
|
211
|
+
* @zh 按下回车键的回调
|
|
212
|
+
* @en Callback when press enter key
|
|
213
|
+
*/
|
|
214
|
+
onPressEnter?: (e: any) => void;
|
|
215
|
+
/**
|
|
216
|
+
* @zh 输入框最大输入的长度;设置 `errorOnly`为 `true` 后,超过 `maxLength` 会展示 `error` 状态,并不限制用户输入。
|
|
217
|
+
* @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
|
+
*/
|
|
220
|
+
maxLength?: number | {
|
|
221
|
+
length: number;
|
|
222
|
+
errorOnly?: boolean;
|
|
223
|
+
};
|
|
224
|
+
showWordLimit?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* @zh 允许清空输入框
|
|
227
|
+
* @en Whether allow clear the content
|
|
228
|
+
* @version 2.2.0
|
|
229
|
+
*/
|
|
230
|
+
allowClear?: boolean;
|
|
231
|
+
/**
|
|
232
|
+
* @zh 点击清除按钮的回调
|
|
233
|
+
* @en Callback when click clear button
|
|
234
|
+
* @version 2.2.0
|
|
235
|
+
*/
|
|
236
|
+
onClear?: () => void;
|
|
237
|
+
/**
|
|
238
|
+
* @zh `allowClear` 时配置清除按钮的图标。
|
|
239
|
+
* @en Configure the icon of the clear button when `allowClear`.
|
|
240
|
+
* @version 2.50.0
|
|
241
|
+
*/
|
|
242
|
+
clearIcon?: ReactNode;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* @title Input.Group
|
|
246
|
+
*/
|
|
247
|
+
export interface InputGroupProps {
|
|
248
|
+
style?: CSSProperties;
|
|
249
|
+
className?: string | string[];
|
|
250
|
+
/**
|
|
251
|
+
* @zh 是否使用紧凑模式
|
|
252
|
+
* @en Whether to use compact mode
|
|
253
|
+
*/
|
|
254
|
+
compact?: boolean;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* @title Input.Search
|
|
258
|
+
* @zh 包含 Input 组件所有参数
|
|
259
|
+
* @en Contains all the parameters of the Input component
|
|
260
|
+
* @notExtends
|
|
261
|
+
*/
|
|
262
|
+
export interface InputSearchProps extends InputProps {
|
|
263
|
+
/**
|
|
264
|
+
* @zh 搜索时展示加载状态
|
|
265
|
+
* @en Show loading status when searching
|
|
266
|
+
* @version 2.6.0
|
|
267
|
+
*/
|
|
268
|
+
loading?: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* @zh 点击搜索按钮的回调
|
|
271
|
+
* @en Callback when click search button
|
|
272
|
+
*/
|
|
273
|
+
onSearch?: (value: string) => void;
|
|
274
|
+
/**
|
|
275
|
+
* @zh 搜索按钮
|
|
276
|
+
* @en Search button
|
|
277
|
+
* @version `ReactNode` in 2.6.0
|
|
278
|
+
*/
|
|
279
|
+
searchButton?: boolean | ReactNode;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* @title Input.Button
|
|
283
|
+
* @zh 包含 Input 组件所有参数
|
|
284
|
+
* @en Contains all the parameters of the Input component
|
|
285
|
+
* @notExtends
|
|
286
|
+
*/
|
|
287
|
+
export interface InputButtonProps extends InputProps {
|
|
288
|
+
buttonProps: ButtonProps;
|
|
289
|
+
label: string;
|
|
290
|
+
/**
|
|
291
|
+
* @zh 加载状态
|
|
292
|
+
*/
|
|
293
|
+
loading?: boolean;
|
|
294
|
+
/**
|
|
295
|
+
* @zh 点击按钮的回调
|
|
296
|
+
*/
|
|
297
|
+
onCallback?: (value: string) => void;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* @title Input.Password
|
|
301
|
+
* @zh 包含 Input 组件所有参数
|
|
302
|
+
* @en Contains all the parameters of the Input component
|
|
303
|
+
* @notExtends
|
|
304
|
+
*/
|
|
305
|
+
export interface InputPasswordProps extends InputProps {
|
|
306
|
+
/**
|
|
307
|
+
* @zh 是否显示切换密码可见状态的按钮
|
|
308
|
+
* @en Whether to display the button to switch the visible state of the password
|
|
309
|
+
*/
|
|
310
|
+
visibilityToggle?: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* @zh 初始是否显示
|
|
313
|
+
* @en To set default visibility
|
|
314
|
+
*/
|
|
315
|
+
defaultVisibility?: boolean;
|
|
316
|
+
/**
|
|
317
|
+
* @zh 是否显示
|
|
318
|
+
* @zh To set visibility
|
|
319
|
+
*/
|
|
320
|
+
visibility?: boolean;
|
|
321
|
+
/**
|
|
322
|
+
* @zh visibility 改变时触发
|
|
323
|
+
* @en Callback when visibility changes
|
|
324
|
+
*/
|
|
325
|
+
onVisibilityChange?: (visibility: boolean) => void;
|
|
326
|
+
}
|
|
327
|
+
export interface InputComponentProps extends InputProps {
|
|
328
|
+
prefixCls?: string;
|
|
329
|
+
hasParent?: boolean;
|
|
330
|
+
autoFitWidth?: boolean | {
|
|
331
|
+
minWidth?: CSSProperties['minWidth'];
|
|
332
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
333
|
+
pure?: boolean;
|
|
334
|
+
delay: number | ((width: number, prevWidth: number) => number);
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
export type RefInputType = {
|
|
338
|
+
/** 使输入框失去焦点 */
|
|
339
|
+
blur: () => void;
|
|
340
|
+
/** 使输入框获取焦点 */
|
|
341
|
+
focus: () => void;
|
|
342
|
+
/** input dom元素 */
|
|
343
|
+
dom: HTMLInputElement;
|
|
344
|
+
};
|