@unicom-cloud/ui 0.8.136 → 0.8.139
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/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 +1 -1
- 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 +1 -1
- package/Copy.js +1 -1
- package/Countdown.js +1 -1
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- 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 +1 -1
- package/Masonry.js +1 -1
- 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 +1 -1
- package/PageHeader.js +1 -1
- 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/Progress2.js +1 -1
- package/QrCode.js +5 -19
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +22 -58
- 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/Timer.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +1 -1
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- 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/Affix.js +1 -1
- package/affix/index.js +1 -1
- package/alert/Alert.js +1 -1
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- 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/AutoComplete.js +2 -2
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/avatar/context.js +1 -1
- package/avatar/index.js +1 -1
- package/back-top/BackTop.js +1 -1
- package/back-top/index.js +1 -1
- package/badge/Badge.js +1 -1
- package/badge/Count.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Item.js +1 -1
- package/breadcrumb/index.js +1 -1
- package/button/Button.js +13 -13
- 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 +12 -12
- 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 +1 -1
- package/cascader/Cascader.js +2 -2
- 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 +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +1 -1
- package/checkbox/useCheckbox.js +1 -1
- package/collapse/Collapse.js +1 -1
- 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 +23 -23
- 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 +2 -2
- package/color-picker/interface.js +1 -1
- package/color-picker/utils.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +1 -1
- package/config-provider/useConfigProvider.js +1 -1
- package/constant/index.js +1 -1
- package/copy/index.js +1 -1
- package/countdown/index.js +1 -1
- package/countdown/utils.js +1 -1
- package/date-picker/Picker.js +2 -2
- package/date-picker/RangePicker.js +2 -2
- 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 +30 -30
- 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 +151 -136
- 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 +38 -35
- package/form/Form.js +52 -51
- package/form/FormItem.js +152 -177
- package/form/FormItemTip.js +52 -0
- package/form/FormLabel.js +31 -31
- package/form/FormList.js +1 -1
- package/form/FormProvider.js +1 -1
- package/form/context.js +2 -2
- 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 +37 -37
- 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-breakpoint/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-event/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 +1 -1
- 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-latest/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-move/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +1 -1
- 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 +1 -1
- 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-update-layout-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/useBreakpoint.js +1 -1
- package/hooks/useComputedState.js +1 -1
- package/hooks/useCreate.js +1 -1
- package/hooks/useCreation.js +1 -1
- package/hooks/useEvent.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 +1 -1
- 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/useLatest.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/useMove.js +1 -1
- package/hooks/useMutationObservers.js +1 -1
- 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 +1 -1
- package/hooks/useResponsiveState.js +1 -1
- package/hooks/useStateCallback.js +1 -1
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useUnmountOnExit.js +18 -0
- package/hooks/useUpdateEffect.js +1 -1
- package/hooks/useUpdateLayoutEffect.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/Icon.js +1 -1
- package/icon/addIconFromCdn.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +2 -2
- 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 +1 -1
- 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 +807 -797
- package/input/Button.js +2 -2
- package/input/Group.js +1 -1
- package/input/Input.js +2 -2
- package/input/InputElement.js +2 -2
- package/input/Number.js +1 -1
- package/input/Password.js +2 -2
- package/input/Search.js +2 -2
- package/input/Tag.js +1 -1
- package/input/Textarea.js +2 -2
- 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 +2 -2
- package/input-number/useSelectionRange.js +1 -1
- package/input-number/utils.js +1 -1
- package/input-tag/InputTag.js +2 -2
- 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 +1 -1
- 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 +4 -1
- package/locale/de-DE.js +4 -1
- package/locale/default.js +1 -1
- package/locale/en-US.js +8 -5
- package/locale/es-ES.js +4 -1
- package/locale/fr-FR.js +4 -1
- package/locale/id-ID.js +4 -1
- package/locale/it-IT.js +4 -1
- package/locale/ja-JP.js +4 -1
- package/locale/ko-KR.js +4 -1
- package/locale/ms-MY.js +4 -1
- package/locale/pt-BR.js +4 -1
- package/locale/pt-PT.js +4 -1
- package/locale/ru-RU.js +4 -1
- package/locale/th-TH.js +4 -1
- package/locale/tr-TR.js +4 -1
- package/locale/vi-VN.js +6 -3
- package/locale/zh-CN.js +4 -1
- package/locale/zh-HK.js +4 -1
- package/locale/zh-TW.js +4 -1
- package/marquee/index.js +1 -1
- package/masonry/Masonry.js +1 -1
- package/masonry/MasonryItem.js +1 -1
- package/masonry/hooks/useDelay.js +1 -1
- package/masonry/hooks/useGutter.js +1 -1
- package/masonry/hooks/usePositions.js +1 -1
- package/masonry/hooks/useRefs.js +1 -1
- package/masonry/index.js +1 -1
- package/mentions/index.js +2 -2
- 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 +1 -1
- 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 +1 -1
- package/modal/Confirm.js +1 -1
- package/modal/Modal.js +206 -199
- 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 +1 -1
- package/notification/withNotification.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 +1 -1
- package/pagination/PageOption.js +10 -10
- package/pagination/Pagination.js +1 -1
- package/pagination/index.js +1 -1
- package/pagination/interface.js +1 -1
- package/picker/Input.js +2 -2
- package/picker/InputRange.js +2 -2
- package/picker/index.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/Popover.js +1 -1
- package/popover/index.js +1 -1
- 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/progress2/index.js +1 -1
- package/qr-code/QRCode.js +86 -0
- package/qr-code/index.js +5 -81
- package/qr-code/src/index.js +1 -1
- package/qr-code/src/qrcodegen.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 +1 -1
- package/rate/index.js +2 -2
- 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/403.js +1 -1
- package/result/404.js +1 -1
- package/result/500.js +1 -1
- package/result/index.js +1 -1
- package/rich-text/RichText.js +442 -0
- package/rich-text/Toolbar.js +12 -12
- package/rich-text/constant.js +1 -1
- package/rich-text/index.js +22 -443
- 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 +7 -4
- package/rich-text/lib/core/emitter.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 +87 -87
- package/rich-text/lib/core/selection.js +1 -1
- package/rich-text/lib/core/theme.js +1 -2
- package/rich-text/lib/core/utils/createRegistryWithFormats.js +1 -1
- package/rich-text/lib/core/utils/scrollRectIntoView.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/emoji.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.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 +107 -73
- package/rich-text/lib/modules/clipboard.js +1 -1
- package/rich-text/lib/modules/history.js +1 -1
- package/rich-text/lib/modules/image-resize/index.js +11 -12
- package/rich-text/lib/modules/image-resize/modules/Base.js +1 -1
- package/rich-text/lib/modules/image-resize/modules/DisplaySize.js +1 -1
- package/rich-text/lib/modules/image-resize/modules/Resize.js +1 -1
- package/rich-text/lib/modules/image-resize/options.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/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/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 +33 -33
- package/select/OptGroup.js +1 -1
- package/select/Option.js +1 -1
- package/select/Select.js +239 -235
- package/select/index.js +3 -3
- package/select/utils.js +38 -40
- package/select-view/Core.js +2 -2
- package/select-view/index.js +2 -2
- package/skeleton/Image.js +1 -1
- package/skeleton/Text.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/Dot.js +1 -1
- package/slider/Input.js +13 -13
- 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 +2 -2
- 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 +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +1 -1
- package/splitter/Splitter.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/style/normalize.less +1 -1
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/switch/index.js +64 -64
- package/table/ColGroup.js +1 -1
- package/table/Table.js +224 -223
- 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 +1 -1
- package/tabs/utils.js +1 -1
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +2 -2
- package/time-picker/RangePicker.js +2 -2
- 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 +1 -1
- package/timeline/index.js +1 -1
- package/timer/index.js +1 -1
- package/tooltip/Tooltip.js +1 -1
- package/tooltip/index.js +1 -1
- package/tour/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 +1 -1
- package/tree/Context.js +1 -1
- package/tree/Node.js +1 -1
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +1 -1
- 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 -2
- 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 +1 -1
- package/types/affix/Affix.d.ts +2 -2
- package/types/auto-complete/interface.d.ts +2 -2
- package/types/button/interface.d.ts +2 -7
- package/types/cascader/interface.d.ts +2 -2
- package/types/checkbox/interface.d.ts +3 -3
- package/types/color-picker/interface.d.ts +2 -2
- package/types/config-provider/interface.d.ts +2 -7
- package/types/date-picker/interface.d.ts +4 -10
- package/types/descriptions/interface.d.ts +2 -6
- package/types/dropdown/interface.d.ts +2 -6
- package/types/form/FormItemTip.d.ts +3 -0
- package/types/form/interface.d.ts +11 -11
- package/types/hooks/useUnmountOnExit.d.ts +5 -0
- package/types/icon-hover/interface.d.ts +2 -3
- package/types/image/ImagePreview.d.ts +2 -2
- package/types/image/ImagePreviewGroup.d.ts +2 -2
- package/types/index.d.ts +3 -1
- package/types/input/Textarea.d.ts +2 -2
- package/types/input/interface.d.ts +5 -11
- package/types/input-number/interface.d.ts +2 -7
- package/types/input-tag/InputTag.d.ts +2 -2
- package/types/input-tag/interface.d.ts +2 -7
- package/types/interface.d.ts +13 -5
- package/types/locale/ar-EG.d.ts +3 -227
- package/types/locale/de-DE.d.ts +3 -227
- package/types/locale/en-US.d.ts +3 -0
- package/types/locale/es-ES.d.ts +3 -227
- package/types/locale/fr-FR.d.ts +3 -227
- package/types/locale/id-ID.d.ts +3 -227
- package/types/locale/interface.d.ts +22 -21
- package/types/locale/it-IT.d.ts +3 -227
- package/types/locale/ja-JP.d.ts +3 -286
- package/types/locale/ko-KR.d.ts +3 -227
- package/types/locale/ms-MY.d.ts +3 -227
- package/types/locale/pt-BR.d.ts +3 -227
- package/types/locale/pt-PT.d.ts +3 -227
- package/types/locale/ru-RU.d.ts +3 -227
- package/types/locale/th-TH.d.ts +3 -227
- package/types/locale/tr-TR.d.ts +3 -227
- package/types/locale/vi-VN.d.ts +3 -227
- package/types/locale/zh-CN.d.ts +2 -356
- package/types/locale/zh-HK.d.ts +3 -286
- package/types/locale/zh-TW.d.ts +3 -286
- package/types/masonry/MasonryItem.d.ts +1 -1
- package/types/masonry/interface.d.ts +2 -2
- package/types/pagination/PageJumper.d.ts +2 -2
- package/types/pagination/PageOption.d.ts +2 -2
- package/types/pagination/interface.d.ts +2 -6
- package/types/picker/interface.d.ts +5 -7
- package/types/progress/interface.d.ts +2 -7
- package/types/qr-code/QRCode.d.ts +5 -0
- package/types/qr-code/index.d.ts +4 -6
- package/types/radio/interface.d.ts +3 -8
- package/types/rate/interface.d.ts +2 -2
- package/types/rich-text/RichText.d.ts +8 -0
- package/types/rich-text/index.d.ts +4 -6
- package/types/rich-text/lib/core/rich.d.ts +1 -0
- package/types/rich-text/lib/core/theme.d.ts +1 -1
- package/types/rich-text/lib/index.d.ts +5 -4
- package/types/rich-text/lib/modules/image-resize/index.d.ts +1 -1
- package/types/rich-text/lib/modules/table.d.ts +1 -1
- package/types/segmented/interface.d.ts +2 -6
- package/types/select/Select.d.ts +2 -2
- package/types/select/index.d.ts +1 -1
- package/types/select/interface.d.ts +3 -3
- package/types/select-view/interface.d.ts +3 -8
- package/types/slider/Input.d.ts +2 -2
- package/types/slider/interface.d.ts +2 -2
- package/types/switch/interface.d.ts +2 -7
- package/types/table/interface.d.ts +2 -6
- package/types/tabs/interface.d.ts +2 -6
- package/types/tag/interface.d.ts +2 -7
- package/types/time-picker/interface.d.ts +2 -7
- package/types/tooltip/interface.d.ts +2 -2
- package/types/transfer/interface.d.ts +4 -4
- package/types/tree/interface.d.ts +2 -6
- package/types/tree-select/Select.d.ts +1 -1
- package/types/tree-select/interface.d.ts +2 -2
- package/types/upload/interface.d.ts +3 -3
- package/types/verification-code/interface.d.ts +2 -2
- package/types/virtual-list/interface.d.ts +2 -2
- package/typography/Base.js +1 -1
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +1 -1
- 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 -2
- package/upload/Uploader.js +1 -1
- package/upload/constant.js +1 -1
- package/upload/index.js +1 -1
- package/upload/list/PictureItem.js +2 -2
- package/upload/list/TextItem.js +2 -2
- package/upload/list/UploadProgress.js +1 -1
- package/upload/list/index.js +2 -2
- package/upload/list/utils.js +1 -1
- package/upload/request.js +1 -1
- package/upload/utils.js +1 -1
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.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/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.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 +1 -1
- 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/ref.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/setCreateRoot.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 +1 -1
- package/utils/style.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 +2 -2
- 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 +1 -1
- package/virtual-list/constant.js +1 -1
- package/virtual-list/hook/useCacheChildrenNodes.js +1 -1
- package/virtual-list/hook/useComputeVirtualItemHeight.js +1 -1
- 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/rich-text/lib/core.js +0 -40
- package/types/rich-text/lib/core.d.ts +0 -7
package/table/Table.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
/* 2026-01-
|
|
2
|
-
import { jsx as a, jsxs as N, Fragment as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import dr, { forwardRef as
|
|
1
|
+
/* 2026-01-12 12:51:10 */
|
|
2
|
+
import { jsx as a, jsxs as N, Fragment as Ne } from "react/jsx-runtime";
|
|
3
|
+
import ar from "lodash/merge";
|
|
4
|
+
import fr from "lodash/throttle";
|
|
5
|
+
import dr, { forwardRef as ur, useContext as mr, useMemo as ce, useRef as h, useState as j, useImperativeHandle as pr, useCallback as hr, useEffect as gr } from "react";
|
|
6
6
|
import "../config-provider/ConfigProvider.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
7
|
+
import yr from "@unicom-cloud/ui-common/hooks/use-isomorphic-layout-effect";
|
|
8
|
+
import br from "@unicom-cloud/ui-common/hooks/use-resize-observers";
|
|
9
|
+
import Fe from "@unicom-cloud/ui-common/hooks/use-update-effect";
|
|
10
|
+
import Cr from "@unicom-cloud/ui-common/hooks/use-window-size";
|
|
11
11
|
import "../pagination/PageOption.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { on as
|
|
16
|
-
import { isPlainObject as F, isFunction as T, isNil as
|
|
17
|
-
import { pickDataAttributes as
|
|
12
|
+
import xr from "../pagination/Pagination.js";
|
|
13
|
+
import Sr from "../spin/index.js";
|
|
14
|
+
import we from "@unicom-cloud/ui-common/utils/className";
|
|
15
|
+
import { on as Te, off as ve } from "@unicom-cloud/ui-common/utils/dom";
|
|
16
|
+
import { isPlainObject as F, isFunction as T, isNil as Be, isNumber as k, isString as De, isArray as H, isBoolean as Pr, isObjectLike as $r, isUndefined as nt } from "@unicom-cloud/ui-common/utils/is";
|
|
17
|
+
import { pickDataAttributes as Nr } from "@unicom-cloud/ui-common/utils/pick";
|
|
18
18
|
import "@unicom-cloud/ui-common/utils/tween";
|
|
19
19
|
import ae from "./ColGroup.js";
|
|
20
|
-
import { TableContext as
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
20
|
+
import { TableContext as Fr } from "./context.js";
|
|
21
|
+
import wr from "./hook/useColumns.js";
|
|
22
|
+
import Tr from "./hook/useComponent.js";
|
|
23
|
+
import vr from "./hook/useExpand.js";
|
|
24
|
+
import Br from "./hook/useRowSelection.js";
|
|
25
|
+
import Dr from "./hook/useSorter.js";
|
|
26
|
+
import Lr from "./hook/useStickyClassNames.js";
|
|
27
|
+
import zr from "./hook/useStickyOffsets.js";
|
|
28
28
|
import Er from "./tbody/index.js";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import { deepCloneData as
|
|
32
|
-
import
|
|
33
|
-
const
|
|
34
|
-
function
|
|
29
|
+
import Rr from "./tfoot/index.js";
|
|
30
|
+
import kr from "./thead/index.js";
|
|
31
|
+
import { deepCloneData as Hr, getOriginData as y, getSorterPriority as st, getSorterFn as lt, getScrollBarHeight as Or, getScrollBarWidth as Wr } from "./utils.js";
|
|
32
|
+
import Ar from "../config-provider/context.js";
|
|
33
|
+
const Ir = [], Vr = [];
|
|
34
|
+
function Kr(it, ct) {
|
|
35
35
|
const at = {
|
|
36
36
|
showHeader: !0,
|
|
37
37
|
border: !0,
|
|
@@ -42,68 +42,69 @@ function Vr(it, ct) {
|
|
|
42
42
|
indentSize: 15,
|
|
43
43
|
showSorterTooltip: !0
|
|
44
44
|
}, {
|
|
45
|
-
prefixCls:
|
|
46
|
-
getPrefixCls:
|
|
47
|
-
loadingElement:
|
|
48
|
-
size:
|
|
49
|
-
renderEmpty:
|
|
50
|
-
componentConfig:
|
|
45
|
+
prefixCls: jr,
|
|
46
|
+
getPrefixCls: ft,
|
|
47
|
+
loadingElement: dt,
|
|
48
|
+
size: ut,
|
|
49
|
+
renderEmpty: mt,
|
|
50
|
+
componentConfig: pt,
|
|
51
51
|
rtl: v
|
|
52
|
-
} =
|
|
52
|
+
} = mr(Ar), m = ar(
|
|
53
53
|
{},
|
|
54
54
|
at,
|
|
55
|
-
|
|
55
|
+
pt?.Table,
|
|
56
56
|
it
|
|
57
57
|
), {
|
|
58
|
-
style:
|
|
59
|
-
className:
|
|
60
|
-
component:
|
|
58
|
+
style: ht,
|
|
59
|
+
className: gt,
|
|
60
|
+
component: yt,
|
|
61
61
|
border: p,
|
|
62
|
-
borderCell:
|
|
63
|
-
columns:
|
|
64
|
-
data:
|
|
62
|
+
borderCell: fe,
|
|
63
|
+
columns: de = Vr,
|
|
64
|
+
data: u = Ir,
|
|
65
65
|
scroll: c,
|
|
66
|
-
noDataElement:
|
|
67
|
-
showHeader:
|
|
68
|
-
stripe:
|
|
69
|
-
hover:
|
|
66
|
+
noDataElement: bt,
|
|
67
|
+
showHeader: Le,
|
|
68
|
+
stripe: Ct,
|
|
69
|
+
hover: xt,
|
|
70
70
|
pagination: P,
|
|
71
71
|
onChange: M,
|
|
72
72
|
pagePosition: b,
|
|
73
73
|
childrenColumnName: O,
|
|
74
|
-
indentSize:
|
|
74
|
+
indentSize: St,
|
|
75
75
|
rowSelection: W,
|
|
76
|
-
tableLayoutFixed:
|
|
77
|
-
header:
|
|
76
|
+
tableLayoutFixed: Pt,
|
|
77
|
+
header: ze,
|
|
78
78
|
// 潘启宝添加
|
|
79
|
-
footer:
|
|
79
|
+
footer: Ee,
|
|
80
80
|
virtualized: B,
|
|
81
|
-
renderPagination:
|
|
81
|
+
renderPagination: Re,
|
|
82
82
|
summary: ue,
|
|
83
83
|
rowKey: U,
|
|
84
|
-
triggerProps:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
triggerProps: $t,
|
|
85
|
+
size: ke = ut
|
|
86
|
+
} = m, A = F(P) ? P : {}, X = F(c) && c.x, He = ce(
|
|
87
|
+
() => Hr(u, O),
|
|
88
|
+
[u, O]
|
|
89
|
+
), n = ft?.("table"), Oe = ["default", "mini", "small", "large"].includes(ke) ? ke : "default", _ = h(null), C = h(null), We = h(null), q = h(null), D = h(null), Ae = h(null), Ie = h(null), Ve = h(null), G = h(null), J = h(0), me = h(!1), [Ke, f] = wr(m), { currentFilters: Nt, defaultSorters: Ft } = Ot(), [I, pe] = j(1), [wt, Tt] = j(
|
|
89
90
|
A.pageSize || A.defaultPageSize || 10
|
|
90
|
-
), [Ye, je] = j(
|
|
91
|
+
), [Ye, je] = j(Nt), [vt, Bt] = j(0), [Dt, Lt] = j([]), he = zr(f), [zt, Me] = Lr(
|
|
91
92
|
Ke,
|
|
92
|
-
|
|
93
|
+
f,
|
|
93
94
|
n
|
|
94
95
|
), {
|
|
95
96
|
currentSorter: V,
|
|
96
|
-
activeSorters:
|
|
97
|
+
activeSorters: d,
|
|
97
98
|
getNextActiveSorters: Et,
|
|
98
|
-
updateStateSorters:
|
|
99
|
-
} =
|
|
100
|
-
function
|
|
99
|
+
updateStateSorters: Rt
|
|
100
|
+
} = Dr(f, Ft), { ComponentTable: Q, ComponentBodyWrapper: kt, ComponentHeaderWrapper: Ht } = Tr(yt), ge = ce(() => T(U) ? (e) => U(y(e)) : (e) => e[U], [U]);
|
|
101
|
+
function Ot() {
|
|
101
102
|
const e = {};
|
|
102
103
|
let t = [];
|
|
103
|
-
return
|
|
104
|
+
return f.forEach((r) => {
|
|
104
105
|
const o = r.dataIndex || r.key;
|
|
105
106
|
r.defaultFilters && (e[o] = r.defaultFilters), r.filteredValue && (e[o] = r.filteredValue);
|
|
106
|
-
const s = "defaultSortOrder" in r && !
|
|
107
|
+
const s = "defaultSortOrder" in r && !Be(r.defaultSortOrder), l = "sortOrder" in r && !Be(r.sortOrder);
|
|
107
108
|
if (s || l) {
|
|
108
109
|
const i = st(r.sorter), g = l ? r.sortOrder : r.defaultSortOrder;
|
|
109
110
|
if (g) {
|
|
@@ -119,15 +120,15 @@ function Vr(it, ct) {
|
|
|
119
120
|
}), { currentFilters: e, defaultSorters: t };
|
|
120
121
|
}
|
|
121
122
|
const Z = ce(() => {
|
|
122
|
-
const e =
|
|
123
|
+
const e = f.filter(
|
|
123
124
|
(r) => "filteredValue" in r
|
|
124
125
|
), t = {};
|
|
125
126
|
return e.length && e.forEach((r, o) => {
|
|
126
127
|
const s = r.key || r.dataIndex || o;
|
|
127
128
|
s !== void 0 && (t[s] = r.filteredValue);
|
|
128
129
|
}), t;
|
|
129
|
-
}, [
|
|
130
|
-
function
|
|
130
|
+
}, [f]), w = ce(() => Object.keys(Z).length ? Z : Ye, [Ye, Z]);
|
|
131
|
+
function Wt(e, t) {
|
|
131
132
|
const r = Ge(t);
|
|
132
133
|
if (!r) return;
|
|
133
134
|
const o = {
|
|
@@ -136,19 +137,19 @@ function Vr(it, ct) {
|
|
|
136
137
|
sorterFn: lt(r.sorter),
|
|
137
138
|
priority: st(r.sorter)
|
|
138
139
|
}, s = Et(o);
|
|
139
|
-
|
|
140
|
+
Rt(o, s);
|
|
140
141
|
const l = oe(
|
|
141
142
|
o,
|
|
142
143
|
s,
|
|
143
144
|
w
|
|
144
145
|
), i = K(l);
|
|
145
|
-
M?.(
|
|
146
|
+
M?.(z(l), o, w, {
|
|
146
147
|
currentData: y(i),
|
|
147
148
|
currentAllData: y(l),
|
|
148
149
|
action: "sort"
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
|
-
function
|
|
152
|
+
function At(e) {
|
|
152
153
|
const t = function(o, s) {
|
|
153
154
|
return (l, i) => {
|
|
154
155
|
const g = o(l, i);
|
|
@@ -158,7 +159,7 @@ function Vr(it, ct) {
|
|
|
158
159
|
return r.sort((o, s) => s.priority - o.priority), (o, s) => {
|
|
159
160
|
for (let l = 0, i = r.length; l < i; l++) {
|
|
160
161
|
const { sorterFn: g, direction: $ } = r[l];
|
|
161
|
-
if (!T(g) ||
|
|
162
|
+
if (!T(g) || Be($))
|
|
162
163
|
continue;
|
|
163
164
|
const S = t(g, $)(o, s);
|
|
164
165
|
if (S !== 0)
|
|
@@ -167,7 +168,7 @@ function Vr(it, ct) {
|
|
|
167
168
|
return 0;
|
|
168
169
|
};
|
|
169
170
|
}
|
|
170
|
-
function
|
|
171
|
+
function It(e, t) {
|
|
171
172
|
const r = {
|
|
172
173
|
...w,
|
|
173
174
|
[e.dataIndex]: t
|
|
@@ -179,12 +180,12 @@ function Vr(it, ct) {
|
|
|
179
180
|
je(o);
|
|
180
181
|
const s = oe(
|
|
181
182
|
V,
|
|
182
|
-
|
|
183
|
+
d,
|
|
183
184
|
r
|
|
184
185
|
), l = K(s);
|
|
185
186
|
M?.(
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
z(s),
|
|
188
|
+
d.length === 1 ? d[0] : d,
|
|
188
189
|
r,
|
|
189
190
|
{
|
|
190
191
|
currentData: y(l),
|
|
@@ -201,12 +202,12 @@ function Vr(it, ct) {
|
|
|
201
202
|
delete t[e], je(t);
|
|
202
203
|
const r = oe(
|
|
203
204
|
V,
|
|
204
|
-
|
|
205
|
+
d,
|
|
205
206
|
t
|
|
206
207
|
), o = K(r);
|
|
207
208
|
M?.(
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
z(r),
|
|
210
|
+
d.length === 1 ? d[0] : d,
|
|
210
211
|
t,
|
|
211
212
|
{
|
|
212
213
|
currentData: y(o),
|
|
@@ -215,9 +216,9 @@ function Vr(it, ct) {
|
|
|
215
216
|
}
|
|
216
217
|
);
|
|
217
218
|
}
|
|
218
|
-
const ee = !!
|
|
219
|
+
const ee = !!f.find((e) => e.fixed === "left"), te = !!f.find((e) => e.fixed === "right"), re = ee || te;
|
|
219
220
|
function oe(e, t, r) {
|
|
220
|
-
let o = (
|
|
221
|
+
let o = (He || []).slice();
|
|
221
222
|
Object.keys(r).forEach((l) => {
|
|
222
223
|
if (r[l] && r[l].length) {
|
|
223
224
|
const i = Ge(l);
|
|
@@ -227,7 +228,7 @@ function Vr(it, ct) {
|
|
|
227
228
|
)));
|
|
228
229
|
}
|
|
229
230
|
});
|
|
230
|
-
const s = (l) => l.slice().sort(
|
|
231
|
+
const s = (l) => l.slice().sort(At(t)).map((i) => H(i[O]) ? {
|
|
231
232
|
...i,
|
|
232
233
|
[O]: s(i[O])
|
|
233
234
|
} : i);
|
|
@@ -235,15 +236,15 @@ function Vr(it, ct) {
|
|
|
235
236
|
}
|
|
236
237
|
const L = oe(
|
|
237
238
|
V,
|
|
238
|
-
|
|
239
|
+
d,
|
|
239
240
|
w
|
|
240
241
|
);
|
|
241
|
-
function
|
|
242
|
-
const t = A.pageSize ||
|
|
242
|
+
function z(e = L) {
|
|
243
|
+
const t = A.pageSize || wt || 10, r = Oe;
|
|
243
244
|
let o = "top";
|
|
244
245
|
b === "tl" || b === "bl" ? o = "bottom" : o = "top";
|
|
245
246
|
const s = H(e) ? e.length : 0, l = Math.ceil(s / t) < I ? 1 : I;
|
|
246
|
-
l !== I &&
|
|
247
|
+
l !== I && pe(l);
|
|
247
248
|
let i = {
|
|
248
249
|
size: r,
|
|
249
250
|
total: s,
|
|
@@ -251,46 +252,46 @@ function Vr(it, ct) {
|
|
|
251
252
|
current: l,
|
|
252
253
|
selectProps: {
|
|
253
254
|
triggerProps: {
|
|
254
|
-
|
|
255
|
+
...$t,
|
|
255
256
|
position: o
|
|
256
257
|
}
|
|
257
258
|
}
|
|
258
259
|
};
|
|
259
|
-
return
|
|
260
|
+
return $r(P) && P.selectProps && (i.selectProps = {
|
|
260
261
|
...i.selectProps,
|
|
261
262
|
...P.selectProps
|
|
262
263
|
}), i = {
|
|
263
264
|
...i,
|
|
264
265
|
...A
|
|
265
|
-
}, i.onChange =
|
|
266
|
+
}, i.onChange = Gt, i;
|
|
266
267
|
}
|
|
267
|
-
const
|
|
268
|
-
function K(e = L, t =
|
|
268
|
+
const ye = z(), E = K();
|
|
269
|
+
function K(e = L, t = ye) {
|
|
269
270
|
const { current: r = 0, pageSize: o = 10 } = t;
|
|
270
|
-
return P === !1 || F(P) &&
|
|
271
|
+
return P === !1 || F(P) && u.length <= o ? e : e.slice((r - 1) * o, r * o);
|
|
271
272
|
}
|
|
272
|
-
const x = !!(c && c.y), Y = ue?.(y(L)),
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
const x = !!(c && c.y), Y = ue?.(y(L)), be = ue && dr.isValidElement(Y) && Y.props.fixed, Vt = x && be;
|
|
274
|
+
yr(() => {
|
|
275
|
+
Ce();
|
|
275
276
|
const e = _.current, t = C.current, r = q.current;
|
|
276
|
-
t &&
|
|
277
|
+
t && Te(t, "scroll", R);
|
|
277
278
|
const o = e && e.parentNode;
|
|
278
|
-
return e && o &&
|
|
279
|
-
t &&
|
|
279
|
+
return e && o && Te(o, "scroll", R), r && Te(r, "scroll", R), () => {
|
|
280
|
+
t && ve(t, "scroll", R), o && ve(o, "scroll", R), r && ve(r, "scroll", R);
|
|
280
281
|
};
|
|
281
282
|
}, [
|
|
282
283
|
ee,
|
|
283
284
|
te,
|
|
284
285
|
c?.x,
|
|
285
286
|
c?.y,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
]),
|
|
289
|
-
const { total: e, pageSize: t } =
|
|
290
|
-
Math.ceil(e / t) < I &&
|
|
291
|
-
}, [
|
|
287
|
+
f.length,
|
|
288
|
+
u
|
|
289
|
+
]), Fe(() => {
|
|
290
|
+
const { total: e, pageSize: t } = z(u);
|
|
291
|
+
Math.ceil(e / t) < I && pe(1);
|
|
292
|
+
}, [u?.length]), Fe(() => {
|
|
292
293
|
ne();
|
|
293
|
-
}, [
|
|
294
|
+
}, [u, ee, te, v]), pr(ct, () => ({
|
|
294
295
|
getRootElement() {
|
|
295
296
|
return D.current;
|
|
296
297
|
},
|
|
@@ -298,21 +299,21 @@ function Vr(it, ct) {
|
|
|
298
299
|
const t = We.current.getVirtualList();
|
|
299
300
|
t && t.scrollTo({ key: e });
|
|
300
301
|
}
|
|
301
|
-
})),
|
|
302
|
-
}), [
|
|
302
|
+
})), Fe(() => (Ze(), () => {
|
|
303
|
+
}), [Le]), br(
|
|
303
304
|
(e) => {
|
|
304
|
-
|
|
305
|
+
Ce();
|
|
305
306
|
},
|
|
306
307
|
[Xe()],
|
|
307
308
|
{ immediate: !0 }
|
|
308
|
-
),
|
|
309
|
-
function
|
|
309
|
+
), Cr(Ce);
|
|
310
|
+
function Ce() {
|
|
310
311
|
if (re || X) {
|
|
311
312
|
ne();
|
|
312
313
|
const e = Xe();
|
|
313
314
|
if (e) {
|
|
314
315
|
const t = e.clientWidth ?? e.getBoundingClientRect().width;
|
|
315
|
-
|
|
316
|
+
Bt(t);
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
319
|
Ze();
|
|
@@ -320,8 +321,8 @@ function Vr(it, ct) {
|
|
|
320
321
|
function Xe() {
|
|
321
322
|
return C.current || Ve.current || Ie.current || Ae.current || D.current;
|
|
322
323
|
}
|
|
323
|
-
const
|
|
324
|
-
|
|
324
|
+
const Kt = hr(
|
|
325
|
+
fr(() => {
|
|
325
326
|
const e = D.current, t = x ? C.current : G.current && G.current.parentNode;
|
|
326
327
|
if (t) {
|
|
327
328
|
const r = v ? -t.scrollLeft : t.scrollLeft, o = r === 0, s = r + 1 >= t.children[0].getBoundingClientRect().width - t.getBoundingClientRect().width;
|
|
@@ -352,7 +353,7 @@ function Vr(it, ct) {
|
|
|
352
353
|
), te && _e(
|
|
353
354
|
e.classList,
|
|
354
355
|
`${n}-has-fixed-col-right`
|
|
355
|
-
)),
|
|
356
|
+
)), Kt();
|
|
356
357
|
}
|
|
357
358
|
}
|
|
358
359
|
function _e(e, t) {
|
|
@@ -365,24 +366,24 @@ function Vr(it, ct) {
|
|
|
365
366
|
e.contains(t) || (qe(e), e.add(t));
|
|
366
367
|
}
|
|
367
368
|
const {
|
|
368
|
-
selectedRowKeys:
|
|
369
|
-
indeterminateKeys:
|
|
370
|
-
onCheckAll:
|
|
371
|
-
onCheck:
|
|
372
|
-
onCheckRadio:
|
|
373
|
-
setSelectedRowKeys:
|
|
374
|
-
allSelectedRowKeys:
|
|
375
|
-
flattenData:
|
|
376
|
-
} =
|
|
369
|
+
selectedRowKeys: xe,
|
|
370
|
+
indeterminateKeys: Yt,
|
|
371
|
+
onCheckAll: jt,
|
|
372
|
+
onCheck: Mt,
|
|
373
|
+
onCheckRadio: Ut,
|
|
374
|
+
setSelectedRowKeys: Xt,
|
|
375
|
+
allSelectedRowKeys: _t,
|
|
376
|
+
flattenData: qt
|
|
377
|
+
} = Br(m, E, He, ge);
|
|
377
378
|
function Ge(e) {
|
|
378
|
-
return
|
|
379
|
+
return f.find((t, r) => nt(t.key) ? nt(t.dataIndex) ? k(e) ? r === e : !1 : t.dataIndex === e : k(t.key) && De(e) ? t.key.toString() === e : t.key === e);
|
|
379
380
|
}
|
|
380
|
-
function
|
|
381
|
-
|
|
382
|
-
const r = { ...
|
|
381
|
+
function Gt(e, t) {
|
|
382
|
+
pe(e), Tt(t), e !== I && Jt(), W && !W.checkCrossPage && xe.length && (Xt([]), W.onChange?.([], []));
|
|
383
|
+
const r = { ...z(), current: e, pageSize: t };
|
|
383
384
|
M?.(
|
|
384
385
|
r,
|
|
385
|
-
|
|
386
|
+
d.length === 1 ? d[0] : d,
|
|
386
387
|
w,
|
|
387
388
|
{
|
|
388
389
|
currentData: y(
|
|
@@ -393,7 +394,7 @@ function Vr(it, ct) {
|
|
|
393
394
|
}
|
|
394
395
|
), A.onChange?.(e, t);
|
|
395
396
|
}
|
|
396
|
-
function
|
|
397
|
+
function Jt() {
|
|
397
398
|
const e = C.current;
|
|
398
399
|
e && e.scrollTo({ top: 0, behavior: "smooth" });
|
|
399
400
|
}
|
|
@@ -401,65 +402,65 @@ function Vr(it, ct) {
|
|
|
401
402
|
const { target: t } = e, r = C.current, o = _.current?.parentNode, s = q.current;
|
|
402
403
|
t.scrollLeft !== J.current && (o && (o.scrollLeft = t.scrollLeft), r && (r.scrollLeft = t.scrollLeft), s && (s.scrollLeft = t.scrollLeft), ne()), J.current = e.target.scrollLeft;
|
|
403
404
|
}
|
|
404
|
-
function
|
|
405
|
+
function Qt(e) {
|
|
405
406
|
const { target: t } = e, r = G.current;
|
|
406
407
|
t.scrollLeft !== J.current && (r.scrollLeft = t.scrollLeft, ne()), J.current = e.target.scrollLeft;
|
|
407
408
|
}
|
|
408
|
-
const [Je,
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
409
|
+
const [Je, Zt] = vr(
|
|
410
|
+
m,
|
|
411
|
+
qt,
|
|
412
|
+
ge
|
|
412
413
|
);
|
|
413
|
-
let
|
|
414
|
-
c && (c.x && (k(c.x) ||
|
|
414
|
+
let Se = {}, Qe = {};
|
|
415
|
+
c && (c.x && (k(c.x) || De(c.x)) && (Se = {
|
|
415
416
|
width: c.x
|
|
416
|
-
}), c.y && (k(c.y) ||
|
|
417
|
+
}), c.y && (k(c.y) || De(c.y)) && (Qe = {
|
|
417
418
|
maxHeight: c.y
|
|
418
419
|
}));
|
|
419
420
|
function Ze() {
|
|
420
421
|
const e = _.current, t = q.current, r = C.current, o = e?.parentNode;
|
|
421
422
|
if (o) {
|
|
422
|
-
const l =
|
|
423
|
+
const l = Or(o);
|
|
423
424
|
l > 0 && (o.style.marginBottom = `-${l}px`, o.style.paddingBottom = "0px", t && (t.style.marginBottom = `-${l}px`, t.style.paddingBottom = "0px"));
|
|
424
425
|
}
|
|
425
|
-
|
|
426
|
+
Wr(r) ? (o && (me.current = !0, o.style.overflowY = "scroll"), t && (t.style.overflowY = "scroll")) : me.current && (me.current = !1, o.style.overflowY = "auto", t && (t.style.overflowY = "auto"));
|
|
426
427
|
}
|
|
427
428
|
const et = /* @__PURE__ */ a(
|
|
428
|
-
|
|
429
|
+
kr,
|
|
429
430
|
{
|
|
430
|
-
...
|
|
431
|
-
activeSorters:
|
|
431
|
+
...m,
|
|
432
|
+
activeSorters: d,
|
|
432
433
|
currentSorter: V,
|
|
433
|
-
selectedRowKeys:
|
|
434
|
+
selectedRowKeys: xe,
|
|
434
435
|
currentFilters: w,
|
|
435
|
-
onCheckAll:
|
|
436
|
-
onSort:
|
|
437
|
-
data:
|
|
438
|
-
onHandleFilter:
|
|
436
|
+
onCheckAll: jt,
|
|
437
|
+
onSort: Wt,
|
|
438
|
+
data: E,
|
|
439
|
+
onHandleFilter: It,
|
|
439
440
|
onHandleFilterReset: Ue,
|
|
440
441
|
prefixCls: n,
|
|
441
|
-
allSelectedRowKeys:
|
|
442
|
+
allSelectedRowKeys: _t,
|
|
442
443
|
groupColumns: Ke,
|
|
443
|
-
stickyOffsets:
|
|
444
|
-
groupStickyClassNames:
|
|
444
|
+
stickyOffsets: he,
|
|
445
|
+
groupStickyClassNames: zt
|
|
445
446
|
}
|
|
446
447
|
);
|
|
447
|
-
function
|
|
448
|
+
function er() {
|
|
448
449
|
const e = X && c.x === "max-content";
|
|
449
|
-
return x || B ? /* @__PURE__ */ a(
|
|
450
|
+
return x || B ? /* @__PURE__ */ a(Ht, { className: `${n}-header`, children: /* @__PURE__ */ N(
|
|
450
451
|
Q,
|
|
451
452
|
{
|
|
452
453
|
ref: _,
|
|
453
|
-
style: e ? {} :
|
|
454
|
+
style: e ? {} : Se,
|
|
454
455
|
className: `${n}-header-table`,
|
|
455
456
|
children: [
|
|
456
457
|
/* @__PURE__ */ a(
|
|
457
458
|
ae,
|
|
458
459
|
{
|
|
459
|
-
columns:
|
|
460
|
+
columns: f,
|
|
460
461
|
prefixCls: n,
|
|
461
462
|
producer: !1,
|
|
462
|
-
columnWidths: e && c.y ?
|
|
463
|
+
columnWidths: e && c.y ? Dt : null
|
|
463
464
|
}
|
|
464
465
|
),
|
|
465
466
|
et
|
|
@@ -468,70 +469,70 @@ function Vr(it, ct) {
|
|
|
468
469
|
) }) : et;
|
|
469
470
|
}
|
|
470
471
|
const tt = Y && /* @__PURE__ */ a(
|
|
471
|
-
|
|
472
|
+
Rr,
|
|
472
473
|
{
|
|
473
474
|
prefixCls: n,
|
|
474
475
|
summary: ue,
|
|
475
|
-
data:
|
|
476
|
-
columns:
|
|
477
|
-
stickyOffsets:
|
|
476
|
+
data: E,
|
|
477
|
+
columns: f,
|
|
478
|
+
stickyOffsets: he,
|
|
478
479
|
stickyClassNames: Me
|
|
479
480
|
}
|
|
480
481
|
), rt = /* @__PURE__ */ a(
|
|
481
482
|
Er,
|
|
482
483
|
{
|
|
483
|
-
...
|
|
484
|
+
...m,
|
|
484
485
|
ref: (e) => {
|
|
485
486
|
We.current = e, B && (C.current = e?.getRootElement?.());
|
|
486
487
|
},
|
|
487
|
-
selectedRowKeys:
|
|
488
|
-
indeterminateKeys:
|
|
488
|
+
selectedRowKeys: xe,
|
|
489
|
+
indeterminateKeys: Yt,
|
|
489
490
|
expandedRowKeys: Je,
|
|
490
|
-
onCheck:
|
|
491
|
-
onCheckRadio:
|
|
492
|
-
onClickExpandBtn:
|
|
493
|
-
columns:
|
|
494
|
-
data:
|
|
491
|
+
onCheck: Mt,
|
|
492
|
+
onCheckRadio: Ut,
|
|
493
|
+
onClickExpandBtn: Zt,
|
|
494
|
+
columns: f,
|
|
495
|
+
data: E,
|
|
495
496
|
prefixCls: n,
|
|
496
497
|
hasFixedColumn: re,
|
|
497
|
-
tableViewWidth:
|
|
498
|
-
indentSize:
|
|
499
|
-
noDataElement:
|
|
500
|
-
activeSorters:
|
|
498
|
+
tableViewWidth: vt,
|
|
499
|
+
indentSize: St,
|
|
500
|
+
noDataElement: bt || mt("Table"),
|
|
501
|
+
activeSorters: d,
|
|
501
502
|
currentSorter: V,
|
|
502
|
-
stickyOffsets:
|
|
503
|
+
stickyOffsets: he,
|
|
503
504
|
stickyClassNames: Me,
|
|
504
|
-
getRowKey:
|
|
505
|
+
getRowKey: ge
|
|
505
506
|
}
|
|
506
|
-
), ot = !B && !
|
|
507
|
+
), ot = !B && !Vt ? /* @__PURE__ */ N(Ne, { children: [
|
|
507
508
|
rt,
|
|
508
509
|
tt
|
|
509
510
|
] }) : rt;
|
|
510
|
-
if (
|
|
511
|
-
}), [
|
|
512
|
-
function
|
|
513
|
-
const e = F(c) && c.x === "max-content" && !!c.y && H(
|
|
511
|
+
if (gr(() => (m.consoleTable && console.table(u), () => {
|
|
512
|
+
}), [u, m.consoleTable]), !(H(de) && de.length)) return null;
|
|
513
|
+
function tr() {
|
|
514
|
+
const e = F(c) && c.x === "max-content" && !!c.y && H(u) && u.length > 0;
|
|
514
515
|
return x && !B ? /* @__PURE__ */ a(
|
|
515
|
-
|
|
516
|
+
kt,
|
|
516
517
|
{
|
|
517
518
|
ref: C,
|
|
518
|
-
className:
|
|
519
|
+
className: we(`${n}-content-body`, `${n}-body`),
|
|
519
520
|
style: Qe,
|
|
520
521
|
children: /* @__PURE__ */ N(
|
|
521
522
|
Q,
|
|
522
523
|
{
|
|
523
|
-
style:
|
|
524
|
+
style: Se,
|
|
524
525
|
className: `${n}-body-table`,
|
|
525
526
|
children: [
|
|
526
527
|
/* @__PURE__ */ a(
|
|
527
528
|
ae,
|
|
528
529
|
{
|
|
529
|
-
columns:
|
|
530
|
+
columns: f,
|
|
530
531
|
prefixCls: n,
|
|
531
532
|
producer: e,
|
|
532
|
-
onSetColumnWidths:
|
|
533
|
+
onSetColumnWidths: Lt,
|
|
533
534
|
expandedRowKeys: Je,
|
|
534
|
-
data:
|
|
535
|
+
data: u
|
|
535
536
|
}
|
|
536
537
|
),
|
|
537
538
|
ot
|
|
@@ -541,7 +542,7 @@ function Vr(it, ct) {
|
|
|
541
542
|
}
|
|
542
543
|
) : ot;
|
|
543
544
|
}
|
|
544
|
-
function
|
|
545
|
+
function rr() {
|
|
545
546
|
let e = {};
|
|
546
547
|
X && (e = {
|
|
547
548
|
width: c.x
|
|
@@ -552,17 +553,17 @@ function Vr(it, ct) {
|
|
|
552
553
|
style: e,
|
|
553
554
|
className: `${n}-tfoot-table`,
|
|
554
555
|
children: [
|
|
555
|
-
/* @__PURE__ */ a(ae, { columns:
|
|
556
|
+
/* @__PURE__ */ a(ae, { columns: f, prefixCls: n }),
|
|
556
557
|
tt
|
|
557
558
|
]
|
|
558
559
|
}
|
|
559
|
-
) }), r = Y && x &&
|
|
560
|
-
|
|
560
|
+
) }), r = Y && x && be === "top", o = Y && x && be === "bottom", s = /* @__PURE__ */ N(Ne, { children: [
|
|
561
|
+
Le ? er() : null,
|
|
561
562
|
r && t,
|
|
562
|
-
|
|
563
|
+
tr(),
|
|
563
564
|
o && t
|
|
564
|
-
] }), l = T(
|
|
565
|
-
return /* @__PURE__ */ N(
|
|
565
|
+
] }), l = T(ze) && ze(E), i = T(Ee) && Ee(E);
|
|
566
|
+
return /* @__PURE__ */ N(Ne, { children: [
|
|
566
567
|
!!l && /* @__PURE__ */ a("div", { className: `${n}-header-`, children: l }),
|
|
567
568
|
/* @__PURE__ */ a("div", { ref: Ae, className: `${n}-container`, children: /* @__PURE__ */ a(
|
|
568
569
|
"div",
|
|
@@ -574,7 +575,7 @@ function Vr(it, ct) {
|
|
|
574
575
|
{
|
|
575
576
|
ref: Ve,
|
|
576
577
|
className: `${n}-content-inner`,
|
|
577
|
-
onScroll: x ? void 0 :
|
|
578
|
+
onScroll: x ? void 0 : Qt,
|
|
578
579
|
children: x || B ? s : /* @__PURE__ */ N(
|
|
579
580
|
Q,
|
|
580
581
|
{
|
|
@@ -582,7 +583,7 @@ function Vr(it, ct) {
|
|
|
582
583
|
style: e,
|
|
583
584
|
className: `${n}-content-inner-table`,
|
|
584
585
|
children: [
|
|
585
|
-
/* @__PURE__ */ a(ae, { prefixCls: n, columns:
|
|
586
|
+
/* @__PURE__ */ a(ae, { prefixCls: n, columns: f }),
|
|
586
587
|
s
|
|
587
588
|
]
|
|
588
589
|
}
|
|
@@ -594,61 +595,61 @@ function Vr(it, ct) {
|
|
|
594
595
|
!!i && /* @__PURE__ */ a("div", { className: `${n}-footer`, children: i })
|
|
595
596
|
] });
|
|
596
597
|
}
|
|
597
|
-
const
|
|
598
|
+
const or = F(p) ? p.wrapper : p, Pe = F(p) ? p.cell : fe, nr = F(p) ? p.cell || p.headerCell : fe, sr = F(p) ? p.cell || p.bodyCell : fe, lr = we(
|
|
598
599
|
n,
|
|
599
|
-
`${n}-size-${
|
|
600
|
+
`${n}-size-${Oe}`,
|
|
600
601
|
{
|
|
601
|
-
[`${n}-border`]:
|
|
602
|
-
[`${n}-border-cell`]:
|
|
603
|
-
[`${n}-border-header-cell`]:
|
|
604
|
-
[`${n}-border-body-cell`]:
|
|
605
|
-
[`${n}-stripe`]:
|
|
606
|
-
[`${n}-hover`]:
|
|
602
|
+
[`${n}-border`]: or,
|
|
603
|
+
[`${n}-border-cell`]: Pe,
|
|
604
|
+
[`${n}-border-header-cell`]: !Pe && nr,
|
|
605
|
+
[`${n}-border-body-cell`]: !Pe && sr,
|
|
606
|
+
[`${n}-stripe`]: Ct,
|
|
607
|
+
[`${n}-hover`]: xt,
|
|
607
608
|
[`${n}-type-radio`]: W && W.type === "radio",
|
|
608
|
-
[`${n}-layout-fixed`]:
|
|
609
|
+
[`${n}-layout-fixed`]: Pt || c && (c.x || c.y) || de.find((e) => e.ellipsis),
|
|
609
610
|
[`${n}-fixed-column`]: re,
|
|
610
611
|
[`${n}-virtualized`]: B,
|
|
611
612
|
[`${n}-rtl`]: v
|
|
612
613
|
},
|
|
613
|
-
|
|
614
|
-
),
|
|
614
|
+
gt
|
|
615
|
+
), $e = b === "tl" || b === "tr" || b === "topCenter", ir = we(`${n}-pagination`, {
|
|
615
616
|
[`${n}-pagination-left`]: b === "tl" || b === "bl",
|
|
616
617
|
[`${n}-pagination-center`]: b === "topCenter" || b === "bottomCenter",
|
|
617
|
-
[`${n}-pagination-top`]:
|
|
618
|
+
[`${n}-pagination-top`]: $e
|
|
618
619
|
});
|
|
619
|
-
let le =
|
|
620
|
-
|
|
621
|
-
const
|
|
620
|
+
let le = m.loading;
|
|
621
|
+
Pr(le) && (le = { loading: le });
|
|
622
|
+
const cr = P !== !1 && (L.length !== 0 || ye?.total > 0);
|
|
622
623
|
let ie;
|
|
623
|
-
if (
|
|
624
|
-
const e = /* @__PURE__ */ a(
|
|
625
|
-
T(
|
|
624
|
+
if (cr) {
|
|
625
|
+
const e = /* @__PURE__ */ a(xr, { ...ye });
|
|
626
|
+
T(Re) ? ie = Re(e) : ie = /* @__PURE__ */ a("div", { className: ir, children: e });
|
|
626
627
|
}
|
|
627
|
-
return /* @__PURE__ */ a(
|
|
628
|
+
return /* @__PURE__ */ a(Fr.Provider, { value: m, children: /* @__PURE__ */ a(
|
|
628
629
|
"div",
|
|
629
630
|
{
|
|
630
631
|
ref: D,
|
|
631
|
-
style:
|
|
632
|
-
className:
|
|
633
|
-
|
|
632
|
+
style: ht,
|
|
633
|
+
className: lr,
|
|
634
|
+
...Nr(m),
|
|
634
635
|
children: /* @__PURE__ */ N(
|
|
635
|
-
|
|
636
|
+
Sr,
|
|
636
637
|
{
|
|
637
638
|
className: `${n}-spin`,
|
|
638
|
-
element:
|
|
639
|
+
element: dt,
|
|
639
640
|
...le,
|
|
640
641
|
children: [
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
642
|
+
$e && ie,
|
|
643
|
+
rr(),
|
|
644
|
+
!$e && ie
|
|
644
645
|
]
|
|
645
646
|
}
|
|
646
647
|
)
|
|
647
648
|
}
|
|
648
649
|
) });
|
|
649
650
|
}
|
|
650
|
-
const
|
|
651
|
-
|
|
651
|
+
const Yr = ur(Kr);
|
|
652
|
+
Yr.displayName = "Table";
|
|
652
653
|
export {
|
|
653
|
-
|
|
654
|
+
Yr as default
|
|
654
655
|
};
|