@unicom-cloud/ui 0.8.83 → 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 +8 -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/{R-uQJib2.js → B1kymbJZ.js} +2 -2
- package/chunk/B44Hj5ad.js +697 -0
- package/chunk/{BZ9g7J4R.js → BC2OXILt.js} +1 -1
- package/chunk/{ev6oHWqY.js → BJjotfW6.js} +1 -1
- package/chunk/{uKZyjtff.js → BNevupAU.js} +4 -5
- package/chunk/BRPQJFSI.js +649 -0
- package/chunk/{CVSWh4ZZ.js → BZJwzdhZ.js} +1 -1
- package/chunk/C7bohPVD.js +185 -0
- package/chunk/{BmulTYLW.js → DO3k0z6J.js} +2802 -2791
- package/chunk/Doi4-DdV.js +1472 -0
- package/chunk/{DdJVL_4g.js → DuWBv5j3.js} +1 -1
- package/chunk/{DSRHFFrc.js → DzekwbB4.js} +1 -1
- 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 +2 -2
- 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 +310 -308
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +332 -330
- 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 +7 -8
- 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/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} +1 -0
- package/types/{input → pc/input}/Input.d.ts +7 -8
- 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}/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 +9 -9
- 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/index.js +20 -20
- package/utils/names.js +4 -0
- package/utils/setPrimaryColor.js +14 -14
- package/utils/setTheme.js +3 -3
- 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/C9oo3EJI.js +0 -692
- package/chunk/DILUZgXW.js +0 -1464
- package/chunk/DlHiTTJO.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 -100
- 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}/setTheme.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}/Button.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}/index.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,308 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { SelectViewCommonProps } from '../select-view';
|
|
3
|
+
import { TriggerProps } from '../trigger';
|
|
4
|
+
import { VirtualListProps } from '../virtual-list/VirtualList';
|
|
5
|
+
import { NodeProps } from './base/node';
|
|
6
|
+
import Store from './base/store';
|
|
7
|
+
/**
|
|
8
|
+
* @title Cascader
|
|
9
|
+
*/
|
|
10
|
+
export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'showSearch'> {
|
|
11
|
+
/**
|
|
12
|
+
* @zh 选择框的默认值
|
|
13
|
+
* @en Initial value
|
|
14
|
+
*/
|
|
15
|
+
defaultValue?: (string | string[])[];
|
|
16
|
+
/**
|
|
17
|
+
* @zh 输入框的值
|
|
18
|
+
* @en Input Value
|
|
19
|
+
* @version 2.34.0
|
|
20
|
+
*/
|
|
21
|
+
inputValue?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @zh 选中值
|
|
24
|
+
* @en To set value
|
|
25
|
+
*/
|
|
26
|
+
value?: (string | string[])[];
|
|
27
|
+
/**
|
|
28
|
+
* @zh 级联数据
|
|
29
|
+
* @en The data of options
|
|
30
|
+
* @defaultValue []
|
|
31
|
+
*/
|
|
32
|
+
options?: T[];
|
|
33
|
+
trigger?: TriggerProps['trigger'];
|
|
34
|
+
/**
|
|
35
|
+
* @zh 展开下一级方式
|
|
36
|
+
* @en Set the way to display the next level menu. One of hover and click
|
|
37
|
+
* @defaultValue click
|
|
38
|
+
*/
|
|
39
|
+
expandTrigger?: 'click' | 'hover';
|
|
40
|
+
/**
|
|
41
|
+
* @zh 每当选择的时候,值都会发生改变。多选时如果设置为`true`,会取消父子关系的关联。(默认只有在选择完成的时候,值才会更新)
|
|
42
|
+
* @en Each selection will change value if set to true. when `mode=multiple`, child node and parent node will not affect each other.
|
|
43
|
+
*/
|
|
44
|
+
changeOnSelect?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* @zh 是否在非动态加载时,选中项children为[]的时候渲染下一级节点。
|
|
47
|
+
* @en Whether to render the next level node when the children of the selected option is an empty array
|
|
48
|
+
*/
|
|
49
|
+
showEmptyChildren?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @zh 是否在隐藏之后销毁DOM结构,默认为 `true`。如果是动态加载时,默认为`false`。
|
|
52
|
+
* @en Whether destroy popup when hidden.
|
|
53
|
+
*/
|
|
54
|
+
unmountOnExit?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* @zh 是否开启多选
|
|
57
|
+
* @en Set mode
|
|
58
|
+
*/
|
|
59
|
+
mode?: 'multiple';
|
|
60
|
+
/**
|
|
61
|
+
* @zh 可以接受所有 Trigger 组件的 Props
|
|
62
|
+
* @en All `Trigger` component props
|
|
63
|
+
*/
|
|
64
|
+
triggerProps?: Partial<TriggerProps>;
|
|
65
|
+
/**
|
|
66
|
+
* @zh
|
|
67
|
+
* 使单选模式可搜索,传入 `{ retainInputValue: true }` 在搜索框聚焦时保留现有内容
|
|
68
|
+
* 传入 `{ retainInputValueWhileSelect: true }` 在多选选择时保留输入框内容。
|
|
69
|
+
* 传入 `{ panelMode: 'select' }` 以搜索面板形式展示可选项 (`2.39.0`)
|
|
70
|
+
* `renderOption` 自定义渲染搜索项 (`2.39.0`)
|
|
71
|
+
* @en
|
|
72
|
+
* Whether single mode Select is searchable. `{ retainInputValue: true }` to retain the existing content when the search box is focused,
|
|
73
|
+
* `{ retainInputValueWhileSelect: true }` to retain the existing content when multiple selection is selected.
|
|
74
|
+
* `{ panelMode: 'select' }` Display options as a search panel (`2.39.0`)
|
|
75
|
+
* `renderOption` Custom rendering search option (`2.39.0`)
|
|
76
|
+
*/
|
|
77
|
+
showSearch?: boolean | {
|
|
78
|
+
panelMode?: 'cascader' | 'select';
|
|
79
|
+
renderOption?: (inputValue: string, option: NodeProps<T>, options: extraOptions) => ReactNode;
|
|
80
|
+
retainInputValue?: boolean;
|
|
81
|
+
retainInputValueWhileSelect?: boolean;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* @zh 没有数据时显示的内容
|
|
85
|
+
* @en The content to show when no result matches
|
|
86
|
+
*/
|
|
87
|
+
notFoundContent?: ReactNode;
|
|
88
|
+
/**
|
|
89
|
+
* @zh 指定label,value,isLeaf,disabled,children 对应的字段
|
|
90
|
+
* @en Custom field name for label, value, isLeaf, disabled and children
|
|
91
|
+
* @defaultValue DefaultFieldNames
|
|
92
|
+
*/
|
|
93
|
+
fieldNames?: FieldNamesType;
|
|
94
|
+
/**
|
|
95
|
+
* @zh 控制下拉框的展开收起
|
|
96
|
+
* @en Whether the popup is visible
|
|
97
|
+
*/
|
|
98
|
+
popupVisible?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* @zh 默认下拉框的展开收起状态
|
|
101
|
+
* @en Whether the popup is visible by default
|
|
102
|
+
*/
|
|
103
|
+
defaultPopupVisible?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* @zh
|
|
106
|
+
* 定制回填方式 <br/> parent: 子节点都被选中时候返回父节点 <br/> child: 返回子节点
|
|
107
|
+
* @en
|
|
108
|
+
* Customize the return value <br/> parent:
|
|
109
|
+
* Only return the parent node when all child nodes are selected <br/> child: Return child nodes
|
|
110
|
+
* @defaultValue child
|
|
111
|
+
* @version 2.31.0
|
|
112
|
+
*/
|
|
113
|
+
checkedStrategy?: 'parent' | 'child';
|
|
114
|
+
/**
|
|
115
|
+
* @zh 自定义下拉列表类名
|
|
116
|
+
* @en Custom dropdown list classname
|
|
117
|
+
* @version 2.35.0
|
|
118
|
+
*/
|
|
119
|
+
dropdownMenuClassName?: string | string[];
|
|
120
|
+
/**
|
|
121
|
+
* @zh 菜单列样式
|
|
122
|
+
* @en dropdown menu column style
|
|
123
|
+
* @version 2.35.0
|
|
124
|
+
*/
|
|
125
|
+
dropdownMenuColumnStyle?: CSSProperties;
|
|
126
|
+
/**
|
|
127
|
+
* @zh 传递虚拟滚动属性。开启虚拟滚动后,每列级联菜单的会存在默认宽度,可通过 `dropdownMenuColumnStyle` 进行样式调整
|
|
128
|
+
* @en virtual list props. After virtual scrolling is enabled, there will be a default width for each column of cascading menus, which can be adjusted by `dropdownMenuColumnStyle`
|
|
129
|
+
* @version 2.35.0
|
|
130
|
+
*/
|
|
131
|
+
virtualListProps?: Pick<VirtualListProps<any>, 'threshold' | 'isStaticItemHeight'>;
|
|
132
|
+
/**
|
|
133
|
+
* @zh 是否默认高亮搜索结果第一个选项。
|
|
134
|
+
* @en Whether to highlight the first option of search results by default
|
|
135
|
+
* @version 2.37.0
|
|
136
|
+
* @defaultValue true
|
|
137
|
+
*/
|
|
138
|
+
defaultActiveFirstOption?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* @zh 自定义下拉菜单的展示。
|
|
141
|
+
* @en Customize the popup menu.
|
|
142
|
+
* @version 2.15.0
|
|
143
|
+
*/
|
|
144
|
+
dropdownRender?: (menu: ReactNode) => ReactNode;
|
|
145
|
+
/**
|
|
146
|
+
* @zh 自定义下拉菜单每一列的展示。
|
|
147
|
+
* @en Customize columns of the menu.
|
|
148
|
+
* @version 2.15.0, `level` in 2.17.0
|
|
149
|
+
*/
|
|
150
|
+
dropdownColumnRender?: (menu: ReactNode, level: number) => ReactNode;
|
|
151
|
+
/**
|
|
152
|
+
* @zh 默认搜索从 `label` 属性中进行关键字搜索。通过该方法可以自定义搜索逻辑
|
|
153
|
+
* @en Customize the search logic.
|
|
154
|
+
*/
|
|
155
|
+
filterOption?: (inputValue: string, option: NodeProps<T>) => boolean;
|
|
156
|
+
/**
|
|
157
|
+
* @zh 自定义展示 `option`
|
|
158
|
+
* @en Custom rendering `option`
|
|
159
|
+
*/
|
|
160
|
+
renderOption?: (option: NodeProps<T>, level: number) => ReactNode;
|
|
161
|
+
/**
|
|
162
|
+
* @zh 定义每一层级的 `footer`。参数:level: 当前层级, activeOption: 当前点击的节点。返回 `null` 不展示
|
|
163
|
+
* @en Custom rendering the `footer` of each level menu.
|
|
164
|
+
*/
|
|
165
|
+
renderFooter?: (level: number, activeOption: NodeProps<T> | null) => ReactNode;
|
|
166
|
+
/**
|
|
167
|
+
* @zh 格式化显示内容。
|
|
168
|
+
* @en The return value will be displayed in the input box.
|
|
169
|
+
*/
|
|
170
|
+
renderFormat?: (valueShow: any[]) => ReactNode;
|
|
171
|
+
/**
|
|
172
|
+
* @zh 搜索时的回调。(reason in `2.34.0`)
|
|
173
|
+
* @en Callback when input changed.(reason in `2.34.0`)
|
|
174
|
+
* @version 2.20.0
|
|
175
|
+
*/
|
|
176
|
+
onSearch?: (inputValue: string, reason: InputValueChangeReason) => void;
|
|
177
|
+
/**
|
|
178
|
+
* @zh 点击选择框的回调。
|
|
179
|
+
* @en Callback when finishing select.
|
|
180
|
+
*/
|
|
181
|
+
onChange?: (value: (string | string[])[], selectedOptions: any, extra: {
|
|
182
|
+
dropdownVisible?: boolean;
|
|
183
|
+
}) => void;
|
|
184
|
+
/**
|
|
185
|
+
* @zh inputValue改变时的回调
|
|
186
|
+
* @en Callback when inputValue change.
|
|
187
|
+
* @version 2.34.0
|
|
188
|
+
*/
|
|
189
|
+
onInputValueChange?: (inputValue: string, reason: InputValueChangeReason) => void;
|
|
190
|
+
/**
|
|
191
|
+
* @zh 弹出框挂在的父节点
|
|
192
|
+
* @en ParentNode which the selector should be rendered to.
|
|
193
|
+
*/
|
|
194
|
+
getPopupContainer?: (node: HTMLElement) => Element;
|
|
195
|
+
/**
|
|
196
|
+
* @zh 动态加载数据。pathValue: 当前选中项的路径 value; level: 选中项层级。
|
|
197
|
+
* @en To load option lazily
|
|
198
|
+
*/
|
|
199
|
+
loadMore?: (pathValue: string[], level: number) => Promise<T[]>;
|
|
200
|
+
/**
|
|
201
|
+
* @zh 下拉框收起展开时触发。
|
|
202
|
+
* @en Callback when popup shown or hidden.
|
|
203
|
+
*/
|
|
204
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
205
|
+
/**
|
|
206
|
+
* @zh 点击清除时触发,参数是当前下拉框的展开状态。
|
|
207
|
+
* @en Callback when click clear icon.
|
|
208
|
+
*/
|
|
209
|
+
onClear?: (visible: boolean) => void;
|
|
210
|
+
/**
|
|
211
|
+
* @zh 图标配置。
|
|
212
|
+
* @en Icon configuration.
|
|
213
|
+
* @version 2.50.0
|
|
214
|
+
*/
|
|
215
|
+
icons?: {
|
|
216
|
+
loading?: ReactNode;
|
|
217
|
+
checked?: ReactNode;
|
|
218
|
+
next?: ReactNode;
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
export interface OptionProps {
|
|
222
|
+
/**
|
|
223
|
+
* @zh 选项的值
|
|
224
|
+
* @en: the value of Option
|
|
225
|
+
*
|
|
226
|
+
*/
|
|
227
|
+
value?: string;
|
|
228
|
+
/**
|
|
229
|
+
* @zh 选项文本
|
|
230
|
+
* @en option text
|
|
231
|
+
*/
|
|
232
|
+
label?: string;
|
|
233
|
+
/**
|
|
234
|
+
* @zh 是否禁用该选项
|
|
235
|
+
* @en whether to disabled
|
|
236
|
+
*/
|
|
237
|
+
disabled?: boolean;
|
|
238
|
+
/**
|
|
239
|
+
* @zh 下一级选项
|
|
240
|
+
* @en next level menu
|
|
241
|
+
*/
|
|
242
|
+
children?: OptionProps[];
|
|
243
|
+
/**
|
|
244
|
+
* @zh 是否是叶子节点
|
|
245
|
+
* @en Flag whether it is a leaf node
|
|
246
|
+
*/
|
|
247
|
+
isLeaf?: boolean;
|
|
248
|
+
/**
|
|
249
|
+
* @zh 是否禁用复选框选中
|
|
250
|
+
* @en Whether to disable the check box is selected
|
|
251
|
+
* @version 2.21.0
|
|
252
|
+
*/
|
|
253
|
+
disableCheckbox?: boolean;
|
|
254
|
+
/**
|
|
255
|
+
* @zh 其他字段
|
|
256
|
+
* @en other fields
|
|
257
|
+
*/
|
|
258
|
+
[key: string]: any;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* fieldnames 属性类型
|
|
262
|
+
*/
|
|
263
|
+
export type FieldNamesType = {
|
|
264
|
+
label?: string;
|
|
265
|
+
/** Custom field name for value */
|
|
266
|
+
value?: string;
|
|
267
|
+
/** Custom field name for children */
|
|
268
|
+
children?: string;
|
|
269
|
+
/** Custom field name for disabled */
|
|
270
|
+
disabled?: string;
|
|
271
|
+
/** Custom field name for isLeaf */
|
|
272
|
+
isLeaf?: string;
|
|
273
|
+
};
|
|
274
|
+
export type InputValueChangeReason = 'manual' | 'optionListHide' | 'optionChecked';
|
|
275
|
+
export interface CascaderPanelProps<T> {
|
|
276
|
+
className?: string | string[];
|
|
277
|
+
style?: CSSProperties;
|
|
278
|
+
store: Store<T>;
|
|
279
|
+
multiple?: boolean;
|
|
280
|
+
defaultValue?: string[][];
|
|
281
|
+
value?: string[][];
|
|
282
|
+
changeOnSelect?: boolean;
|
|
283
|
+
popupVisible?: boolean;
|
|
284
|
+
expandTrigger?: 'click' | 'hover';
|
|
285
|
+
trigger?: 'click';
|
|
286
|
+
prefixCls?: string;
|
|
287
|
+
rtl?: boolean;
|
|
288
|
+
showEmptyChildren?: boolean;
|
|
289
|
+
virtualListProps?: CascaderProps<T>['virtualListProps'];
|
|
290
|
+
renderOption?: (option: NodeProps<T>, level: number) => ReactNode;
|
|
291
|
+
onChange?: (value: string[][]) => void;
|
|
292
|
+
loadMore?: (activeValue: any, level: number) => void;
|
|
293
|
+
renderEmpty?: (width?: CSSProperties['width']) => ReactNode;
|
|
294
|
+
renderFooter?: (level: number, activeOption: NodeProps<T> | null) => ReactNode;
|
|
295
|
+
onDoubleClickOption?: () => void;
|
|
296
|
+
onEsc?: () => void;
|
|
297
|
+
dropdownColumnRender?: CascaderProps<T>['dropdownColumnRender'];
|
|
298
|
+
dropdownMenuColumnStyle?: CascaderProps<T>['dropdownMenuColumnStyle'];
|
|
299
|
+
getTriggerElement: () => HTMLElement;
|
|
300
|
+
icons?: {
|
|
301
|
+
loading?: ReactNode;
|
|
302
|
+
checked?: ReactNode;
|
|
303
|
+
next?: ReactNode;
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
export interface extraOptions {
|
|
307
|
+
checked: boolean;
|
|
308
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { CSSProperties, HTMLAttributes, ReactNode, ReactText } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @title Checkbox
|
|
4
|
+
* @zh `T = string | number`
|
|
5
|
+
* @en `T = string | number`
|
|
6
|
+
*/
|
|
7
|
+
export interface CheckboxProps<T extends ReactText = any> extends Omit<HTMLAttributes<HTMLLabelElement>, 'children' | 'className' | 'onChange'> {
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
className?: string | string[];
|
|
10
|
+
/**
|
|
11
|
+
* @zh 是否禁用
|
|
12
|
+
* @en Whether to disable
|
|
13
|
+
*/
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @zh 错误样式
|
|
17
|
+
* @en Whether to show in error style
|
|
18
|
+
*/
|
|
19
|
+
error?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @zh 是否选中
|
|
22
|
+
* @en Whether the checkbox is checked
|
|
23
|
+
*/
|
|
24
|
+
checked?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @zh 默认是否选中
|
|
27
|
+
* @en To set default checked
|
|
28
|
+
*/
|
|
29
|
+
defaultChecked?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @zh 半选状态
|
|
32
|
+
* @en The indeterminate state of checkbox
|
|
33
|
+
*/
|
|
34
|
+
indeterminate?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @zh 点击复选框的回调
|
|
37
|
+
* @en Callback when the state changes
|
|
38
|
+
*/
|
|
39
|
+
onChange?: (checked: boolean, e: Event) => void;
|
|
40
|
+
/**
|
|
41
|
+
* @zh 复选框的 value 属性
|
|
42
|
+
* @en To set checkbox value
|
|
43
|
+
*/
|
|
44
|
+
value?: T;
|
|
45
|
+
/**
|
|
46
|
+
* @zh 自定义 IconUiCheck
|
|
47
|
+
* @en Custom IconUiCheck
|
|
48
|
+
* @version 2.43.0
|
|
49
|
+
*/
|
|
50
|
+
icon?: ReactNode;
|
|
51
|
+
checkboxGroupValue?: T[];
|
|
52
|
+
onGroupChange?: (value: T, checked: boolean) => void;
|
|
53
|
+
isCheckboxGroup?: boolean;
|
|
54
|
+
children?: ReactNode | ((value: {
|
|
55
|
+
checked: boolean;
|
|
56
|
+
indeterminate: boolean;
|
|
57
|
+
}) => ReactNode);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @title Checkbox.Group
|
|
61
|
+
*/
|
|
62
|
+
export interface CheckboxGroupProps<T extends ReactText> {
|
|
63
|
+
style?: CSSProperties;
|
|
64
|
+
className?: string | string[];
|
|
65
|
+
/**
|
|
66
|
+
* @zh 整组失效
|
|
67
|
+
* @en Whether to disable all checkboxes in the group
|
|
68
|
+
*/
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* @zh 方向
|
|
72
|
+
* @en Arrangement direction
|
|
73
|
+
* @defaultValue horizontal
|
|
74
|
+
*/
|
|
75
|
+
direction?: 'horizontal' | 'vertical';
|
|
76
|
+
error?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* @zh 默认选中的选项
|
|
79
|
+
* @en Initial selected value
|
|
80
|
+
*/
|
|
81
|
+
defaultValue?: T[];
|
|
82
|
+
/**
|
|
83
|
+
* @zh 可选项
|
|
84
|
+
* @en Specifies options
|
|
85
|
+
*/
|
|
86
|
+
options?: (T | {
|
|
87
|
+
label: ReactNode;
|
|
88
|
+
value: T;
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
icon?: ReactNode;
|
|
91
|
+
})[];
|
|
92
|
+
/**
|
|
93
|
+
* @zh 选中的选项(受控模式)
|
|
94
|
+
* @en To set value
|
|
95
|
+
*/
|
|
96
|
+
value?: T[];
|
|
97
|
+
/**
|
|
98
|
+
* @zh 变化时的回调函数
|
|
99
|
+
* @en Callback when the state changes
|
|
100
|
+
*/
|
|
101
|
+
onChange?: (value: T[], e: Event) => void;
|
|
102
|
+
}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
export type ResultType<T> = {
|
|
2
|
+
/** 当前选中项 */
|
|
2
3
|
selected: T[];
|
|
4
|
+
/** 只选中传入参数的选项 */
|
|
3
5
|
setSelected: (value: T[]) => void;
|
|
6
|
+
/** 设置选项的选中状态 */
|
|
4
7
|
setValueSelected: (value: T | T[], selected?: boolean) => void;
|
|
8
|
+
/** 选中全部 */
|
|
5
9
|
selectAll: () => void;
|
|
10
|
+
/** 取消全部选中 */
|
|
6
11
|
unSelectAll: () => void;
|
|
12
|
+
/** 是否选项被选中 */
|
|
7
13
|
isSelected: (value: T) => boolean;
|
|
14
|
+
/** 切换选项选中状态。不传参数时,会切换所有选项的选中状态 */
|
|
8
15
|
toggle: (value?: T | T[]) => void;
|
|
16
|
+
/** 是否全部选项被选中 */
|
|
9
17
|
isAllSelected: () => boolean;
|
|
18
|
+
/** 是否只有部分选项选中 */
|
|
10
19
|
isPartialSelected: () => boolean;
|
|
11
20
|
};
|
|
12
21
|
declare const useCheckbox: <T>(values: T[], defaultSelected?: T[]) => ResultType<T>;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @title Collapse
|
|
4
|
+
*/
|
|
5
|
+
export interface CollapseProps {
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
className?: string | string[];
|
|
8
|
+
/**
|
|
9
|
+
* @zh 当前面板选中值
|
|
10
|
+
* @en Key of the active panel
|
|
11
|
+
*/
|
|
12
|
+
activeKey?: string | string[];
|
|
13
|
+
/**
|
|
14
|
+
* @zh 默认展开的面板
|
|
15
|
+
* @en Key of the default active panel
|
|
16
|
+
*/
|
|
17
|
+
defaultActiveKey?: string | string[];
|
|
18
|
+
/**
|
|
19
|
+
* @zh 是否是手风琴模式
|
|
20
|
+
* @en Whether to render as Accordion
|
|
21
|
+
*/
|
|
22
|
+
accordion?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @zh 自定义展开图标
|
|
25
|
+
* @en Custom collapse icon
|
|
26
|
+
*/
|
|
27
|
+
expandIcon?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* @zh 展开图标的位置
|
|
30
|
+
* @en Position of collapse icon
|
|
31
|
+
* @defaultValue left
|
|
32
|
+
*/
|
|
33
|
+
expandIconPosition?: 'left' | 'right';
|
|
34
|
+
/**
|
|
35
|
+
* @zh 无边框样式
|
|
36
|
+
* @en Whether to render border
|
|
37
|
+
* @defaultValue true
|
|
38
|
+
*/
|
|
39
|
+
bordered?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* @zh 设置为 `true` 时,挂载时不会渲染被隐藏的面板。
|
|
42
|
+
* @en If true, invisible panels will not be rendered on mount
|
|
43
|
+
* @defaultValue true
|
|
44
|
+
*/
|
|
45
|
+
lazyload?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @zh 是否销毁被折叠的面板
|
|
48
|
+
* @en If true, panels will be unmounted on collapsing
|
|
49
|
+
*/
|
|
50
|
+
destroyOnHide?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* @zh 可触发折叠操作的区域
|
|
53
|
+
* @en The area that can trigger the collapse operation
|
|
54
|
+
* @version 2.41.0
|
|
55
|
+
*/
|
|
56
|
+
triggerRegion?: 'header' | 'icon';
|
|
57
|
+
/**
|
|
58
|
+
* @zh 展开面板改变时触发
|
|
59
|
+
* @en Callback when the active panel changes
|
|
60
|
+
*/
|
|
61
|
+
onChange?: (key: string, keys: string[], e: any) => void;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @title Collapse.Item
|
|
65
|
+
*/
|
|
66
|
+
export interface CollapseItemProps {
|
|
67
|
+
style?: CSSProperties;
|
|
68
|
+
className?: string | string[];
|
|
69
|
+
/**
|
|
70
|
+
* @zh 内容区域的附加样式。
|
|
71
|
+
* @en Additional styles of the content area.
|
|
72
|
+
* @version 2.15.0
|
|
73
|
+
*/
|
|
74
|
+
contentStyle?: CSSProperties;
|
|
75
|
+
/**
|
|
76
|
+
* @zh 折叠面板头部内容,允许自定义
|
|
77
|
+
* @en Header content
|
|
78
|
+
*/
|
|
79
|
+
header?: ReactNode;
|
|
80
|
+
/**
|
|
81
|
+
* @zh 对应 activeKey,当前面板组件的的唯一标识
|
|
82
|
+
* @en Unique identifier key of the current panel item
|
|
83
|
+
*/
|
|
84
|
+
name: string;
|
|
85
|
+
/**
|
|
86
|
+
* @zh 是否禁用
|
|
87
|
+
* @en If true, the panel is not collapsible
|
|
88
|
+
*/
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* @zh 自定义展开图标
|
|
92
|
+
* @en Custom expand icon
|
|
93
|
+
*/
|
|
94
|
+
expandIcon?: ReactNode;
|
|
95
|
+
/**
|
|
96
|
+
* @zh 是否展示展开按钮
|
|
97
|
+
* @en Whether to show expand icon
|
|
98
|
+
* @defaultValue true
|
|
99
|
+
*/
|
|
100
|
+
showExpandIcon?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* @zh 额外节点
|
|
103
|
+
* @en The extra element in the corner
|
|
104
|
+
*/
|
|
105
|
+
extra?: ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* @zh 面板被折叠时是否销毁节点,优先级高于 `Collapse` 的 `destroyOnHide`
|
|
108
|
+
* @en If true, item will be unmounted on collapsing. (Higher priority than `Collapse.destroyOnHide`)
|
|
109
|
+
*/
|
|
110
|
+
destroyOnHide?: boolean;
|
|
111
|
+
}
|
|
@@ -11,13 +11,13 @@ interface UseColorPickerProps {
|
|
|
11
11
|
onVisibleChange?: (visible: boolean) => void;
|
|
12
12
|
}
|
|
13
13
|
export declare const useColorPicker: (props: UseColorPickerProps) => {
|
|
14
|
-
value:
|
|
14
|
+
value: string | GradientColor[] | undefined;
|
|
15
15
|
activeMode: ColorPickerMode;
|
|
16
16
|
gradientColors: InternalGradientColor[];
|
|
17
17
|
gradientColorsRef: import("react").MutableRefObject<InternalGradientColor[]>;
|
|
18
18
|
activeColorId: string;
|
|
19
19
|
activeColorIdRef: import("react").MutableRefObject<string>;
|
|
20
|
-
popupVisible:
|
|
20
|
+
popupVisible: boolean;
|
|
21
21
|
color: {
|
|
22
22
|
hsv: HSV;
|
|
23
23
|
rgb: import("@unicom-cloud/tinycolor").Numberify<import("@unicom-cloud/tinycolor").RGBA>;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { InputProps } from '../input';
|
|
3
|
+
import { TriggerProps } from '../trigger';
|
|
4
|
+
/**
|
|
5
|
+
* @title ColorPicker
|
|
6
|
+
*/
|
|
7
|
+
export interface ColorPickerProps {
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
className?: string | string[];
|
|
10
|
+
/**
|
|
11
|
+
* @zh 默认值
|
|
12
|
+
* @en The initial input content
|
|
13
|
+
*/
|
|
14
|
+
defaultValue?: string | GradientColor[];
|
|
15
|
+
/**
|
|
16
|
+
* @zh 颜色值,受控模式
|
|
17
|
+
* @en The input content value
|
|
18
|
+
*/
|
|
19
|
+
value?: string | GradientColor[];
|
|
20
|
+
/**
|
|
21
|
+
* @zh 显示颜色值
|
|
22
|
+
* @en Show color value
|
|
23
|
+
*/
|
|
24
|
+
showText?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @zh 颜色值的格式
|
|
27
|
+
* @en Color value format
|
|
28
|
+
*/
|
|
29
|
+
format?: 'hex' | 'rgb';
|
|
30
|
+
/**
|
|
31
|
+
* @zh 单一颜色或渐变色模式
|
|
32
|
+
* @en Whether to use single color or gradient color mode
|
|
33
|
+
* @defaultValue single
|
|
34
|
+
*/
|
|
35
|
+
mode?: 'single' | 'gradient' | ['single', 'gradient'];
|
|
36
|
+
/**
|
|
37
|
+
* @zh 禁用
|
|
38
|
+
* @en disabled
|
|
39
|
+
*/
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* @zh 输入框的尺寸
|
|
43
|
+
* @en The size of the input box
|
|
44
|
+
* @defaultValue default
|
|
45
|
+
*/
|
|
46
|
+
size?: InputProps['size'];
|
|
47
|
+
/**
|
|
48
|
+
* @zh 默认弹出框是打开还是关闭
|
|
49
|
+
* @en Whether the confirmation box is visible by default
|
|
50
|
+
*/
|
|
51
|
+
defaultPopupVisible?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* @zh 弹出框是打开还是关闭。(受控)
|
|
54
|
+
* @en Whether the confirmation box is visible
|
|
55
|
+
*/
|
|
56
|
+
popupVisible?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* @zh 隐藏后是否销毁 DOM 结构
|
|
59
|
+
* @en Whether to umount the node on hiding
|
|
60
|
+
* @defaultValue true
|
|
61
|
+
*/
|
|
62
|
+
unmountOnExit?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* @zh 可以接受所有 Trigger 组件的 Props
|
|
65
|
+
* @en All `Trigger` component props
|
|
66
|
+
*/
|
|
67
|
+
triggerProps?: Partial<TriggerProps>;
|
|
68
|
+
/**
|
|
69
|
+
* @zh 禁用透明通道
|
|
70
|
+
* @en Disable transparency channel
|
|
71
|
+
*/
|
|
72
|
+
disabledAlpha?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* @zh 显示历史颜色
|
|
75
|
+
* @en Show history colors
|
|
76
|
+
*/
|
|
77
|
+
showHistory?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* @zh 历史颜色的颜色数组
|
|
80
|
+
* @en Color array of history colors
|
|
81
|
+
*/
|
|
82
|
+
historyColors?: string[];
|
|
83
|
+
/**
|
|
84
|
+
* @zh 显示预设颜色
|
|
85
|
+
* @en Show preset colors
|
|
86
|
+
*/
|
|
87
|
+
showPreset?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* @zh 预设颜色的颜色数组
|
|
90
|
+
* @en Color array of preset colors
|
|
91
|
+
*/
|
|
92
|
+
presetColors?: string[];
|
|
93
|
+
extra?: ReactNode | ((params: {
|
|
94
|
+
value: string;
|
|
95
|
+
}) => ReactNode);
|
|
96
|
+
/**
|
|
97
|
+
* @zh 自定义触发元素。
|
|
98
|
+
* @en The trigger element which executes the dropdown action.
|
|
99
|
+
* @version 2.60.0
|
|
100
|
+
*/
|
|
101
|
+
triggerElement?: ReactNode | ((params: {
|
|
102
|
+
value: string | GradientColor[];
|
|
103
|
+
}) => ReactNode);
|
|
104
|
+
/**
|
|
105
|
+
* @zh 颜色值改变时触发
|
|
106
|
+
* @en Callback when the color value changes
|
|
107
|
+
*/
|
|
108
|
+
onChange?: (value: string | GradientColor[]) => void;
|
|
109
|
+
/**
|
|
110
|
+
* @zh 下拉框收起展开时触发。
|
|
111
|
+
* @en Callback when popup shown or hidden.
|
|
112
|
+
*/
|
|
113
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
114
|
+
/**
|
|
115
|
+
* @zh 自定义面板底部内容
|
|
116
|
+
* @en Customize the bottom content of the panel
|
|
117
|
+
* @version 2.62.0
|
|
118
|
+
*/
|
|
119
|
+
renderFooter?: () => ReactNode;
|
|
120
|
+
}
|
|
121
|
+
export interface RGB {
|
|
122
|
+
r: number;
|
|
123
|
+
g: number;
|
|
124
|
+
b: number;
|
|
125
|
+
}
|
|
126
|
+
export interface HSV {
|
|
127
|
+
h: number;
|
|
128
|
+
s: number;
|
|
129
|
+
v: number;
|
|
130
|
+
}
|
|
131
|
+
export interface Color {
|
|
132
|
+
hsv: HSV;
|
|
133
|
+
rgb: RGB;
|
|
134
|
+
hex: string;
|
|
135
|
+
}
|
|
136
|
+
export declare enum ColorPickerMode {
|
|
137
|
+
Single = "single",
|
|
138
|
+
Gradient = "gradient"
|
|
139
|
+
}
|
|
140
|
+
export interface GradientColor {
|
|
141
|
+
color: string;
|
|
142
|
+
percent: number;
|
|
143
|
+
}
|
|
144
|
+
export interface InternalGradientColor {
|
|
145
|
+
id: string;
|
|
146
|
+
color: Color;
|
|
147
|
+
alpha: number;
|
|
148
|
+
percent: number;
|
|
149
|
+
}
|