@chaoswise/ui 3.0.6 → 3.0.7
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/lib/AbreastLayout/CollapsedBtn.js +45 -0
- package/lib/AbreastLayout/CollapsedIcon.js +14 -0
- package/lib/AbreastLayout/NavTreeContainer.js +26 -0
- package/lib/AbreastLayout/assets/icon.png +0 -0
- package/lib/AbreastLayout/assets/icon.svg +11 -0
- package/lib/AbreastLayout/assets/icon1.svg +20 -0
- package/lib/AbreastLayout/index.js +215 -0
- package/lib/AbreastLayout/index.style.js +91 -0
- package/lib/Ace/ace.js +600 -0
- package/lib/Ace/diff.js +291 -0
- package/lib/Ace/editorOptions.js +34 -0
- package/lib/Ace/index.js +6 -0
- package/lib/Ace/split.js +462 -0
- package/lib/AdaptiveLayout/index.js +251 -0
- package/lib/Affix/index.js +2 -0
- package/lib/Alert/index.js +2 -0
- package/lib/Anchor/index.js +2 -0
- package/lib/Antd5/_util/ActionButton.js +117 -0
- package/lib/Antd5/_util/PurePanel.js +103 -0
- package/lib/Antd5/_util/aria-data-attrs.js +1 -0
- package/lib/Antd5/_util/capitalize.js +7 -0
- package/lib/Antd5/_util/colors.js +26 -0
- package/lib/Antd5/_util/easings.js +10 -0
- package/lib/Antd5/_util/extendsObject.js +26 -0
- package/lib/Antd5/_util/gapSize.js +10 -0
- package/lib/Antd5/_util/getAllowClear.js +16 -0
- package/lib/Antd5/_util/getRenderPropValue.js +6 -0
- package/lib/Antd5/_util/getScroll.js +29 -0
- package/lib/Antd5/_util/hooks/useClosable.js +119 -0
- package/lib/Antd5/_util/hooks/useForceUpdate.js +15 -0
- package/lib/Antd5/_util/hooks/useMultipleSelect.js +47 -0
- package/lib/Antd5/_util/hooks/usePatchElement.js +33 -0
- package/lib/Antd5/_util/hooks/useProxyImperativeHandle.js +32 -0
- package/lib/Antd5/_util/hooks/useSyncState.js +13 -0
- package/lib/Antd5/_util/hooks/useZIndex.js +56 -0
- package/lib/Antd5/_util/isNumeric.js +4 -0
- package/lib/Antd5/_util/motion.js +47 -0
- package/lib/Antd5/_util/placements.js +182 -0
- package/lib/Antd5/_util/reactNode.js +13 -0
- package/lib/Antd5/_util/responsiveObserver.js +123 -0
- package/lib/Antd5/_util/scrollTo.js +34 -0
- package/lib/Antd5/_util/statusUtils.js +12 -0
- package/lib/Antd5/_util/styleChecker.js +6 -0
- package/lib/Antd5/_util/throttleByAnimationFrame.js +30 -0
- package/lib/Antd5/_util/transButton.js +63 -0
- package/lib/Antd5/_util/transKeys.js +18 -0
- package/lib/Antd5/_util/type.js +1 -0
- package/lib/Antd5/_util/warning.js +59 -0
- package/lib/Antd5/_util/wave/WaveEffect.js +160 -0
- package/lib/Antd5/_util/wave/index.js +63 -0
- package/lib/Antd5/_util/wave/interface.js +1 -0
- package/lib/Antd5/_util/wave/style.js +32 -0
- package/lib/Antd5/_util/wave/useWave.js +48 -0
- package/lib/Antd5/_util/wave/util.js +29 -0
- package/lib/Antd5/_util/zindexContext.js +6 -0
- package/lib/Antd5/affix/index.js +228 -0
- package/lib/Antd5/affix/style/index.js +20 -0
- package/lib/Antd5/affix/utils.js +19 -0
- package/lib/Antd5/alert/Alert.js +233 -0
- package/lib/Antd5/alert/ErrorBoundary.js +76 -0
- package/lib/Antd5/alert/design/behavior-pattern.js +31 -0
- package/lib/Antd5/alert/index.js +5 -0
- package/lib/Antd5/alert/style/index.js +153 -0
- package/lib/Antd5/anchor/Anchor.js +278 -0
- package/lib/Antd5/anchor/AnchorLink.js +67 -0
- package/lib/Antd5/anchor/context.js +3 -0
- package/lib/Antd5/anchor/index.js +5 -0
- package/lib/Antd5/anchor/style/index.js +124 -0
- package/lib/Antd5/app/context.js +8 -0
- package/lib/Antd5/app/index.js +93 -0
- package/lib/Antd5/app/style/index.js +24 -0
- package/lib/Antd5/auto-complete/index.js +112 -0
- package/lib/Antd5/avatar/AvatarContext.js +3 -0
- package/lib/Antd5/avatar/avatar.js +189 -0
- package/lib/Antd5/avatar/group.js +103 -0
- package/lib/Antd5/avatar/index.js +6 -0
- package/lib/Antd5/avatar/style/index.js +110 -0
- package/lib/Antd5/back-top/index.js +113 -0
- package/lib/Antd5/back-top/style/index.js +82 -0
- package/lib/Antd5/badge/Ribbon.js +65 -0
- package/lib/Antd5/badge/ScrollNumber.js +72 -0
- package/lib/Antd5/badge/SingleNumber.js +122 -0
- package/lib/Antd5/badge/index.js +189 -0
- package/lib/Antd5/badge/style/index.js +291 -0
- package/lib/Antd5/badge/style/ribbon.js +72 -0
- package/lib/Antd5/breadcrumb/Breadcrumb.js +157 -0
- package/lib/Antd5/breadcrumb/BreadcrumbItem.js +103 -0
- package/lib/Antd5/breadcrumb/BreadcrumbSeparator.js +16 -0
- package/lib/Antd5/breadcrumb/design/behavior-pattern.js +36 -0
- package/lib/Antd5/breadcrumb/index.js +2 -0
- package/lib/Antd5/breadcrumb/style/index.js +82 -0
- package/lib/Antd5/breadcrumb/useItemRender.js +57 -0
- package/lib/Antd5/breadcrumb/useItems.js +42 -0
- package/lib/Antd5/button/IconWrapper.js +17 -0
- package/lib/Antd5/button/LoadingIcon.js +87 -0
- package/lib/Antd5/button/button-group.js +59 -0
- package/lib/Antd5/button/button.js +230 -0
- package/lib/Antd5/button/buttonHelpers.js +68 -0
- package/lib/Antd5/button/index.js +3 -0
- package/lib/Antd5/button/style/compactCmp.js +46 -0
- package/lib/Antd5/button/style/group.js +52 -0
- package/lib/Antd5/button/style/index.js +322 -0
- package/lib/Antd5/button/style/token.js +61 -0
- package/lib/Antd5/calendar/Header.js +176 -0
- package/lib/Antd5/calendar/generateCalendar.js +225 -0
- package/lib/Antd5/calendar/index.js +5 -0
- package/lib/Antd5/calendar/locale/ar_EG.js +2 -0
- package/lib/Antd5/calendar/locale/az_AZ.js +2 -0
- package/lib/Antd5/calendar/locale/bg_BG.js +2 -0
- package/lib/Antd5/calendar/locale/bn_BD.js +2 -0
- package/lib/Antd5/calendar/locale/by_BY.js +2 -0
- package/lib/Antd5/calendar/locale/ca_ES.js +2 -0
- package/lib/Antd5/calendar/locale/cs_CZ.js +2 -0
- package/lib/Antd5/calendar/locale/da_DK.js +2 -0
- package/lib/Antd5/calendar/locale/de_DE.js +2 -0
- package/lib/Antd5/calendar/locale/el_GR.js +2 -0
- package/lib/Antd5/calendar/locale/en_GB.js +2 -0
- package/lib/Antd5/calendar/locale/en_US.js +2 -0
- package/lib/Antd5/calendar/locale/es_ES.js +2 -0
- package/lib/Antd5/calendar/locale/et_EE.js +2 -0
- package/lib/Antd5/calendar/locale/eu_ES.js +2 -0
- package/lib/Antd5/calendar/locale/fa_IR.js +2 -0
- package/lib/Antd5/calendar/locale/fi_FI.js +2 -0
- package/lib/Antd5/calendar/locale/fr_BE.js +2 -0
- package/lib/Antd5/calendar/locale/fr_CA.js +2 -0
- package/lib/Antd5/calendar/locale/fr_FR.js +2 -0
- package/lib/Antd5/calendar/locale/ga_IE.js +2 -0
- package/lib/Antd5/calendar/locale/gl_ES.js +2 -0
- package/lib/Antd5/calendar/locale/he_IL.js +2 -0
- package/lib/Antd5/calendar/locale/hi_IN.js +2 -0
- package/lib/Antd5/calendar/locale/hr_HR.js +2 -0
- package/lib/Antd5/calendar/locale/hu_HU.js +2 -0
- package/lib/Antd5/calendar/locale/id_ID.js +2 -0
- package/lib/Antd5/calendar/locale/is_IS.js +2 -0
- package/lib/Antd5/calendar/locale/it_IT.js +2 -0
- package/lib/Antd5/calendar/locale/ja_JP.js +2 -0
- package/lib/Antd5/calendar/locale/ka_GE.js +2 -0
- package/lib/Antd5/calendar/locale/kk_KZ.js +2 -0
- package/lib/Antd5/calendar/locale/km_KH.js +2 -0
- package/lib/Antd5/calendar/locale/kmr_IQ.js +2 -0
- package/lib/Antd5/calendar/locale/kn_IN.js +2 -0
- package/lib/Antd5/calendar/locale/ko_KR.js +2 -0
- package/lib/Antd5/calendar/locale/lt_LT.js +2 -0
- package/lib/Antd5/calendar/locale/lv_LV.js +2 -0
- package/lib/Antd5/calendar/locale/mk_MK.js +2 -0
- package/lib/Antd5/calendar/locale/ml_IN.js +2 -0
- package/lib/Antd5/calendar/locale/mn_MN.js +2 -0
- package/lib/Antd5/calendar/locale/ms_MY.js +2 -0
- package/lib/Antd5/calendar/locale/my_MM.js +2 -0
- package/lib/Antd5/calendar/locale/nb_NO.js +2 -0
- package/lib/Antd5/calendar/locale/nl_BE.js +2 -0
- package/lib/Antd5/calendar/locale/nl_NL.js +2 -0
- package/lib/Antd5/calendar/locale/pl_PL.js +2 -0
- package/lib/Antd5/calendar/locale/pt_BR.js +2 -0
- package/lib/Antd5/calendar/locale/pt_PT.js +2 -0
- package/lib/Antd5/calendar/locale/ro_RO.js +2 -0
- package/lib/Antd5/calendar/locale/ru_RU.js +2 -0
- package/lib/Antd5/calendar/locale/si_LK.js +2 -0
- package/lib/Antd5/calendar/locale/sk_SK.js +2 -0
- package/lib/Antd5/calendar/locale/sl_SI.js +2 -0
- package/lib/Antd5/calendar/locale/sr_RS.js +2 -0
- package/lib/Antd5/calendar/locale/sv_SE.js +2 -0
- package/lib/Antd5/calendar/locale/ta_IN.js +2 -0
- package/lib/Antd5/calendar/locale/th_TH.js +2 -0
- package/lib/Antd5/calendar/locale/tk_TK.js +2 -0
- package/lib/Antd5/calendar/locale/tr_TR.js +2 -0
- package/lib/Antd5/calendar/locale/uk_UA.js +2 -0
- package/lib/Antd5/calendar/locale/ur_PK.js +2 -0
- package/lib/Antd5/calendar/locale/uz_UZ.js +2 -0
- package/lib/Antd5/calendar/locale/vi_VN.js +2 -0
- package/lib/Antd5/calendar/locale/zh_CN.js +2 -0
- package/lib/Antd5/calendar/locale/zh_TW.js +2 -0
- package/lib/Antd5/calendar/style/index.js +153 -0
- package/lib/Antd5/card/Card.js +201 -0
- package/lib/Antd5/card/Grid.js +28 -0
- package/lib/Antd5/card/Meta.js +46 -0
- package/lib/Antd5/card/index.js +10 -0
- package/lib/Antd5/card/style/index.js +287 -0
- package/lib/Antd5/carousel/index.js +120 -0
- package/lib/Antd5/carousel/style/index.js +310 -0
- package/lib/Antd5/cascader/Panel.js +68 -0
- package/lib/Antd5/cascader/hooks/useBase.js +12 -0
- package/lib/Antd5/cascader/hooks/useCheckable.js +9 -0
- package/lib/Antd5/cascader/hooks/useColumnIcons.js +18 -0
- package/lib/Antd5/cascader/index.js +264 -0
- package/lib/Antd5/cascader/style/columns.js +87 -0
- package/lib/Antd5/cascader/style/index.js +48 -0
- package/lib/Antd5/cascader/style/panel.js +29 -0
- package/lib/Antd5/checkbox/Checkbox.js +125 -0
- package/lib/Antd5/checkbox/Group.js +148 -0
- package/lib/Antd5/checkbox/GroupContext.js +3 -0
- package/lib/Antd5/checkbox/index.js +9 -0
- package/lib/Antd5/checkbox/style/index.js +159 -0
- package/lib/Antd5/col/index.js +2 -0
- package/lib/Antd5/col/style/index.js +3 -0
- package/lib/Antd5/collapse/Collapse.js +121 -0
- package/lib/Antd5/collapse/CollapsePanel.js +33 -0
- package/lib/Antd5/collapse/index.js +2 -0
- package/lib/Antd5/collapse/style/index.js +183 -0
- package/lib/Antd5/color-picker/ColorPicker.js +233 -0
- package/lib/Antd5/color-picker/ColorPickerPanel.js +64 -0
- package/lib/Antd5/color-picker/color.js +67 -0
- package/lib/Antd5/color-picker/components/ColorAlphaInput.js +45 -0
- package/lib/Antd5/color-picker/components/ColorClear.js +22 -0
- package/lib/Antd5/color-picker/components/ColorHexInput.js +47 -0
- package/lib/Antd5/color-picker/components/ColorHsbInput.js +76 -0
- package/lib/Antd5/color-picker/components/ColorInput.js +86 -0
- package/lib/Antd5/color-picker/components/ColorPresets.js +109 -0
- package/lib/Antd5/color-picker/components/ColorRgbInput.js +67 -0
- package/lib/Antd5/color-picker/components/ColorSteppers.js +47 -0
- package/lib/Antd5/color-picker/components/ColorTrigger.js +65 -0
- package/lib/Antd5/color-picker/components/PanelPicker.js +53 -0
- package/lib/Antd5/color-picker/components/PanelPresets.js +18 -0
- package/lib/Antd5/color-picker/context.js +7 -0
- package/lib/Antd5/color-picker/hooks/useColorState.js +53 -0
- package/lib/Antd5/color-picker/index.js +2 -0
- package/lib/Antd5/color-picker/interface.js +6 -0
- package/lib/Antd5/color-picker/style/color-block.js +36 -0
- package/lib/Antd5/color-picker/style/index.js +203 -0
- package/lib/Antd5/color-picker/style/input.js +74 -0
- package/lib/Antd5/color-picker/style/picker.js +64 -0
- package/lib/Antd5/color-picker/style/presets.js +94 -0
- package/lib/Antd5/color-picker/util.js +18 -0
- package/lib/Antd5/config-provider/DisabledContext.js +13 -0
- package/lib/Antd5/config-provider/MotionWrapper.js +26 -0
- package/lib/Antd5/config-provider/PropWarning.js +18 -0
- package/lib/Antd5/config-provider/SizeContext.js +13 -0
- package/lib/Antd5/config-provider/context.js +16 -0
- package/lib/Antd5/config-provider/cssVariables.js +88 -0
- package/lib/Antd5/config-provider/defaultRenderEmpty.js +31 -0
- package/lib/Antd5/config-provider/hooks/useCSSVarCls.js +19 -0
- package/lib/Antd5/config-provider/hooks/useConfig.js +12 -0
- package/lib/Antd5/config-provider/hooks/useSize.js +19 -0
- package/lib/Antd5/config-provider/hooks/useTheme.js +55 -0
- package/lib/Antd5/config-provider/hooks/useThemeKey.js +14 -0
- package/lib/Antd5/config-provider/index.js +432 -0
- package/lib/Antd5/config-provider/style/index.js +2 -0
- package/lib/Antd5/date-picker/PickerButton.js +15 -0
- package/lib/Antd5/date-picker/design/behavior-pattern.js +89 -0
- package/lib/Antd5/date-picker/generatePicker/generateRangePicker.js +170 -0
- package/lib/Antd5/date-picker/generatePicker/generateSinglePicker.js +200 -0
- package/lib/Antd5/date-picker/generatePicker/index.js +26 -0
- package/lib/Antd5/date-picker/generatePicker/interface.js +2 -0
- package/lib/Antd5/date-picker/generatePicker/useComponents.js +15 -0
- package/lib/Antd5/date-picker/index.js +27 -0
- package/lib/Antd5/date-picker/locale/ar_EG.js +23 -0
- package/lib/Antd5/date-picker/locale/az_AZ.js +16 -0
- package/lib/Antd5/date-picker/locale/bg_BG.js +19 -0
- package/lib/Antd5/date-picker/locale/bn_BD.js +26 -0
- package/lib/Antd5/date-picker/locale/by_BY.js +24 -0
- package/lib/Antd5/date-picker/locale/ca_ES.js +19 -0
- package/lib/Antd5/date-picker/locale/cs_CZ.js +19 -0
- package/lib/Antd5/date-picker/locale/da_DK.js +19 -0
- package/lib/Antd5/date-picker/locale/de_DE.js +21 -0
- package/lib/Antd5/date-picker/locale/el_GR.js +19 -0
- package/lib/Antd5/date-picker/locale/en_GB.js +27 -0
- package/lib/Antd5/date-picker/locale/en_US.js +27 -0
- package/lib/Antd5/date-picker/locale/es_ES.js +21 -0
- package/lib/Antd5/date-picker/locale/et_EE.js +19 -0
- package/lib/Antd5/date-picker/locale/eu_ES.js +19 -0
- package/lib/Antd5/date-picker/locale/example.json +55 -0
- package/lib/Antd5/date-picker/locale/fa_IR.js +27 -0
- package/lib/Antd5/date-picker/locale/fi_FI.js +19 -0
- package/lib/Antd5/date-picker/locale/fr_BE.js +26 -0
- package/lib/Antd5/date-picker/locale/fr_CA.js +26 -0
- package/lib/Antd5/date-picker/locale/fr_FR.js +26 -0
- package/lib/Antd5/date-picker/locale/ga_IE.js +26 -0
- package/lib/Antd5/date-picker/locale/gl_ES.js +19 -0
- package/lib/Antd5/date-picker/locale/he_IL.js +19 -0
- package/lib/Antd5/date-picker/locale/hi_IN.js +26 -0
- package/lib/Antd5/date-picker/locale/hr_HR.js +26 -0
- package/lib/Antd5/date-picker/locale/hu_HU.js +19 -0
- package/lib/Antd5/date-picker/locale/id_ID.js +27 -0
- package/lib/Antd5/date-picker/locale/is_IS.js +19 -0
- package/lib/Antd5/date-picker/locale/it_IT.js +19 -0
- package/lib/Antd5/date-picker/locale/ja_JP.js +19 -0
- package/lib/Antd5/date-picker/locale/ka_GE.js +23 -0
- package/lib/Antd5/date-picker/locale/kk_KZ.js +26 -0
- package/lib/Antd5/date-picker/locale/km_KH.js +26 -0
- package/lib/Antd5/date-picker/locale/kmr_IQ.js +19 -0
- package/lib/Antd5/date-picker/locale/kn_IN.js +19 -0
- package/lib/Antd5/date-picker/locale/ko_KR.js +19 -0
- package/lib/Antd5/date-picker/locale/lt_LT.js +27 -0
- package/lib/Antd5/date-picker/locale/lv_LV.js +19 -0
- package/lib/Antd5/date-picker/locale/mk_MK.js +19 -0
- package/lib/Antd5/date-picker/locale/ml_IN.js +26 -0
- package/lib/Antd5/date-picker/locale/mn_MN.js +19 -0
- package/lib/Antd5/date-picker/locale/ms_MY.js +19 -0
- package/lib/Antd5/date-picker/locale/my_MM.js +27 -0
- package/lib/Antd5/date-picker/locale/nb_NO.js +26 -0
- package/lib/Antd5/date-picker/locale/nl_BE.js +26 -0
- package/lib/Antd5/date-picker/locale/nl_NL.js +26 -0
- package/lib/Antd5/date-picker/locale/pl_PL.js +19 -0
- package/lib/Antd5/date-picker/locale/pt_BR.js +19 -0
- package/lib/Antd5/date-picker/locale/pt_PT.js +47 -0
- package/lib/Antd5/date-picker/locale/ro_RO.js +19 -0
- package/lib/Antd5/date-picker/locale/ru_RU.js +29 -0
- package/lib/Antd5/date-picker/locale/si_LK.js +27 -0
- package/lib/Antd5/date-picker/locale/sk_SK.js +19 -0
- package/lib/Antd5/date-picker/locale/sl_SI.js +45 -0
- package/lib/Antd5/date-picker/locale/sr_RS.js +26 -0
- package/lib/Antd5/date-picker/locale/sv_SE.js +26 -0
- package/lib/Antd5/date-picker/locale/ta_IN.js +27 -0
- package/lib/Antd5/date-picker/locale/th_TH.js +26 -0
- package/lib/Antd5/date-picker/locale/tk_TK.js +24 -0
- package/lib/Antd5/date-picker/locale/tr_TR.js +26 -0
- package/lib/Antd5/date-picker/locale/uk_UA.js +19 -0
- package/lib/Antd5/date-picker/locale/ur_PK.js +26 -0
- package/lib/Antd5/date-picker/locale/uz_UZ.js +26 -0
- package/lib/Antd5/date-picker/locale/vi_VN.js +27 -0
- package/lib/Antd5/date-picker/locale/zh_CN.js +29 -0
- package/lib/Antd5/date-picker/locale/zh_TW.js +28 -0
- package/lib/Antd5/date-picker/style/index.js +328 -0
- package/lib/Antd5/date-picker/style/multiple.js +81 -0
- package/lib/Antd5/date-picker/style/panel.js +448 -0
- package/lib/Antd5/date-picker/style/token.js +77 -0
- package/lib/Antd5/date-picker/style/variants.js +28 -0
- package/lib/Antd5/date-picker/util.js +118 -0
- package/lib/Antd5/descriptions/Cell.js +57 -0
- package/lib/Antd5/descriptions/DescriptionsContext.js +3 -0
- package/lib/Antd5/descriptions/Item.js +5 -0
- package/lib/Antd5/descriptions/Row.js +107 -0
- package/lib/Antd5/descriptions/constant.js +9 -0
- package/lib/Antd5/descriptions/hooks/useItems.js +38 -0
- package/lib/Antd5/descriptions/hooks/useRow.js +78 -0
- package/lib/Antd5/descriptions/index.js +119 -0
- package/lib/Antd5/descriptions/style/index.js +146 -0
- package/lib/Antd5/divider/index.js +85 -0
- package/lib/Antd5/divider/style/index.js +136 -0
- package/lib/Antd5/drawer/DrawerPanel.js +107 -0
- package/lib/Antd5/drawer/index.js +206 -0
- package/lib/Antd5/drawer/style/index.js +192 -0
- package/lib/Antd5/drawer/style/motion.js +56 -0
- package/lib/Antd5/dropdown/dropdown-button.js +129 -0
- package/lib/Antd5/dropdown/dropdown.js +255 -0
- package/lib/Antd5/dropdown/index.js +5 -0
- package/lib/Antd5/dropdown/style/index.js +220 -0
- package/lib/Antd5/dropdown/style/status.js +19 -0
- package/lib/Antd5/empty/empty.js +73 -0
- package/lib/Antd5/empty/index.js +83 -0
- package/lib/Antd5/empty/simple.js +61 -0
- package/lib/Antd5/empty/style/index.js +61 -0
- package/lib/Antd5/flex/index.js +67 -0
- package/lib/Antd5/flex/interface.js +1 -0
- package/lib/Antd5/flex/style/index.js +83 -0
- package/lib/Antd5/flex/utils.js +33 -0
- package/lib/Antd5/float-button/BackTop.js +109 -0
- package/lib/Antd5/float-button/FloatButton.js +105 -0
- package/lib/Antd5/float-button/FloatButtonContent.js +31 -0
- package/lib/Antd5/float-button/FloatButtonGroup.js +144 -0
- package/lib/Antd5/float-button/PurePanel.js +49 -0
- package/lib/Antd5/float-button/context.js +5 -0
- package/lib/Antd5/float-button/index.js +8 -0
- package/lib/Antd5/float-button/interface.js +1 -0
- package/lib/Antd5/float-button/style/index.js +294 -0
- package/lib/Antd5/float-button/util.js +9 -0
- package/lib/Antd5/form/ErrorList.js +110 -0
- package/lib/Antd5/form/Form.js +166 -0
- package/lib/Antd5/form/FormItem/ItemHolder.js +128 -0
- package/lib/Antd5/form/FormItem/StatusProvider.js +73 -0
- package/lib/Antd5/form/FormItem/index.js +310 -0
- package/lib/Antd5/form/FormItemInput.js +100 -0
- package/lib/Antd5/form/FormItemLabel.js +120 -0
- package/lib/Antd5/form/FormList.js +49 -0
- package/lib/Antd5/form/context.js +51 -0
- package/lib/Antd5/form/hooks/useChildren.js +8 -0
- package/lib/Antd5/form/hooks/useDebounce.js +22 -0
- package/lib/Antd5/form/hooks/useForm.js +69 -0
- package/lib/Antd5/form/hooks/useFormInstance.js +7 -0
- package/lib/Antd5/form/hooks/useFormItemStatus.js +23 -0
- package/lib/Antd5/form/hooks/useFormWarning.js +16 -0
- package/lib/Antd5/form/hooks/useFrameState.js +46 -0
- package/lib/Antd5/form/hooks/useItemRef.js +20 -0
- package/lib/Antd5/form/hooks/useVariants.js +21 -0
- package/lib/Antd5/form/index.js +19 -0
- package/lib/Antd5/form/interface.js +1 -0
- package/lib/Antd5/form/style/explain.js +37 -0
- package/lib/Antd5/form/style/fallbackCmp.js +26 -0
- package/lib/Antd5/form/style/index.js +318 -0
- package/lib/Antd5/form/util.js +39 -0
- package/lib/Antd5/form/validateMessagesContext.js +5 -0
- package/lib/Antd5/grid/RowContext.js +3 -0
- package/lib/Antd5/grid/col.js +103 -0
- package/lib/Antd5/grid/hooks/useBreakpoint.js +23 -0
- package/lib/Antd5/grid/index.js +11 -0
- package/lib/Antd5/grid/row.js +169 -0
- package/lib/Antd5/grid/style/index.js +153 -0
- package/lib/Antd5/icon/index.js +9 -0
- package/lib/Antd5/image/PreviewGroup.js +84 -0
- package/lib/Antd5/image/index.js +94 -0
- package/lib/Antd5/image/style/index.js +264 -0
- package/lib/Antd5/index.js +72 -0
- package/lib/Antd5/input/Group.js +57 -0
- package/lib/Antd5/input/Input.js +188 -0
- package/lib/Antd5/input/OTP/OTPInput.js +69 -0
- package/lib/Antd5/input/OTP/index.js +210 -0
- package/lib/Antd5/input/Password.js +116 -0
- package/lib/Antd5/input/Search.js +143 -0
- package/lib/Antd5/input/TextArea.js +118 -0
- package/lib/Antd5/input/hooks/useRemovePasswordTimeout.js +26 -0
- package/lib/Antd5/input/index.js +13 -0
- package/lib/Antd5/input/style/index.js +532 -0
- package/lib/Antd5/input/style/otp.js +32 -0
- package/lib/Antd5/input/style/token.js +46 -0
- package/lib/Antd5/input/style/variants.js +213 -0
- package/lib/Antd5/input/utils.js +4 -0
- package/lib/Antd5/input-number/index.js +163 -0
- package/lib/Antd5/input-number/style/index.js +299 -0
- package/lib/Antd5/input-number/style/token.js +24 -0
- package/lib/Antd5/layout/Sider.js +198 -0
- package/lib/Antd5/layout/context.js +11 -0
- package/lib/Antd5/layout/hooks/useHasSider.js +14 -0
- package/lib/Antd5/layout/index.js +9 -0
- package/lib/Antd5/layout/layout.js +143 -0
- package/lib/Antd5/layout/style/index.js +187 -0
- package/lib/Antd5/layout/style/light.js +24 -0
- package/lib/Antd5/list/Item.js +113 -0
- package/lib/Antd5/list/context.js +3 -0
- package/lib/Antd5/list/index.js +246 -0
- package/lib/Antd5/list/style/index.js +249 -0
- package/lib/Antd5/locale/ar_EG.js +114 -0
- package/lib/Antd5/locale/az_AZ.js +97 -0
- package/lib/Antd5/locale/bg_BG.js +95 -0
- package/lib/Antd5/locale/bn_BD.js +127 -0
- package/lib/Antd5/locale/by_BY.js +129 -0
- package/lib/Antd5/locale/ca_ES.js +122 -0
- package/lib/Antd5/locale/context.js +3 -0
- package/lib/Antd5/locale/cs_CZ.js +129 -0
- package/lib/Antd5/locale/da_DK.js +105 -0
- package/lib/Antd5/locale/de_DE.js +133 -0
- package/lib/Antd5/locale/el_GR.js +44 -0
- package/lib/Antd5/locale/en_GB.js +129 -0
- package/lib/Antd5/locale/en_US.js +144 -0
- package/lib/Antd5/locale/es_ES.js +129 -0
- package/lib/Antd5/locale/et_EE.js +129 -0
- package/lib/Antd5/locale/eu_ES.js +141 -0
- package/lib/Antd5/locale/fa_IR.js +138 -0
- package/lib/Antd5/locale/fi_FI.js +54 -0
- package/lib/Antd5/locale/fr_BE.js +126 -0
- package/lib/Antd5/locale/fr_CA.js +126 -0
- package/lib/Antd5/locale/fr_FR.js +131 -0
- package/lib/Antd5/locale/ga_IE.js +120 -0
- package/lib/Antd5/locale/gl_ES.js +108 -0
- package/lib/Antd5/locale/he_IL.js +114 -0
- package/lib/Antd5/locale/hi_IN.js +127 -0
- package/lib/Antd5/locale/hr_HR.js +126 -0
- package/lib/Antd5/locale/hu_HU.js +45 -0
- package/lib/Antd5/locale/hy_AM.js +106 -0
- package/lib/Antd5/locale/id_ID.js +144 -0
- package/lib/Antd5/locale/index.js +40 -0
- package/lib/Antd5/locale/is_IS.js +95 -0
- package/lib/Antd5/locale/it_IT.js +134 -0
- package/lib/Antd5/locale/ja_JP.js +144 -0
- package/lib/Antd5/locale/ka_GE.js +127 -0
- package/lib/Antd5/locale/kk_KZ.js +121 -0
- package/lib/Antd5/locale/km_KH.js +105 -0
- package/lib/Antd5/locale/kmr_IQ.js +44 -0
- package/lib/Antd5/locale/kn_IN.js +51 -0
- package/lib/Antd5/locale/ko_KR.js +141 -0
- package/lib/Antd5/locale/ku_IQ.js +47 -0
- package/lib/Antd5/locale/lt_LT.js +141 -0
- package/lib/Antd5/locale/lv_LV.js +44 -0
- package/lib/Antd5/locale/mk_MK.js +56 -0
- package/lib/Antd5/locale/ml_IN.js +127 -0
- package/lib/Antd5/locale/mn_MN.js +44 -0
- package/lib/Antd5/locale/ms_MY.js +61 -0
- package/lib/Antd5/locale/my_MM.js +136 -0
- package/lib/Antd5/locale/nb_NO.js +121 -0
- package/lib/Antd5/locale/ne_NP.js +44 -0
- package/lib/Antd5/locale/nl_BE.js +127 -0
- package/lib/Antd5/locale/nl_NL.js +127 -0
- package/lib/Antd5/locale/pl_PL.js +134 -0
- package/lib/Antd5/locale/pt_BR.js +134 -0
- package/lib/Antd5/locale/pt_PT.js +129 -0
- package/lib/Antd5/locale/ro_RO.js +127 -0
- package/lib/Antd5/locale/ru_RU.js +138 -0
- package/lib/Antd5/locale/si_LK.js +129 -0
- package/lib/Antd5/locale/sk_SK.js +129 -0
- package/lib/Antd5/locale/sl_SI.js +44 -0
- package/lib/Antd5/locale/sr_RS.js +127 -0
- package/lib/Antd5/locale/sv_SE.js +138 -0
- package/lib/Antd5/locale/ta_IN.js +126 -0
- package/lib/Antd5/locale/th_TH.js +138 -0
- package/lib/Antd5/locale/tk_TK.js +125 -0
- package/lib/Antd5/locale/tr_TR.js +125 -0
- package/lib/Antd5/locale/uk_UA.js +138 -0
- package/lib/Antd5/locale/ur_PK.js +127 -0
- package/lib/Antd5/locale/useLocale.js +28 -0
- package/lib/Antd5/locale/uz_UZ.js +143 -0
- package/lib/Antd5/locale/vi_VN.js +137 -0
- package/lib/Antd5/locale/zh_CN.js +145 -0
- package/lib/Antd5/locale/zh_HK.js +138 -0
- package/lib/Antd5/locale/zh_TW.js +139 -0
- package/lib/Antd5/mentions/index.js +198 -0
- package/lib/Antd5/mentions/style/index.js +205 -0
- package/lib/Antd5/menu/MenuContext.js +7 -0
- package/lib/Antd5/menu/MenuDivider.js +28 -0
- package/lib/Antd5/menu/MenuItem.js +82 -0
- package/lib/Antd5/menu/OverrideContext.js +39 -0
- package/lib/Antd5/menu/SubMenu.js +74 -0
- package/lib/Antd5/menu/index.js +39 -0
- package/lib/Antd5/menu/interface.js +1 -0
- package/lib/Antd5/menu/menu.js +174 -0
- package/lib/Antd5/menu/style/horizontal.js +38 -0
- package/lib/Antd5/menu/style/index.js +441 -0
- package/lib/Antd5/menu/style/rtl.js +23 -0
- package/lib/Antd5/menu/style/theme.js +158 -0
- package/lib/Antd5/menu/style/vertical.js +131 -0
- package/lib/Antd5/message/PurePanel.js +77 -0
- package/lib/Antd5/message/index.js +281 -0
- package/lib/Antd5/message/interface.js +1 -0
- package/lib/Antd5/message/style/index.js +128 -0
- package/lib/Antd5/message/useMessage.js +235 -0
- package/lib/Antd5/message/util.js +23 -0
- package/lib/Antd5/modal/ConfirmDialog.js +228 -0
- package/lib/Antd5/modal/Modal.js +162 -0
- package/lib/Antd5/modal/PurePanel.js +78 -0
- package/lib/Antd5/modal/components/ConfirmCancelBtn.js +32 -0
- package/lib/Antd5/modal/components/ConfirmOkBtn.js +33 -0
- package/lib/Antd5/modal/components/NormalCancelBtn.js +22 -0
- package/lib/Antd5/modal/components/NormalOkBtn.js +26 -0
- package/lib/Antd5/modal/confirm.js +169 -0
- package/lib/Antd5/modal/context.js +4 -0
- package/lib/Antd5/modal/destroyFns.js +2 -0
- package/lib/Antd5/modal/index.js +38 -0
- package/lib/Antd5/modal/interface.js +1 -0
- package/lib/Antd5/modal/locale.js +31 -0
- package/lib/Antd5/modal/shared.js +81 -0
- package/lib/Antd5/modal/style/confirm.js +83 -0
- package/lib/Antd5/modal/style/index.js +221 -0
- package/lib/Antd5/modal/useModal/HookModal.js +87 -0
- package/lib/Antd5/modal/useModal/index.js +128 -0
- package/lib/Antd5/notification/PurePanel.js +134 -0
- package/lib/Antd5/notification/index.js +215 -0
- package/lib/Antd5/notification/interface.js +1 -0
- package/lib/Antd5/notification/style/index.js +184 -0
- package/lib/Antd5/notification/style/placement.js +77 -0
- package/lib/Antd5/notification/style/pure-panel.js +18 -0
- package/lib/Antd5/notification/style/stack.js +81 -0
- package/lib/Antd5/notification/useNotification.js +201 -0
- package/lib/Antd5/notification/util.js +57 -0
- package/lib/Antd5/pagination/Pagination.js +135 -0
- package/lib/Antd5/pagination/Select.js +24 -0
- package/lib/Antd5/pagination/design/behavior-pattern.js +32 -0
- package/lib/Antd5/pagination/index.js +2 -0
- package/lib/Antd5/pagination/style/bordered.js +68 -0
- package/lib/Antd5/pagination/style/index.js +411 -0
- package/lib/Antd5/popconfirm/PurePanel.js +114 -0
- package/lib/Antd5/popconfirm/index.js +109 -0
- package/lib/Antd5/popconfirm/style/index.js +61 -0
- package/lib/Antd5/popover/PurePanel.js +77 -0
- package/lib/Antd5/popover/index.js +126 -0
- package/lib/Antd5/popover/style/index.js +137 -0
- package/lib/Antd5/progress/Circle.js +95 -0
- package/lib/Antd5/progress/Line.js +149 -0
- package/lib/Antd5/progress/Steps.js +55 -0
- package/lib/Antd5/progress/design/behavior-pattern.js +31 -0
- package/lib/Antd5/progress/index.js +2 -0
- package/lib/Antd5/progress/progress.js +144 -0
- package/lib/Antd5/progress/style/index.js +201 -0
- package/lib/Antd5/progress/utils.js +97 -0
- package/lib/Antd5/qr-code/index.js +125 -0
- package/lib/Antd5/qr-code/interface.js +1 -0
- package/lib/Antd5/qr-code/style/index.js +66 -0
- package/lib/Antd5/qrcode/index.js +4 -0
- package/lib/Antd5/qrcode/interface.js +3 -0
- package/lib/Antd5/qrcode/style/index.js +3 -0
- package/lib/Antd5/radio/context.js +6 -0
- package/lib/Antd5/radio/group.js +131 -0
- package/lib/Antd5/radio/index.js +9 -0
- package/lib/Antd5/radio/interface.js +1 -0
- package/lib/Antd5/radio/radio.js +137 -0
- package/lib/Antd5/radio/radioButton.js +31 -0
- package/lib/Antd5/radio/style/index.js +533 -0
- package/lib/Antd5/rate/index.js +69 -0
- package/lib/Antd5/rate/style/index.js +88 -0
- package/lib/Antd5/result/index.js +128 -0
- package/lib/Antd5/result/noFound.js +243 -0
- package/lib/Antd5/result/serverError.js +283 -0
- package/lib/Antd5/result/style/index.js +101 -0
- package/lib/Antd5/result/unauthorized.js +230 -0
- package/lib/Antd5/row/index.js +2 -0
- package/lib/Antd5/row/style/index.js +3 -0
- package/lib/Antd5/segmented/index.js +87 -0
- package/lib/Antd5/segmented/style/index.js +162 -0
- package/lib/Antd5/select/index.js +222 -0
- package/lib/Antd5/select/mergedBuiltinPlacements.js +40 -0
- package/lib/Antd5/select/style/dropdown.js +109 -0
- package/lib/Antd5/select/style/index.js +183 -0
- package/lib/Antd5/select/style/multiple.js +217 -0
- package/lib/Antd5/select/style/single.js +101 -0
- package/lib/Antd5/select/style/token.js +53 -0
- package/lib/Antd5/select/style/variants.js +126 -0
- package/lib/Antd5/select/useIcons.js +82 -0
- package/lib/Antd5/select/useShowArrow.js +9 -0
- package/lib/Antd5/skeleton/Avatar.js +48 -0
- package/lib/Antd5/skeleton/Button.js +47 -0
- package/lib/Antd5/skeleton/Element.js +30 -0
- package/lib/Antd5/skeleton/Image.js +49 -0
- package/lib/Antd5/skeleton/Input.js +46 -0
- package/lib/Antd5/skeleton/Node.js +43 -0
- package/lib/Antd5/skeleton/Paragraph.js +44 -0
- package/lib/Antd5/skeleton/Skeleton.js +153 -0
- package/lib/Antd5/skeleton/Title.js +23 -0
- package/lib/Antd5/skeleton/index.js +2 -0
- package/lib/Antd5/skeleton/style/index.js +247 -0
- package/lib/Antd5/slider/SliderTooltip.js +43 -0
- package/lib/Antd5/slider/index.js +236 -0
- package/lib/Antd5/slider/style/index.js +246 -0
- package/lib/Antd5/slider/useRafLock.js +32 -0
- package/lib/Antd5/space/Compact.js +103 -0
- package/lib/Antd5/space/Item.js +26 -0
- package/lib/Antd5/space/context.js +5 -0
- package/lib/Antd5/space/index.js +120 -0
- package/lib/Antd5/space/style/compact.js +18 -0
- package/lib/Antd5/space/style/index.js +79 -0
- package/lib/Antd5/spin/index.js +149 -0
- package/lib/Antd5/spin/style/index.js +206 -0
- package/lib/Antd5/statistic/Countdown.js +73 -0
- package/lib/Antd5/statistic/Number.js +47 -0
- package/lib/Antd5/statistic/Statistic.js +99 -0
- package/lib/Antd5/statistic/index.js +4 -0
- package/lib/Antd5/statistic/interface.js +1 -0
- package/lib/Antd5/statistic/style/index.js +51 -0
- package/lib/Antd5/statistic/utils.js +57 -0
- package/lib/Antd5/steps/index.js +120 -0
- package/lib/Antd5/steps/style/custom-icon.js +26 -0
- package/lib/Antd5/steps/style/horizontal.js +12 -0
- package/lib/Antd5/steps/style/index.js +249 -0
- package/lib/Antd5/steps/style/inline.js +95 -0
- package/lib/Antd5/steps/style/label-placement.js +46 -0
- package/lib/Antd5/steps/style/nav.js +109 -0
- package/lib/Antd5/steps/style/progress-dot.js +100 -0
- package/lib/Antd5/steps/style/progress.js +52 -0
- package/lib/Antd5/steps/style/rtl.js +25 -0
- package/lib/Antd5/steps/style/small.js +53 -0
- package/lib/Antd5/steps/style/vertical.js +55 -0
- package/lib/Antd5/steps/useLegacyItems.js +32 -0
- package/lib/Antd5/style/compact-item-vertical.js +33 -0
- package/lib/Antd5/style/compact-item.js +47 -0
- package/lib/Antd5/style/index.js +126 -0
- package/lib/Antd5/style/motion/collapse.js +16 -0
- package/lib/Antd5/style/motion/fade.js +34 -0
- package/lib/Antd5/style/motion/index.js +6 -0
- package/lib/Antd5/style/motion/motion.js +35 -0
- package/lib/Antd5/style/motion/move.js +133 -0
- package/lib/Antd5/style/motion/slide.js +137 -0
- package/lib/Antd5/style/motion/zoom.js +179 -0
- package/lib/Antd5/style/operationUnit.js +18 -0
- package/lib/Antd5/style/placementArrow.js +120 -0
- package/lib/Antd5/style/reset.css +253 -0
- package/lib/Antd5/style/roundedArrow.js +72 -0
- package/lib/Antd5/switch/index.js +97 -0
- package/lib/Antd5/switch/style/index.js +245 -0
- package/lib/Antd5/table/Column.js +7 -0
- package/lib/Antd5/table/ColumnGroup.js +7 -0
- package/lib/Antd5/table/ExpandIcon.js +28 -0
- package/lib/Antd5/table/InternalTable.js +451 -0
- package/lib/Antd5/table/RcTable/VirtualTable.js +9 -0
- package/lib/Antd5/table/RcTable/index.js +9 -0
- package/lib/Antd5/table/Table.js +34 -0
- package/lib/Antd5/table/hooks/useContainerWidth.js +14 -0
- package/lib/Antd5/table/hooks/useFilter/FilterDropdown.js +497 -0
- package/lib/Antd5/table/hooks/useFilter/FilterSearch.js +27 -0
- package/lib/Antd5/table/hooks/useFilter/FilterWrapper.js +24 -0
- package/lib/Antd5/table/hooks/useFilter/index.js +234 -0
- package/lib/Antd5/table/hooks/useLazyKVMap.js +30 -0
- package/lib/Antd5/table/hooks/usePagination.js +78 -0
- package/lib/Antd5/table/hooks/useSelection.js +578 -0
- package/lib/Antd5/table/hooks/useSorter.js +362 -0
- package/lib/Antd5/table/hooks/useTitleColumns.js +24 -0
- package/lib/Antd5/table/index.js +2 -0
- package/lib/Antd5/table/interface.js +3 -0
- package/lib/Antd5/table/style/bordered.js +68 -0
- package/lib/Antd5/table/style/ellipsis.js +24 -0
- package/lib/Antd5/table/style/empty.js +15 -0
- package/lib/Antd5/table/style/expand.js +106 -0
- package/lib/Antd5/table/style/filter.js +127 -0
- package/lib/Antd5/table/style/fixed.js +82 -0
- package/lib/Antd5/table/style/index.js +273 -0
- package/lib/Antd5/table/style/pagination.js +30 -0
- package/lib/Antd5/table/style/radius.js +35 -0
- package/lib/Antd5/table/style/rtl.js +40 -0
- package/lib/Antd5/table/style/selection.js +67 -0
- package/lib/Antd5/table/style/size.js +30 -0
- package/lib/Antd5/table/style/sorter.js +75 -0
- package/lib/Antd5/table/style/sticky.js +53 -0
- package/lib/Antd5/table/style/summary.js +25 -0
- package/lib/Antd5/table/style/virtual.js +49 -0
- package/lib/Antd5/table/util.js +31 -0
- package/lib/Antd5/tabs/TabPane.js +7 -0
- package/lib/Antd5/tabs/hooks/useAnimateConfig.js +40 -0
- package/lib/Antd5/tabs/hooks/useLegacyItems.js +43 -0
- package/lib/Antd5/tabs/index.js +115 -0
- package/lib/Antd5/tabs/style/index.js +633 -0
- package/lib/Antd5/tabs/style/motion.js +36 -0
- package/lib/Antd5/tag/CheckableTag.js +51 -0
- package/lib/Antd5/tag/index.js +133 -0
- package/lib/Antd5/tag/style/index.js +104 -0
- package/lib/Antd5/tag/style/presetCmp.js +34 -0
- package/lib/Antd5/tag/style/statusCmp.js +22 -0
- package/lib/Antd5/theme/context.js +15 -0
- package/lib/Antd5/theme/getDesignToken.js +18 -0
- package/lib/Antd5/theme/index.js +39 -0
- package/lib/Antd5/theme/interface/alias.js +1 -0
- package/lib/Antd5/theme/interface/components.js +1 -0
- package/lib/Antd5/theme/interface/index.js +1 -0
- package/lib/Antd5/theme/interface/maps/colors.js +1 -0
- package/lib/Antd5/theme/interface/maps/font.js +1 -0
- package/lib/Antd5/theme/interface/maps/index.js +4 -0
- package/lib/Antd5/theme/interface/maps/size.js +1 -0
- package/lib/Antd5/theme/interface/maps/style.js +1 -0
- package/lib/Antd5/theme/interface/presetColors.js +1 -0
- package/lib/Antd5/theme/interface/seeds.js +1 -0
- package/lib/Antd5/theme/internal.js +13 -0
- package/lib/Antd5/theme/themes/ColorMap.js +1 -0
- package/lib/Antd5/theme/themes/compact/genCompactSizeMapToken.js +16 -0
- package/lib/Antd5/theme/themes/compact/index.js +22 -0
- package/lib/Antd5/theme/themes/dark/colorAlgorithm.js +8 -0
- package/lib/Antd5/theme/themes/dark/colors.js +45 -0
- package/lib/Antd5/theme/themes/dark/index.js +32 -0
- package/lib/Antd5/theme/themes/default/colorAlgorithm.js +8 -0
- package/lib/Antd5/theme/themes/default/colors.js +43 -0
- package/lib/Antd5/theme/themes/default/index.js +31 -0
- package/lib/Antd5/theme/themes/seed.js +68 -0
- package/lib/Antd5/theme/themes/shared/genColorMapToken.js +85 -0
- package/lib/Antd5/theme/themes/shared/genCommonMapToken.js +21 -0
- package/lib/Antd5/theme/themes/shared/genControlHeight.js +9 -0
- package/lib/Antd5/theme/themes/shared/genFontMapToken.js +39 -0
- package/lib/Antd5/theme/themes/shared/genFontSizes.js +20 -0
- package/lib/Antd5/theme/themes/shared/genRadius.js +46 -0
- package/lib/Antd5/theme/themes/shared/genSizeMapToken.js +23 -0
- package/lib/Antd5/theme/useToken.js +129 -0
- package/lib/Antd5/theme/util/alias.js +143 -0
- package/lib/Antd5/theme/util/calc/CSSCalculator.js +119 -0
- package/lib/Antd5/theme/util/calc/NumCalculator.js +81 -0
- package/lib/Antd5/theme/util/calc/calculator.js +10 -0
- package/lib/Antd5/theme/util/calc/index.js +9 -0
- package/lib/Antd5/theme/util/genComponentStyleHook.js +243 -0
- package/lib/Antd5/theme/util/genPresetColor.js +21 -0
- package/lib/Antd5/theme/util/getAlphaColor.js +40 -0
- package/lib/Antd5/theme/util/maxmin.js +27 -0
- package/lib/Antd5/theme/util/statistic.js +74 -0
- package/lib/Antd5/theme/util/useResetIconStyle.js +39 -0
- package/lib/Antd5/time-picker/index.js +56 -0
- package/lib/Antd5/time-picker/locale/ar_EG.js +4 -0
- package/lib/Antd5/time-picker/locale/az_AZ.js +4 -0
- package/lib/Antd5/time-picker/locale/bg_BG.js +4 -0
- package/lib/Antd5/time-picker/locale/bn_BD.js +5 -0
- package/lib/Antd5/time-picker/locale/by_BY.js +5 -0
- package/lib/Antd5/time-picker/locale/ca_ES.js +4 -0
- package/lib/Antd5/time-picker/locale/cs_CZ.js +4 -0
- package/lib/Antd5/time-picker/locale/da_DK.js +5 -0
- package/lib/Antd5/time-picker/locale/de_DE.js +5 -0
- package/lib/Antd5/time-picker/locale/el_GR.js +4 -0
- package/lib/Antd5/time-picker/locale/en_GB.js +4 -0
- package/lib/Antd5/time-picker/locale/en_US.js +5 -0
- package/lib/Antd5/time-picker/locale/es_ES.js +4 -0
- package/lib/Antd5/time-picker/locale/et_EE.js +4 -0
- package/lib/Antd5/time-picker/locale/eu_ES.js +4 -0
- package/lib/Antd5/time-picker/locale/fa_IR.js +5 -0
- package/lib/Antd5/time-picker/locale/fi_FI.js +4 -0
- package/lib/Antd5/time-picker/locale/fr_BE.js +5 -0
- package/lib/Antd5/time-picker/locale/fr_CA.js +5 -0
- package/lib/Antd5/time-picker/locale/fr_FR.js +5 -0
- package/lib/Antd5/time-picker/locale/ga_IE.js +5 -0
- package/lib/Antd5/time-picker/locale/gl_ES.js +4 -0
- package/lib/Antd5/time-picker/locale/he_IL.js +4 -0
- package/lib/Antd5/time-picker/locale/hi_IN.js +5 -0
- package/lib/Antd5/time-picker/locale/hr_HR.js +5 -0
- package/lib/Antd5/time-picker/locale/hu_HU.js +4 -0
- package/lib/Antd5/time-picker/locale/id_ID.js +5 -0
- package/lib/Antd5/time-picker/locale/is_IS.js +4 -0
- package/lib/Antd5/time-picker/locale/it_IT.js +4 -0
- package/lib/Antd5/time-picker/locale/ja_JP.js +5 -0
- package/lib/Antd5/time-picker/locale/ka_GE.js +5 -0
- package/lib/Antd5/time-picker/locale/kk_KZ.js +5 -0
- package/lib/Antd5/time-picker/locale/km_KH.js +5 -0
- package/lib/Antd5/time-picker/locale/kmr_IQ.js +4 -0
- package/lib/Antd5/time-picker/locale/kn_IN.js +4 -0
- package/lib/Antd5/time-picker/locale/ko_KR.js +5 -0
- package/lib/Antd5/time-picker/locale/lt_LT.js +5 -0
- package/lib/Antd5/time-picker/locale/lv_LV.js +4 -0
- package/lib/Antd5/time-picker/locale/mk_MK.js +4 -0
- package/lib/Antd5/time-picker/locale/ml_IN.js +5 -0
- package/lib/Antd5/time-picker/locale/mn_MN.js +4 -0
- package/lib/Antd5/time-picker/locale/ms_MY.js +4 -0
- package/lib/Antd5/time-picker/locale/my_MM.js +5 -0
- package/lib/Antd5/time-picker/locale/nb_NO.js +5 -0
- package/lib/Antd5/time-picker/locale/nl_BE.js +5 -0
- package/lib/Antd5/time-picker/locale/nl_NL.js +5 -0
- package/lib/Antd5/time-picker/locale/pl_PL.js +4 -0
- package/lib/Antd5/time-picker/locale/pt_BR.js +4 -0
- package/lib/Antd5/time-picker/locale/pt_PT.js +4 -0
- package/lib/Antd5/time-picker/locale/ro_RO.js +4 -0
- package/lib/Antd5/time-picker/locale/ru_RU.js +5 -0
- package/lib/Antd5/time-picker/locale/si_LK.js +5 -0
- package/lib/Antd5/time-picker/locale/sk_SK.js +4 -0
- package/lib/Antd5/time-picker/locale/sl_SI.js +4 -0
- package/lib/Antd5/time-picker/locale/sr_RS.js +5 -0
- package/lib/Antd5/time-picker/locale/sv_SE.js +4 -0
- package/lib/Antd5/time-picker/locale/ta_IN.js +4 -0
- package/lib/Antd5/time-picker/locale/th_TH.js +4 -0
- package/lib/Antd5/time-picker/locale/tk_TK.js +5 -0
- package/lib/Antd5/time-picker/locale/tr_TR.js +5 -0
- package/lib/Antd5/time-picker/locale/uk_UA.js +4 -0
- package/lib/Antd5/time-picker/locale/ur_PK.js +5 -0
- package/lib/Antd5/time-picker/locale/uz_UZ.js +5 -0
- package/lib/Antd5/time-picker/locale/vi_VN.js +5 -0
- package/lib/Antd5/time-picker/locale/zh_CN.js +5 -0
- package/lib/Antd5/time-picker/locale/zh_TW.js +4 -0
- package/lib/Antd5/timeline/Timeline.js +65 -0
- package/lib/Antd5/timeline/TimelineItem.js +52 -0
- package/lib/Antd5/timeline/TimelineItemList.js +87 -0
- package/lib/Antd5/timeline/index.js +2 -0
- package/lib/Antd5/timeline/style/index.js +157 -0
- package/lib/Antd5/timeline/useItems.js +19 -0
- package/lib/Antd5/tooltip/PurePanel.js +55 -0
- package/lib/Antd5/tooltip/index.js +211 -0
- package/lib/Antd5/tooltip/style/index.js +104 -0
- package/lib/Antd5/tooltip/util.js +23 -0
- package/lib/Antd5/tour/PurePanel.js +78 -0
- package/lib/Antd5/tour/index.js +99 -0
- package/lib/Antd5/tour/interface.js +1 -0
- package/lib/Antd5/tour/panelRender.js +143 -0
- package/lib/Antd5/tour/style/index.js +187 -0
- package/lib/Antd5/transfer/ListBody.js +123 -0
- package/lib/Antd5/transfer/ListItem.js +72 -0
- package/lib/Antd5/transfer/hooks/useData.js +46 -0
- package/lib/Antd5/transfer/hooks/useSelection.js +59 -0
- package/lib/Antd5/transfer/index.js +361 -0
- package/lib/Antd5/transfer/interface.js +1 -0
- package/lib/Antd5/transfer/list.js +316 -0
- package/lib/Antd5/transfer/operation.js +43 -0
- package/lib/Antd5/transfer/search.js +32 -0
- package/lib/Antd5/transfer/style/index.js +264 -0
- package/lib/Antd5/tree/DirectoryTree.js +173 -0
- package/lib/Antd5/tree/Tree.js +123 -0
- package/lib/Antd5/tree/index.js +7 -0
- package/lib/Antd5/tree/style/index.js +348 -0
- package/lib/Antd5/tree/utils/dictUtil.js +74 -0
- package/lib/Antd5/tree/utils/dropIndicator.js +35 -0
- package/lib/Antd5/tree/utils/iconUtil.js +69 -0
- package/lib/Antd5/tree-select/index.js +228 -0
- package/lib/Antd5/tree-select/style/index.js +51 -0
- package/lib/Antd5/typography/Base/CopyBtn.js +43 -0
- package/lib/Antd5/typography/Base/Ellipsis.js +245 -0
- package/lib/Antd5/typography/Base/EllipsisTooltip.js +27 -0
- package/lib/Antd5/typography/Base/index.js +444 -0
- package/lib/Antd5/typography/Base/util.js +12 -0
- package/lib/Antd5/typography/Editable.js +119 -0
- package/lib/Antd5/typography/Link.js +33 -0
- package/lib/Antd5/typography/Paragraph.js +17 -0
- package/lib/Antd5/typography/Text.js +35 -0
- package/lib/Antd5/typography/Title.js +35 -0
- package/lib/Antd5/typography/Typography.js +70 -0
- package/lib/Antd5/typography/hooks/useCopyClick.js +95 -0
- package/lib/Antd5/typography/hooks/useMergedConfig.js +13 -0
- package/lib/Antd5/typography/hooks/usePrevious.js +9 -0
- package/lib/Antd5/typography/hooks/useUpdatedEffect.js +13 -0
- package/lib/Antd5/typography/index.js +11 -0
- package/lib/Antd5/typography/style/index.js +58 -0
- package/lib/Antd5/typography/style/mixins.js +216 -0
- package/lib/Antd5/upload/Dragger.js +32 -0
- package/lib/Antd5/upload/Upload.js +458 -0
- package/lib/Antd5/upload/UploadList/ListItem.js +197 -0
- package/lib/Antd5/upload/UploadList/index.js +250 -0
- package/lib/Antd5/upload/index.js +6 -0
- package/lib/Antd5/upload/interface.js +1 -0
- package/lib/Antd5/upload/style/dragger.js +51 -0
- package/lib/Antd5/upload/style/index.js +48 -0
- package/lib/Antd5/upload/style/list.js +86 -0
- package/lib/Antd5/upload/style/motion.js +39 -0
- package/lib/Antd5/upload/style/picture.js +175 -0
- package/lib/Antd5/upload/style/rtl.js +12 -0
- package/lib/Antd5/upload/utils.js +140 -0
- package/lib/Antd5/version/index.js +4 -0
- package/lib/Antd5/version/token-meta.json +1 -0
- package/lib/Antd5/version/token.json +1 -0
- package/lib/Antd5/version/version.js +1 -0
- package/lib/Antd5/watermark/context.js +22 -0
- package/lib/Antd5/watermark/index.js +253 -0
- package/lib/Antd5/watermark/useClips.js +118 -0
- package/lib/Antd5/watermark/useRafDebounce.js +21 -0
- package/lib/Antd5/watermark/useWatermark.js +61 -0
- package/lib/Antd5/watermark/utils.js +28 -0
- package/lib/App/index.js +2 -0
- package/lib/AutoComplete/index.js +2 -0
- package/lib/Avatar/index.js +2 -0
- package/lib/BackTop/index.js +2 -0
- package/lib/Badge/index.js +48 -0
- package/lib/Badge/index.style.js +65 -0
- package/lib/BasicLayout/Breadcrumb.js +78 -0
- package/lib/BasicLayout/Nav.js +37 -0
- package/lib/BasicLayout/Sider.js +159 -0
- package/lib/BasicLayout/index.js +396 -0
- package/lib/BasicLayout/locale/en_US.js +4 -0
- package/lib/BasicLayout/locale/index.js +11 -0
- package/lib/BasicLayout/locale/zh_CN.js +4 -0
- package/lib/BasicLayout/locale/zh_TW.js +4 -0
- package/lib/BasicLayout/style/index.js +101 -0
- package/lib/BasicLayout/style/sider.js +73 -0
- package/lib/BasicLayout/utils.js +7 -0
- package/lib/Breadcrumb/index.js +2 -0
- package/lib/Button/index.js +53 -0
- package/lib/Button/index.style.js +41 -0
- package/lib/CWCascader/Cascader/index.js +281 -0
- package/lib/CWCascader/Cascader/utils/iconUtil.js +81 -0
- package/lib/CWCascader/Cascader/utils/motion.js +13 -0
- package/lib/CWCascader/index.js +73 -0
- package/lib/CWCascader/index.style.js +42 -0
- package/lib/CWCascader/rc-cascader/Cascader.js +353 -0
- package/lib/CWCascader/rc-cascader/OptionList/Checkbox.js +21 -0
- package/lib/CWCascader/rc-cascader/OptionList/Column.js +274 -0
- package/lib/CWCascader/rc-cascader/OptionList/index.js +220 -0
- package/lib/CWCascader/rc-cascader/OptionList/useActive.js +33 -0
- package/lib/CWCascader/rc-cascader/OptionList/useKeyboard.js +172 -0
- package/lib/CWCascader/rc-cascader/context.js +3 -0
- package/lib/CWCascader/rc-cascader/hooks/useDisplayValues.js +85 -0
- package/lib/CWCascader/rc-cascader/hooks/useEntities.js +40 -0
- package/lib/CWCascader/rc-cascader/hooks/useMissingValues.js +19 -0
- package/lib/CWCascader/rc-cascader/hooks/useRefFunc.js +13 -0
- package/lib/CWCascader/rc-cascader/hooks/useSearchConfig.js +30 -0
- package/lib/CWCascader/rc-cascader/hooks/useSearchOptions.js +73 -0
- package/lib/CWCascader/rc-cascader/index.js +2 -0
- package/lib/CWCascader/rc-cascader/utils/commonUtil.js +54 -0
- package/lib/CWCascader/rc-cascader/utils/treeUtil.js +81 -0
- package/lib/CWCascader/rc-cascader/utils/warningPropsUtil.js +30 -0
- package/lib/CWColorPicker/SketchPicker/components/common/Alpha.js +132 -0
- package/lib/CWColorPicker/SketchPicker/components/common/Checkboard.js +40 -0
- package/lib/CWColorPicker/SketchPicker/components/common/ColorWrap.js +79 -0
- package/lib/CWColorPicker/SketchPicker/components/common/EditableInput.js +171 -0
- package/lib/CWColorPicker/SketchPicker/components/common/Hue.js +117 -0
- package/lib/CWColorPicker/SketchPicker/components/common/Raised.js +91 -0
- package/lib/CWColorPicker/SketchPicker/components/common/Saturation.js +138 -0
- package/lib/CWColorPicker/SketchPicker/components/common/Swatch.js +62 -0
- package/lib/CWColorPicker/SketchPicker/components/common/index.js +8 -0
- package/lib/CWColorPicker/SketchPicker/components/sketch/SketchFields.js +148 -0
- package/lib/CWColorPicker/SketchPicker/components/sketch/SketchPresetColors.js +72 -0
- package/lib/CWColorPicker/SketchPicker/components/sketch/index.js +160 -0
- package/lib/CWColorPicker/SketchPicker/helpers/alpha.js +46 -0
- package/lib/CWColorPicker/SketchPicker/helpers/checkboard.js +29 -0
- package/lib/CWColorPicker/SketchPicker/helpers/color.js +86 -0
- package/lib/CWColorPicker/SketchPicker/helpers/hue.js +48 -0
- package/lib/CWColorPicker/SketchPicker/helpers/index.js +2 -0
- package/lib/CWColorPicker/SketchPicker/helpers/interaction.js +54 -0
- package/lib/CWColorPicker/SketchPicker/helpers/saturation.js +28 -0
- package/lib/CWColorPicker/index.js +296 -0
- package/lib/CWColorPicker/index.style.js +81 -0
- package/lib/CWColorPicker/utils.js +15 -0
- package/lib/CWMessage/CommonIcon.js +16 -0
- package/lib/CWMessage/MessageContent/TabList/index.js +113 -0
- package/lib/CWMessage/MessageContent/index.js +269 -0
- package/lib/CWMessage/index.js +456 -0
- package/lib/CWMessage/index.style.js +141 -0
- package/lib/CWMessage/message.svg +14 -0
- package/lib/CWMessage/messageSvg.js +19 -0
- package/lib/CWMessage/service/index.js +35 -0
- package/lib/CWMessage/utils/index.js +33 -0
- package/lib/CWRadioTabs/index.js +150 -0
- package/lib/CWRadioTabs/index.style.js +33 -0
- package/lib/CWRangePicker/DropdownMenu/MoreHistoryList/index.js +37 -0
- package/lib/CWRangePicker/DropdownMenu/MoreTimeList/index.js +46 -0
- package/lib/CWRangePicker/DropdownMenu/index.js +240 -0
- package/lib/CWRangePicker/DropdownMenu/index.style.js +159 -0
- package/lib/CWRangePicker/Refresh/index.js +161 -0
- package/lib/CWRangePicker/Refresh/index.style.js +37 -0
- package/lib/CWRangePicker/TimeSpan/index.js +96 -0
- package/lib/CWRangePicker/TimeSpan/index.style.js +25 -0
- package/lib/CWRangePicker/assets/Calendar.js +15 -0
- package/lib/CWRangePicker/assets/Calendar2.js +15 -0
- package/lib/CWRangePicker/assets/Recover.js +18 -0
- package/lib/CWRangePicker/assets/Refresh1.js +14 -0
- package/lib/CWRangePicker/assets/Refresh2.js +14 -0
- package/lib/CWRangePicker/assets/Refresh3.js +14 -0
- package/lib/CWRangePicker/assets/live.js +19 -0
- package/lib/CWRangePicker/assets/more.js +23 -0
- package/lib/CWRangePicker/index.js +742 -0
- package/lib/CWRangePicker/index.style.js +78 -0
- package/lib/CWRangePicker/locale/en_US.js +29 -0
- package/lib/CWRangePicker/locale/index.js +11 -0
- package/lib/CWRangePicker/locale/zh_CN.js +29 -0
- package/lib/CWRangePicker/locale/zh_TW.js +29 -0
- package/lib/CWRangePicker/utils/index.js +706 -0
- package/lib/CWSelect/index.js +2 -0
- package/lib/CWTable/CWTable.js +605 -0
- package/lib/CWTable/header.js +55 -0
- package/lib/CWTable/index.js +217 -0
- package/lib/CWTable/index.style.js +96 -0
- package/lib/CWTree/assets/Drag.js +23 -0
- package/lib/CWTree/index.js +399 -0
- package/lib/CWTree/index.style.js +127 -0
- package/lib/CWTree/locale/en_US.js +3 -0
- package/lib/CWTree/locale/index.js +11 -0
- package/lib/CWTree/locale/zh_CN.js +3 -0
- package/lib/CWTree/locale/zh_TW.js +3 -0
- package/lib/CWTree/utils/index.js +99 -0
- package/lib/Calendar/index.js +2 -0
- package/lib/Card/index.js +2 -0
- package/lib/CardSelect/index.js +153 -0
- package/lib/CardSelect/index.style.js +76 -0
- package/lib/Carousel/index.js +2 -0
- package/lib/Cascader/index.js +2 -0
- package/lib/ChangeIcon/index.js +153 -0
- package/lib/ChangeIcon/index.style.js +89 -0
- package/lib/Checkbox/index.js +2 -0
- package/lib/CitySelect/citys.js +1457 -0
- package/lib/CitySelect/index.js +128 -0
- package/lib/Col/index.js +2 -0
- package/lib/Collapse/index.js +85 -0
- package/lib/Collapse/index.style.js +120 -0
- package/lib/ColorPicker/index.js +2 -0
- package/lib/ConfigProvider/ConfigProvider.js +92 -0
- package/lib/ConfigProvider/Switch.js +43 -0
- package/lib/ConfigProvider/customTheme.js +268 -0
- package/lib/ConfigProvider/customTheme.json +163 -0
- package/lib/ConfigProvider/customToken.js +41 -0
- package/lib/ConfigProvider/index.js +6 -0
- package/lib/ConfigProvider/intlContext.js +8 -0
- package/lib/ConfigProvider/useLocale.js +15 -0
- package/lib/CustomScrollBar/index.js +150 -0
- package/lib/DataView/index.js +72 -0
- package/lib/DataView/index.style.js +34 -0
- package/lib/DatePicker/index.js +2 -0
- package/lib/DemoShow/index.js +15 -0
- package/lib/Descriptions/index.js +2 -0
- package/lib/Divider/index.js +2 -0
- package/lib/Documentation/Tocify.js +114 -0
- package/lib/Documentation/index.js +147 -0
- package/lib/Documentation/index.style.js +180 -0
- package/lib/Drawer/index.js +107 -0
- package/lib/Drawer/index.style.js +93 -0
- package/lib/Dropdown/DropdownButton.js +20 -0
- package/lib/Dropdown/index.js +39 -0
- package/lib/Dropdown/index.style.js +22 -0
- package/lib/EchartsArea/index.js +113 -0
- package/lib/EchartsBar/index.js +212 -0
- package/lib/EchartsBarRow/index.js +86 -0
- package/lib/EchartsBase/index.js +217 -0
- package/lib/EchartsLine/index.js +173 -0
- package/lib/EchartsPie/index.js +121 -0
- package/lib/EchartsRing/index.js +102 -0
- package/lib/Empty/index.js +70 -0
- package/lib/Empty/index.style.js +36 -0
- package/lib/ErrorBoundary/ErrorPage.js +35 -0
- package/lib/ErrorBoundary/assets/images/No-data.png +0 -0
- package/lib/ErrorBoundary/history.js +81 -0
- package/lib/ErrorBoundary/index.js +93 -0
- package/lib/ErrorBoundary/index.styles.js +48 -0
- package/lib/Exception/images/error.svg +58 -0
- package/lib/Exception/index.js +99 -0
- package/lib/Exception/index.style.js +37 -0
- package/lib/FilterDropDown/DragList.js +106 -0
- package/lib/FilterDropDown/assets/DragSvg.js +33 -0
- package/lib/FilterDropDown/assets/ShowSvgIcon.js +14 -0
- package/lib/FilterDropDown/index.js +271 -0
- package/lib/FilterDropDown/index.style.js +83 -0
- package/lib/Flex/index.js +2 -0
- package/lib/FloatButton/index.js +2 -0
- package/lib/Flow/BasicLayout/Chain.js +112 -0
- package/lib/Flow/BasicLayout/config.js +21 -0
- package/lib/Flow/BasicLayout/util.js +106 -0
- package/lib/Flow/Flow.js +183 -0
- package/lib/Flow/commons/initCommands.js +150 -0
- package/lib/Flow/components/PluginWrapper.js +25 -0
- package/lib/Flow/index.js +7 -0
- package/lib/Flow/layouts/callChain.js +121 -0
- package/lib/Flow/layouts/index.js +4 -0
- package/lib/Flow/plugins/CommandLifeCycle.js +215 -0
- package/lib/Flow/plugins/InitSideBarPlugin.js +81 -0
- package/lib/Flow/plugins/InitToolBarPlugin.js +99 -0
- package/lib/Flow/shape/index.js +4 -0
- package/lib/Flow/shape/nodes/baseNode.js +99 -0
- package/lib/Flow/shape/nodes/index.js +4 -0
- package/lib/Flow/tools/index.js +22 -0
- package/lib/Flow/types/index.js +1 -0
- package/lib/Form/FormItem.js +79 -0
- package/lib/Form/consts.js +2 -0
- package/lib/Form/context.js +3 -0
- package/lib/Form/hook/useForm3.js +117 -0
- package/lib/Form/index.js +77 -0
- package/lib/Form/index.style.js +56 -0
- package/lib/FormItemWrapper/index.js +52 -0
- package/lib/FormItemWrapper/index.style.js +32 -0
- package/lib/GlobalTabs/index.js +49 -0
- package/lib/GlobalTabs/index.style.js +31 -0
- package/lib/Grid/index.js +2 -0
- package/lib/Header/CommonDropMenu.js +90 -0
- package/lib/Header/CommonIcon.js +26 -0
- package/lib/Header/Document/icon.svg +14 -0
- package/lib/Header/Document/index.js +29 -0
- package/lib/Header/LocaleSwitcher.js +41 -0
- package/lib/Header/Message/index.js +21 -0
- package/lib/Header/TopNavigationMenu/index.js +73 -0
- package/lib/Header/TopNavigationMenu/index.style.js +47 -0
- package/lib/Header/UserSetting/TenantList.js +26 -0
- package/lib/Header/UserSetting/TenantTree.js +33 -0
- package/lib/Header/UserSetting/index.js +202 -0
- package/lib/Header/UserSetting/index.style.js +60 -0
- package/lib/Header/UserSetting/utils.js +30 -0
- package/lib/Header/assets/home.svg +13 -0
- package/lib/Header/assets/logo.svg +20 -0
- package/lib/Header/index.js +320 -0
- package/lib/Header/index.style.js +154 -0
- package/lib/Icon/index.js +23 -0
- package/lib/Icon/utils.js +20 -0
- package/lib/IconSelect/components/CustomImg/index.js +84 -0
- package/lib/IconSelect/components/SearchIcon/index.js +98 -0
- package/lib/IconSelect/constants/icon.js +13291 -0
- package/lib/IconSelect/index.js +144 -0
- package/lib/IconSelect/index.style.js +75 -0
- package/lib/Image/index.js +2 -0
- package/lib/Input/InputComponent.js +71 -0
- package/lib/Input/index.js +93 -0
- package/lib/Input/index.style.js +23 -0
- package/lib/InputNumber/index.js +27 -0
- package/lib/Joyride/List.js +85 -0
- package/lib/Joyride/img/finishImg.png +0 -0
- package/lib/Joyride/img/welcomeImg.png +0 -0
- package/lib/Joyride/index.js +448 -0
- package/lib/Joyride/style/index.style.js +67 -0
- package/lib/Joyride/style/list.style.js +115 -0
- package/lib/Layout/index.js +2 -0
- package/lib/LayoutWrapper/Footer.js +31 -0
- package/lib/LayoutWrapper/Header.js +59 -0
- package/lib/LayoutWrapper/LeftArrow.js +17 -0
- package/lib/LayoutWrapper/assets/left-arrow.svg +21 -0
- package/lib/LayoutWrapper/index.js +196 -0
- package/lib/LayoutWrapper/style/footer.js +25 -0
- package/lib/LayoutWrapper/style/header.js +46 -0
- package/lib/LayoutWrapper/style/index.js +58 -0
- package/lib/LeftNavigation/index.js +80 -0
- package/lib/LeftNavigation/index.style.js +34 -0
- package/lib/List/index.js +2 -0
- package/lib/Mentions/index.js +2 -0
- package/lib/Menu/index.js +2 -0
- package/lib/Modal/Modal.js +176 -0
- package/lib/Modal/assets/Close.js +22 -0
- package/lib/Modal/confirmGlobalStyle.js +37 -0
- package/lib/Modal/custom-backup/entiretyDrag.js +142 -0
- package/lib/Modal/custom-backup/index.less +76 -0
- package/lib/Modal/index.js +274 -0
- package/lib/Modal/index.style.js +53 -0
- package/lib/ModuleFederation/ErrorBoundary/index.js +52 -0
- package/lib/ModuleFederation/index.js +10 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +185 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/attach-script.js +42 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/index.js +1 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +44 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/loading-script.js +35 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/suspend.js +28 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/utils.js +7 -0
- package/lib/ModuleTitle/index.js +30 -0
- package/lib/ModuleTitle/index.style.js +34 -0
- package/lib/Overview/index.js +2 -0
- package/lib/Pagination/index.js +363 -0
- package/lib/Pagination/index.style.js +137 -0
- package/lib/Popconfirm/index.js +2 -0
- package/lib/Popover/index.js +2 -0
- package/lib/Progress/index.js +2 -0
- package/lib/QrCode/index.js +2 -0
- package/lib/QuickRangePicker/index.js +149 -0
- package/lib/QuickRangePicker/index.style.js +45 -0
- package/lib/QuickTransfer/Drag.js +56 -0
- package/lib/QuickTransfer/DragList.js +114 -0
- package/lib/QuickTransfer/NoDrag.js +33 -0
- package/lib/QuickTransfer/NotDragList.js +41 -0
- package/lib/QuickTransfer/assets/DragSvg.js +14 -0
- package/lib/QuickTransfer/assets/LockSvg.js +15 -0
- package/lib/QuickTransfer/index.js +938 -0
- package/lib/QuickTransfer/index.style.js +185 -0
- package/lib/QuickTransfer/utils.js +291 -0
- package/lib/Radio/index.js +2 -0
- package/lib/RangePicker/index.js +2 -0
- package/lib/Rate/index.js +2 -0
- package/lib/Result/index.js +2 -0
- package/lib/Row/index.js +2 -0
- package/lib/ScrollLoad/index.js +134 -0
- package/lib/SearchBar/OutSearch.js +107 -0
- package/lib/SearchBar/index.js +680 -0
- package/lib/SearchBar/index.style.js +91 -0
- package/lib/SearchBar/locale/en_US.js +6 -0
- package/lib/SearchBar/locale/index.js +11 -0
- package/lib/SearchBar/locale/zh_CN.js +6 -0
- package/lib/SearchBar/locale/zh_TW.js +6 -0
- package/lib/Segmented/index.js +2 -0
- package/lib/Select/index.js +2 -0
- package/lib/SiderMenu/index.js +215 -0
- package/lib/SiderMenu/index.style.js +23 -0
- package/lib/SimpleCard/index.js +121 -0
- package/lib/SimpleCard/index.style.js +76 -0
- package/lib/SimplePagination/index.js +188 -0
- package/lib/SimplePagination/index.style.js +105 -0
- package/lib/SingleSpa/import-html/index.js +51 -0
- package/lib/SingleSpa/import-html/process-tpl.js +189 -0
- package/lib/SingleSpa/import-html/utils.js +147 -0
- package/lib/SingleSpa/index.js +131 -0
- package/lib/SingleSpa/singleSpa/single-spa.dev.js +1505 -0
- package/lib/SingleSpa/system/amd.js +153 -0
- package/lib/SingleSpa/system/index.js +11 -0
- package/lib/SingleSpa/system/system.js +771 -0
- package/lib/SingleSpa/system/systemjs-css.js +96 -0
- package/lib/SingleSpa/utils.js +73 -0
- package/lib/Skeleton/index.js +2 -0
- package/lib/Slider/assets/slider.png +0 -0
- package/lib/Slider/index.js +32 -0
- package/lib/Slider/index.style.js +116 -0
- package/lib/Space/index.js +2 -0
- package/lib/Spin/index.js +2 -0
- package/lib/Statistic/index.js +2 -0
- package/lib/Steps/index.js +2 -0
- package/lib/Switch/index.js +2 -0
- package/lib/Table/index.js +2 -0
- package/lib/Tabs/index.js +52 -0
- package/lib/Tabs/index.style.js +58 -0
- package/lib/Tag/CheckableTag.js +53 -0
- package/lib/Tag/assets/LeftBottomCorner.js +22 -0
- package/lib/Tag/assets/LeftTopCorner.js +22 -0
- package/lib/Tag/assets/RightBottomCorner.js +22 -0
- package/lib/Tag/assets/RightTopCorner.js +14 -0
- package/lib/Tag/index.js +109 -0
- package/lib/Tag/index.style.js +156 -0
- package/lib/Theme/index.js +2 -0
- package/lib/ThemeProvider/Switcher.js +25 -0
- package/lib/ThemeProvider/index.js +5 -0
- package/lib/ThemeProvider/main.js +185 -0
- package/lib/ThemeProvider/utils.js +60 -0
- package/lib/TimePicker/index.js +2 -0
- package/lib/Timeline/index.js +2 -0
- package/lib/Tooltip/index.js +54 -0
- package/lib/Tooltip/index.style.js +23 -0
- package/lib/TooltipText/ResizeObserverManager.js +56 -0
- package/lib/TooltipText/index.js +138 -0
- package/lib/TooltipText/index.style.js +46 -0
- package/lib/Tour/index.js +2 -0
- package/lib/Transfer/index.js +2 -0
- package/lib/Tree/index.js +2 -0
- package/lib/TreeSelect/index.js +2 -0
- package/lib/Typography/index.js +2 -0
- package/lib/Upload/index.js +2 -0
- package/lib/WangEditor/editor4.js +652 -0
- package/lib/WangEditor/index.js +298 -0
- package/lib/WangEditor/index.style.js +203 -0
- package/lib/WangEditor/locale/index.js +62 -0
- package/lib/WangEditor/release/wangEditor.js +5390 -0
- package/lib/WangEditor/resizeable.js +112 -0
- package/lib/WangEditor/usePreview.js +39 -0
- package/lib/WangEditor/wangEditor.js +4627 -0
- package/lib/Watermark/index.js +2 -0
- package/lib/antd-style/context/ThemeModeContext.js +11 -0
- package/lib/antd-style/context/index.js +1 -0
- package/lib/antd-style/core/CacheManager.js +56 -0
- package/lib/antd-style/core/createCSS.js +42 -0
- package/lib/antd-style/core/createEmotion.js +1 -0
- package/lib/antd-style/core/createSerializeStyles.js +11 -0
- package/lib/antd-style/core/index.js +5 -0
- package/lib/antd-style/core/insertStyles.js +35 -0
- package/lib/antd-style/factories/createEmotionContext.js +4 -0
- package/lib/antd-style/factories/createGlobalStyle.js +28 -0
- package/lib/antd-style/factories/createStyish.js +14 -0
- package/lib/antd-style/factories/createStyleProvider/index.js +69 -0
- package/lib/antd-style/factories/createStyledThemeProvider.js +16 -0
- package/lib/antd-style/factories/createStyles/index.js +114 -0
- package/lib/antd-style/factories/createStyles/response.js +43 -0
- package/lib/antd-style/factories/createStyles/types.js +1 -0
- package/lib/antd-style/factories/createThemeProvider/AntdProvider.js +78 -0
- package/lib/antd-style/factories/createThemeProvider/ThemeSwitcher.js +130 -0
- package/lib/antd-style/factories/createThemeProvider/TokenContainer.js +75 -0
- package/lib/antd-style/factories/createThemeProvider/index.js +77 -0
- package/lib/antd-style/factories/createThemeProvider/type.js +1 -0
- package/lib/antd-style/factories/createUseTheme.js +33 -0
- package/lib/antd-style/functions/createInstance.js +95 -0
- package/lib/antd-style/functions/extractStaticStyle.js +63 -0
- package/lib/antd-style/functions/index.js +21 -0
- package/lib/antd-style/functions/setupStyled.js +11 -0
- package/lib/antd-style/hooks/index.js +5 -0
- package/lib/antd-style/hooks/useAntdStylish.js +20 -0
- package/lib/antd-style/hooks/useAntdTheme.js +18 -0
- package/lib/antd-style/hooks/useAntdToken.js +6 -0
- package/lib/antd-style/hooks/useResponsive.js +9 -0
- package/lib/antd-style/hooks/useThemeMode.js +5 -0
- package/lib/antd-style/index.js +5 -0
- package/lib/antd-style/stylish/button.js +19 -0
- package/lib/antd-style/types/appearance.js +1 -0
- package/lib/antd-style/types/css.js +1 -0
- package/lib/antd-style/types/function.js +1 -0
- package/lib/antd-style/types/genericUtils.js +1 -0
- package/lib/antd-style/types/index.js +8 -0
- package/lib/antd-style/types/response.js +1 -0
- package/lib/antd-style/types/styleManager.js +1 -0
- package/lib/antd-style/types/styled.js +1 -0
- package/lib/antd-style/types/theme.js +1 -0
- package/lib/antd-style/utils/convertStylish.js +18 -0
- package/lib/antd-style/utils/css.js +59 -0
- package/lib/antd-style/utils/css.test.js +20 -0
- package/lib/antd-style/utils/index.js +1 -0
- package/lib/antd-style/utils/matchBrowserPrefers.js +9 -0
- package/lib/antd-style/utils/responsive.js +14 -0
- package/lib/antd-style/utils/safeStartTransition.js +8 -0
- package/lib/configHoc/index.js +23 -0
- package/lib/index.js +5 -0
- package/lib/locales/en_US.json +78 -0
- package/lib/locales/index.js +57 -0
- package/lib/locales/intl.js +46 -0
- package/lib/locales/zh_CN.json +78 -0
- package/lib/locales/zh_TW.json +78 -0
- package/lib/message/index.js +2 -0
- package/lib/noticeManager/event.js +52 -0
- package/lib/noticeManager/globalState.js +26 -0
- package/lib/noticeManager/index.js +16 -0
- package/lib/notification/index.js +2 -0
- package/lib/portalNoticeManager/event.js +52 -0
- package/lib/portalNoticeManager/index.js +14 -0
- package/lib/portalNoticeManager/usePortalDispatchNotice.js +37 -0
- package/lib/portalNoticeManager/withPortalDispatchNotice.js +10 -0
- package/lib/treeLoad/index.js +43 -0
- package/lib/useChartTheme/index.js +36 -0
- package/lib/useConfigContext/index.js +6 -0
- package/lib/utils/index.js +90 -0
- package/package.json +1 -1
|
@@ -0,0 +1,652 @@
|
|
|
1
|
+
var _excluded = ["isSeparation", "customAlert", "htmlContent", "appendHtmlContent", "getHtml", "getText", "getJSON", "setJSON", "clearContent", "compatibleMode", "highLight", "fullScreen", "onChange", "onFocus", "onBlur", "linkImgCallback", "onlineVideoCallback", "onlineVideoCheck", "linkCheck", "pasteTextHandle", "customUploadImg", "customUploadVideo", "disable", "onCatalogChange", "headId"];
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
4
|
+
import React, { useEffect, Fragment } from 'react';
|
|
5
|
+
import E from 'wangeditor';
|
|
6
|
+
import hljs from 'highlight.js';
|
|
7
|
+
import 'highlight.js/styles/monokai-sublime.css';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import './index.less';
|
|
10
|
+
var editor = null;
|
|
11
|
+
function WangEditor(_ref) {
|
|
12
|
+
var _ref$isSeparation = _ref.isSeparation,
|
|
13
|
+
isSeparation = _ref$isSeparation === void 0 ? false : _ref$isSeparation,
|
|
14
|
+
_ref$customAlert = _ref.customAlert,
|
|
15
|
+
_customAlert = _ref$customAlert === void 0 ? function () {} : _ref$customAlert,
|
|
16
|
+
_ref$htmlContent = _ref.htmlContent,
|
|
17
|
+
htmlContent = _ref$htmlContent === void 0 ? '' : _ref$htmlContent,
|
|
18
|
+
_ref$appendHtmlConten = _ref.appendHtmlContent,
|
|
19
|
+
appendHtmlContent = _ref$appendHtmlConten === void 0 ? '' : _ref$appendHtmlConten,
|
|
20
|
+
_ref$getHtml = _ref.getHtml,
|
|
21
|
+
_getHtml = _ref$getHtml === void 0 ? function () {} : _ref$getHtml,
|
|
22
|
+
_ref$getText = _ref.getText,
|
|
23
|
+
_getText = _ref$getText === void 0 ? function () {} : _ref$getText,
|
|
24
|
+
_ref$getJSON = _ref.getJSON,
|
|
25
|
+
_getJSON = _ref$getJSON === void 0 ? function () {} : _ref$getJSON,
|
|
26
|
+
setJSON = _ref.setJSON,
|
|
27
|
+
_ref$clearContent = _ref.clearContent,
|
|
28
|
+
clearContent = _ref$clearContent === void 0 ? false : _ref$clearContent,
|
|
29
|
+
_ref$compatibleMode = _ref.compatibleMode,
|
|
30
|
+
_compatibleMode = _ref$compatibleMode === void 0 ? function () {} : _ref$compatibleMode,
|
|
31
|
+
_ref$highLight = _ref.highLight,
|
|
32
|
+
highLight = _ref$highLight === void 0 ? true : _ref$highLight,
|
|
33
|
+
_ref$fullScreen = _ref.fullScreen,
|
|
34
|
+
fullScreen = _ref$fullScreen === void 0 ? '' : _ref$fullScreen,
|
|
35
|
+
_ref$onChange = _ref.onChange,
|
|
36
|
+
_onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
|
|
37
|
+
_ref$onFocus = _ref.onFocus,
|
|
38
|
+
_onFocus = _ref$onFocus === void 0 ? function () {} : _ref$onFocus,
|
|
39
|
+
_ref$onBlur = _ref.onBlur,
|
|
40
|
+
_onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
|
|
41
|
+
_ref$linkImgCallback = _ref.linkImgCallback,
|
|
42
|
+
_linkImgCallback = _ref$linkImgCallback === void 0 ? function () {} : _ref$linkImgCallback,
|
|
43
|
+
_ref$onlineVideoCallb = _ref.onlineVideoCallback,
|
|
44
|
+
_onlineVideoCallback = _ref$onlineVideoCallb === void 0 ? function () {} : _ref$onlineVideoCallb,
|
|
45
|
+
onlineVideoCheck = _ref.onlineVideoCheck,
|
|
46
|
+
linkCheck = _ref.linkCheck,
|
|
47
|
+
pasteTextHandle = _ref.pasteTextHandle,
|
|
48
|
+
customUploadImg = _ref.customUploadImg,
|
|
49
|
+
customUploadVideo = _ref.customUploadVideo,
|
|
50
|
+
_ref$disable = _ref.disable,
|
|
51
|
+
disable = _ref$disable === void 0 ? false : _ref$disable,
|
|
52
|
+
_ref$onCatalogChange = _ref.onCatalogChange,
|
|
53
|
+
_onCatalogChange = _ref$onCatalogChange === void 0 ? function () {} : _ref$onCatalogChange,
|
|
54
|
+
_ref$headId = _ref.headId,
|
|
55
|
+
headId = _ref$headId === void 0 ? '' : _ref$headId,
|
|
56
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
57
|
+
useEffect(function () {
|
|
58
|
+
//菜单和编辑器是否分离
|
|
59
|
+
if (isSeparation) {
|
|
60
|
+
editor = new E('#cw-toolbar-container', '#cw-text-container');
|
|
61
|
+
} else {
|
|
62
|
+
editor = new E('#cw-editor');
|
|
63
|
+
}
|
|
64
|
+
for (var i in rest) {
|
|
65
|
+
editor.config[i] = rest[i];
|
|
66
|
+
}
|
|
67
|
+
//自定义alert
|
|
68
|
+
editor.config.customAlert = function (s, t) {
|
|
69
|
+
_customAlert(s, t);
|
|
70
|
+
};
|
|
71
|
+
//配置历史记录
|
|
72
|
+
editor.config.compatibleMode = function () {
|
|
73
|
+
_compatibleMode();
|
|
74
|
+
};
|
|
75
|
+
if (highLight) {
|
|
76
|
+
editor.highlight = hljs;
|
|
77
|
+
}
|
|
78
|
+
//开启还是关闭全屏
|
|
79
|
+
if (fullScreen === 'open') {
|
|
80
|
+
editor.fullScreen();
|
|
81
|
+
} else if (fullScreen === 'close') {
|
|
82
|
+
editor.unFullScreen();
|
|
83
|
+
}
|
|
84
|
+
//输入的回调
|
|
85
|
+
editor.config.onchange = function (html) {
|
|
86
|
+
_onChange(html);
|
|
87
|
+
};
|
|
88
|
+
//聚焦的回调
|
|
89
|
+
editor.config.onfocus = function (html) {
|
|
90
|
+
_onFocus(html);
|
|
91
|
+
};
|
|
92
|
+
//失焦的回调
|
|
93
|
+
editor.config.onblur = function (html) {
|
|
94
|
+
_onBlur(html);
|
|
95
|
+
};
|
|
96
|
+
//插入网络图片的回调
|
|
97
|
+
editor.config.linkImgCallback = function (src, alt, href) {
|
|
98
|
+
_linkImgCallback(src, alt, href);
|
|
99
|
+
};
|
|
100
|
+
//插入网络视频的回调
|
|
101
|
+
editor.config.onlineVideoCallback = function (video) {
|
|
102
|
+
_onlineVideoCallback(video);
|
|
103
|
+
};
|
|
104
|
+
//插入链接的校验
|
|
105
|
+
if (linkCheck) {
|
|
106
|
+
editor.config.linkCheck = function (text, link) {
|
|
107
|
+
linkCheck(text, link);
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
if (onlineVideoCheck) {
|
|
111
|
+
//插入网络视频的校验
|
|
112
|
+
editor.config.onlineVideoCheck = function (video) {
|
|
113
|
+
onlineVideoCheck(video);
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
// 配置粘贴文本的内容处理
|
|
117
|
+
if (pasteTextHandle) {
|
|
118
|
+
editor.config.pasteTextHandle = function (pasteStr) {
|
|
119
|
+
pasteTextHandle(pasteStr);
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
//自己实现上传图片
|
|
123
|
+
if (customUploadImg) {
|
|
124
|
+
editor.config.customUploadImg = function (resultFiles, insertImgFn) {
|
|
125
|
+
customUploadImg(resultFiles, insertImgFn);
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
//自己实现上传视频
|
|
129
|
+
if (customUploadVideo) {
|
|
130
|
+
editor.config.customUploadVideo = function (resultFiles, insertVideoFn) {
|
|
131
|
+
customUploadVideo(resultFiles, insertVideoFn);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
//获取所有标题
|
|
135
|
+
editor.config.onCatalogChange = function (headList) {
|
|
136
|
+
_onCatalogChange(headList);
|
|
137
|
+
};
|
|
138
|
+
editor.create();
|
|
139
|
+
|
|
140
|
+
//设置编辑器内容
|
|
141
|
+
if (htmlContent) {
|
|
142
|
+
editor.txt.html(htmlContent);
|
|
143
|
+
}
|
|
144
|
+
//追加内容
|
|
145
|
+
if (appendHtmlContent) {
|
|
146
|
+
editor.txt.append(appendHtmlContent);
|
|
147
|
+
}
|
|
148
|
+
// 获取html
|
|
149
|
+
_getHtml(editor.txt.html());
|
|
150
|
+
//获取text
|
|
151
|
+
_getText(editor.txt.text());
|
|
152
|
+
//获取JSON
|
|
153
|
+
_getJSON(editor.txt.getJSON());
|
|
154
|
+
//设置JSON
|
|
155
|
+
if (setJSON) {
|
|
156
|
+
editor.txt.setJSON(setJSON);
|
|
157
|
+
}
|
|
158
|
+
// 清空编辑器内容
|
|
159
|
+
if (clearContent) {
|
|
160
|
+
editor.txt.clear();
|
|
161
|
+
}
|
|
162
|
+
//是否禁用编辑器
|
|
163
|
+
if (disable) {
|
|
164
|
+
editor.disable();
|
|
165
|
+
} else {
|
|
166
|
+
editor.enable();
|
|
167
|
+
}
|
|
168
|
+
//获取所有标题
|
|
169
|
+
|
|
170
|
+
if (headId) {
|
|
171
|
+
editor.scrollToHead(headId);
|
|
172
|
+
}
|
|
173
|
+
return function () {
|
|
174
|
+
editor.destroy();
|
|
175
|
+
};
|
|
176
|
+
}, []);
|
|
177
|
+
return /*#__PURE__*/React.createElement("div", null, !isSeparation ? /*#__PURE__*/React.createElement("div", {
|
|
178
|
+
id: "cw-editor"
|
|
179
|
+
}) : /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
180
|
+
id: "cw-toolbar-container",
|
|
181
|
+
className: "cw-toolbar"
|
|
182
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
183
|
+
id: "cw-text-container",
|
|
184
|
+
className: "cw-text"
|
|
185
|
+
})));
|
|
186
|
+
}
|
|
187
|
+
WangEditor.propTypes = {
|
|
188
|
+
/**
|
|
189
|
+
* 设置高度,默认为300px
|
|
190
|
+
*/
|
|
191
|
+
height: PropTypes.number,
|
|
192
|
+
/**
|
|
193
|
+
* 菜单和编辑区是否分离
|
|
194
|
+
*/
|
|
195
|
+
isSeparation: PropTypes.bool,
|
|
196
|
+
/**
|
|
197
|
+
* 编辑器 z-index 默认为 10000,可以自行调整。
|
|
198
|
+
*/
|
|
199
|
+
zIndex: PropTypes.number,
|
|
200
|
+
/**
|
|
201
|
+
* 可以修改 placeholder 的提示文字。
|
|
202
|
+
*/
|
|
203
|
+
placeholder: PropTypes.string,
|
|
204
|
+
/**
|
|
205
|
+
* 编辑器初始化时,默认会自动 focus 到编辑区域,设置为false取消自动 focus
|
|
206
|
+
*/
|
|
207
|
+
focus: PropTypes.bool,
|
|
208
|
+
/**
|
|
209
|
+
* 编辑器 customAlert 是对全局的alert做了统一处理,默认为 window.alert。
|
|
210
|
+
* 如觉得浏览器自带的alert体验不佳,可自定义 alert,以便于达到与自身项目统一的alert效果。
|
|
211
|
+
* function(s,t){ switch(t) { case 'success': break }}
|
|
212
|
+
*/
|
|
213
|
+
customAlert: PropTypes.func,
|
|
214
|
+
/**
|
|
215
|
+
* 设置编辑器的内容
|
|
216
|
+
*/
|
|
217
|
+
htmlContent: PropTypes.string,
|
|
218
|
+
/**
|
|
219
|
+
* 追加新内容
|
|
220
|
+
*/
|
|
221
|
+
appendHtmlContent: PropTypes.string,
|
|
222
|
+
/**
|
|
223
|
+
* 获取html,需要注意的是:从编辑器中获取的 html 代码是不包含任何样式的纯 html,如果显示的时候需要对其中的 <table> <code> <blockquote> 等标签进行自定义样式(这样既可实现多皮肤功能)
|
|
224
|
+
*/
|
|
225
|
+
getHtml: PropTypes.func,
|
|
226
|
+
/**
|
|
227
|
+
* 获取text文本
|
|
228
|
+
*/
|
|
229
|
+
getText: PropTypes.func,
|
|
230
|
+
/**
|
|
231
|
+
* 获取 JSON 格式的内容,格式如下
|
|
232
|
+
* [
|
|
233
|
+
{
|
|
234
|
+
"tag": "p",
|
|
235
|
+
"attrs": [],
|
|
236
|
+
"children": [
|
|
237
|
+
"欢迎使用 ",
|
|
238
|
+
{
|
|
239
|
+
"tag": "b",
|
|
240
|
+
"attrs": [],
|
|
241
|
+
"children": [ "wangEditor" ]
|
|
242
|
+
},
|
|
243
|
+
" 富文本编辑器"
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"tag": "p",
|
|
248
|
+
"attrs": [],
|
|
249
|
+
"children": [
|
|
250
|
+
{
|
|
251
|
+
"tag": "img",
|
|
252
|
+
"attrs": [
|
|
253
|
+
{ "name": "src", "value": "xxx.png" },
|
|
254
|
+
{ "name": "style", "value": "max-width:100%;" }
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
*/
|
|
261
|
+
getJSON: PropTypes.func,
|
|
262
|
+
/**
|
|
263
|
+
* 设置JSON
|
|
264
|
+
*/
|
|
265
|
+
setJSON: PropTypes.array,
|
|
266
|
+
/**
|
|
267
|
+
* 清空编辑器内容
|
|
268
|
+
*/
|
|
269
|
+
clearContent: PropTypes.bool,
|
|
270
|
+
/**
|
|
271
|
+
* 配置历史记录
|
|
272
|
+
* 当前历史记录存在两种模式,标准模式(主流浏览器)和兼容模式(IE 和 旧版 Edge),我们可以通过compatibleMode 这个属性来配置当前的历史记录模式,返回 true 表示使用兼容模式;返回 false 使用标准模式你也可以使用 historyMaxSize 来自定义你的记录步数。
|
|
273
|
+
* 当我们使用兼容模式的时候,如果需要修改记录的延迟时间(用户无操作 xxx 毫秒后进行记录),可通过 onchangeTimeout 配置。
|
|
274
|
+
* compatibleMode = ()=>{ return true }
|
|
275
|
+
*/
|
|
276
|
+
compatibleMode: PropTypes.func,
|
|
277
|
+
/**
|
|
278
|
+
* 定义显示哪些菜单和菜单的顺序。
|
|
279
|
+
* 所有菜单['head',
|
|
280
|
+
'bold',
|
|
281
|
+
'fontSize',
|
|
282
|
+
'fontName',
|
|
283
|
+
'italic',
|
|
284
|
+
'underline',
|
|
285
|
+
'strikeThrough',
|
|
286
|
+
'indent',
|
|
287
|
+
'lineHeight',
|
|
288
|
+
'foreColor',
|
|
289
|
+
'backColor',
|
|
290
|
+
'link',
|
|
291
|
+
'list',
|
|
292
|
+
'todo',
|
|
293
|
+
'justify',
|
|
294
|
+
'quote',
|
|
295
|
+
'emoticon',
|
|
296
|
+
'image',
|
|
297
|
+
'video',
|
|
298
|
+
'table',
|
|
299
|
+
'code',
|
|
300
|
+
'splitLine',
|
|
301
|
+
'undo',
|
|
302
|
+
'redo',]
|
|
303
|
+
*/
|
|
304
|
+
menus: PropTypes.array,
|
|
305
|
+
/**
|
|
306
|
+
* 当只需剔除少数菜单的时候,直接设置不需要的菜单
|
|
307
|
+
* 不要同时使用 menus 和 excludeMenus,以免引起冲突和混乱。
|
|
308
|
+
*
|
|
309
|
+
*/
|
|
310
|
+
excludeMenus: PropTypes.array,
|
|
311
|
+
/**
|
|
312
|
+
* 编辑器的字体颜色和背景色
|
|
313
|
+
*/
|
|
314
|
+
colors: PropTypes.array,
|
|
315
|
+
/**
|
|
316
|
+
* 编辑器的字体
|
|
317
|
+
*/
|
|
318
|
+
fontNames: PropTypes.array,
|
|
319
|
+
/**
|
|
320
|
+
* 编辑器的字号
|
|
321
|
+
* fontSizes = {
|
|
322
|
+
'x-small': { name: '10px', value: '1' },
|
|
323
|
+
'small': { name: '13px', value: '2' },
|
|
324
|
+
'normal': { name: '16px', value: '3' },
|
|
325
|
+
'large': { name: '18px', value: '4' },
|
|
326
|
+
'x-large': { name: '24px', value: '5' },
|
|
327
|
+
'xx-large': { name: '32px', value: '6' },
|
|
328
|
+
'xxx-large': { name: '48px', value: '7' },
|
|
329
|
+
}
|
|
330
|
+
【特别注意】上述配置中key 的值(即 x-small small normal 等这些)不可改变,key 不可增加,只能减少。
|
|
331
|
+
value: '1 - 7' 也不可改变,也不可增加,只能减少。而且,value 和 key 必须对应起来,例如 small 就必须对应 2
|
|
332
|
+
因此,上述配置中,你只能修改 name 。但修改之后,不会生效,还需要做一些调整。
|
|
333
|
+
以 'large': { name: '18px', value: '4' } 这个举例。 编辑器设置这个 font-size ,会生成 <font size="4">...</font> 。所以,你还需要增加下面的 css 代,让 size="4" 对应到 font-size: 18px; 。
|
|
334
|
+
font[size="4"] {
|
|
335
|
+
font-size: 18px;
|
|
336
|
+
}
|
|
337
|
+
*/
|
|
338
|
+
fontSizes: PropTypes.object,
|
|
339
|
+
/**
|
|
340
|
+
* 编辑器的行高
|
|
341
|
+
*/
|
|
342
|
+
lineHeights: PropTypes.array,
|
|
343
|
+
/**
|
|
344
|
+
* 配置表情图标。表情菜单的 panel 中,支持多 tab
|
|
345
|
+
* const SINA_URL_PATH = 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal'
|
|
346
|
+
emotions = [
|
|
347
|
+
{
|
|
348
|
+
title: '新浪', // tab 的标题
|
|
349
|
+
type: 'image', // 'emoji' 或 'image' ,即 emoji 形式或者图片形式
|
|
350
|
+
content: [
|
|
351
|
+
{ alt: '[坏笑]', src: `${SINA_URL_PATH}/50/pcmoren_huaixiao_org.png` },
|
|
352
|
+
{ alt: '[舔屏]', src: `${SINA_URL_PATH}/40/pcmoren_tian_org.png` },
|
|
353
|
+
{ alt: '[污]', src: `${SINA_URL_PATH}/3c/pcmoren_wu_org.png` },
|
|
354
|
+
]
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
title: 'emoji', // tab 的标题
|
|
358
|
+
type: 'emoji', // 'emoji' / 'image'
|
|
359
|
+
// emoji 表情,content 是一个数组即可
|
|
360
|
+
content: '😀 😃 😄 😁 😆 😅 😂 😊 😇 🙂 🙃 😉 😓 😪 😴 🙄 🤔 😬 🤐'.split(/\s/),
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
*/
|
|
364
|
+
emotions: PropTypes.array,
|
|
365
|
+
/**
|
|
366
|
+
* 使用showFullScreen = true 来展示全屏功能按钮, 默认是true, 就是不加这个属性默认展示全屏功能按钮
|
|
367
|
+
* 注意:工具栏和编辑器区域分离的时候不支持全屏功能
|
|
368
|
+
*/
|
|
369
|
+
showFullScreen: PropTypes.bool,
|
|
370
|
+
/**
|
|
371
|
+
* 提供了API供用户使用是否全屏(同样不支持工具栏和编辑区域分离的情况)
|
|
372
|
+
* open为打开全屏,close为关闭
|
|
373
|
+
*/
|
|
374
|
+
fullScreen: PropTypes.oneOf(['open', 'close']),
|
|
375
|
+
/**
|
|
376
|
+
* 编辑器的菜单栏提示
|
|
377
|
+
*/
|
|
378
|
+
showMenuTooltips: PropTypes.bool,
|
|
379
|
+
/**
|
|
380
|
+
* 配置 onchange 函数之后,用户操作(鼠标点击、键盘打字等)导致的内容变化之后,会自动触发 onchange 函数执行。
|
|
381
|
+
* onChange = (newHtml) = { console.log(newHtml) }
|
|
382
|
+
* 如果需要修改 onchange 触发的延迟时间( onchange 会在用户无任何操作的 xxx 毫秒之后被触发),可通过 onchangeTimeout 配置
|
|
383
|
+
*/
|
|
384
|
+
onChange: PropTypes.func,
|
|
385
|
+
/**
|
|
386
|
+
* 聚焦的回调
|
|
387
|
+
* onFocus = (newHtml) = { console.log(newHtml) }
|
|
388
|
+
*/
|
|
389
|
+
onFocus: PropTypes.func,
|
|
390
|
+
/**
|
|
391
|
+
* 失焦的回调
|
|
392
|
+
* onBlur = (newHtml) = { console.log(newHtml) }
|
|
393
|
+
*/
|
|
394
|
+
onBlur: PropTypes.func,
|
|
395
|
+
/**
|
|
396
|
+
* 插入网络图片的回调事件
|
|
397
|
+
* linkImgCallback =(src,alt,href)=>{ console.log(src,alt,href) }
|
|
398
|
+
*/
|
|
399
|
+
linkImgCallback: PropTypes.func,
|
|
400
|
+
/**
|
|
401
|
+
* 插入网络视频的回调事件
|
|
402
|
+
* onlineVideoCallback=(video)=>{ console.log(video) }
|
|
403
|
+
*/
|
|
404
|
+
onlineVideoCallback: PropTypes.func,
|
|
405
|
+
/**
|
|
406
|
+
* 插入链接的校验
|
|
407
|
+
* linkCheck = (text,link)=>{ // 1. 返回 true ,说明检查通过; // // 2. 返回一个字符串,说明检查未通过,编辑器会阻止链接插入。会 alert 出错误信息(即返回的字符串)
|
|
408
|
+
// return '链接有 xxx 错误'
|
|
409
|
+
// 3. 返回 undefined(即没有任何返回),说明检查未通过,编辑器会阻止链接插入。
|
|
410
|
+
// 此处,你可以自定义提示错误信息,自由发挥 }
|
|
411
|
+
*/
|
|
412
|
+
linkCheck: PropTypes.func,
|
|
413
|
+
/**
|
|
414
|
+
* 插入网络视频的校验
|
|
415
|
+
* onlineVideoCheck =(video)=>{ 与插入链接校验一致 }
|
|
416
|
+
*/
|
|
417
|
+
onlineVideoCheck: PropTypes.func,
|
|
418
|
+
/**
|
|
419
|
+
* 从其他地方(如网页、word 等)复制文本到编辑器中,编辑器会默认过滤掉复制文本的样式,这样可以让编辑器内容更加简洁。因为复制过来的文本样式,可能会比较混乱,且不可控。
|
|
420
|
+
*/
|
|
421
|
+
pasteFilterStyle: PropTypes.bool,
|
|
422
|
+
/**
|
|
423
|
+
* 从其他页面(如网页、word 等)复制过来的内容,除了包含文字还可能包含图片,这些图片一般都是外域的(可能会有防盗链处理,导致图片不显示)。
|
|
424
|
+
* 可以通过配置 pasteIgnoreImg = true 来忽略粘贴的图片。如果复制的内容有图片又有文字,则只粘贴文字,不粘贴图片。
|
|
425
|
+
*/
|
|
426
|
+
pasteIgnoreImg: PropTypes.bool,
|
|
427
|
+
/**
|
|
428
|
+
* 使用者可通过 pasteTextHandle 对粘贴的文本内容进行自定义的过滤、处理等操作,然后返回处理之后的文本内容。编辑器最终会粘贴用户处理之后并且返回的的内容。
|
|
429
|
+
* pasteTextHandle =(pasteStr)=> { // 对粘贴的文本进行处理,然后返回处理后的结果 return pasteStr + '巴拉巴拉' }
|
|
430
|
+
*/
|
|
431
|
+
pasteTextHandle: PropTypes.func,
|
|
432
|
+
/**
|
|
433
|
+
* 配置服务端接口 【注意】如果上传图片遇到问题,请打开浏览器开发者工具,查看 console.error 输出的错误信息。
|
|
434
|
+
* 配置 server 接口地址
|
|
435
|
+
* server 接口返回格式,重要!!!接口要返回 application/json 格式,格式要求如下:
|
|
436
|
+
* {
|
|
437
|
+
// errno 即错误代码,0 表示没有错误。
|
|
438
|
+
// 如果有错误,errno != 0,可通过下文中的监听函数 fail 拿到该错误码进行自定义处理
|
|
439
|
+
"errno": 0,
|
|
440
|
+
// data 是一个数组,返回图片Object,Object中包含需要包含url、alt和href三个属性,它们分别代表图片地址、图片文字说明和跳转链接,alt和href属性是可选的,可以不设置或设置为空字符串,需要注意的是url是一定要填的。
|
|
441
|
+
"data": [
|
|
442
|
+
{
|
|
443
|
+
url: "图片地址",
|
|
444
|
+
alt: "图片文字说明",
|
|
445
|
+
href: "跳转链接"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
url: "图片地址1",
|
|
449
|
+
alt: "图片文字说明1",
|
|
450
|
+
href: "跳转链接1"
|
|
451
|
+
},
|
|
452
|
+
"……"
|
|
453
|
+
]
|
|
454
|
+
}
|
|
455
|
+
*/
|
|
456
|
+
uploadImgServer: PropTypes.string,
|
|
457
|
+
/**
|
|
458
|
+
* 默认限制图片大小是 5M ,可以自己修改
|
|
459
|
+
* uploadImgMaxSize = 2 * 1024 * 1024 // 2M
|
|
460
|
+
*/
|
|
461
|
+
uploadImgMaxSize: PropTypes.number,
|
|
462
|
+
/**
|
|
463
|
+
* 限制图片类型
|
|
464
|
+
* uploadImgAccept = ['jpg', 'jpeg', 'png', 'gif', 'bmp']
|
|
465
|
+
*/
|
|
466
|
+
uploadImgAccept: PropTypes.array,
|
|
467
|
+
/**
|
|
468
|
+
* 限制一次最多能传几张图片,默认为 100 张,需要限制可自己配置。
|
|
469
|
+
*/
|
|
470
|
+
uploadImgMaxLength: PropTypes.number,
|
|
471
|
+
/**
|
|
472
|
+
* 上传图片时可自定义传递一些参数,例如传递验证的 token 等。参数会被添加到 formData 中,一起上传到服务端。
|
|
473
|
+
* 如果需要将参数拼接到 url 中,可再加上如下配置。uploadImgParamsWithUrl = true
|
|
474
|
+
*/
|
|
475
|
+
uploadImgParams: PropTypes.object,
|
|
476
|
+
/**
|
|
477
|
+
* 上传图片时可自定义传递一些参数,当需要将参数拼接到 url 中,可再加上如下配置。
|
|
478
|
+
*/
|
|
479
|
+
uploadImgParamsWithUrl: PropTypes.bool,
|
|
480
|
+
/**
|
|
481
|
+
* 上传图片时,可自定义 filename
|
|
482
|
+
*/
|
|
483
|
+
uploadFileName: PropTypes.string,
|
|
484
|
+
/**
|
|
485
|
+
* 上传图片时添加 http 请求的 header 。
|
|
486
|
+
*/
|
|
487
|
+
uploadImgHeaders: PropTypes.object,
|
|
488
|
+
/**
|
|
489
|
+
* 跨域上传中如果需要传递 cookie 需设置 withCredentials=true 。
|
|
490
|
+
*/
|
|
491
|
+
withCredentials: PropTypes.bool,
|
|
492
|
+
/**
|
|
493
|
+
* timeout 即上传接口等待的最大时间,默认是 10 秒钟,可以自己修改。
|
|
494
|
+
* uploadImgTimeout = 5 * 1000
|
|
495
|
+
*/
|
|
496
|
+
uploadImgTimeout: PropTypes.number,
|
|
497
|
+
/**
|
|
498
|
+
* 可使用回调函数,对上传图片的不同阶段,做相应处理。代码示例如下
|
|
499
|
+
* uploadImgHooks = {
|
|
500
|
+
// 上传图片之前
|
|
501
|
+
before: function(xhr) {
|
|
502
|
+
console.log(xhr)
|
|
503
|
+
// 可阻止图片上传
|
|
504
|
+
return {
|
|
505
|
+
prevent: true,
|
|
506
|
+
msg: '需要提示给用户的错误信息'
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
// 图片上传并返回了结果,图片插入已成功
|
|
510
|
+
success: function(xhr) {
|
|
511
|
+
console.log('success', xhr)
|
|
512
|
+
},
|
|
513
|
+
// 图片上传并返回了结果,但图片插入时出错了
|
|
514
|
+
fail: function(xhr, editor, resData) {
|
|
515
|
+
console.log('fail', resData)
|
|
516
|
+
},
|
|
517
|
+
// 上传图片出错,一般为 http 请求的错误
|
|
518
|
+
error: function(xhr, editor, resData) {
|
|
519
|
+
console.log('error', xhr, resData)
|
|
520
|
+
},
|
|
521
|
+
// 上传图片超时
|
|
522
|
+
timeout: function(xhr) {
|
|
523
|
+
console.log('timeout')
|
|
524
|
+
},
|
|
525
|
+
// 图片上传并返回了结果,想要自己把图片插入到编辑器中
|
|
526
|
+
// 例如服务器端返回的不是 { errno: 0, data: [...] } 这种格式,可使用 customInsert
|
|
527
|
+
customInsert: function(insertImgFn, result) {
|
|
528
|
+
// result 即服务端返回的接口
|
|
529
|
+
console.log('customInsert', result)
|
|
530
|
+
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
|
|
531
|
+
insertImgFn(result.data[0])
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
*/
|
|
535
|
+
uploadImgHooks: PropTypes.object,
|
|
536
|
+
/**
|
|
537
|
+
* 如果想完全自己实现图片上传的过程,如上传图片到某个云服务器,可以使用如下代码。
|
|
538
|
+
* customUploadImg=(resultFiles, insertImgFn)={
|
|
539
|
+
* resultFiles 是 input 中选中的文件列表
|
|
540
|
+
* insertImgFn 是获取图片 url 后,插入到编辑器的方法
|
|
541
|
+
* 上传图片,返回结果,将图片插入到编辑器中
|
|
542
|
+
* insertImgFn(imgUrl)
|
|
543
|
+
* }
|
|
544
|
+
*
|
|
545
|
+
* 可以上传至阿里云OSS,利用自己实现上传功能来实现阿里云OSS的上传
|
|
546
|
+
* let client = new OSS({})
|
|
547
|
+
* customUploadImg = (resultFiles, insertImgFn)=>{
|
|
548
|
+
* client.put('myImg', resultFiles[0])
|
|
549
|
+
.then(function (res) {
|
|
550
|
+
// 上传图片,返回结果,将图片插入到编辑器中
|
|
551
|
+
insertImgFn(res.url)
|
|
552
|
+
}).catch(function (err) {
|
|
553
|
+
console.log(err)
|
|
554
|
+
})
|
|
555
|
+
* }
|
|
556
|
+
*/
|
|
557
|
+
customUploadImg: PropTypes.func,
|
|
558
|
+
/**
|
|
559
|
+
* 设置uploadImgShowBase64 = true 可使用 base64 格式保存图片。即,可选择本地图片,编辑器用 base64 格式显示图片
|
|
560
|
+
* 【注意】uploadImgShowBase64(base64 格式)和 uploadImgServer(上传图片到服务器)两者不能同时使用!!!
|
|
561
|
+
*/
|
|
562
|
+
uploadImgShowBase64: PropTypes.bool,
|
|
563
|
+
/**
|
|
564
|
+
* 设置showLinkImg = false 即可隐藏插入网络图片的功能,即只保留上传本地图片。
|
|
565
|
+
*/
|
|
566
|
+
showLinkImg: PropTypes.bool,
|
|
567
|
+
/**
|
|
568
|
+
* 网络图片设置alt和跳转链接
|
|
569
|
+
* 在wangEditor中,插入网络图片功能可以分别设置添加alt属性和跳转链接选项,默认情况下这两个选项是开启的,如果不需要这两个选项,可以参考如下代码:
|
|
570
|
+
* 配置alt选项 showLinkImgAlt = false 配置超链接 showLinkImgHref = false
|
|
571
|
+
*/
|
|
572
|
+
showLinkImgAlt: PropTypes.bool,
|
|
573
|
+
/**
|
|
574
|
+
* 配置超链接
|
|
575
|
+
*/
|
|
576
|
+
showLinkImgHref: PropTypes.bool,
|
|
577
|
+
/**
|
|
578
|
+
* 上传视频配置服务端接口
|
|
579
|
+
* server 接口返回格式,重要!!接口要返回 application/json 格式,格式要求如下:
|
|
580
|
+
* {
|
|
581
|
+
// errno 即错误代码,0 表示没有错误。
|
|
582
|
+
// 如果有错误,errno != 0,可通过下文中的监听函数 fail 拿到该错误码进行自定义处理
|
|
583
|
+
"errno": 0,
|
|
584
|
+
// data 是一个对象,返回视频的线上地址
|
|
585
|
+
"data": {
|
|
586
|
+
"url": "视频1地址",
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
*
|
|
590
|
+
*/
|
|
591
|
+
uploadVideoServer: PropTypes.string,
|
|
592
|
+
/**
|
|
593
|
+
* 默认限制视频大小是 1024m ,可以自己修改。
|
|
594
|
+
* uploadVideoMaxSize = 1 * 1024 * 1024 * 1024 // 1024m
|
|
595
|
+
*/
|
|
596
|
+
uploadVideoMaxSize: PropTypes.number,
|
|
597
|
+
/**
|
|
598
|
+
* 限制类型uploadVideoAccept = ['mp4']
|
|
599
|
+
*/
|
|
600
|
+
uploadVideoAccept: PropTypes.array,
|
|
601
|
+
/**
|
|
602
|
+
* 上传视频时可自定义传递一些参数,例如传递验证的 token 等。参数会被添加到 formData 中,一起上传到服务端
|
|
603
|
+
* 如果需要将参数拼接到 url 中,可再加上如下配置 uploadVideoParamsWithUrl = true
|
|
604
|
+
*/
|
|
605
|
+
uploadVideoParams: PropTypes.object,
|
|
606
|
+
/**
|
|
607
|
+
* 上传视频时可自定义传递一些参数,如果需要将参数拼接到 url 中,可再加上如下配置
|
|
608
|
+
* uploadVideoParamsWithUrl = true
|
|
609
|
+
*/
|
|
610
|
+
uploadVideoParamsWithUrl: PropTypes.bool,
|
|
611
|
+
/**
|
|
612
|
+
* 上传视频时,可自定义 filename ,即在使用 formData.append(name, file) 添加视频文件时,自定义第一个参数。
|
|
613
|
+
*/
|
|
614
|
+
uploadVideoName: PropTypes.string,
|
|
615
|
+
/**
|
|
616
|
+
* 上传视频时添加 http 请求的 header 。
|
|
617
|
+
*/
|
|
618
|
+
uploadVideoHeaders: PropTypes.object,
|
|
619
|
+
/**
|
|
620
|
+
* 跨域上传中如果需要传递 cookie 需设置 withCredentials 。
|
|
621
|
+
*/
|
|
622
|
+
withVideoCredentials: PropTypes.bool,
|
|
623
|
+
/**
|
|
624
|
+
* timeout 即上传接口等待的最大时间,默认是 5分钟,可以自己修改。
|
|
625
|
+
* uploadVideoTimeout = 1000 * 60 * 5
|
|
626
|
+
*/
|
|
627
|
+
uploadVideoTimeout: PropTypes.number,
|
|
628
|
+
/**
|
|
629
|
+
* 使用回调函数,对上传视频的不同阶段,做相应处理;
|
|
630
|
+
* 参考图片的上传回调
|
|
631
|
+
*/
|
|
632
|
+
uploadVideoHooks: PropTypes.object,
|
|
633
|
+
/**
|
|
634
|
+
* 如果想完全自己实现视频上传的过程,如上传视频到某个云服务器,参考上传图片
|
|
635
|
+
*/
|
|
636
|
+
customUploadVideo: PropTypes.func,
|
|
637
|
+
/**
|
|
638
|
+
* 隐藏插入网络视频的功能
|
|
639
|
+
* showLinkVideo = false 即可隐藏插入网络视频的功能,即只保留上传本地视频。
|
|
640
|
+
*/
|
|
641
|
+
showLinkVideo: PropTypes.bool,
|
|
642
|
+
/**
|
|
643
|
+
* 通过 onCatalogChange 可以实时获取编辑器所有标题,标题变化即可触发该回调函数。
|
|
644
|
+
* onCatalogChange=(headList)=>{ }
|
|
645
|
+
*/
|
|
646
|
+
onCatalogChange: PropTypes.func,
|
|
647
|
+
/**
|
|
648
|
+
* 要滚动到标题位置的id,通过onCatalogChange获取
|
|
649
|
+
*/
|
|
650
|
+
headId: PropTypes.string
|
|
651
|
+
};
|
|
652
|
+
export default WangEditor;
|