@unicom-cloud/ui 0.8.121 → 0.8.123
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 +2 -2
- package/Alert.js +1 -1
- package/Anchor.js +1 -1
- package/App.js +1 -1
- package/AutoComplete.js +1 -1
- package/Avatar.js +1 -1
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +1 -1
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- package/Card.js +1 -1
- package/Carousel.js +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Constant.js +4 -3
- package/Copy.js +1 -1
- package/Countdown.js +1 -1
- package/DatePicker.js +1 -1
- package/Descriptions.js +50 -3
- package/Details.js +1 -1
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Flex.js +1 -1
- package/Form.js +1 -1
- package/Grid.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +1 -1
- package/InputTag.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/LiquidFill.js +1 -1
- package/List.js +1 -1
- package/Loading.js +1 -1
- package/Marquee.js +100 -100
- package/Mentions.js +1 -1
- 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 +2 -2
- package/PageHeader.js +2 -2
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Portal.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +1 -1
- package/RowCol.js +1 -1
- package/Segmented.js +1 -1
- package/Select.js +1 -1
- package/SelectView.js +1 -1
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +1 -1
- package/Spin.js +1 -1
- package/Splitter.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/SuspenseFallbackTest.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/TimePicker.js +1 -1
- package/Timeline.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +4 -4
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +2 -2
- package/Typography.js +1 -1
- package/Upload.js +1 -1
- package/VerificationCode.js +1 -1
- package/VirtualList.js +1 -1
- package/Watermark.js +1 -1
- package/affix/index.js +56 -60
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +29 -29
- package/anchor/context.js +1 -1
- package/anchor/index.js +1 -1
- package/anchor/utils.js +1 -1
- package/app/App.js +1 -1
- package/app/context.js +1 -1
- package/app/index.js +1 -1
- package/app/useApp.js +1 -1
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +2 -6
- package/avatar/context.js +1 -1
- package/avatar/index.js +1 -1
- package/back-top/index.js +2 -6
- package/badge/Count.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/Item.js +1 -1
- package/breadcrumb/index.js +2 -6
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/Lunar.js +1 -1
- package/calendar/Month.js +1 -1
- package/calendar/WeekList.js +1 -1
- package/calendar/Year.js +1 -1
- package/calendar/header/Panel.js +1 -1
- package/calendar/header/index.js +1 -1
- package/calendar/hook/useCellClassName.js +1 -1
- package/calendar/index.js +1 -1
- 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 +71 -71
- package/cascader/Cascader.js +129 -122
- package/cascader/base/node.js +1 -1
- package/cascader/base/store.js +1 -1
- package/cascader/hook/useRefCurrent.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/panel/List.js +1 -1
- package/cascader/panel/Option.js +1 -1
- package/cascader/panel/Search.js +1 -1
- package/cascader/utils.js +1 -1
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Group.js +1 -1
- package/checkbox/GroupBlock.js +1 -1
- package/checkbox/IconCheck.js +1 -1
- package/checkbox/index.js +1 -1
- package/checkbox/useCheckbox.js +1 -1
- package/collapse/Collapse.js +2 -6
- package/collapse/Item.js +1 -1
- 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 +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Mode.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +1 -1
- package/color-picker/colors.js +1 -1
- package/color-picker/hooks/useColorPicker.js +1 -1
- package/color-picker/hooks/useControlBlock.js +1 -1
- package/color-picker/index.js +1 -1
- package/color-picker/interface.js +1 -1
- package/color-picker/utils.js +1 -1
- package/comment/index.js +2 -6
- package/config-provider/ConfigProvider.js +1 -1
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +1 -1
- package/constant/index.js +4 -3
- package/copy/index.js +1 -1
- package/countdown/index.js +1 -1
- package/countdown/utils.js +1 -1
- package/date-picker/Picker.js +1 -1
- package/date-picker/RangePicker.js +9 -5
- package/date-picker/context.js +1 -1
- package/date-picker/hook/useCellClassName.js +1 -1
- package/date-picker/index.js +1 -1
- package/date-picker/panel/Body.js +1 -1
- package/date-picker/panel/Footer.js +1 -1
- package/date-picker/panel/Header.js +1 -1
- package/date-picker/panel/Shortcut.js +1 -1
- package/date-picker/panel/WeekList.js +1 -1
- package/date-picker/panel/date/index.js +1 -1
- package/date-picker/panel/month/index.js +1 -1
- package/date-picker/panel/quarter/index.js +1 -1
- package/date-picker/panel/range/index.js +1 -1
- package/date-picker/panel/week/index.js +1 -1
- package/date-picker/panel/year/index.js +1 -1
- package/date-picker/utils.js +1 -1
- package/descriptions/index.js +151 -104
- package/details/index.js +1 -1
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/Item.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/drawer/index.js +1 -1
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +1 -1
- package/form/Control.js +1 -1
- package/form/Form.js +1 -1
- package/form/FormItem.js +5 -2
- package/form/FormLabel.js +1 -1
- package/form/FormList.js +1 -1
- package/form/FormProvider.js +1 -1
- package/form/context.js +1 -1
- package/form/hook/useContext.js +1 -1
- package/form/hook/useForm.js +1 -1
- package/form/hook/useState.js +1 -1
- package/form/hook/useWatch.js +1 -1
- package/form/index.js +1 -1
- package/form/interface.js +1 -1
- package/form/promisify.js +1 -1
- package/form/store.js +1 -1
- package/form/utils.js +1 -1
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/grid/context.js +1 -1
- package/grid/index.js +1 -1
- package/grid/utils.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-create/index.js +1 -1
- package/hooks/use-creation/index.js +1 -1
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-in-view/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +5 -0
- package/hooks/use-interval/index.js +1 -1
- package/hooks/use-is-first-render/index.js +1 -1
- package/hooks/use-isomorphic-layout-effect/index.js +1 -1
- package/hooks/use-keyboard-event/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-merge-props/index.js +1 -1
- package/hooks/use-merge-value/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +5 -0
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +1 -1
- package/hooks/use-override-ref/index.js +1 -1
- package/hooks/use-persist-callback/index.js +1 -1
- package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +5 -0
- package/hooks/use-responsive-state/index.js +1 -1
- package/hooks/use-state-callback/index.js +1 -1
- package/hooks/use-state-with-promise/index.js +1 -1
- package/hooks/use-update-effect/index.js +1 -1
- package/hooks/use-verification-code/index.js +1 -1
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-watermark/index.js +1 -1
- package/hooks/use-watermark/utils.js +1 -1
- package/hooks/use-window-size/index.js +1 -1
- package/hooks/useComputedState.js +1 -1
- package/hooks/useCreate.js +1 -1
- package/hooks/useCreation.js +1 -1
- package/hooks/useForceUpdate.js +1 -1
- package/hooks/useId.js +1 -1
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useIntersectionObservers.js +5 -0
- package/hooks/useInterval.js +1 -1
- package/hooks/useIsFirstRender.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useListenWindowResize.js +1 -1
- package/hooks/useMedia.js +1 -1
- package/hooks/useMergeProps.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useMutationObservers.js +5 -0
- package/hooks/useOnlineStatus.js +1 -1
- package/hooks/useOverflowHidden.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/usePersistCallback.js +1 -1
- package/hooks/usePrefersColorSchemeDark.js +1 -1
- package/hooks/usePrevious.js +1 -1
- package/hooks/useRefs.js +1 -1
- package/hooks/useResizeObserver.js +1 -1
- package/hooks/useResizeObservers.js +5 -0
- package/hooks/useResponsiveState.js +1 -1
- package/hooks/useStateCallback.js +1 -1
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useUpdateEffect.js +1 -1
- package/hooks/useVerificationCode.js +1 -1
- package/hooks/useWatch.js +1 -1
- package/hooks/useWatermark.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/addFromIconFontCn.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icons/file/index.js +1 -1
- package/icons/file.js +1 -1
- package/icons.js +1 -1
- package/image/Image.js +1 -1
- package/image/ImageFooter.js +1 -1
- package/image/ImagePreview.js +66 -66
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/ImagePreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +1 -1
- package/image/index.js +1 -1
- package/image/previewGroupContext.js +1 -1
- package/image/utils/getFixTranslate.js +1 -1
- package/image/utils/getScale.js +1 -1
- package/image/utils/hook/useImageStatus.js +1 -1
- package/image/utils/hook/useShowFooter.js +1 -1
- package/index.js +482 -480
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- package/input/InputElement.js +108 -108
- package/input/Number.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Tag.js +1 -1
- package/input/Textarea.js +1 -1
- package/input/autoSizeTextAreaHeight.js +1 -1
- package/input/index.js +1 -1
- package/input/useComposition.js +1 -1
- package/input-number/decimal.js +1 -1
- package/input-number/index.js +1 -1
- package/input-number/useSelectionRange.js +1 -1
- package/input-number/utils.js +1 -1
- package/input-tag/InputTag.js +92 -91
- package/input-tag/index.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 +58 -57
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/liquid-fill/index.js +1 -1
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +1 -1
- package/locale/ar-EG.js +1 -1
- package/locale/de-DE.js +1 -1
- package/locale/default.js +1 -1
- package/locale/en-US.js +1 -1
- package/locale/es-ES.js +1 -1
- package/locale/fr-FR.js +1 -1
- package/locale/id-ID.js +1 -1
- package/locale/it-IT.js +1 -1
- package/locale/ja-JP.js +1 -1
- package/locale/ko-KR.js +1 -1
- package/locale/ms-MY.js +1 -1
- package/locale/pt-BR.js +1 -1
- package/locale/pt-PT.js +1 -1
- package/locale/ru-RU.js +1 -1
- package/locale/th-TH.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/locale/vi-VN.js +1 -1
- package/locale/zh-CN.js +1 -1
- package/locale/zh-HK.js +1 -1
- package/locale/zh-TW.js +1 -1
- package/marquee/index.js +88 -86
- package/mentions/index.js +1 -1
- package/mentions/utils.js +1 -1
- package/menu/Indent.js +1 -1
- package/menu/Item.js +1 -1
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +1 -1
- package/menu/OverflowWrap.js +56 -56
- package/menu/context.js +1 -1
- package/menu/index.js +1 -1
- package/menu/sub-menu/Inline.js +1 -1
- package/menu/sub-menu/Pop.js +1 -1
- package/menu/sub-menu/index.js +1 -1
- package/menu/utils.js +1 -1
- package/message/index.js +1 -1
- package/message/useMessage.js +4 -3
- package/modal/Confirm.js +1 -1
- package/modal/Modal.js +2 -6
- package/modal/config.js +1 -1
- package/modal/index.js +1 -1
- package/modal/use-modal/Hook.js +1 -1
- package/modal/use-modal/index.js +1 -1
- package/notice/index.js +1 -1
- package/notification/index.js +1 -1
- package/notification/useNotification.js +4 -3
- package/notification/withNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +18 -24
- package/overflow-ellipsis/index.js +27 -29
- package/package.json +1 -1
- package/page-header/index.js +44 -48
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +15 -15
- package/pagination/Pagination.js +1 -1
- package/pagination/index.js +1 -1
- package/pagination/interface.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/picker/index.js +1 -1
- package/popconfirm/index.js +2 -6
- package/popover/index.js +2 -6
- package/portal/Portal.js +1 -1
- package/portal/index.js +1 -1
- package/progress/CircleProgress.js +1 -1
- package/progress/LineProgess.js +1 -1
- package/progress/StepProgress.js +1 -1
- package/progress/index.js +1 -1
- package/qr-code/index.js +1 -1
- package/qr-code/src/index.js +1 -1
- package/qr-code/src/qrcodegen.js +1 -1
- package/radio/Group.js +2 -6
- package/radio/GroupBlock.js +1 -1
- package/radio/Radio.js +1 -1
- package/radio/index.js +1 -1
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +35 -41
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +2 -6
- package/result/403.js +1 -1
- package/result/404.js +1 -1
- package/result/500.js +1 -1
- package/result/index.js +2 -6
- package/rich-text/constant.js +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/lib/assets/icons/align-center.svg.js +1 -1
- package/rich-text/lib/assets/icons/align-justify.svg.js +1 -1
- package/rich-text/lib/assets/icons/align-left.svg.js +1 -1
- package/rich-text/lib/assets/icons/align-right.svg.js +1 -1
- package/rich-text/lib/assets/icons/background.svg.js +1 -1
- package/rich-text/lib/assets/icons/blockquote.svg.js +1 -1
- package/rich-text/lib/assets/icons/bold.svg.js +1 -1
- package/rich-text/lib/assets/icons/clean.svg.js +1 -1
- package/rich-text/lib/assets/icons/code.svg.js +1 -1
- package/rich-text/lib/assets/icons/color.svg.js +1 -1
- package/rich-text/lib/assets/icons/direction-ltr.svg.js +1 -1
- package/rich-text/lib/assets/icons/direction-rtl.svg.js +1 -1
- package/rich-text/lib/assets/icons/divider.svg.js +1 -1
- package/rich-text/lib/assets/icons/dropdown.svg.js +1 -1
- package/rich-text/lib/assets/icons/formula.svg.js +1 -1
- package/rich-text/lib/assets/icons/fullscreen-exit.svg.js +1 -1
- package/rich-text/lib/assets/icons/fullscreen.svg.js +1 -1
- package/rich-text/lib/assets/icons/header-2.svg.js +1 -1
- package/rich-text/lib/assets/icons/header-3.svg.js +1 -1
- package/rich-text/lib/assets/icons/header-4.svg.js +1 -1
- package/rich-text/lib/assets/icons/header-5.svg.js +1 -1
- package/rich-text/lib/assets/icons/header-6.svg.js +1 -1
- package/rich-text/lib/assets/icons/header.svg.js +1 -1
- package/rich-text/lib/assets/icons/image.svg.js +1 -1
- package/rich-text/lib/assets/icons/indent.svg.js +1 -1
- package/rich-text/lib/assets/icons/italic.svg.js +1 -1
- package/rich-text/lib/assets/icons/link.svg.js +1 -1
- package/rich-text/lib/assets/icons/list-bullet.svg.js +1 -1
- package/rich-text/lib/assets/icons/list-ordered.svg.js +1 -1
- package/rich-text/lib/assets/icons/outdent.svg.js +1 -1
- package/rich-text/lib/assets/icons/redo.svg.js +1 -1
- package/rich-text/lib/assets/icons/strike.svg.js +1 -1
- package/rich-text/lib/assets/icons/subscript.svg.js +1 -1
- package/rich-text/lib/assets/icons/superscript.svg.js +1 -1
- package/rich-text/lib/assets/icons/table.svg.js +1 -1
- package/rich-text/lib/assets/icons/underline.svg.js +1 -1
- package/rich-text/lib/assets/icons/undo.svg.js +1 -1
- package/rich-text/lib/assets/icons/video.svg.js +1 -1
- package/rich-text/lib/blots/block.js +1 -1
- package/rich-text/lib/blots/break.js +1 -1
- package/rich-text/lib/blots/container.js +1 -1
- package/rich-text/lib/blots/cursor.js +1 -1
- package/rich-text/lib/blots/embed.js +1 -1
- package/rich-text/lib/blots/inline.js +1 -1
- package/rich-text/lib/blots/scroll.js +1 -1
- package/rich-text/lib/blots/text.js +1 -1
- package/rich-text/lib/core/composition.js +1 -1
- package/rich-text/lib/core/editor.js +1 -1
- package/rich-text/lib/core/emitter.js +1 -1
- package/rich-text/lib/core/instances.js +1 -1
- package/rich-text/lib/core/logger.js +1 -1
- package/rich-text/lib/core/module.js +1 -1
- package/rich-text/lib/core/rich.js +1 -1
- package/rich-text/lib/core/selection.js +1 -1
- package/rich-text/lib/core/theme.js +1 -1
- package/rich-text/lib/core/utils/createRegistryWithFormats.js +1 -1
- package/rich-text/lib/core/utils/scrollRectIntoView.js +1 -1
- package/rich-text/lib/core.js +1 -1
- package/rich-text/lib/delta/AttributeMap.js +1 -1
- package/rich-text/lib/delta/Op.js +1 -1
- package/rich-text/lib/delta/OpIterator.js +1 -1
- package/rich-text/lib/delta/index.js +1 -1
- package/rich-text/lib/diff/index.js +1 -1
- package/rich-text/lib/formats/align.js +1 -1
- package/rich-text/lib/formats/background.js +1 -1
- package/rich-text/lib/formats/blockquote.js +1 -1
- package/rich-text/lib/formats/bold.js +1 -1
- package/rich-text/lib/formats/code.js +1 -1
- package/rich-text/lib/formats/color.js +1 -1
- package/rich-text/lib/formats/direction.js +1 -1
- package/rich-text/lib/formats/font.js +1 -1
- package/rich-text/lib/formats/formula.js +1 -1
- package/rich-text/lib/formats/header.js +1 -1
- package/rich-text/lib/formats/hr.js +1 -1
- package/rich-text/lib/formats/image-resize/index.js +1 -1
- package/rich-text/lib/formats/image-resize/modules/BaseModule.js +1 -1
- package/rich-text/lib/formats/image-resize/modules/DisplaySize.js +1 -1
- package/rich-text/lib/formats/image-resize/modules/Resize.js +1 -1
- package/rich-text/lib/formats/image-resize/options.js +1 -1
- package/rich-text/lib/formats/image.js +1 -1
- package/rich-text/lib/formats/indent.js +1 -1
- package/rich-text/lib/formats/italic.js +1 -1
- package/rich-text/lib/formats/lineHeight.js +1 -1
- package/rich-text/lib/formats/link.js +1 -1
- package/rich-text/lib/formats/list.js +1 -1
- package/rich-text/lib/formats/script.js +1 -1
- package/rich-text/lib/formats/size.js +1 -1
- package/rich-text/lib/formats/strike.js +1 -1
- package/rich-text/lib/formats/table.js +1 -1
- package/rich-text/lib/formats/underline.js +1 -1
- package/rich-text/lib/formats/video.js +1 -1
- package/rich-text/lib/index.js +1 -1
- package/rich-text/lib/modules/clipboard.js +1 -1
- package/rich-text/lib/modules/history.js +1 -1
- package/rich-text/lib/modules/input.js +1 -1
- package/rich-text/lib/modules/keyboard.js +1 -1
- package/rich-text/lib/modules/normalizeExternalHTML/index.js +1 -1
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/googleDocs.js +1 -1
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/msWord.js +1 -1
- package/rich-text/lib/modules/syntax.js +1 -1
- package/rich-text/lib/modules/table.js +1 -1
- package/rich-text/lib/modules/toolbar.js +1 -1
- package/rich-text/lib/modules/uiNode.js +1 -1
- package/rich-text/lib/modules/uploader.js +1 -1
- package/rich-text/lib/parchment/attributor/attributor.js +1 -1
- package/rich-text/lib/parchment/attributor/class.js +1 -1
- package/rich-text/lib/parchment/attributor/store.js +1 -1
- package/rich-text/lib/parchment/attributor/style.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/container.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/leaf.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/parent.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/shadow.js +1 -1
- package/rich-text/lib/parchment/blot/block.js +1 -1
- package/rich-text/lib/parchment/blot/embed.js +1 -1
- package/rich-text/lib/parchment/blot/inline.js +1 -1
- package/rich-text/lib/parchment/blot/scroll.js +1 -1
- package/rich-text/lib/parchment/blot/text.js +1 -1
- package/rich-text/lib/parchment/collection/linked-list.js +1 -1
- package/rich-text/lib/parchment/error.js +1 -1
- package/rich-text/lib/parchment/index.js +1 -1
- package/rich-text/lib/parchment/registry.js +1 -1
- package/rich-text/lib/parchment/scope.js +1 -1
- package/rich-text/lib/themes/base.js +1 -1
- package/rich-text/lib/themes/pqb.js +1 -1
- package/rich-text/lib/ui/color-picker.js +1 -1
- package/rich-text/lib/ui/icon-picker.js +1 -1
- package/rich-text/lib/ui/icons.js +1 -1
- package/rich-text/lib/ui/picker.js +1 -1
- package/rich-text/lib/ui/tooltip.js +1 -1
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +1 -1
- package/row-col/context.js +1 -1
- package/row-col/index.js +1 -1
- package/segmented/index.js +1 -1
- package/select/OptGroup.js +1 -1
- package/select/Option.js +1 -1
- package/select/Select.js +58 -60
- package/select/index.js +1 -1
- package/select/utils.js +1 -1
- package/select-view/Core.js +192 -188
- package/select-view/index.js +1 -1
- package/skeleton/Image.js +1 -1
- package/skeleton/Text.js +1 -1
- package/skeleton/index.js +2 -6
- package/slider/Button.js +1 -1
- package/slider/Dot.js +1 -1
- package/slider/Input.js +1 -1
- package/slider/Mark.js +1 -1
- package/slider/Tick.js +1 -1
- package/slider/hook/useInterval.js +1 -1
- package/slider/hook/useLegalValue.js +1 -1
- package/slider/index.js +1 -1
- package/slider/utils.js +1 -1
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +1 -1
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +6 -2
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +1 -1
- package/splitter/Splitter.js +48 -50
- package/splitter/hooks/useEvent.js +1 -1
- package/splitter/hooks/useItems.js +1 -1
- package/splitter/hooks/useResizable.js +1 -1
- package/splitter/hooks/useResize.js +1 -1
- package/splitter/hooks/useSizes.js +1 -1
- package/splitter/index.js +1 -1
- package/statistic/index.js +1 -1
- package/statistic/interface.js +1 -1
- package/steps/Step.js +1 -1
- package/steps/index.js +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/switch/index.js +1 -1
- package/table/ColGroup.js +1 -1
- package/table/Table.js +237 -237
- package/table/constant.js +1 -1
- package/table/context.js +1 -1
- package/table/hook/useColumns.js +1 -1
- package/table/hook/useComponent.js +1 -1
- package/table/hook/useExpand.js +1 -1
- package/table/hook/useRowSelection.js +1 -1
- package/table/hook/useSorter.js +1 -1
- package/table/hook/useStickyClassNames.js +1 -1
- package/table/hook/useStickyOffsets.js +1 -1
- package/table/hook/useThResizable.js +1 -1
- package/table/index.js +1 -1
- package/table/summary/Cell.js +1 -1
- package/table/summary/Row.js +1 -1
- package/table/summary/context.js +1 -1
- package/table/summary/index.js +1 -1
- package/table/tbody/Td.js +1 -1
- package/table/tbody/Tr.js +1 -1
- package/table/tbody/index.js +1 -1
- package/table/tfoot/index.js +1 -1
- package/table/th-resizable/index.js +1 -1
- package/table/thead/Column.js +1 -1
- package/table/thead/index.js +1 -1
- package/table/utils.js +1 -1
- package/tabs/Tab.js +1 -1
- package/tabs/TabContent.js +1 -1
- package/tabs/TabPane.js +1 -1
- package/tabs/hook/useDomSize.js +1 -1
- package/tabs/hook/useHeaderScroll.js +1 -1
- package/tabs/index.js +1 -1
- package/tabs/tab-header/DropdownIcon.js +1 -1
- package/tabs/tab-header/TabInk.js +1 -1
- package/tabs/tab-header/TabNavIcon.js +1 -1
- package/tabs/tab-header/TabTitle.js +1 -1
- package/tabs/tab-header/index.js +152 -152
- package/tabs/utils.js +1 -1
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/RangePicker.js +1 -1
- package/time-picker/TimeColumn.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/time-picker/context.js +1 -1
- package/time-picker/index.js +1 -1
- package/time-picker/utils.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +2 -6
- package/timeline/index.js +1 -1
- package/tooltip/index.js +2 -6
- package/tour/index.js +122 -118
- package/transfer/Item.js +1 -1
- package/transfer/List.js +1 -1
- package/transfer/index.js +1 -1
- package/tree/Animation.js +1 -1
- package/tree/Context.js +1 -1
- package/tree/Node.js +1 -1
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +339 -327
- package/tree/index.js +1 -1
- package/tree/utils.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +2 -6
- package/tree-select/hook/useKeyCache.js +1 -1
- package/tree-select/hook/useStateValue.js +1 -1
- package/tree-select/hook/useTreeData.js +1 -1
- package/tree-select/index.js +1 -1
- package/tree-select/interface.js +1 -1
- package/tree-select/utils.js +1 -1
- package/trigger/getPopupStyle.js +1 -1
- package/trigger/index.js +117 -115
- package/types/cascader/interface.d.ts +15 -10
- package/types/cascader/utils.d.ts +3 -3
- package/types/constant/index.d.ts +2 -1
- package/types/hooks/use-intersection-observers/index.d.ts +1 -0
- package/types/hooks/use-mutation-observers/index.d.ts +1 -0
- package/types/hooks/use-resize-observers/index.d.ts +1 -0
- package/types/radio/GroupBlock.d.ts +1 -1
- package/types/tree/interface.d.ts +4 -0
- package/types/trigger/getPopupStyle.d.ts +1 -7
- package/types/trigger/interface.d.ts +13 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/string.d.ts +1 -0
- package/typography/Base.js +39 -39
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +52 -55
- package/typography/Operations.js +1 -1
- package/typography/Paragraph.js +1 -1
- package/typography/Text.js +1 -1
- package/typography/Title.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +1 -1
- package/typography/useCssEllipsis.js +1 -1
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +2 -6
- package/upload/Uploader.js +1 -1
- package/upload/constant.js +1 -1
- package/upload/index.js +1 -1
- package/upload/list/PictureItem.js +1 -1
- package/upload/list/TextItem.js +1 -1
- package/upload/list/UploadProgress.js +1 -1
- package/upload/list/index.js +1 -1
- package/upload/request.js +16 -16
- package/upload/utils.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/constant.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/emitter.js +1 -1
- package/utils/fileToURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.js +96 -94
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/responsiveObserve.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +5 -0
- package/utils/style.js +1 -1
- package/utils/supportRef.js +1 -1
- package/utils/throttleByRaf.js +1 -1
- package/utils/throttleByRaf2.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tween.js +1 -1
- package/utils/uuid.js +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/verification-code/index.js +1 -1
- package/version/index.js +2 -2
- package/virtual-list/Filler.js +1 -1
- package/virtual-list/VirtualList.js +91 -91
- package/virtual-list/index.js +1 -1
- package/virtual-list/utils/algorithm.js +1 -1
- package/virtual-list/utils/item.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/watermark/index.js +1 -1
package/tree/Tree.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/* 2025-11-
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
1
|
+
/* 2025-11-19 09:09:44 */
|
|
2
|
+
import { jsx as Ae } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as vt, useContext as Lt, useMemo as re, useCallback as se, useRef as F, useState as g, useEffect as ce, useImperativeHandle as Dt, createElement as Et } from "react";
|
|
4
4
|
import h from "lodash/get";
|
|
5
|
-
import
|
|
5
|
+
import W from "lodash/has";
|
|
6
6
|
import "../config-provider/ConfigProvider.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { isArray as
|
|
10
|
-
import { pickDataAttributes as
|
|
11
|
-
import { TreeContext as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { getTreeDataFromTreeChildren as
|
|
15
|
-
import
|
|
16
|
-
const
|
|
7
|
+
import wt from "@unicom-cloud/ui-common/hooks/use-merge-props";
|
|
8
|
+
import Ie from "@unicom-cloud/ui-common/utils/className";
|
|
9
|
+
import { isArray as le, isEqualWith as Pe, isFunction as $e, isNumber as Re } from "@unicom-cloud/ui-common/utils/is";
|
|
10
|
+
import { pickDataAttributes as Ot } from "@unicom-cloud/ui-common/utils/pick";
|
|
11
|
+
import { TreeContext as Tt } from "./Context.js";
|
|
12
|
+
import He from "./Node.js";
|
|
13
|
+
import Mt from "./NodeList.js";
|
|
14
|
+
import { getTreeDataFromTreeChildren as At, getCheckedKeysByInitKeys as It, getAllCheckedKeysByCheck as Pt } from "./utils.js";
|
|
15
|
+
import $t from "../config-provider/context.js";
|
|
16
|
+
const je = {
|
|
17
17
|
key: "key",
|
|
18
18
|
title: "title",
|
|
19
19
|
children: "children",
|
|
@@ -22,138 +22,145 @@ const $e = {
|
|
|
22
22
|
disableCheckbox: "disableCheckbox",
|
|
23
23
|
checkable: "checkable",
|
|
24
24
|
isLeaf: "isLeaf"
|
|
25
|
-
},
|
|
25
|
+
}, Fe = "parent", We = "all", Be = "child", Rt = {
|
|
26
26
|
selectable: !0,
|
|
27
27
|
autoExpandParent: !0,
|
|
28
|
-
checkedStrategy:
|
|
28
|
+
checkedStrategy: We,
|
|
29
29
|
actionOnClick: "select",
|
|
30
30
|
allowDrop: () => !0,
|
|
31
|
-
fieldNames:
|
|
31
|
+
fieldNames: je,
|
|
32
32
|
animation: !0
|
|
33
33
|
};
|
|
34
|
-
function
|
|
35
|
-
const { getPrefixCls:
|
|
34
|
+
function Ht(x, ze) {
|
|
35
|
+
const { getPrefixCls: Ve, componentConfig: Ge, rtl: Je } = Lt($t), oe = wt(
|
|
36
36
|
x,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
),
|
|
40
|
-
__PqbAdapterMode__:
|
|
41
|
-
className:
|
|
42
|
-
showLine:
|
|
43
|
-
size:
|
|
44
|
-
virtualListProps:
|
|
45
|
-
height:
|
|
46
|
-
style:
|
|
47
|
-
icons:
|
|
48
|
-
actionOnClick:
|
|
49
|
-
animation:
|
|
50
|
-
checkedStrategy:
|
|
51
|
-
autoExpandParent:
|
|
52
|
-
allowDrop:
|
|
53
|
-
selectable:
|
|
54
|
-
fieldNames:
|
|
55
|
-
blockNode:
|
|
56
|
-
expandedKeys:
|
|
57
|
-
defaultExpandedKeys:
|
|
58
|
-
selectedKeys:
|
|
59
|
-
defaultSelectedKeys:
|
|
60
|
-
checkedKeys:
|
|
61
|
-
defaultCheckedKeys:
|
|
62
|
-
treeData:
|
|
63
|
-
children:
|
|
37
|
+
Rt,
|
|
38
|
+
Ge?.Tree
|
|
39
|
+
), E = "selectedKeys" in x, w = "checkedKeys" in x, B = "halfCheckedKeys" in x, ae = "expandedKeys" in x, O = "treeData" in x, {
|
|
40
|
+
__PqbAdapterMode__: Qe,
|
|
41
|
+
className: Ue,
|
|
42
|
+
showLine: q,
|
|
43
|
+
size: ie,
|
|
44
|
+
virtualListProps: z,
|
|
45
|
+
height: V,
|
|
46
|
+
style: Xe,
|
|
47
|
+
icons: Ye,
|
|
48
|
+
actionOnClick: Ze,
|
|
49
|
+
animation: G,
|
|
50
|
+
checkedStrategy: de,
|
|
51
|
+
autoExpandParent: ue,
|
|
52
|
+
allowDrop: T,
|
|
53
|
+
selectable: fe,
|
|
54
|
+
fieldNames: he,
|
|
55
|
+
blockNode: ye,
|
|
56
|
+
expandedKeys: M,
|
|
57
|
+
defaultExpandedKeys: et,
|
|
58
|
+
selectedKeys: A,
|
|
59
|
+
defaultSelectedKeys: tt,
|
|
60
|
+
checkedKeys: I,
|
|
61
|
+
defaultCheckedKeys: nt,
|
|
62
|
+
treeData: ke,
|
|
63
|
+
children: P,
|
|
64
64
|
checkStrictly: S,
|
|
65
|
-
halfCheckedKeys:
|
|
66
|
-
renderExtra:
|
|
67
|
-
renderTitle:
|
|
68
|
-
checkable:
|
|
69
|
-
draggable:
|
|
70
|
-
multiple:
|
|
71
|
-
loadMore:
|
|
72
|
-
filterNode:
|
|
73
|
-
onMouseDown:
|
|
74
|
-
onExpand:
|
|
75
|
-
onSelect:
|
|
76
|
-
onNodeSelect:
|
|
77
|
-
onCheck:
|
|
78
|
-
onNodeCheck:
|
|
79
|
-
onDragStart:
|
|
80
|
-
onDragEnd:
|
|
81
|
-
onDragOver:
|
|
82
|
-
onDragLeave:
|
|
83
|
-
onDrop:
|
|
84
|
-
|
|
65
|
+
halfCheckedKeys: Ke,
|
|
66
|
+
renderExtra: rt,
|
|
67
|
+
renderTitle: st,
|
|
68
|
+
checkable: J,
|
|
69
|
+
draggable: pe,
|
|
70
|
+
multiple: me,
|
|
71
|
+
loadMore: $,
|
|
72
|
+
filterNode: ct,
|
|
73
|
+
onMouseDown: lt,
|
|
74
|
+
onExpand: ot,
|
|
75
|
+
onSelect: xe,
|
|
76
|
+
onNodeSelect: at,
|
|
77
|
+
onCheck: it,
|
|
78
|
+
onNodeCheck: dt,
|
|
79
|
+
onDragStart: ut,
|
|
80
|
+
onDragEnd: ft,
|
|
81
|
+
onDragOver: ht,
|
|
82
|
+
onDragLeave: yt,
|
|
83
|
+
onDrop: _e,
|
|
84
|
+
maxLevel: R
|
|
85
|
+
} = oe, k = Ve?.("tree"), Ne = re(() => O ? ke : At(P), [P, O, ke]), Q = se(
|
|
85
86
|
(e) => {
|
|
86
87
|
const t = {
|
|
87
|
-
|
|
88
|
-
...
|
|
88
|
+
...je,
|
|
89
|
+
...O ? he : {}
|
|
89
90
|
}, r = {
|
|
90
|
-
children:
|
|
91
|
-
selectable:
|
|
92
|
-
checkable:
|
|
91
|
+
children: W(e, t.children) ? h(e, t.children) : P,
|
|
92
|
+
selectable: W(e, t.selectable) ? h(e, t.selectable) : fe,
|
|
93
|
+
checkable: W(e, t.checkable) ? h(e, t.checkable) : J,
|
|
93
94
|
title: h(e, t.title),
|
|
94
95
|
disabled: h(e, t.disabled),
|
|
95
96
|
disableCheckbox: h(e, t.disableCheckbox),
|
|
96
97
|
isLeaf: h(e, t.isLeaf),
|
|
97
98
|
key: h(e, t.key)
|
|
98
99
|
};
|
|
99
|
-
return
|
|
100
|
+
return W(e, t.key) ? r.key = h(e, t.key) : delete r.key, r;
|
|
100
101
|
},
|
|
101
|
-
[
|
|
102
|
-
)
|
|
102
|
+
[J, P, he, O, fe]
|
|
103
|
+
);
|
|
104
|
+
function U(e) {
|
|
105
|
+
return Re(R) && Re(e) && e > R - 1;
|
|
106
|
+
}
|
|
107
|
+
const Ce = se(
|
|
103
108
|
(e) => {
|
|
104
|
-
|
|
109
|
+
a.current = {};
|
|
105
110
|
const t = [];
|
|
106
111
|
let r = 0;
|
|
107
|
-
const n = (s,
|
|
108
|
-
const
|
|
109
|
-
return s.map((
|
|
112
|
+
const n = (s, c) => {
|
|
113
|
+
const p = U(c._level), l = s.length;
|
|
114
|
+
return s.map((d, u) => {
|
|
110
115
|
const {
|
|
111
|
-
children:
|
|
112
|
-
selectable:
|
|
113
|
-
checkable:
|
|
114
|
-
key:
|
|
115
|
-
...
|
|
116
|
-
} =
|
|
116
|
+
children: o,
|
|
117
|
+
selectable: D,
|
|
118
|
+
checkable: St,
|
|
119
|
+
key: m = `${c?._key || ""}-${u}`,
|
|
120
|
+
...bt
|
|
121
|
+
} = Q(d), C = {
|
|
117
122
|
// data 中含有 dataRef 时,优先级较高
|
|
118
|
-
dataRef:
|
|
119
|
-
draggable:
|
|
120
|
-
selectable:
|
|
121
|
-
checkable:
|
|
122
|
-
showLine:
|
|
123
|
-
blockNode:
|
|
124
|
-
...
|
|
125
|
-
...
|
|
126
|
-
key:
|
|
127
|
-
children:
|
|
128
|
-
_key:
|
|
123
|
+
dataRef: d,
|
|
124
|
+
draggable: pe,
|
|
125
|
+
selectable: D,
|
|
126
|
+
checkable: St,
|
|
127
|
+
showLine: q,
|
|
128
|
+
blockNode: ye,
|
|
129
|
+
...d,
|
|
130
|
+
...bt,
|
|
131
|
+
key: m,
|
|
132
|
+
children: o,
|
|
133
|
+
_key: m,
|
|
129
134
|
_index: r++,
|
|
130
|
-
parentKey:
|
|
131
|
-
pathParentKeys:
|
|
132
|
-
_level:
|
|
135
|
+
parentKey: c ? c._key : void 0,
|
|
136
|
+
pathParentKeys: c && c.pathParentKeys || [],
|
|
137
|
+
_level: c._level,
|
|
138
|
+
// 当前节点的层级
|
|
133
139
|
// 保存 node 在 sowLine 模式下是否显示缩进线。如果父节点是其所在层级的最后一个节点,那么所有的子节点(包括孙子节点等)在父节点所在层级的缩进格都不显示缩进线。
|
|
134
|
-
_lineless:
|
|
140
|
+
_lineless: c && c._lineless ? [...c._lineless || [], c._isTail] : []
|
|
135
141
|
};
|
|
136
|
-
return
|
|
137
|
-
`${
|
|
138
|
-
|
|
139
|
-
)), t.push(
|
|
140
|
-
_key:
|
|
141
|
-
_level:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
return l === u + 1 && (C.className = Ie(
|
|
143
|
+
`${k}-node-is-tail`,
|
|
144
|
+
C.className
|
|
145
|
+
)), t.push(C), a.current[m] = C, le(o) && o.length && !p ? a.current[m].children = n(o, {
|
|
146
|
+
_key: m,
|
|
147
|
+
_level: c._level + 1,
|
|
148
|
+
// 子节点层级 = 当前层级 + 1
|
|
149
|
+
_lineless: C._lineless,
|
|
150
|
+
_isTail: l === u + 1,
|
|
151
|
+
pathParentKeys: [...c?.pathParentKeys || [], m]
|
|
152
|
+
}) : a.current[m].children = [], C;
|
|
146
153
|
});
|
|
147
154
|
};
|
|
148
|
-
return n(e || [], {}), t;
|
|
155
|
+
return n(e || [], { _level: 0 }), t;
|
|
149
156
|
},
|
|
150
|
-
[
|
|
151
|
-
),
|
|
157
|
+
[ye, pe, Q, k, q, R]
|
|
158
|
+
), X = se(
|
|
152
159
|
(e) => {
|
|
153
160
|
if (!S) {
|
|
154
|
-
const { checkedKeys: t, indeterminateKeys: r } =
|
|
161
|
+
const { checkedKeys: t, indeterminateKeys: r } = It(
|
|
155
162
|
e,
|
|
156
|
-
|
|
163
|
+
a.current
|
|
157
164
|
);
|
|
158
165
|
return {
|
|
159
166
|
checkedKeys: t,
|
|
@@ -162,147 +169,151 @@ function It(x, We) {
|
|
|
162
169
|
}
|
|
163
170
|
return {
|
|
164
171
|
checkedKeys: e,
|
|
165
|
-
halfCheckedKeys:
|
|
172
|
+
halfCheckedKeys: Ke || []
|
|
166
173
|
};
|
|
167
174
|
},
|
|
168
|
-
[S,
|
|
169
|
-
),
|
|
175
|
+
[S, Ke]
|
|
176
|
+
), a = F({}), y = F(null), H = F(null), Y = F(null), ge = re(() => {
|
|
170
177
|
let e = {
|
|
171
178
|
threshold: null
|
|
172
179
|
};
|
|
173
|
-
return
|
|
180
|
+
return z ? e = {
|
|
174
181
|
threshold: 100,
|
|
175
|
-
...
|
|
176
|
-
} :
|
|
182
|
+
...z
|
|
183
|
+
} : V ? e = { height: V, threshold: 100 } : e = {
|
|
177
184
|
threshold: null
|
|
178
185
|
}, e;
|
|
179
|
-
}, [
|
|
180
|
-
const { checkedKeys: e, halfCheckedKeys: t } =
|
|
181
|
-
|
|
186
|
+
}, [V, z]), Se = re(() => Ce(Ne), [Ce, Ne]), [_, Z] = g(() => A || tt || []), [K, b] = g(() => {
|
|
187
|
+
const { checkedKeys: e, halfCheckedKeys: t } = X(
|
|
188
|
+
I || nt || []
|
|
182
189
|
);
|
|
183
190
|
return { keys: e, halfKeys: t };
|
|
184
|
-
}), [f,
|
|
185
|
-
function
|
|
191
|
+
}), [f, be] = g(() => Kt(M || et)), [v, ve] = g(() => []), [L, Le] = g(() => []), [N, ee] = g(() => []);
|
|
192
|
+
function kt(e, t) {
|
|
186
193
|
let r = e;
|
|
187
|
-
t && (r = t._key),
|
|
194
|
+
t && (r = t._key), Y.current && Y.current.scrollIntoView(
|
|
188
195
|
r,
|
|
189
|
-
t ||
|
|
196
|
+
t || a.current[r]
|
|
190
197
|
);
|
|
191
198
|
}
|
|
192
|
-
function
|
|
193
|
-
if (!
|
|
194
|
-
if (!e) return Object.keys(
|
|
195
|
-
const { children: s } =
|
|
199
|
+
function Kt(e) {
|
|
200
|
+
if (!ue) return e || [];
|
|
201
|
+
if (!e) return Object.keys(a.current).filter((n) => {
|
|
202
|
+
const { children: s } = a.current[n] ?? {};
|
|
196
203
|
return s && s.length;
|
|
197
204
|
});
|
|
198
205
|
const t = {};
|
|
199
206
|
return e.forEach((n) => {
|
|
200
|
-
const s =
|
|
201
|
-
s && (t[n] = 1,
|
|
202
|
-
t[
|
|
207
|
+
const s = a.current[n];
|
|
208
|
+
s && (t[n] = 1, le(s.pathParentKeys) && s.pathParentKeys.forEach((c) => {
|
|
209
|
+
t[c] = 1;
|
|
203
210
|
}));
|
|
204
211
|
}), Object.keys(t);
|
|
205
212
|
}
|
|
206
|
-
function
|
|
207
|
-
const r =
|
|
213
|
+
function pt(e, t) {
|
|
214
|
+
const r = a.current[e]?.dataRef, n = {
|
|
208
215
|
e: t,
|
|
209
216
|
data: r,
|
|
210
217
|
// 潘启宝添加
|
|
211
|
-
node:
|
|
218
|
+
node: i([e])[0],
|
|
212
219
|
selected: !1,
|
|
213
220
|
selectedNodes: []
|
|
214
221
|
};
|
|
215
|
-
if (
|
|
216
|
-
const s = [...
|
|
217
|
-
|
|
222
|
+
if (me) {
|
|
223
|
+
const s = [..._], c = s.indexOf(e);
|
|
224
|
+
c > -1 ? (s.splice(c, 1), n.selected = !1) : (n.selected = !0, s.push(e)), n.selectedNodes = i(s), E || Z(s), xe?.(s, n);
|
|
218
225
|
} else
|
|
219
|
-
n.selected = !0, n.selectedNodes =
|
|
220
|
-
|
|
226
|
+
n.selected = !0, n.selectedNodes = i([e]), E || Z([e]), xe?.([e], n);
|
|
227
|
+
at?.(e, r, n);
|
|
221
228
|
}
|
|
222
|
-
function
|
|
223
|
-
let n = [...
|
|
229
|
+
function De(e, t, r) {
|
|
230
|
+
let n = [...K.keys || []], s = K.halfKeys;
|
|
224
231
|
if (S)
|
|
225
|
-
e ? n = n.concat(t) : n = n.filter((
|
|
226
|
-
const
|
|
227
|
-
return
|
|
228
|
-
}),
|
|
229
|
-
const
|
|
230
|
-
return
|
|
232
|
+
e ? n = n.concat(t) : n = n.filter((l) => l !== t), w || b((l) => {
|
|
233
|
+
const d = { ...l };
|
|
234
|
+
return d.keys = n, d;
|
|
235
|
+
}), B || b((l) => {
|
|
236
|
+
const d = { ...l };
|
|
237
|
+
return d.halfKeys = s, d;
|
|
231
238
|
});
|
|
232
239
|
else {
|
|
233
|
-
const { checkedKeys:
|
|
240
|
+
const { checkedKeys: l, indeterminateKeys: d } = Pt(
|
|
234
241
|
t,
|
|
235
242
|
e,
|
|
236
243
|
n,
|
|
237
|
-
|
|
244
|
+
a.current,
|
|
238
245
|
s
|
|
239
246
|
);
|
|
240
|
-
n =
|
|
241
|
-
const
|
|
242
|
-
return
|
|
243
|
-
} : (
|
|
244
|
-
const
|
|
245
|
-
return
|
|
246
|
-
}),
|
|
247
|
-
const
|
|
248
|
-
if (!
|
|
247
|
+
n = l, s = d, b(w ? (u) => {
|
|
248
|
+
const o = { ...u };
|
|
249
|
+
return o.halfKeys = s, o;
|
|
250
|
+
} : (u) => {
|
|
251
|
+
const o = { ...u };
|
|
252
|
+
return o.keys = n, o.halfKeys = s, o;
|
|
253
|
+
}), de === Fe ? n = n.filter((u) => {
|
|
254
|
+
const o = a.current[u];
|
|
255
|
+
if (!o || n.indexOf(o.parentKey) === -1)
|
|
249
256
|
return !0;
|
|
250
|
-
}) :
|
|
251
|
-
const
|
|
252
|
-
if (!
|
|
257
|
+
}) : de === Be && (n = n.filter((u) => {
|
|
258
|
+
const o = a.current[u];
|
|
259
|
+
if (!o || !o.children?.length || o.children?.every((D) => n.indexOf(D._key) === -1))
|
|
253
260
|
return !0;
|
|
254
261
|
}));
|
|
255
262
|
}
|
|
256
|
-
const
|
|
257
|
-
checkedNodes:
|
|
263
|
+
const c = a.current[t]?.dataRef, p = {
|
|
264
|
+
checkedNodes: i(n),
|
|
258
265
|
checked: e,
|
|
259
266
|
halfCheckedKeys: s,
|
|
260
|
-
halfCheckedNodes:
|
|
261
|
-
data:
|
|
267
|
+
halfCheckedNodes: i(s),
|
|
268
|
+
data: c,
|
|
262
269
|
// 潘启宝添加
|
|
263
270
|
e: r,
|
|
264
|
-
node:
|
|
271
|
+
node: i([t])[0]
|
|
265
272
|
};
|
|
266
|
-
|
|
273
|
+
it?.(n, p), dt?.(t, c, p);
|
|
267
274
|
}
|
|
268
|
-
function
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
)
|
|
275
|
+
function mt(e) {
|
|
276
|
+
if (U(e._level)) {
|
|
277
|
+
console.warn(`[Tree] Cannot load more: reached max level ${R}`);
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
$e($) && (ee(
|
|
281
|
+
Array.from(/* @__PURE__ */ new Set([...N, e._key]))
|
|
282
|
+
), Le(
|
|
283
|
+
L.filter((t) => t !== e._key)
|
|
284
|
+
), $?.(i([e._key])[0]).then((t) => {
|
|
285
|
+
ee(N.filter((r) => r !== e._key)), Le(
|
|
286
|
+
Array.from(/* @__PURE__ */ new Set([...L, e._key]))
|
|
287
|
+
), te(!e.expanded, e._key);
|
|
277
288
|
}).catch((t) => {
|
|
278
|
-
|
|
289
|
+
ee(N.filter((r) => r !== e._key)), console.error("[tree]load data error: ", t);
|
|
279
290
|
}).finally(() => {
|
|
280
291
|
}));
|
|
281
292
|
}
|
|
282
|
-
function
|
|
283
|
-
y.current =
|
|
293
|
+
function xt(e, t) {
|
|
294
|
+
y.current = i([t._key])[0], H.current = 0, ut?.(e, i([t._key])[0]);
|
|
284
295
|
}
|
|
285
|
-
function
|
|
286
|
-
y.current = null,
|
|
296
|
+
function _t(e, t) {
|
|
297
|
+
y.current = null, H.current = 0, ft?.(e, i([t._key])[0]);
|
|
287
298
|
}
|
|
288
|
-
function
|
|
289
|
-
|
|
299
|
+
function Nt(e, t, r) {
|
|
300
|
+
H.current = r, ht?.(e, i([t._key])[0]);
|
|
290
301
|
}
|
|
291
|
-
function
|
|
292
|
-
|
|
302
|
+
function Ct(e, t) {
|
|
303
|
+
H.current = 0, yt?.(e, i([t._key])[0]);
|
|
293
304
|
}
|
|
294
|
-
function
|
|
295
|
-
let r =
|
|
305
|
+
function gt(e, t) {
|
|
306
|
+
let r = a.current[e.parentKey];
|
|
296
307
|
for (; r; ) {
|
|
297
308
|
const { _key: n, parentKey: s } = r;
|
|
298
309
|
if (n === t.props._key)
|
|
299
310
|
return !0;
|
|
300
311
|
if (s === n)
|
|
301
312
|
return;
|
|
302
|
-
r =
|
|
313
|
+
r = a.current[s];
|
|
303
314
|
}
|
|
304
315
|
}
|
|
305
|
-
function
|
|
316
|
+
function Ee(e, t) {
|
|
306
317
|
if (e === void 0 || t === void 0)
|
|
307
318
|
return !1;
|
|
308
319
|
if (e === t)
|
|
@@ -310,20 +321,20 @@ function It(x, We) {
|
|
|
310
321
|
const r = e.key, n = t.key;
|
|
311
322
|
if (r !== void 0 || n !== void 0)
|
|
312
323
|
return r === n;
|
|
313
|
-
const s = e.props._key,
|
|
314
|
-
return s === void 0 &&
|
|
324
|
+
const s = e.props._key, c = t.props._key;
|
|
325
|
+
return s === void 0 && c === void 0 ? !1 : s === c;
|
|
315
326
|
}
|
|
316
|
-
function
|
|
327
|
+
function we(e, t, r) {
|
|
317
328
|
if (y.current) {
|
|
318
|
-
const n =
|
|
319
|
-
if (
|
|
320
|
-
if (
|
|
329
|
+
const n = i([t._key])[0];
|
|
330
|
+
if (_e && !gt(t, y.current) && !Ee(y.current, n)) {
|
|
331
|
+
if (T && !T({
|
|
321
332
|
dropNode: n,
|
|
322
333
|
dragNode: y.current,
|
|
323
334
|
dropPosition: r
|
|
324
335
|
}))
|
|
325
336
|
return;
|
|
326
|
-
|
|
337
|
+
_e({
|
|
327
338
|
dragNode: y.current,
|
|
328
339
|
dropNode: n,
|
|
329
340
|
dropPosition: r,
|
|
@@ -332,95 +343,96 @@ function It(x, We) {
|
|
|
332
343
|
}
|
|
333
344
|
}
|
|
334
345
|
}
|
|
335
|
-
function
|
|
346
|
+
function Oe(e, t) {
|
|
336
347
|
let r = !0;
|
|
337
|
-
return
|
|
338
|
-
dropNode:
|
|
348
|
+
return $e(T) && (r = T({
|
|
349
|
+
dropNode: i([e._key])[0],
|
|
339
350
|
dragNode: y.current,
|
|
340
351
|
dropPosition: t
|
|
341
352
|
})), r;
|
|
342
353
|
}
|
|
343
|
-
function
|
|
344
|
-
if (
|
|
354
|
+
function te(e, t) {
|
|
355
|
+
if (v.indexOf(t) > -1)
|
|
345
356
|
return;
|
|
346
357
|
const r = e ? Array.from(/* @__PURE__ */ new Set([...f, t])) : f.filter((n) => n !== t);
|
|
347
|
-
|
|
358
|
+
be((n) => r), G && ve((n) => [...n, t]), ot?.(r, {
|
|
348
359
|
expanded: e,
|
|
349
|
-
node:
|
|
350
|
-
expandedNodes:
|
|
360
|
+
node: i([t])[0],
|
|
361
|
+
expandedNodes: i(r)
|
|
351
362
|
});
|
|
352
363
|
}
|
|
353
|
-
function
|
|
354
|
-
return
|
|
355
|
-
[].concat(e).map((r) =>
|
|
356
|
-
).map((r) =>
|
|
364
|
+
function i(e) {
|
|
365
|
+
return j(
|
|
366
|
+
[].concat(e).map((r) => a.current[r]).filter(Boolean)
|
|
367
|
+
).map((r) => Qe ? {
|
|
357
368
|
props: r,
|
|
358
369
|
key: e
|
|
359
|
-
} : /* @__PURE__ */
|
|
370
|
+
} : /* @__PURE__ */ Et(He, { ...r, key: r.key }));
|
|
360
371
|
}
|
|
361
|
-
function
|
|
372
|
+
function ne(e) {
|
|
362
373
|
return {
|
|
363
374
|
expandedKeysSet: e?.expandedKeysSet || new Set(f || []),
|
|
364
|
-
checkedKeysSet: e?.checkedKeysSet || new Set(
|
|
365
|
-
selectedKeysSet: e?.selectedKeysSet || new Set(
|
|
366
|
-
halfCheckedKeysSet: e?.halfCheckedKeysSet || new Set(
|
|
375
|
+
checkedKeysSet: e?.checkedKeysSet || new Set(K.keys || []),
|
|
376
|
+
selectedKeysSet: e?.selectedKeysSet || new Set(_ || []),
|
|
377
|
+
halfCheckedKeysSet: e?.halfCheckedKeysSet || new Set(K.halfKeys || [])
|
|
367
378
|
};
|
|
368
379
|
}
|
|
369
|
-
function
|
|
380
|
+
function j(e, t) {
|
|
370
381
|
const {
|
|
371
382
|
expandedKeysSet: r,
|
|
372
383
|
checkedKeysSet: n,
|
|
373
384
|
selectedKeysSet: s,
|
|
374
|
-
halfCheckedKeysSet:
|
|
375
|
-
} =
|
|
376
|
-
const
|
|
377
|
-
isLeaf: !u,
|
|
378
|
-
|
|
379
|
-
|
|
385
|
+
halfCheckedKeysSet: c
|
|
386
|
+
} = ne(t), p = (l) => {
|
|
387
|
+
const d = l.children && l.children.length, u = U(l._level), o = {
|
|
388
|
+
isLeaf: !d || u,
|
|
389
|
+
// 达到最大层级时也认为是叶子节点
|
|
390
|
+
autoExpandParent: d ? ue : !1,
|
|
391
|
+
expanded: r ? r.has(l._key) : f.indexOf(l._key) > -1
|
|
380
392
|
};
|
|
381
|
-
if (
|
|
382
|
-
const
|
|
383
|
-
|
|
393
|
+
if ($) {
|
|
394
|
+
const D = L.indexOf(l._key) > -1;
|
|
395
|
+
o.loaded = D || u, o.isLeaf = (d ? !1 : l.isLeaf) || u;
|
|
384
396
|
}
|
|
385
397
|
return {
|
|
386
|
-
...
|
|
387
|
-
...
|
|
388
|
-
selected: s.has(
|
|
389
|
-
indeterminated:
|
|
390
|
-
loading:
|
|
391
|
-
checked: n.has(
|
|
392
|
-
selectedKeys:
|
|
393
|
-
checkedKeys:
|
|
394
|
-
loadingKeys:
|
|
395
|
-
loadedKeys:
|
|
398
|
+
...l,
|
|
399
|
+
...o,
|
|
400
|
+
selected: s.has(l._key),
|
|
401
|
+
indeterminated: c.has(l._key),
|
|
402
|
+
loading: N.indexOf(l._key) > -1,
|
|
403
|
+
checked: n.has(l._key),
|
|
404
|
+
selectedKeys: _,
|
|
405
|
+
checkedKeys: K.keys,
|
|
406
|
+
loadingKeys: N,
|
|
407
|
+
loadedKeys: L,
|
|
396
408
|
expandedKeys: f,
|
|
397
|
-
childrenData:
|
|
409
|
+
childrenData: l.children || [],
|
|
398
410
|
children: null
|
|
399
411
|
};
|
|
400
412
|
};
|
|
401
|
-
return
|
|
413
|
+
return le(e) ? e.map((l) => p(l)) : p(e);
|
|
402
414
|
}
|
|
403
|
-
function
|
|
404
|
-
if (
|
|
405
|
-
const t =
|
|
406
|
-
|
|
415
|
+
function Te(e) {
|
|
416
|
+
if (v.indexOf(e) > -1) {
|
|
417
|
+
const t = v.filter((r, n, s) => r !== e);
|
|
418
|
+
ve(t);
|
|
407
419
|
}
|
|
408
420
|
}
|
|
409
|
-
function
|
|
421
|
+
function Me() {
|
|
410
422
|
return {
|
|
411
|
-
selectedKeys:
|
|
412
|
-
checkedKeys:
|
|
413
|
-
halfCheckedKeys:
|
|
423
|
+
selectedKeys: _,
|
|
424
|
+
checkedKeys: K.keys,
|
|
425
|
+
halfCheckedKeys: K.halfKeys,
|
|
414
426
|
expandedKeys: f,
|
|
415
|
-
currentExpandKeys:
|
|
416
|
-
loadedKeys:
|
|
417
|
-
loadingKeys:
|
|
418
|
-
nodeList:
|
|
427
|
+
currentExpandKeys: v,
|
|
428
|
+
loadedKeys: L,
|
|
429
|
+
loadingKeys: N,
|
|
430
|
+
nodeList: Se
|
|
419
431
|
};
|
|
420
432
|
}
|
|
421
|
-
return
|
|
422
|
-
if (!(
|
|
423
|
-
const { halfCheckedKeys: e, checkedKeys: t } =
|
|
433
|
+
return ce(() => {
|
|
434
|
+
if (!(w && I || B && S)) return;
|
|
435
|
+
const { halfCheckedKeys: e, checkedKeys: t } = X(I);
|
|
424
436
|
return b((r) => {
|
|
425
437
|
const n = { ...r };
|
|
426
438
|
return n.keys = t, n.halfKeys = e, n;
|
|
@@ -428,102 +440,102 @@ function It(x, We) {
|
|
|
428
440
|
};
|
|
429
441
|
}, [
|
|
430
442
|
S,
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
]),
|
|
436
|
-
if (
|
|
437
|
-
return
|
|
443
|
+
I,
|
|
444
|
+
X,
|
|
445
|
+
w,
|
|
446
|
+
B
|
|
447
|
+
]), ce(() => {
|
|
448
|
+
if (ae)
|
|
449
|
+
return Pe(M, f) || be((e) => M), () => {
|
|
438
450
|
};
|
|
439
|
-
}, [
|
|
440
|
-
if (
|
|
441
|
-
return
|
|
451
|
+
}, [M, f, ae]), ce(() => {
|
|
452
|
+
if (E)
|
|
453
|
+
return Pe(A, _) || Z(A || []), () => {
|
|
442
454
|
};
|
|
443
|
-
}, [
|
|
444
|
-
scrollIntoView:
|
|
445
|
-
handleCheck:
|
|
446
|
-
getTreeState:
|
|
447
|
-
handleExpandEnd:
|
|
448
|
-
getNodeProps:
|
|
449
|
-
getDataSet:
|
|
450
|
-
getCacheNode:
|
|
451
|
-
handleExpand:
|
|
452
|
-
handleAllowDrop:
|
|
453
|
-
handleNodeDrop:
|
|
454
|
-
isSameNode:
|
|
455
|
-
})), /* @__PURE__ */
|
|
456
|
-
|
|
455
|
+
}, [E, A, _]), Dt(ze, () => ({
|
|
456
|
+
scrollIntoView: kt,
|
|
457
|
+
handleCheck: De,
|
|
458
|
+
getTreeState: Me,
|
|
459
|
+
handleExpandEnd: Te,
|
|
460
|
+
getNodeProps: j,
|
|
461
|
+
getDataSet: ne,
|
|
462
|
+
getCacheNode: i,
|
|
463
|
+
handleExpand: te,
|
|
464
|
+
handleAllowDrop: Oe,
|
|
465
|
+
handleNodeDrop: we,
|
|
466
|
+
isSameNode: Ee
|
|
467
|
+
})), /* @__PURE__ */ Ae(
|
|
468
|
+
Tt.Provider,
|
|
457
469
|
{
|
|
458
470
|
value: {
|
|
459
|
-
icons:
|
|
460
|
-
animation:
|
|
461
|
-
key2nodeProps:
|
|
462
|
-
getFieldInfo:
|
|
463
|
-
getTreeState:
|
|
464
|
-
getNodeProps:
|
|
465
|
-
onExpandEnd:
|
|
471
|
+
icons: Ye,
|
|
472
|
+
animation: G,
|
|
473
|
+
key2nodeProps: a.current,
|
|
474
|
+
getFieldInfo: Q,
|
|
475
|
+
getTreeState: Me,
|
|
476
|
+
getNodeProps: j,
|
|
477
|
+
onExpandEnd: G ? Te : () => {
|
|
466
478
|
},
|
|
467
|
-
onSelect:
|
|
468
|
-
onCheck:
|
|
469
|
-
onNodeDragStart:
|
|
470
|
-
onNodeDragEnd:
|
|
471
|
-
onNodeDragLeave:
|
|
472
|
-
onNodeDragOver:
|
|
473
|
-
onNodeDrop:
|
|
474
|
-
onExpand:
|
|
475
|
-
renderExtra:
|
|
476
|
-
renderTitle:
|
|
477
|
-
loadMore:
|
|
478
|
-
allowDrop:
|
|
479
|
-
actionOnClick:
|
|
480
|
-
virtualListProps:
|
|
479
|
+
onSelect: pt,
|
|
480
|
+
onCheck: De,
|
|
481
|
+
onNodeDragStart: xt,
|
|
482
|
+
onNodeDragEnd: _t,
|
|
483
|
+
onNodeDragLeave: Ct,
|
|
484
|
+
onNodeDragOver: Nt,
|
|
485
|
+
onNodeDrop: we,
|
|
486
|
+
onExpand: te,
|
|
487
|
+
renderExtra: rt,
|
|
488
|
+
renderTitle: st,
|
|
489
|
+
loadMore: $ && mt,
|
|
490
|
+
allowDrop: Oe,
|
|
491
|
+
actionOnClick: Ze,
|
|
492
|
+
virtualListProps: ge
|
|
481
493
|
},
|
|
482
|
-
children: /* @__PURE__ */
|
|
483
|
-
|
|
494
|
+
children: /* @__PURE__ */ Ae(
|
|
495
|
+
Mt,
|
|
484
496
|
{
|
|
485
497
|
ref: (e) => {
|
|
486
|
-
|
|
498
|
+
Y.current = e;
|
|
487
499
|
},
|
|
488
|
-
className:
|
|
489
|
-
|
|
500
|
+
className: Ie(
|
|
501
|
+
k,
|
|
490
502
|
{
|
|
491
|
-
[`${
|
|
492
|
-
[`${
|
|
493
|
-
[`${
|
|
494
|
-
[`${
|
|
503
|
+
[`${k}-checkable`]: J,
|
|
504
|
+
[`${k}-show-line`]: q,
|
|
505
|
+
[`${k}-size-${ie}`]: ie,
|
|
506
|
+
[`${k}-rtl`]: Je
|
|
495
507
|
},
|
|
496
|
-
|
|
508
|
+
Ue
|
|
497
509
|
),
|
|
498
|
-
style:
|
|
499
|
-
filterNode:
|
|
500
|
-
virtualListProps:
|
|
510
|
+
style: Xe,
|
|
511
|
+
filterNode: ct,
|
|
512
|
+
virtualListProps: ge,
|
|
501
513
|
expandedKeys: f,
|
|
502
|
-
currentExpandKeys:
|
|
503
|
-
getNodeProps:
|
|
504
|
-
getDataSet:
|
|
505
|
-
nodeList:
|
|
506
|
-
onMouseDown:
|
|
514
|
+
currentExpandKeys: v,
|
|
515
|
+
getNodeProps: j,
|
|
516
|
+
getDataSet: ne,
|
|
517
|
+
nodeList: Se,
|
|
518
|
+
onMouseDown: lt,
|
|
507
519
|
ariaProps: {
|
|
508
520
|
role: "tree",
|
|
509
|
-
"aria-multiselectable":
|
|
521
|
+
"aria-multiselectable": me,
|
|
510
522
|
tabIndex: 0,
|
|
511
|
-
...
|
|
523
|
+
...Ot(oe)
|
|
512
524
|
}
|
|
513
525
|
}
|
|
514
526
|
)
|
|
515
527
|
}
|
|
516
528
|
);
|
|
517
529
|
}
|
|
518
|
-
const
|
|
519
|
-
|
|
520
|
-
const
|
|
521
|
-
SHOW_PARENT:
|
|
522
|
-
SHOW_ALL:
|
|
523
|
-
SHOW_CHILD:
|
|
524
|
-
Node:
|
|
530
|
+
const qe = vt(Ht);
|
|
531
|
+
qe.displayName = "Tree";
|
|
532
|
+
const en = Object.assign(qe, {
|
|
533
|
+
SHOW_PARENT: Fe,
|
|
534
|
+
SHOW_ALL: We,
|
|
535
|
+
SHOW_CHILD: Be,
|
|
536
|
+
Node: He
|
|
525
537
|
});
|
|
526
538
|
export {
|
|
527
|
-
|
|
528
|
-
|
|
539
|
+
He as TreeNode,
|
|
540
|
+
en as default
|
|
529
541
|
};
|