@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,262 @@
|
|
|
1
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { TooltipProps } from '../tooltip';
|
|
3
|
+
/**
|
|
4
|
+
* @title Typography
|
|
5
|
+
*/
|
|
6
|
+
export interface TypographyProps {
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
className?: string | string[];
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface OperationsProps extends Omit<React.HTMLAttributes<HTMLElement>, 'className'> {
|
|
12
|
+
/**
|
|
13
|
+
* @zh 开启复制功能
|
|
14
|
+
* @en Whether to be copyable
|
|
15
|
+
* @version `onCopy` params `e` in `2.31.0`
|
|
16
|
+
*/
|
|
17
|
+
copyable?: boolean | {
|
|
18
|
+
text?: string;
|
|
19
|
+
onCopy?: (text: string, e: any) => void;
|
|
20
|
+
icon?: ReactNode;
|
|
21
|
+
tooltips?: [ReactNode, ReactNode];
|
|
22
|
+
tooltipProps?: TooltipProps;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @zh 开启可编辑功能
|
|
26
|
+
* @en If editable. Can control edit state when is object
|
|
27
|
+
* @version `onStart` params `e` in `2.31.0`
|
|
28
|
+
*/
|
|
29
|
+
editable?: boolean | {
|
|
30
|
+
editing?: boolean;
|
|
31
|
+
tooltipProps?: TooltipProps;
|
|
32
|
+
onStart?: (text: any, e: any) => void;
|
|
33
|
+
onChange?: (text: any) => void;
|
|
34
|
+
onEnd?: (text: any) => void;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @zh 自动溢出省略(只支持字符串),具体参数配置看 [EllipsisConfig](#ellipsisconfig)。不推荐使用,建议 `Typography.Ellipsis` 替代
|
|
38
|
+
* @en Auto overflow omitted, see [EllipsisConfig](#ellipsisconfig)。Deprecated, `Typography.Ellipsis` is recommended instead
|
|
39
|
+
*/
|
|
40
|
+
ellipsis?: boolean | EllipsisConfig;
|
|
41
|
+
isEllipsis?: boolean;
|
|
42
|
+
expanding?: boolean;
|
|
43
|
+
onClickExpand?: (e: any) => void;
|
|
44
|
+
setEditing?: (editing: boolean) => void;
|
|
45
|
+
forceShowExpand?: boolean;
|
|
46
|
+
currentContext: Record<string, any>;
|
|
47
|
+
}
|
|
48
|
+
export interface CommonProps extends Omit<OperationsProps, 'currentContext'> {
|
|
49
|
+
style?: CSSProperties;
|
|
50
|
+
className?: string | string[];
|
|
51
|
+
children?: ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* @zh 文本类型
|
|
54
|
+
* @en Text type
|
|
55
|
+
*/
|
|
56
|
+
type?: 'primary' | 'secondary' | 'success' | 'error' | 'warning';
|
|
57
|
+
/**
|
|
58
|
+
* @zh 粗体
|
|
59
|
+
* @en Bold style
|
|
60
|
+
*/
|
|
61
|
+
bold?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* @zh 禁用状态
|
|
64
|
+
* @en Disabled style
|
|
65
|
+
*/
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* @zh 标记样式
|
|
69
|
+
* @en Mark style
|
|
70
|
+
*/
|
|
71
|
+
mark?: boolean | {
|
|
72
|
+
color: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* @zh 下划线样式
|
|
76
|
+
* @en Underline style
|
|
77
|
+
*/
|
|
78
|
+
underline?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* @zh 删除线样式
|
|
81
|
+
* @en Strikethrough style
|
|
82
|
+
*/
|
|
83
|
+
delete?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* @zh 代码块样式
|
|
86
|
+
* @en Code block style
|
|
87
|
+
*/
|
|
88
|
+
code?: boolean;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @title Typography.Title
|
|
92
|
+
*/
|
|
93
|
+
export interface TypographyTitleProps extends CommonProps {
|
|
94
|
+
/**
|
|
95
|
+
* @zh 标题级别,相当于 `h1` `h2` `h3` `h4` `h5` `h6`
|
|
96
|
+
* @en Heading level, equivalent to `h1` `h2` `h3` `h4` `h5` `h6`
|
|
97
|
+
* @defaultValue 1
|
|
98
|
+
*/
|
|
99
|
+
heading?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @title Typography.Paragraph
|
|
103
|
+
*/
|
|
104
|
+
export interface TypographyParagraphProps extends CommonProps {
|
|
105
|
+
/**
|
|
106
|
+
* @zh 长引用
|
|
107
|
+
* @en Blockquote style
|
|
108
|
+
*/
|
|
109
|
+
blockquote?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* @zh
|
|
112
|
+
* 段落的的行高,长文本(大于5行)的时候推荐使用默认行高,短文本(小于等于3行)推荐使用 `close` 紧密的行高。
|
|
113
|
+
* @en
|
|
114
|
+
* The line height of the paragraph. The default line height is recommended for long text (more than 5 lines),
|
|
115
|
+
* and the close line height of `close` is recommended for short text (less than or equal to 3 lines).
|
|
116
|
+
* @defaultValue default
|
|
117
|
+
*/
|
|
118
|
+
spacing?: 'default' | 'close';
|
|
119
|
+
}
|
|
120
|
+
export interface EditContentProps {
|
|
121
|
+
prefixCls?: string;
|
|
122
|
+
style?: CSSProperties;
|
|
123
|
+
className?: string | string[];
|
|
124
|
+
children?: ReactNode;
|
|
125
|
+
setEditing?: (editing: boolean) => void;
|
|
126
|
+
editableConfig?: {
|
|
127
|
+
editing?: boolean;
|
|
128
|
+
onStart?: (text: any, e: any) => void;
|
|
129
|
+
onChange?: (text: any) => void;
|
|
130
|
+
onEnd?: (text: any) => void;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @title Typography.Text
|
|
135
|
+
*/
|
|
136
|
+
export type TypographyTextProps = CommonProps;
|
|
137
|
+
/**
|
|
138
|
+
* @title EllipsisConfig
|
|
139
|
+
*/
|
|
140
|
+
export type EllipsisConfig = {
|
|
141
|
+
/**
|
|
142
|
+
* @zh 自动溢出省略(只支持字符串),在大量使用情况下建议开启提高性能。
|
|
143
|
+
* @en Automatic overflow omission (only strings are supported). In the case of simple single-line, css will be used by default to handle ellipsis to avoid complicated calculations.
|
|
144
|
+
* @version `2.36.0` 将默认值改为 `false` 并支持多行CSS省略。
|
|
145
|
+
*/
|
|
146
|
+
cssEllipsis?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* @zh 显示省略的行数
|
|
149
|
+
* @en The number of omitted rows
|
|
150
|
+
* @defaultValue 1
|
|
151
|
+
*/
|
|
152
|
+
rows?: number;
|
|
153
|
+
/**
|
|
154
|
+
* @zh 显示展开/折叠按钮
|
|
155
|
+
* @en Whether to support expand
|
|
156
|
+
*/
|
|
157
|
+
expandable?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* @zh 省略号
|
|
160
|
+
* @en ellipsis string
|
|
161
|
+
* @defaultValue ...
|
|
162
|
+
*/
|
|
163
|
+
ellipsisStr?: string;
|
|
164
|
+
/**
|
|
165
|
+
* @zh 后缀
|
|
166
|
+
* @en Suffix
|
|
167
|
+
*/
|
|
168
|
+
suffix?: string;
|
|
169
|
+
/**
|
|
170
|
+
* @zh 配置 折叠 / 展开 的元素
|
|
171
|
+
* @en Configure expand elements
|
|
172
|
+
*/
|
|
173
|
+
expandNodes?: ReactNode[];
|
|
174
|
+
/**
|
|
175
|
+
* @zh 在省略发生改变的时候触发,通常是窗口resize情况会触发。
|
|
176
|
+
* @en Callback when the ellipsis state changes, usually triggered by window resize。
|
|
177
|
+
*/
|
|
178
|
+
onEllipsis?: (isEllipsis: boolean) => void;
|
|
179
|
+
/**
|
|
180
|
+
* @zh 在折叠/展开状态发生改变的时候触发,通常是点击折叠/展开按钮触发。
|
|
181
|
+
* @en Callback when the expand state changes, usually triggered by clicking the button
|
|
182
|
+
* @version e in `2.27.0`
|
|
183
|
+
*/
|
|
184
|
+
onExpand?: (isExpand: boolean, e: any) => void;
|
|
185
|
+
/**
|
|
186
|
+
* @zh 配置省略时的弹出框
|
|
187
|
+
* @en Show Tooltip when configure ellipsis
|
|
188
|
+
*/
|
|
189
|
+
showTooltip?: boolean | {
|
|
190
|
+
type?: 'tooltip' | 'popover';
|
|
191
|
+
props?: Record<string, any>;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* @zh 是否展开
|
|
195
|
+
* @en whether to expand
|
|
196
|
+
* @version `2.33.0`
|
|
197
|
+
*/
|
|
198
|
+
expanded?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* @zh 默认展开
|
|
201
|
+
* @en Default expanded state
|
|
202
|
+
* @version `2.33.0`
|
|
203
|
+
*/
|
|
204
|
+
defaultExpanded?: boolean;
|
|
205
|
+
wrapper?: string | React.FC<any> | React.ComponentClass<any>;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* @title Typography.Ellipsis
|
|
209
|
+
*/
|
|
210
|
+
export interface TypographyEllipsisProps {
|
|
211
|
+
style?: CSSProperties;
|
|
212
|
+
className?: string | string[];
|
|
213
|
+
/**
|
|
214
|
+
* @zh 显示省略的行数
|
|
215
|
+
* @en The number of omitted rows
|
|
216
|
+
* @defaultValue 1
|
|
217
|
+
*/
|
|
218
|
+
rows?: number;
|
|
219
|
+
/**
|
|
220
|
+
* @zh 是否禁用省略功能
|
|
221
|
+
* @en Whether to disable the text ellipsis
|
|
222
|
+
*/
|
|
223
|
+
disabled?: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* @zh 是否显示弹出提示
|
|
226
|
+
* @en Whether to display pop-up prompts
|
|
227
|
+
*/
|
|
228
|
+
showTooltip?: boolean | TooltipProps;
|
|
229
|
+
/**
|
|
230
|
+
* @zh 是否显示操控按钮。`2.61.0` 版本支持 `single` 属性
|
|
231
|
+
* @en Whether to show control button. `2.61.0` version supports `single` attribute
|
|
232
|
+
* @defaultValue true
|
|
233
|
+
*/
|
|
234
|
+
expandable?: boolean | {
|
|
235
|
+
single?: boolean;
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* @zh 自定义渲染操控按钮
|
|
239
|
+
* @en Custom rendering control buttons
|
|
240
|
+
*/
|
|
241
|
+
expandRender?: (expanded: boolean) => ReactNode;
|
|
242
|
+
/**
|
|
243
|
+
* @zh 默认展开
|
|
244
|
+
* @en Expand by default
|
|
245
|
+
*/
|
|
246
|
+
defaultExpanded?: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* @zh 是否展开
|
|
249
|
+
* @en Whether to expand
|
|
250
|
+
*/
|
|
251
|
+
expanded?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* @zh 点击展开、折叠时触发
|
|
254
|
+
* @en Triggered when clicked to expand or collapse
|
|
255
|
+
*/
|
|
256
|
+
onExpand?: (isExpand: boolean, ev: Event) => void;
|
|
257
|
+
/**
|
|
258
|
+
* @zh 当省略状态发生改变时触发,首次省略时也会触发
|
|
259
|
+
* @en Triggered when the omission status changes, and also when omitted for the first time.
|
|
260
|
+
*/
|
|
261
|
+
onEllipsis?: (isEllipsis: boolean) => void;
|
|
262
|
+
}
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { ProgressProps } from '../progress';
|
|
3
|
+
export declare const STATUS: {
|
|
4
|
+
[key: string]: UploadStatus;
|
|
5
|
+
};
|
|
6
|
+
export type UploadStatus = 'init' | 'uploading' | 'done' | 'error';
|
|
7
|
+
export type ListType = 'text' | 'picture-list' | 'picture-card';
|
|
8
|
+
export type CustomIconType = {
|
|
9
|
+
previewIcon?: ReactNode;
|
|
10
|
+
removeIcon?: ReactNode;
|
|
11
|
+
fileIcon?: ReactNode;
|
|
12
|
+
reuploadIcon?: ReactNode;
|
|
13
|
+
cancelIcon?: ReactNode;
|
|
14
|
+
startIcon?: ReactNode;
|
|
15
|
+
errorIcon?: ReactNode;
|
|
16
|
+
successIcon?: ReactNode;
|
|
17
|
+
fileName?: (file: UploadItem) => ReactNode;
|
|
18
|
+
progressRender?: (file: UploadItem, originDom: ReactNode) => React.ReactElement;
|
|
19
|
+
imageRender?: (file: UploadItem) => React.ReactNode;
|
|
20
|
+
};
|
|
21
|
+
export type RequestOptions = Pick<UploadProps, 'headers' | 'name' | 'data' | 'withCredentials' | 'action' | 'method'> & {
|
|
22
|
+
/** 更新当前文件的上传进度 。percent: 当前上传进度百分比 */
|
|
23
|
+
onProgress: (percent: number, event?: ProgressEvent) => void;
|
|
24
|
+
/** 上传成功后,调用onSuccess方法,传入的response参数将会附加到当前上传文件的reponse字段上 */
|
|
25
|
+
onSuccess: (response?: object) => void;
|
|
26
|
+
/** 上传失败后,调用onError方法,传入的 response 参数将会附加到当前上传文件的response字段 */
|
|
27
|
+
onError: (response?: object) => void;
|
|
28
|
+
/** 当前上传文件 */
|
|
29
|
+
file: File;
|
|
30
|
+
};
|
|
31
|
+
export interface UploadRequestReturn {
|
|
32
|
+
abort?: () => void;
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}
|
|
35
|
+
export type UploadRequest = (options: RequestOptions) => UploadRequestReturn | void;
|
|
36
|
+
/**
|
|
37
|
+
* @title Upload
|
|
38
|
+
*/
|
|
39
|
+
export interface UploadProps {
|
|
40
|
+
style?: CSSProperties;
|
|
41
|
+
className?: string | string[];
|
|
42
|
+
/**
|
|
43
|
+
* @zh 默认已上传的文件列表
|
|
44
|
+
* @en Default list of files that have been uploaded
|
|
45
|
+
*/
|
|
46
|
+
defaultFileList?: UploadItem[];
|
|
47
|
+
/**
|
|
48
|
+
* @zh 已上传的文件列表
|
|
49
|
+
* @en List of files that have been uploaded
|
|
50
|
+
*/
|
|
51
|
+
fileList?: UploadItem[];
|
|
52
|
+
/**
|
|
53
|
+
* @zh 文件夹上传
|
|
54
|
+
* @en Support upload whole directory
|
|
55
|
+
* @version 2.11.0
|
|
56
|
+
*/
|
|
57
|
+
directory?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* @zh 接受上传的类型 [详细请参考](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept)。(`strict` in `2.53.0`,默认为 true。设置为 false 时,accept 表现和原生一致。设置为 true 时,会严格匹配文件后缀名,过滤掉不符合 accept 规则的文件。)
|
|
60
|
+
* @en Accepted [file types](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept)(`strict` in `2.53.0`, defaultValue is true. When set to false, accept behaves the same as native. When set to true, file extensions will be strictly matched and files that do not meet the accept rules will be filtered out. )
|
|
61
|
+
*/
|
|
62
|
+
accept?: string | {
|
|
63
|
+
type: string;
|
|
64
|
+
strict?: boolean;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* @zh 通过覆盖默认的上传行为,可以自定义自己的上传实现
|
|
68
|
+
* @en Provide an override for the default xhr behavior for additional customization
|
|
69
|
+
*/
|
|
70
|
+
customRequest?: (options: RequestOptions) => UploadRequestReturn | void;
|
|
71
|
+
/**
|
|
72
|
+
* @zh 展示类型
|
|
73
|
+
* @en Upload list Style
|
|
74
|
+
* @defaultValue text
|
|
75
|
+
*/
|
|
76
|
+
listType?: 'text' | 'picture-list' | 'picture-card';
|
|
77
|
+
/**
|
|
78
|
+
* @zh 启用内置的图片预览,仅在 listType='picture-card' 时生效。(`v2.41.0`)
|
|
79
|
+
* @en Enable built-in image preview, only works when listType='picture-card'. (`v2.41.0`)
|
|
80
|
+
*/
|
|
81
|
+
imagePreview?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* @zh
|
|
84
|
+
* 是否展示上传文件列表。预览图标,删除图标,文件图标,重新上传图标,取消上传图标。
|
|
85
|
+
* @en
|
|
86
|
+
* Whether to show upload list.It can be an object to customize the `previewIcon`, `removeIcon`,
|
|
87
|
+
* `fileIcon`, `reuploadIcon`, `cancelIcon`, `startIcon`, `errorIcon` and `fileName`
|
|
88
|
+
* @defaultValue true
|
|
89
|
+
*/
|
|
90
|
+
showUploadList?: boolean | CustomIconType;
|
|
91
|
+
/**
|
|
92
|
+
* @zh 是否选中文件后自动上传
|
|
93
|
+
* @en Whether to automatically upload files after selecting them
|
|
94
|
+
* @defaultValue true
|
|
95
|
+
*/
|
|
96
|
+
autoUpload?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* @zh 上传接口地址
|
|
99
|
+
* @en Uploading URL
|
|
100
|
+
*/
|
|
101
|
+
action?: string;
|
|
102
|
+
/**
|
|
103
|
+
* @zh 上传请求的 http method
|
|
104
|
+
* @en The http method of upload request
|
|
105
|
+
* @defaultValue post
|
|
106
|
+
* @version 2.55.0
|
|
107
|
+
*/
|
|
108
|
+
method?: string;
|
|
109
|
+
/**
|
|
110
|
+
* @zh 限制上传数量。默认超出后会隐藏上传节点。对象类型在 `2.28.0` 支持
|
|
111
|
+
* @en maximum number of uploads allowed. Object type is supported in `2.28.0`
|
|
112
|
+
*/
|
|
113
|
+
limit?: number | {
|
|
114
|
+
maxCount: number;
|
|
115
|
+
hideOnExceedLimit?: boolean;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* @zh 禁用
|
|
119
|
+
* @en Whether to disable
|
|
120
|
+
*/
|
|
121
|
+
disabled?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* @zh 是否拖拽上传
|
|
124
|
+
* @en Whether to enable drag and drop upload
|
|
125
|
+
*/
|
|
126
|
+
drag?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* @zh 文件多选
|
|
129
|
+
* @en Whether to allow multiple files to be selected
|
|
130
|
+
*/
|
|
131
|
+
multiple?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* @zh 提示文字,listType 不同,展示会有区别
|
|
134
|
+
* @en The tip text
|
|
135
|
+
*/
|
|
136
|
+
tip?: string | React.ReactNode;
|
|
137
|
+
/**
|
|
138
|
+
* @zh 上传时使用的 headers
|
|
139
|
+
* @en Set request headers
|
|
140
|
+
*/
|
|
141
|
+
headers?: object;
|
|
142
|
+
/**
|
|
143
|
+
* @zh 上传时的 Body 参数
|
|
144
|
+
* @en additions params of request
|
|
145
|
+
*/
|
|
146
|
+
data?: object | ((any: any) => object);
|
|
147
|
+
/**
|
|
148
|
+
* @zh 发请求时文件内容的参数
|
|
149
|
+
* @en The key name of uploading file
|
|
150
|
+
*/
|
|
151
|
+
name?: string | ((any: any) => string);
|
|
152
|
+
/**
|
|
153
|
+
* @zh 上传请求是否携带 cookie
|
|
154
|
+
* @en Whether to carry cookies when uploading requests
|
|
155
|
+
*/
|
|
156
|
+
withCredentials?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* @zh 进度条属性,接收所有进度条的 props。
|
|
159
|
+
* @en The props of [Progress component](/react/en-US/component/progress).
|
|
160
|
+
*/
|
|
161
|
+
progressProps?: Partial<ProgressProps>;
|
|
162
|
+
/**
|
|
163
|
+
* @zh 自定义上传列表项
|
|
164
|
+
* @en Custom item of uploadList
|
|
165
|
+
*/
|
|
166
|
+
renderUploadItem?: (originNode: ReactNode, file: UploadItem, fileList: UploadItem[]) => ReactNode;
|
|
167
|
+
/**
|
|
168
|
+
* @zh 自定义展示上传文件列表
|
|
169
|
+
* @en Custom uploadList
|
|
170
|
+
*/
|
|
171
|
+
renderUploadList?: (fileList: UploadItem[], uploadListProps: UploadListProps) => ReactNode;
|
|
172
|
+
/**
|
|
173
|
+
* @zh 上传文件改变时的回调。文件开始上传,失败,成功时会触发。注意:如果需要实时获取文件的上传进度,请在 `onProgress` 中处理。
|
|
174
|
+
* @en Callback when uploading state is changing
|
|
175
|
+
*/
|
|
176
|
+
onChange?: (fileList: UploadItem[], file: UploadItem) => void;
|
|
177
|
+
/**
|
|
178
|
+
* @zh 点击预览时候的回调
|
|
179
|
+
* @en Callback when the preview icon is clicked
|
|
180
|
+
*/
|
|
181
|
+
onPreview?: (file: UploadItem) => void;
|
|
182
|
+
/**
|
|
183
|
+
* @zh 点击删除文件时的回调。返回 `false` 或者 `Promise.reject` 的时候不会执行删除。
|
|
184
|
+
* @en Callback when the remove icon is clicked.Remove actions will be aborted when the return value is false or a Promise which resolve(false) or reject.
|
|
185
|
+
*/
|
|
186
|
+
onRemove?: (file: UploadItem, fileList: UploadItem[]) => void | boolean | Promise<void | boolean>;
|
|
187
|
+
/**
|
|
188
|
+
* @zh 文件上传进度的回调
|
|
189
|
+
* @en Callback when uploading progress is changing
|
|
190
|
+
*/
|
|
191
|
+
onProgress?: (file: UploadItem, e?: ProgressEvent) => void;
|
|
192
|
+
/**
|
|
193
|
+
* @zh 文件重新上传时触发的回调
|
|
194
|
+
* @en Callback when the re-upload icon is clicked
|
|
195
|
+
*/
|
|
196
|
+
onReupload?: (file: UploadItem) => void;
|
|
197
|
+
/**
|
|
198
|
+
* @zh 超出上传数量限制时触发
|
|
199
|
+
* @en Callback when limit is exceeded
|
|
200
|
+
*/
|
|
201
|
+
onExceedLimit?: (files: File[], fileList: UploadItem[]) => void;
|
|
202
|
+
/**
|
|
203
|
+
* @zh 上传文件之前的回调。返回 false 或者 promise抛出异常的时候会取消上传。
|
|
204
|
+
* @en Callback before uploading. Uploading will be aborted when the return value is false or a Promise which resolve(false) or reject.
|
|
205
|
+
* @defaultValue () => true
|
|
206
|
+
*/
|
|
207
|
+
beforeUpload?: (file: File, filesList: File[]) => boolean | Promise<any>;
|
|
208
|
+
/**
|
|
209
|
+
* @zh 拖拽上传文件时执行的回调
|
|
210
|
+
* @en Callback after drag file to the upload area and drop.
|
|
211
|
+
* @version 2.37.0
|
|
212
|
+
*/
|
|
213
|
+
onDrop?: (e: React.DragEvent) => void;
|
|
214
|
+
/**
|
|
215
|
+
* @zh 拖拽上传文件进入拖拽区时的回调
|
|
216
|
+
* @en Callback when drag and drop uploaded file into the drag area
|
|
217
|
+
* @version 2.41.0
|
|
218
|
+
*/
|
|
219
|
+
onDragOver?: (e: React.DragEvent) => void;
|
|
220
|
+
/**
|
|
221
|
+
* @zh 拖拽上传文件离开拖拽区时的回调
|
|
222
|
+
* @en Callback when drag and drop uploaded file leaves the drag area
|
|
223
|
+
* @version 2.41.0
|
|
224
|
+
*/
|
|
225
|
+
onDragLeave?: (e: React.DragEvent) => void;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* @title UploadListProps
|
|
229
|
+
* @zh 文件上传列表展示
|
|
230
|
+
* @en File upload list display
|
|
231
|
+
*/
|
|
232
|
+
export interface UploadListProps {
|
|
233
|
+
imagePreview?: boolean;
|
|
234
|
+
listType?: string;
|
|
235
|
+
fileList?: UploadItem[];
|
|
236
|
+
showUploadList?: boolean | CustomIconType;
|
|
237
|
+
progressProps?: Partial<ProgressProps>;
|
|
238
|
+
onUpload?: (file: UploadItem) => void;
|
|
239
|
+
/**
|
|
240
|
+
* @zh 中止文件上传的回调
|
|
241
|
+
* @en Callback when the cancel icon is clicked
|
|
242
|
+
*/
|
|
243
|
+
onAbort?: (file: UploadItem) => void;
|
|
244
|
+
/**
|
|
245
|
+
* @zh 点击删除文件时的回调。返回 false 或者 Promise.reject 的时候不会执行删除
|
|
246
|
+
* @en Callback when the remove icon is clicked.Remove actions will be aborted when the return value is false or a Promise which resolve(false) or reject
|
|
247
|
+
*/
|
|
248
|
+
onRemove?: (file: UploadItem) => void | boolean | Promise<void | boolean>;
|
|
249
|
+
/**
|
|
250
|
+
* @zh 重新上传的回调
|
|
251
|
+
* @en Callback when the re-upload icon is clicked
|
|
252
|
+
*/
|
|
253
|
+
onReupload?: (file: UploadItem) => void;
|
|
254
|
+
/**
|
|
255
|
+
* @zh 点击预览时候的回调。
|
|
256
|
+
* @en Callback when the preview icon is clicked
|
|
257
|
+
*/
|
|
258
|
+
onPreview?: (file: UploadItem) => void;
|
|
259
|
+
/**
|
|
260
|
+
* @zh 禁用
|
|
261
|
+
* @en Whether to disable
|
|
262
|
+
*/
|
|
263
|
+
disabled?: boolean;
|
|
264
|
+
renderUploadItem?: (originNode: ReactNode, file: UploadItem, fileList: UploadItem[]) => ReactNode;
|
|
265
|
+
renderUploadList?: (fileList: UploadItem[], uploadListProps: Omit<UploadListProps, 'renderUploadList'>) => ReactNode;
|
|
266
|
+
prefixCls?: string;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* @title UploadItem
|
|
270
|
+
*/
|
|
271
|
+
export type UploadItem = {
|
|
272
|
+
/**
|
|
273
|
+
* @zh 当前上传文件的唯一标示
|
|
274
|
+
* @en Unique identifier
|
|
275
|
+
*/
|
|
276
|
+
uid: string;
|
|
277
|
+
/**
|
|
278
|
+
* @zh 当前上传文件的状态
|
|
279
|
+
* @en Uploading status
|
|
280
|
+
*/
|
|
281
|
+
status?: UploadStatus;
|
|
282
|
+
/**
|
|
283
|
+
* @zh 文件对象
|
|
284
|
+
* @en File Object
|
|
285
|
+
*/
|
|
286
|
+
originFile?: File;
|
|
287
|
+
/**
|
|
288
|
+
* @zh 上传进度百分比
|
|
289
|
+
* @en Upload progress percentage
|
|
290
|
+
*/
|
|
291
|
+
percent?: number;
|
|
292
|
+
/**
|
|
293
|
+
* @zh 当前文件上传请求返回的响应
|
|
294
|
+
* @en Response of upload request
|
|
295
|
+
*/
|
|
296
|
+
response?: object;
|
|
297
|
+
/**
|
|
298
|
+
* @zh 文件 url
|
|
299
|
+
* @en File url
|
|
300
|
+
*/
|
|
301
|
+
url?: string;
|
|
302
|
+
/**
|
|
303
|
+
* @zh 文件名
|
|
304
|
+
* @en File name
|
|
305
|
+
*/
|
|
306
|
+
name?: string;
|
|
307
|
+
children?: ReactNode;
|
|
308
|
+
};
|
|
309
|
+
export interface UploaderProps extends UploadProps {
|
|
310
|
+
prefixCls?: string;
|
|
311
|
+
limit?: number;
|
|
312
|
+
hide?: boolean;
|
|
313
|
+
onFileStatusChange?: (fileList: UploadItem[], file: UploadItem) => void;
|
|
314
|
+
}
|
|
315
|
+
export type TriggerProps = {
|
|
316
|
+
tip?: string | React.ReactNode;
|
|
317
|
+
multiple?: boolean;
|
|
318
|
+
accept?: UploadProps['accept'];
|
|
319
|
+
disabled?: boolean;
|
|
320
|
+
directory?: boolean;
|
|
321
|
+
drag?: boolean;
|
|
322
|
+
listType?: 'text' | 'picture-list' | 'picture-card';
|
|
323
|
+
onClick: () => void;
|
|
324
|
+
onDrop?: (e: React.DragEvent) => void;
|
|
325
|
+
onDragLeave?: (e: React.DragEvent) => void;
|
|
326
|
+
onDragOver?: (e: React.DragEvent) => void;
|
|
327
|
+
onDragFiles: (files: File[]) => void;
|
|
328
|
+
prefixCls?: string;
|
|
329
|
+
};
|
|
330
|
+
export type UploadInstance = {
|
|
331
|
+
/** 手动上传时,调用该方法,开始上传。不传参数时,会默认上传全部init状态的文件 */
|
|
332
|
+
submit: (file?: UploadItem) => void;
|
|
333
|
+
/** 中止文件上传 */
|
|
334
|
+
abort: (file: UploadItem) => void;
|
|
335
|
+
/** 重新上传文件 */
|
|
336
|
+
reupload: (file: UploadItem) => void;
|
|
337
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { UI_PC_KEY, UI_PC_THEME_DARK_CLASS_NAME, } from '@unicom-cloud/utils/constant/ui';
|
|
2
|
+
export { NOOP } from '../../common/utils/constant';
|
|
3
|
+
export declare function newArray(length: number): unknown[];
|
|
4
|
+
export declare function pickTriggerPropsFromRest(rest: any): Pick<any, "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onContextMenu" | "onClick" | "onFocus" | "onBlur" | "tabIndex">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { dayjs, getDayjsValue, getNow, getSortedDayjsArray, getTimeFormat, getValueWithTime, isDayjsArrayChange, isDayjsChange, isValidTimeString, methods, timezoneToOffset, toLocal, toTimezone, } from '
|
|
1
|
+
export { dayjs, getDayjsValue, getNow, getSortedDayjsArray, getTimeFormat, getValueWithTime, isDayjsArrayChange, isDayjsChange, isValidTimeString, methods, timezoneToOffset, toLocal, toTimezone, } from '../../common/utils/dayjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { contains, getScrollElements, isScrollElement, isServerRendering, off, on, } from '
|
|
1
|
+
export { contains, getScrollElements, isScrollElement, isServerRendering, off, on, } from '../../common/utils/dom';
|
|
@@ -31,6 +31,7 @@ export * from './screenfull';
|
|
|
31
31
|
export * from './scrollIntoView';
|
|
32
32
|
export * from './setDarkTheme';
|
|
33
33
|
export * from './setPrimaryColor';
|
|
34
|
+
export * from './setTheme';
|
|
34
35
|
export * from './style';
|
|
35
36
|
export * from './throttleByRaf';
|
|
36
37
|
export * from './tinycolor';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { isArguments, isArray, isArrayBuffer, isArrayLike, isArrayLikeObject, isBlob, isBoolean, isBuffer, isClassComponent, isColor, isColor2, isDate, isDayjs, isDOMElement, isElement, isEmpty, isEmptyArray, isEmptyObject, isEmptyReactNode, isEmptyValue, isEqual, isEqualWith, isError, isExist, isFile, isFinite, isForwardRefReact, isFunction, isInteger, isJSON, isLength, isMap, isMatch, isMatchWith, isNaN, isNative, isNil, isNull, isNullOrUndefined, isNumber, isObject, isObjectLike, isPlainObject, isPromise, isReact18, isReact19, isReactAsyncMode, isReactComponent, isReactConcurrentMode, isReactContextConsumer, isReactContextProvider, isReactElement, isReactForwardRef, isReactFragment, isReactLazy, isReactMemo, isReactPortal, isReactProfiler, isReactStrictMode, isReactSuspense, isReactValidElementType, isReadableByteStreamControllerSupported, isReadableStream, isReadableStreamDefaultControllerSupported, isReadableStreamSupported, isReadableStreamSymbolAsyncIteratorSupported, isRegExp, isSafeInteger, isSet, isString, isSupportRef, isSymbol, isTypedArray, isUndefined, isValidColor, isWeakMap, isWeakSet, isWindow, supportRef, } from '
|
|
1
|
+
export { isArguments, isArray, isArrayBuffer, isArrayLike, isArrayLikeObject, isBlob, isBoolean, isBuffer, isClassComponent, isColor, isColor2, isDate, isDayjs, isDOMElement, isElement, isEmpty, isEmptyArray, isEmptyObject, isEmptyReactNode, isEmptyValue, isEqual, isEqualWith, isError, isExist, isFile, isFinite, isForwardRefReact, isFunction, isInteger, isJSON, isLength, isMap, isMatch, isMatchWith, isNaN, isNative, isNil, isNull, isNullOrUndefined, isNumber, isObject, isObjectLike, isPlainObject, isPromise, isReact18, isReact19, isReactAsyncMode, isReactComponent, isReactConcurrentMode, isReactContextConsumer, isReactContextProvider, isReactElement, isReactForwardRef, isReactFragment, isReactLazy, isReactMemo, isReactPortal, isReactProfiler, isReactStrictMode, isReactSuspense, isReactValidElementType, isReadableByteStreamControllerSupported, isReadableStream, isReadableStreamDefaultControllerSupported, isReadableStreamSupported, isReadableStreamSymbolAsyncIteratorSupported, isRegExp, isSafeInteger, isSet, isString, isSupportRef, isSymbol, isTypedArray, isUndefined, isValidColor, isWeakMap, isWeakSet, isWindow, supportRef, } from '../../common/utils/is';
|