@unicom-cloud/ui 0.8.109 → 0.8.110
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/AutoComplete.js +1 -1
- package/BackTop.js +2 -2
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- 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/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +6 -4
- package/Countdown.js +42 -8
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +42 -6
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Flex.js +43 -7
- package/Form.js +21 -16
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +2 -2
- package/LiquidFill.js +12 -10
- package/List.js +1 -1
- package/Loading.js +42 -6
- package/Marquee.js +12 -10
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +3 -3
- package/Modal.js +1 -1
- package/Notice.js +41 -5
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +2 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +12 -10
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +76 -0
- package/Segmented.js +42 -7
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +43 -7
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +2 -2
- package/Tooltip.js +1 -1
- package/Tour.js +13 -11
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/affix/index.js +2 -2
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +2 -2
- package/anchor/Link.js +1 -1
- package/app/App.js +2 -2
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +2 -2
- package/badge/index.js +1 -1
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +3 -3
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +2 -2
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +3 -3
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/BDMqvmVH.js +4239 -0
- package/chunk/BDgzrqDN.js +154 -0
- package/chunk/BG6j6Ct7.js +30 -0
- package/chunk/BGJspFG9.js +56 -0
- package/chunk/BO_5qdS_.js +13 -0
- package/chunk/{DblEjsQ8.js → BUNoUPLs.js} +1 -1
- package/chunk/B_c0gPsX.js +83 -0
- package/chunk/BcEZk8pT.js +837 -0
- package/chunk/{DGSfSsAY.js → BeHcDey_.js} +1 -1
- package/chunk/{Bm3gJPkz.js → BnUWOu3_.js} +5 -5
- package/chunk/Bvxzb1wd.js +16 -0
- package/chunk/{DryCfcSV.js → CFyN9Eio.js} +4 -4
- package/chunk/CN7NKv_2.js +11 -0
- package/chunk/COc48wzV.js +64 -0
- package/chunk/{BDKb_-wj.js → COsRZOz1.js} +4 -4
- package/chunk/CT7ury1Z.js +13 -0
- package/chunk/Ca6eMq_Y.js +8 -0
- package/chunk/{p9jiLDTk.js → CgN4U7Ou.js} +2 -2
- package/chunk/{Bg3uJGPu.js → CsqGBZv1.js} +1 -1
- package/chunk/CylJZkp8.js +6 -0
- package/chunk/{9WWq1a0I.js → DSqW_efI.js} +1 -1
- package/chunk/{Bz3KT4sO.js → Dbw0YUY1.js} +81 -47
- package/chunk/Dh-zFF65.js +15 -0
- package/chunk/Di5KBCVQ.js +4 -0
- package/chunk/{DjPTURUf.js → Lyh0cz3R.js} +3 -3
- package/chunk/{DgWzb7M5.js → Y_GQsZUt.js} +1 -1
- package/chunk/{BfBHo0RR.js → n1tirBXA.js} +7 -7
- package/chunk/{DYc9a7tm.js → qsVvkBLU.js} +1 -1
- package/chunk/zFFM4RBT.js +2100 -0
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- 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/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.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 +2 -2
- package/copy/index.js +10 -8
- package/countdown/index.js +67 -33
- package/date-picker/Picker.js +1 -1
- package/date-picker/RangePicker.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/details/index.js +74 -38
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.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 +63 -29
- package/form/Form.js +3 -3
- package/form/FormItem.js +1 -1
- package/form/index.js +85 -77
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +128 -133
- package/hooks/useCreation.js +4 -0
- package/hooks/useId.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useMedia.js +1 -1
- package/hooks/usePersistCallback.js +1 -1
- package/hooks/useRefs.js +1 -1
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useWatch.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +3 -3
- package/image/ImagePreview.js +44 -9
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +718 -717
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +3 -3
- package/input/InputElement.js +2 -2
- package/input/Password.js +2 -2
- package/input/Search.js +1 -1
- package/input/Textarea.js +2 -2
- package/input-number/index.js +1 -1
- package/input-number/useSelectionRange.js +1 -1
- package/input-tag/InputTag.js +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +2 -2
- package/liquid-fill/index.js +17 -15
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +54 -18
- package/marquee/index.js +19 -17
- package/marquee-/index.js +17 -15
- package/mentions/index.js +1 -1
- package/menu/Menu.js +4 -4
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +3 -3
- package/message/useMessage.js +4 -3
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +2 -2
- package/notice/index.js +41 -5
- package/notification/index.js +1 -1
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +120 -81
- package/pagination/PageItem.js +2 -2
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/CircleProgress.js +2 -2
- package/progress/index.js +1 -1
- package/qr-code/index.js +15 -13
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +2 -2
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/rich-text/constant.js +5 -0
- package/rich-text/core.js +11 -0
- package/rich-text/eventemitter/index.d.ts +135 -0
- package/rich-text/index.js +182 -0
- package/rich-text/interface.js +1 -0
- package/rich-text/rich.js +1877 -0
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +1 -1
- package/segmented/index.js +145 -110
- package/select/Option.js +1 -1
- package/select/Select.js +235 -227
- package/select-view/Core.js +2 -2
- package/skeleton/index.js +1 -1
- package/slider/Button.js +2 -2
- package/slider/index.js +1 -1
- package/space/index.js +51 -15
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +2 -2
- package/splitter/Splitter.js +2 -2
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +3 -3
- package/table/index.js +41 -39
- package/tabs/Tab.js +3 -3
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +2 -2
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +1 -1
- package/tour/index.js +20 -18
- package/transfer/Item.js +3 -3
- package/transfer/List.js +3 -3
- package/transfer/index.js +1 -1
- package/tree/Animation.js +2 -2
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/Select.js +4 -4
- package/tree-select/index.js +1 -1
- package/trigger/index.js +1 -1
- package/types/common/hooks/src/index.d.ts +1 -5
- package/types/common/hooks/src/use-url-state/index.d.ts +1 -1
- package/types/common/hooks/useId.d.ts +1 -1
- package/types/common/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
- package/types/common/hooks/useKeyboardEvent.d.ts +1 -1
- package/types/common/hooks/{useListenResize.d.ts → useListenWindowResize.d.ts} +4 -6
- package/types/common/hooks/useWatch.d.ts +1 -1
- package/types/common/hooks/useWindowSize.d.ts +2 -2
- package/types/common/utils/index.d.ts +47 -0
- package/types/common/utils/keyboardCode.d.ts +4 -0
- package/types/common/utils/math.d.ts +1 -0
- package/types/common/utils/mitt.d.ts +1 -0
- package/types/common/utils/pinyin.d.ts +1 -0
- package/types/common/utils/reactTransitionGroup.d.ts +1 -0
- package/types/common/utils/uuid.d.ts +1 -0
- package/types/common/utils/validate.d.ts +1 -0
- package/types/pc/config-provider/interface.d.ts +2 -0
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/form/index.d.ts +6 -1
- package/types/pc/hooks/index.d.ts +2 -2
- package/types/pc/hooks/useCreation.d.ts +1 -0
- package/types/pc/hooks/useListenWindowResize.d.ts +1 -0
- package/types/pc/index.d.ts +2 -0
- package/types/pc/message/index.d.ts +1 -0
- package/types/pc/message/interface.d.ts +2 -2
- package/types/pc/page-header/interface.d.ts +3 -0
- package/types/pc/rich-text/blots/block.d.ts +34 -0
- package/types/pc/rich-text/blots/break.d.ts +8 -0
- package/types/pc/rich-text/blots/container.d.ts +4 -0
- package/types/pc/rich-text/blots/cursor.d.ts +26 -0
- package/types/pc/rich-text/blots/embed.d.ts +18 -0
- package/types/pc/rich-text/blots/inline.d.ts +12 -0
- package/types/pc/rich-text/blots/scroll.d.ts +49 -0
- package/types/pc/rich-text/blots/text.d.ts +5 -0
- package/types/pc/rich-text/constant.d.ts +1 -0
- package/types/pc/rich-text/core/composition.d.ts +12 -0
- package/types/pc/rich-text/core/editor.d.ts +28 -0
- package/types/pc/rich-text/core/emitter.d.ts +37 -0
- package/types/pc/rich-text/core/instances.d.ts +3 -0
- package/types/pc/rich-text/core/logger.d.ts +7 -0
- package/types/pc/rich-text/core/module.d.ts +8 -0
- package/types/pc/rich-text/core/rich.d.ts +217 -0
- package/types/pc/rich-text/core/selection.d.ts +74 -0
- package/types/pc/rich-text/core/theme.d.ts +32 -0
- package/types/pc/rich-text/core/utils/createRegistryWithFormats.d.ts +5 -0
- package/types/pc/rich-text/core/utils/scrollRectIntoView.d.ts +11 -0
- package/types/pc/rich-text/core.d.ts +7 -0
- package/types/pc/rich-text/delta/AttributeMap.d.ts +10 -0
- package/types/pc/rich-text/delta/Op.d.ts +11 -0
- package/types/pc/rich-text/delta/OpIterator.d.ts +13 -0
- package/types/pc/rich-text/delta/index.d.ts +45 -0
- package/types/pc/rich-text/eventemitter/index.d.ts +101 -0
- package/types/pc/rich-text/formats/align.d.ts +5 -0
- package/types/pc/rich-text/formats/background.d.ts +5 -0
- package/types/pc/rich-text/formats/blockquote.d.ts +6 -0
- package/types/pc/rich-text/formats/bold.d.ts +11 -0
- package/types/pc/rich-text/formats/code.d.ts +15 -0
- package/types/pc/rich-text/formats/color.d.ts +7 -0
- package/types/pc/rich-text/formats/direction.d.ts +5 -0
- package/types/pc/rich-text/formats/font.d.ts +7 -0
- package/types/pc/rich-text/formats/formula.d.ts +10 -0
- package/types/pc/rich-text/formats/header.d.ts +7 -0
- package/types/pc/rich-text/formats/image.d.ts +13 -0
- package/types/pc/rich-text/formats/indent.d.ts +8 -0
- package/types/pc/rich-text/formats/italic.d.ts +6 -0
- package/types/pc/rich-text/formats/link.d.ts +13 -0
- package/types/pc/rich-text/formats/list.d.ts +13 -0
- package/types/pc/rich-text/formats/script.d.ts +8 -0
- package/types/pc/rich-text/formats/size.d.ts +4 -0
- package/types/pc/rich-text/formats/strike.d.ts +6 -0
- package/types/pc/rich-text/formats/table.d.ts +45 -0
- package/types/pc/rich-text/formats/underline.d.ts +6 -0
- package/types/pc/rich-text/formats/video.d.ts +14 -0
- package/types/pc/rich-text/index.d.ts +6 -0
- package/types/pc/rich-text/interface.d.ts +17 -0
- package/types/pc/rich-text/modules/clipboard.d.ts +43 -0
- package/types/pc/rich-text/modules/history.d.ts +36 -0
- package/types/pc/rich-text/modules/input.d.ts +10 -0
- package/types/pc/rich-text/modules/keyboard.d.ts +58 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/index.d.ts +2 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +1 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/normalizers/msWord.d.ts +1 -0
- package/types/pc/rich-text/modules/syntax.d.ts +50 -0
- package/types/pc/rich-text/modules/table.d.ts +20 -0
- package/types/pc/rich-text/modules/tableEmbed.d.ts +27 -0
- package/types/pc/rich-text/modules/toolbar.d.ts +24 -0
- package/types/pc/rich-text/modules/uiNode.d.ts +19 -0
- package/types/pc/rich-text/modules/uploader.d.ts +15 -0
- package/types/pc/rich-text/parchment/attributor/attributor.d.ts +17 -0
- package/types/pc/rich-text/parchment/attributor/class.d.ts +8 -0
- package/types/pc/rich-text/parchment/attributor/store.d.ts +15 -0
- package/types/pc/rich-text/parchment/attributor/style.d.ts +8 -0
- package/types/pc/rich-text/parchment/blot/abstract/blot.d.ts +115 -0
- package/types/pc/rich-text/parchment/blot/abstract/container.d.ts +18 -0
- package/types/pc/rich-text/parchment/blot/abstract/leaf.d.ts +29 -0
- package/types/pc/rich-text/parchment/blot/abstract/parent.d.ts +50 -0
- package/types/pc/rich-text/parchment/blot/abstract/shadow.d.ts +37 -0
- package/types/pc/rich-text/parchment/blot/block.d.ts +25 -0
- package/types/pc/rich-text/parchment/blot/embed.d.ts +11 -0
- package/types/pc/rich-text/parchment/blot/inline.d.ts +28 -0
- package/types/pc/rich-text/parchment/blot/scroll.d.ts +34 -0
- package/types/pc/rich-text/parchment/blot/text.d.ts +26 -0
- package/types/pc/rich-text/parchment/collection/linked-list.d.ts +21 -0
- package/types/pc/rich-text/parchment/collection/linked-node.d.ts +6 -0
- package/types/pc/rich-text/parchment/error.d.ts +6 -0
- package/types/pc/rich-text/parchment/index.d.ts +21 -0
- package/types/pc/rich-text/parchment/registry.d.ts +21 -0
- package/types/pc/rich-text/parchment/scope.d.ts +14 -0
- package/types/pc/rich-text/rich.d.ts +5 -0
- package/types/pc/rich-text/themes/base.d.ts +35 -0
- package/types/pc/rich-text/themes/bubble.d.ts +18 -0
- package/types/pc/rich-text/themes/snow.d.ts +9 -0
- package/types/pc/rich-text/ui/color-picker.d.ts +7 -0
- package/types/pc/rich-text/ui/icon-picker.d.ts +7 -0
- package/types/pc/rich-text/ui/icons.d.ts +51 -0
- package/types/pc/rich-text/ui/picker.d.ts +16 -0
- package/types/pc/rich-text/ui/tooltip.d.ts +12 -0
- package/types/pc/select/interface.d.ts +4 -0
- package/types/pc/utils/index.d.ts +2 -0
- package/types/pc/utils/mitt.d.ts +1 -0
- package/types/pc/utils/names.d.ts +107 -91
- package/types/pc/utils/pinyin.d.ts +1 -0
- package/types/pc/version/index.d.ts +1 -1
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +5 -3
- package/typography/Operations.js +6 -4
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +2 -2
- package/upload/Upload.js +2 -2
- package/utils/contextHolder.js +1 -1
- package/utils/index.js +167 -163
- package/utils/mitt.js +5 -0
- package/utils/names.js +12 -2
- package/utils/pinyin.js +5 -0
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +2 -2
- package/watermark/Watermark.js +1 -1
- package/chunk/5_U1CBIu.js +0 -8
- package/chunk/B9YvSTvI.js +0 -2321
- package/chunk/BLOlsa0k.js +0 -11
- package/chunk/BTLlOOe9.js +0 -189
- package/chunk/C6Aw3qIJ.js +0 -16
- package/chunk/CMl7m9nA.js +0 -6
- package/chunk/COqvRD0G.js +0 -11
- package/chunk/DXlwLh0Y.js +0 -806
- package/chunk/DlSv5Vu0.js +0 -16
- package/chunk/DmDh7NRL.js +0 -14
- package/chunk/Duezix3m.js +0 -25
- package/chunk/siEVY1s5.js +0 -33
- package/hooks/useCreate.js +0 -4
- package/types/common/hooks/src/use-dynamic-list/index.d.ts +0 -18
- package/types/common/hooks/src/use-event-emitter/index.d.ts +0 -11
- package/types/common/hooks/src/use-map/index.d.ts +0 -8
- package/types/common/hooks/src/use-set/index.d.ts +0 -6
- package/types/common/hooks/useCreate.d.ts +0 -2
- package/types/pc/hooks/useCreate.d.ts +0 -1
- package/types/pc/hooks/useListenResize.d.ts +0 -1
- /package/hooks/{useListenResize.js → useListenWindowResize.js} +0 -0
package/qr-code/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { QRCodeCanvas as b, QRCodeSVG as P } from "qrcode.react";
|
|
3
3
|
import { useContext as Q } from "react";
|
|
4
|
-
import { a as R } from "../chunk/
|
|
4
|
+
import { a as R } from "../chunk/BcEZk8pT.js";
|
|
5
5
|
import "../chunk/DsaQZE4X.js";
|
|
6
6
|
import "../chunk/CdXR6dj7.js";
|
|
7
7
|
import "@unicom-cloud/utils/js-cookie";
|
|
8
8
|
import "dayjs";
|
|
9
9
|
import "lodash/debounce";
|
|
10
|
-
import "../chunk/BTLlOOe9.js";
|
|
11
10
|
import "@unicom-cloud/utils/screenfull";
|
|
11
|
+
import "../chunk/BDgzrqDN.js";
|
|
12
12
|
import "lodash/throttle";
|
|
13
13
|
import "@unicom-cloud/utils/constant/platform";
|
|
14
14
|
import "lodash/isPlainObject";
|
|
@@ -19,13 +19,9 @@ import "@unicom-cloud/utils/constant/keyboardCode";
|
|
|
19
19
|
import "lodash/isNumber";
|
|
20
20
|
import "lodash/merge";
|
|
21
21
|
import "../chunk/d1c9z8T1.js";
|
|
22
|
-
import "../chunk/RjJoagzL.js";
|
|
23
|
-
import { u as S } from "../chunk/FgWHhRFz.js";
|
|
24
|
-
import "../chunk/CXrVhA6-.js";
|
|
25
|
-
import "@unicom-cloud/utils/constant";
|
|
26
22
|
import "@unicom-cloud/utils/date";
|
|
27
23
|
import "@unicom-cloud/utils/case-name";
|
|
28
|
-
import
|
|
24
|
+
import S from "@unicom-cloud/utils/class-name";
|
|
29
25
|
import "@unicom-cloud/utils/constant/ui";
|
|
30
26
|
import "@unicom-cloud/utils/clipboard-copy";
|
|
31
27
|
import "../chunk/DS_deHpN.js";
|
|
@@ -48,17 +44,23 @@ import "lodash/startCase";
|
|
|
48
44
|
import "lodash/uniq";
|
|
49
45
|
import "lodash/upperFirst";
|
|
50
46
|
import "@unicom-cloud/utils/math";
|
|
47
|
+
import "@unicom-cloud/utils/mitt";
|
|
48
|
+
import "@unicom-cloud/utils/pinyin";
|
|
51
49
|
import "../chunk/BJ9_azwQ.js";
|
|
52
|
-
import "../
|
|
50
|
+
import "../chunk/CXrVhA6-.js";
|
|
53
51
|
import "@unicom-cloud/utils/file/saveAs";
|
|
52
|
+
import "@unicom-cloud/utils/constant/ui.js";
|
|
54
53
|
import "@unicom-cloud/utils/tinycolor";
|
|
55
54
|
import "@unicom-cloud/utils/ui-color";
|
|
56
|
-
import "@unicom-cloud/utils/constant/ui.js";
|
|
57
55
|
import "react-is";
|
|
58
56
|
import "@unicom-cloud/utils/tree";
|
|
59
57
|
import "@unicom-cloud/utils/is";
|
|
60
58
|
import "uuid";
|
|
61
59
|
import "../chunk/hc_ufgVf.js";
|
|
60
|
+
import "../chunk/RjJoagzL.js";
|
|
61
|
+
import { u as h } from "../chunk/FgWHhRFz.js";
|
|
62
|
+
import "@unicom-cloud/utils/constant";
|
|
63
|
+
import "../utils/responsiveObserve.js";
|
|
62
64
|
const q = {
|
|
63
65
|
renderAs: "svg",
|
|
64
66
|
size: 160,
|
|
@@ -68,8 +70,8 @@ const q = {
|
|
|
68
70
|
bgColor: "#ffffff",
|
|
69
71
|
marginSize: 0,
|
|
70
72
|
value: "qr-code"
|
|
71
|
-
},
|
|
72
|
-
const { getPrefixCls: s, componentConfig: n } = Q(R), a =
|
|
73
|
+
}, ko = (e) => {
|
|
74
|
+
const { getPrefixCls: s, componentConfig: n } = Q(R), a = h(
|
|
73
75
|
e,
|
|
74
76
|
q,
|
|
75
77
|
n?.QRCode
|
|
@@ -100,7 +102,7 @@ const q = {
|
|
|
100
102
|
return /* @__PURE__ */ r(
|
|
101
103
|
"div",
|
|
102
104
|
{
|
|
103
|
-
className:
|
|
105
|
+
className: S(
|
|
104
106
|
m,
|
|
105
107
|
i && `${m}-bordered`,
|
|
106
108
|
u,
|
|
@@ -116,5 +118,5 @@ const q = {
|
|
|
116
118
|
);
|
|
117
119
|
};
|
|
118
120
|
export {
|
|
119
|
-
|
|
121
|
+
ko as default
|
|
120
122
|
};
|
package/radio/Group.js
CHANGED
|
@@ -2,13 +2,13 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "lodash/isArray";
|
|
3
3
|
import "lodash/isPlainObject";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/BcEZk8pT.js";
|
|
6
6
|
import "../chunk/FgWHhRFz.js";
|
|
7
7
|
import "../chunk/2vdCeheu.js";
|
|
8
8
|
import "@unicom-cloud/utils/class-name";
|
|
9
9
|
import "../utils/constant.js";
|
|
10
10
|
import "../chunk/ClqoGc3r.js";
|
|
11
|
-
import { C as x, b as G, G as f } from "../chunk/
|
|
11
|
+
import { C as x, b as G, G as f } from "../chunk/BUNoUPLs.js";
|
|
12
12
|
export {
|
|
13
13
|
x as ClearRadioGroupContext,
|
|
14
14
|
G as RadioGroupContext,
|
package/radio/GroupBlock.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../chunk/
|
|
3
|
+
import "../chunk/BcEZk8pT.js";
|
|
4
4
|
import "../chunk/FgWHhRFz.js";
|
|
5
5
|
import "../typography/index.js";
|
|
6
6
|
import "@unicom-cloud/utils/class-name";
|
|
7
|
-
import { a as f } from "../chunk/
|
|
7
|
+
import { a as f } from "../chunk/BUNoUPLs.js";
|
|
8
8
|
export {
|
|
9
9
|
f as default
|
|
10
10
|
};
|
package/radio/Radio.js
CHANGED
|
@@ -2,12 +2,12 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "lodash/isFunction";
|
|
3
3
|
import "lodash/isNil";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/BcEZk8pT.js";
|
|
6
6
|
import "../chunk/FgWHhRFz.js";
|
|
7
7
|
import "../chunk/2vdCeheu.js";
|
|
8
8
|
import "@unicom-cloud/utils/class-name";
|
|
9
9
|
import "../chunk/BKKEev13.js";
|
|
10
|
-
import { G as R, a as e, b as f, R as l } from "../chunk/
|
|
10
|
+
import { G as R, a as e, b as f, R as l } from "../chunk/BUNoUPLs.js";
|
|
11
11
|
export {
|
|
12
12
|
R as RadioGroup,
|
|
13
13
|
e as RadioGroupBlock,
|
package/radio/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as a } from "../chunk/
|
|
2
|
-
import { C as p, G as d, a as e, b as i } from "../chunk/
|
|
1
|
+
import { R as a } from "../chunk/BUNoUPLs.js";
|
|
2
|
+
import { C as p, G as d, a as e, b as i } from "../chunk/BUNoUPLs.js";
|
|
3
3
|
export {
|
|
4
4
|
p as ClearRadioGroupContext,
|
|
5
5
|
d as RadioGroup,
|
package/rate/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import x from "@unicom-cloud/icons/IconUiFaceSmileFill";
|
|
|
5
5
|
import ee from "@unicom-cloud/icons/IconUiStarFill";
|
|
6
6
|
import { times as oe, div as te } from "@unicom-cloud/utils/math";
|
|
7
7
|
import E, { useContext as re, useState as d } from "react";
|
|
8
|
-
import { a as ae } from "../chunk/
|
|
8
|
+
import { a as ae } from "../chunk/BcEZk8pT.js";
|
|
9
9
|
import { u as se } from "../chunk/FgWHhRFz.js";
|
|
10
10
|
import ne from "../tooltip/index.js";
|
|
11
11
|
import k from "@unicom-cloud/utils/class-name";
|
|
@@ -7,7 +7,7 @@ import L from "@unicom-cloud/icons/IconUiDragDot";
|
|
|
7
7
|
import M from "@unicom-cloud/icons/IconUiDragDotVertical";
|
|
8
8
|
import g from "lodash/isFunction";
|
|
9
9
|
import { useContext as V, useRef as q, useEffect as A } from "react";
|
|
10
|
-
import { a as B } from "../chunk/
|
|
10
|
+
import { a as B } from "../chunk/BcEZk8pT.js";
|
|
11
11
|
import o from "@unicom-cloud/utils/class-name";
|
|
12
12
|
import "../chunk/DsaQZE4X.js";
|
|
13
13
|
import { o as G } from "../chunk/BKKEev13.js";
|
package/resize-box/Split.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as N, jsxs as ie } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as ce, useContext as ae, useState as D, useRef as z, useImperativeHandle as fe, useEffect as ue } from "react";
|
|
3
|
-
import { a as le } from "../chunk/
|
|
4
|
-
import { u as me } from "../chunk/
|
|
3
|
+
import { a as le } from "../chunk/BcEZk8pT.js";
|
|
4
|
+
import { u as me } from "../chunk/CylJZkp8.js";
|
|
5
5
|
import $ from "@unicom-cloud/utils/class-name";
|
|
6
6
|
import { b as f, o as u } from "../chunk/d1c9z8T1.js";
|
|
7
7
|
import de from "./ResizeTrigger.js";
|
package/resize-box/SplitGroup.js
CHANGED
|
@@ -5,7 +5,7 @@ import x from "lodash/isPlainObject";
|
|
|
5
5
|
import wt from "lodash/isString";
|
|
6
6
|
import G from "lodash/isUndefined";
|
|
7
7
|
import dt, { forwardRef as Mt, useContext as Ot, useRef as S, useState as $, useEffect as V, useImperativeHandle as Ct } from "react";
|
|
8
|
-
import { a as xt } from "../chunk/
|
|
8
|
+
import { a as xt } from "../chunk/BcEZk8pT.js";
|
|
9
9
|
import St from "@unicom-cloud/utils/class-name";
|
|
10
10
|
import { b as z, o as P } from "../chunk/d1c9z8T1.js";
|
|
11
11
|
import { o as zt } from "../chunk/BKKEev13.js";
|
package/resize-box/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as et, jsx as ot } from "react/jsx-runtime";
|
|
2
2
|
import O from "lodash/isNumber";
|
|
3
3
|
import { forwardRef as rt, useContext as nt, useState as st, useRef as D, useImperativeHandle as it } from "react";
|
|
4
|
-
import { a as ct } from "../chunk/
|
|
4
|
+
import { a as ct } from "../chunk/BcEZk8pT.js";
|
|
5
5
|
import { u as at } from "../chunk/FgWHhRFz.js";
|
|
6
6
|
import { u as B } from "../chunk/2vdCeheu.js";
|
|
7
7
|
import ut from "@unicom-cloud/utils/class-name";
|
package/result/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import C from "@unicom-cloud/icons/IconUiClose";
|
|
|
4
4
|
import v from "@unicom-cloud/icons/IconUiExclamation";
|
|
5
5
|
import R from "@unicom-cloud/icons/IconUiInfo";
|
|
6
6
|
import { forwardRef as U, useContext as P } from "react";
|
|
7
|
-
import { a as b } from "../chunk/
|
|
7
|
+
import { a as b } from "../chunk/BcEZk8pT.js";
|
|
8
8
|
import { u as j } from "../chunk/FgWHhRFz.js";
|
|
9
9
|
import m from "@unicom-cloud/utils/class-name";
|
|
10
10
|
import w from "./403.js";
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal `EventEmitter` interface that is molded against the Node.js
|
|
3
|
+
* `EventEmitter` interface.
|
|
4
|
+
*/
|
|
5
|
+
declare class EventEmitter<
|
|
6
|
+
EventTypes extends EventEmitter.ValidEventTypes = string | symbol,
|
|
7
|
+
Context extends any = any
|
|
8
|
+
> {
|
|
9
|
+
static prefixed: string | boolean;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Return an array listing the events for which the emitter has registered
|
|
13
|
+
* listeners.
|
|
14
|
+
*/
|
|
15
|
+
eventNames(): Array<EventEmitter.EventNames<EventTypes>>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Return the listeners registered for a given event.
|
|
19
|
+
*/
|
|
20
|
+
listeners<T extends EventEmitter.EventNames<EventTypes>>(
|
|
21
|
+
event: T
|
|
22
|
+
): Array<EventEmitter.EventListener<EventTypes, T>>;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Return the number of listeners listening to a given event.
|
|
26
|
+
*/
|
|
27
|
+
listenerCount(event: EventEmitter.EventNames<EventTypes>): number;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Calls each of the listeners registered for a given event.
|
|
31
|
+
*/
|
|
32
|
+
emit<T extends EventEmitter.EventNames<EventTypes>>(
|
|
33
|
+
event: T,
|
|
34
|
+
...args: EventEmitter.EventArgs<EventTypes, T>
|
|
35
|
+
): boolean;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Add a listener for a given event.
|
|
39
|
+
*/
|
|
40
|
+
on<T extends EventEmitter.EventNames<EventTypes>>(
|
|
41
|
+
event: T,
|
|
42
|
+
fn: EventEmitter.EventListener<EventTypes, T>,
|
|
43
|
+
context?: Context
|
|
44
|
+
): this;
|
|
45
|
+
addListener<T extends EventEmitter.EventNames<EventTypes>>(
|
|
46
|
+
event: T,
|
|
47
|
+
fn: EventEmitter.EventListener<EventTypes, T>,
|
|
48
|
+
context?: Context
|
|
49
|
+
): this;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Add a one-time listener for a given event.
|
|
53
|
+
*/
|
|
54
|
+
once<T extends EventEmitter.EventNames<EventTypes>>(
|
|
55
|
+
event: T,
|
|
56
|
+
fn: EventEmitter.EventListener<EventTypes, T>,
|
|
57
|
+
context?: Context
|
|
58
|
+
): this;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Remove the listeners of a given event.
|
|
62
|
+
*/
|
|
63
|
+
removeListener<T extends EventEmitter.EventNames<EventTypes>>(
|
|
64
|
+
event: T,
|
|
65
|
+
fn?: EventEmitter.EventListener<EventTypes, T>,
|
|
66
|
+
context?: Context,
|
|
67
|
+
once?: boolean
|
|
68
|
+
): this;
|
|
69
|
+
off<T extends EventEmitter.EventNames<EventTypes>>(
|
|
70
|
+
event: T,
|
|
71
|
+
fn?: EventEmitter.EventListener<EventTypes, T>,
|
|
72
|
+
context?: Context,
|
|
73
|
+
once?: boolean
|
|
74
|
+
): this;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Remove all listeners, or those of the specified event.
|
|
78
|
+
*/
|
|
79
|
+
removeAllListeners(event?: EventEmitter.EventNames<EventTypes>): this;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare namespace EventEmitter {
|
|
83
|
+
export interface ListenerFn<Args extends any[] = any[]> {
|
|
84
|
+
(...args: Args): void;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface EventEmitterStatic {
|
|
88
|
+
new <
|
|
89
|
+
EventTypes extends ValidEventTypes = string | symbol,
|
|
90
|
+
Context = any
|
|
91
|
+
>(): EventEmitter<EventTypes, Context>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* `object` should be in either of the following forms:
|
|
96
|
+
* ```
|
|
97
|
+
* interface EventTypes {
|
|
98
|
+
* 'event-with-parameters': any[]
|
|
99
|
+
* 'event-with-example-handler': (...args: any[]) => void
|
|
100
|
+
* }
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
export type ValidEventTypes = string | symbol | object;
|
|
104
|
+
|
|
105
|
+
export type EventNames<T extends ValidEventTypes> = T extends string | symbol
|
|
106
|
+
? T
|
|
107
|
+
: keyof T;
|
|
108
|
+
|
|
109
|
+
export type ArgumentMap<T extends object> = {
|
|
110
|
+
[K in keyof T]: T[K] extends (...args: any[]) => void
|
|
111
|
+
? Parameters<T[K]>
|
|
112
|
+
: T[K] extends any[]
|
|
113
|
+
? T[K]
|
|
114
|
+
: any[];
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export type EventListener<
|
|
118
|
+
T extends ValidEventTypes,
|
|
119
|
+
K extends EventNames<T>
|
|
120
|
+
> = T extends string | symbol
|
|
121
|
+
? (...args: any[]) => void
|
|
122
|
+
: (
|
|
123
|
+
...args: ArgumentMap<Exclude<T, string | symbol>>[Extract<K, keyof T>]
|
|
124
|
+
) => void;
|
|
125
|
+
|
|
126
|
+
export type EventArgs<
|
|
127
|
+
T extends ValidEventTypes,
|
|
128
|
+
K extends EventNames<T>
|
|
129
|
+
> = Parameters<EventListener<T, K>>;
|
|
130
|
+
|
|
131
|
+
export const EventEmitter: EventEmitterStatic;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export { EventEmitter }
|
|
135
|
+
export default EventEmitter;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { jsx as I } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as w, useContext as D, useRef as E, useEffect as s, useImperativeHandle as P } from "react";
|
|
3
|
+
import { a as j } from "../chunk/BcEZk8pT.js";
|
|
4
|
+
import "../chunk/DsaQZE4X.js";
|
|
5
|
+
import "../chunk/CdXR6dj7.js";
|
|
6
|
+
import "@unicom-cloud/utils/js-cookie";
|
|
7
|
+
import "dayjs";
|
|
8
|
+
import "lodash/debounce";
|
|
9
|
+
import { u as x } from "../chunk/COc48wzV.js";
|
|
10
|
+
import "@unicom-cloud/utils/screenfull";
|
|
11
|
+
import "../chunk/BDgzrqDN.js";
|
|
12
|
+
import "lodash/throttle";
|
|
13
|
+
import "@unicom-cloud/utils/constant/platform";
|
|
14
|
+
import "lodash/isPlainObject";
|
|
15
|
+
import "@unicom-cloud/utils/query-string";
|
|
16
|
+
import "react-router";
|
|
17
|
+
import "lodash/isEqualWith";
|
|
18
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
19
|
+
import "lodash/isNumber";
|
|
20
|
+
import "lodash/merge";
|
|
21
|
+
import "../chunk/d1c9z8T1.js";
|
|
22
|
+
import "@unicom-cloud/utils/date";
|
|
23
|
+
import "@unicom-cloud/utils/case-name";
|
|
24
|
+
import G from "@unicom-cloud/utils/class-name";
|
|
25
|
+
import "@unicom-cloud/utils/constant/ui";
|
|
26
|
+
import "@unicom-cloud/utils/clipboard-copy";
|
|
27
|
+
import "../chunk/DS_deHpN.js";
|
|
28
|
+
import "@unicom-cloud/utils/file/fileToURL";
|
|
29
|
+
import "lodash/escapeRegExp";
|
|
30
|
+
import "lodash/isArray";
|
|
31
|
+
import "lodash/isString";
|
|
32
|
+
import "lodash/isFunction";
|
|
33
|
+
import "lodash/camelCase";
|
|
34
|
+
import "lodash/capitalize";
|
|
35
|
+
import "lodash/cloneDeep";
|
|
36
|
+
import "lodash/get";
|
|
37
|
+
import "lodash/has";
|
|
38
|
+
import "lodash/kebabCase";
|
|
39
|
+
import "lodash/mergeWith";
|
|
40
|
+
import "lodash/set";
|
|
41
|
+
import "lodash/setWith";
|
|
42
|
+
import "lodash/snakeCase";
|
|
43
|
+
import "lodash/startCase";
|
|
44
|
+
import "lodash/uniq";
|
|
45
|
+
import "lodash/upperFirst";
|
|
46
|
+
import "@unicom-cloud/utils/math";
|
|
47
|
+
import "@unicom-cloud/utils/mitt";
|
|
48
|
+
import "@unicom-cloud/utils/pinyin";
|
|
49
|
+
import "../chunk/BJ9_azwQ.js";
|
|
50
|
+
import "../chunk/CXrVhA6-.js";
|
|
51
|
+
import "@unicom-cloud/utils/file/saveAs";
|
|
52
|
+
import "@unicom-cloud/utils/constant/ui.js";
|
|
53
|
+
import "@unicom-cloud/utils/tinycolor";
|
|
54
|
+
import "@unicom-cloud/utils/ui-color";
|
|
55
|
+
import "react-is";
|
|
56
|
+
import "@unicom-cloud/utils/tree";
|
|
57
|
+
import "@unicom-cloud/utils/is";
|
|
58
|
+
import "uuid";
|
|
59
|
+
import "../chunk/hc_ufgVf.js";
|
|
60
|
+
import "../chunk/RjJoagzL.js";
|
|
61
|
+
import { u as _ } from "../chunk/FgWHhRFz.js";
|
|
62
|
+
import "@unicom-cloud/utils/constant";
|
|
63
|
+
import "./rich.js";
|
|
64
|
+
import { R as e } from "../chunk/BDMqvmVH.js";
|
|
65
|
+
import { A as te, D as ee, M as re, O as oe, I as ne, P as ie, a as se } from "../chunk/BDMqvmVH.js";
|
|
66
|
+
e.import("delta");
|
|
67
|
+
const M = {};
|
|
68
|
+
function S(i, R) {
|
|
69
|
+
const { getPrefixCls: T, renderEmpty: L, componentConfig: y, rtl: V } = D(j), r = _(
|
|
70
|
+
i,
|
|
71
|
+
M,
|
|
72
|
+
y?.RichText
|
|
73
|
+
), N = T?.("rich-text"), {
|
|
74
|
+
style: b,
|
|
75
|
+
className: O,
|
|
76
|
+
defaultValue: k,
|
|
77
|
+
value: p,
|
|
78
|
+
readOnly: m,
|
|
79
|
+
...X
|
|
80
|
+
} = r, A = "defaultValue" in r, a = "value" in r, c = "readOnly" in r, l = E(void 0), t = E(void 0);
|
|
81
|
+
x("https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js", {
|
|
82
|
+
js: {
|
|
83
|
+
async: !0
|
|
84
|
+
}
|
|
85
|
+
}), x(
|
|
86
|
+
"https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css",
|
|
87
|
+
{
|
|
88
|
+
css: {
|
|
89
|
+
async: !0
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
function u() {
|
|
94
|
+
return t.current.getContents();
|
|
95
|
+
}
|
|
96
|
+
return s(() => {
|
|
97
|
+
const n = l.current, H = n.appendChild(
|
|
98
|
+
n.ownerDocument.createElement("div")
|
|
99
|
+
);
|
|
100
|
+
t.current = new e(H, {
|
|
101
|
+
theme: "snow",
|
|
102
|
+
readOnly: m,
|
|
103
|
+
modules: {
|
|
104
|
+
// syntax: true,
|
|
105
|
+
// toolbar: refRichTextToolbarDom.current,
|
|
106
|
+
toolbar: {
|
|
107
|
+
container: [
|
|
108
|
+
[
|
|
109
|
+
{ font: [] },
|
|
110
|
+
{ header: [1, 2, 3, 4, 5, 6, !1] },
|
|
111
|
+
{ size: ["small", !1, "large", "huge"] }
|
|
112
|
+
],
|
|
113
|
+
["bold", "italic", "underline", "strike"],
|
|
114
|
+
[{ color: [] }, { background: [] }],
|
|
115
|
+
[{ script: "sub" }, { script: "super" }],
|
|
116
|
+
[
|
|
117
|
+
{ align: "" },
|
|
118
|
+
{ align: "center" },
|
|
119
|
+
{ align: "right" },
|
|
120
|
+
{ align: "justify" },
|
|
121
|
+
"blockquote",
|
|
122
|
+
"code-block"
|
|
123
|
+
],
|
|
124
|
+
[{ list: "ordered" }, { list: "bullet" }],
|
|
125
|
+
[{ indent: "-1" }, { indent: "+1" }],
|
|
126
|
+
[{ direction: "rtl" }],
|
|
127
|
+
["link", "image", "video", "formula", "table"],
|
|
128
|
+
["undo", "redo"],
|
|
129
|
+
["clean"]
|
|
130
|
+
],
|
|
131
|
+
handlers: {
|
|
132
|
+
// table() {},
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
history: !0,
|
|
136
|
+
table: !0
|
|
137
|
+
},
|
|
138
|
+
placeholder: "请输入富文本内容"
|
|
139
|
+
}), console.log("new Rich", t.current);
|
|
140
|
+
function f(o, C, g) {
|
|
141
|
+
r.onTextChange?.(o, C, g), r.onChange?.(u(), o, C, g);
|
|
142
|
+
}
|
|
143
|
+
function d(...o) {
|
|
144
|
+
r.onSelectionChange?.(...o);
|
|
145
|
+
}
|
|
146
|
+
function h(...o) {
|
|
147
|
+
r.onEditorChange?.(...o);
|
|
148
|
+
}
|
|
149
|
+
return t.current.on(e.events.TEXT_CHANGE, f), t.current.on(e.events.SELECTION_CHANGE, d), t.current.on(e.events.EDITOR_CHANGE, h), () => {
|
|
150
|
+
t.current.off(e.events.TEXT_CHANGE, f), t.current.off(e.events.SELECTION_CHANGE, d), t.current.off(e.events.EDITOR_CHANGE, h), t.current = null, n.innerHTML = "";
|
|
151
|
+
};
|
|
152
|
+
}, []), s(() => {
|
|
153
|
+
a && t.current.setContents(p);
|
|
154
|
+
}, [a, p]), s(() => {
|
|
155
|
+
c && t.current.enable(!m);
|
|
156
|
+
}, [c, m]), s(() => (A && t.current.setContents(k), () => {
|
|
157
|
+
}), []), P(R, () => {
|
|
158
|
+
const n = t.current;
|
|
159
|
+
return {
|
|
160
|
+
getInstance() {
|
|
161
|
+
return n;
|
|
162
|
+
},
|
|
163
|
+
getContents: u
|
|
164
|
+
};
|
|
165
|
+
}), /* @__PURE__ */ I("div", { ref: l, style: b, className: G(N, O) });
|
|
166
|
+
}
|
|
167
|
+
const v = w(S);
|
|
168
|
+
Reflect.ownKeys(e).forEach((i) => {
|
|
169
|
+
v[i] = e[i];
|
|
170
|
+
});
|
|
171
|
+
v.displayName = "RichText";
|
|
172
|
+
export {
|
|
173
|
+
te as AttributeMap,
|
|
174
|
+
ee as Delta,
|
|
175
|
+
re as Module,
|
|
176
|
+
oe as Op,
|
|
177
|
+
ne as OpIterator,
|
|
178
|
+
ie as Parchment,
|
|
179
|
+
se as Range,
|
|
180
|
+
e as Rich,
|
|
181
|
+
v as default
|
|
182
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|