@chaoswise/ui 2.5.8 → 3.0.0
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/README.md +16 -108
- package/lib/AbreastLayout/CollapsedBtn.js +19 -15
- package/lib/AbreastLayout/CollapsedIcon.js +1 -1
- package/lib/AbreastLayout/NavTreeContainer.js +8 -8
- package/lib/AbreastLayout/index.js +50 -49
- package/lib/AbreastLayout/index.style.js +91 -0
- package/lib/Ace/ace.js +8 -8
- package/lib/Ace/diff.js +8 -8
- package/lib/Ace/index.js +4 -4
- package/lib/Ace/split.js +8 -8
- package/lib/AdaptiveLayout/index.js +31 -29
- package/lib/Affix/index.js +2 -3
- package/lib/Alert/index.js +2 -48
- package/lib/Anchor/index.js +2 -3
- package/lib/Antd5/_util/ActionButton.js +117 -0
- package/lib/Antd5/_util/PurePanel.js +103 -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/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/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/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/eu_ES.js +2 -0
- package/lib/Antd5/calendar/locale/my_MM.js +2 -0
- package/lib/Antd5/calendar/locale/si_LK.js +2 -0
- package/lib/Antd5/calendar/locale/tk_TK.js +2 -0
- package/lib/Antd5/calendar/locale/uz_UZ.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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/de_DE.js +5 -0
- package/lib/Antd5/time-picker/locale/eu_ES.js +4 -0
- package/lib/Antd5/time-picker/locale/fr_FR.js +5 -0
- package/lib/Antd5/time-picker/locale/id_ID.js +5 -0
- package/lib/Antd5/time-picker/locale/my_MM.js +5 -0
- package/lib/Antd5/time-picker/locale/si_LK.js +5 -0
- package/lib/Antd5/time-picker/locale/tk_TK.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/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/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/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 -3
- package/lib/Avatar/index.js +2 -3
- package/lib/BackTop/index.js +2 -3
- package/lib/Badge/index.js +33 -18
- package/lib/Badge/index.style.js +65 -0
- package/lib/BasicLayout/Breadcrumb.js +4 -4
- package/lib/BasicLayout/Nav.js +1 -5
- package/lib/BasicLayout/Sider.js +65 -32
- package/lib/BasicLayout/index.js +55 -179
- 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 -4
- package/lib/Button/index.js +34 -19
- package/lib/Button/index.style.js +41 -0
- package/lib/CWCascader/Cascader/index.js +153 -78
- package/lib/CWCascader/Cascader/utils/iconUtil.js +81 -0
- package/lib/CWCascader/Cascader/utils/motion.js +13 -0
- package/lib/CWCascader/index.js +19 -6
- package/lib/CWCascader/index.style.js +42 -0
- package/lib/CWCascader/rc-cascader/Cascader.js +10 -10
- package/lib/CWCascader/rc-cascader/OptionList/Checkbox.js +1 -1
- package/lib/CWCascader/rc-cascader/OptionList/Column.js +10 -11
- package/lib/CWCascader/rc-cascader/OptionList/index.js +9 -9
- package/lib/CWCascader/rc-cascader/OptionList/useActive.js +4 -4
- package/lib/CWCascader/rc-cascader/OptionList/useKeyboard.js +7 -7
- package/lib/CWCascader/rc-cascader/hooks/useDisplayValues.js +5 -5
- package/lib/CWCascader/rc-cascader/hooks/useEntities.js +1 -1
- package/lib/CWCascader/rc-cascader/hooks/useSearchConfig.js +1 -1
- package/lib/CWCascader/rc-cascader/hooks/useSearchOptions.js +6 -6
- 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/Saturation.js +138 -0
- package/lib/CWColorPicker/SketchPicker/components/common/Swatch.js +62 -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/interaction.js +54 -0
- package/lib/CWColorPicker/index.js +296 -0
- package/lib/CWColorPicker/index.style.js +81 -0
- package/lib/CWMessage/MessageContent/TabList/index.js +15 -19
- package/lib/CWMessage/MessageContent/index.js +46 -53
- package/lib/CWMessage/index.js +121 -98
- package/lib/CWMessage/index.style.js +132 -0
- package/lib/CWRadioTabs/index.js +44 -41
- package/lib/CWRadioTabs/index.style.js +33 -0
- package/lib/CWRangePicker/DropdownMenu/MoreHistoryList/index.js +6 -13
- package/lib/CWRangePicker/DropdownMenu/MoreTimeList/index.js +10 -8
- package/lib/CWRangePicker/DropdownMenu/index.js +61 -59
- package/lib/CWRangePicker/DropdownMenu/index.style.js +159 -0
- package/lib/CWRangePicker/Refresh/index.js +19 -19
- package/lib/CWRangePicker/Refresh/index.style.js +37 -0
- package/lib/CWRangePicker/TimeSpan/index.js +25 -18
- package/lib/CWRangePicker/TimeSpan/index.style.js +25 -0
- package/lib/CWRangePicker/assets/Calendar.js +1 -1
- package/lib/CWRangePicker/assets/Calendar2.js +1 -1
- package/lib/CWRangePicker/assets/Recover.js +1 -1
- package/lib/CWRangePicker/assets/Refresh1.js +1 -1
- package/lib/CWRangePicker/assets/Refresh2.js +1 -1
- package/lib/CWRangePicker/assets/Refresh3.js +1 -1
- package/lib/CWRangePicker/assets/live.js +1 -1
- package/lib/CWRangePicker/assets/more.js +1 -1
- package/lib/CWRangePicker/index.js +56 -95
- package/lib/CWRangePicker/index.style.js +78 -0
- package/lib/CWRangePicker/utils/index.js +27 -33
- package/lib/CWSelect/index.js +2 -666
- package/lib/CWTable/CWTable.js +120 -358
- package/lib/CWTable/header.js +45 -208
- package/lib/CWTable/index.js +40 -137
- package/lib/CWTable/index.style.js +96 -0
- package/lib/CWTree/assets/Drag.js +1 -1
- package/lib/CWTree/index.js +44 -76
- package/lib/CWTree/index.style.js +127 -0
- package/lib/CWTree/utils/index.js +47 -2
- package/lib/Calendar/index.js +2 -3
- package/lib/Card/index.js +2 -3
- package/lib/CardSelect/index.js +41 -30
- package/lib/CardSelect/index.style.js +76 -0
- package/lib/Carousel/index.js +2 -3
- package/lib/Cascader/index.js +2 -15
- package/lib/ChangeIcon/index.js +36 -24
- package/lib/ChangeIcon/index.style.js +89 -0
- package/lib/Checkbox/index.js +2 -13
- package/lib/CitySelect/index.js +12 -15
- package/lib/Col/index.js +2 -3
- package/lib/Collapse/index.js +37 -20
- package/lib/Collapse/index.style.js +120 -0
- package/lib/ColorPicker/index.js +1 -298
- package/lib/ConfigProvider/ConfigProvider.js +76 -87
- package/lib/ConfigProvider/Switch.js +20 -24
- package/lib/ConfigProvider/customTheme.js +267 -0
- package/lib/ConfigProvider/customTheme.json +163 -0
- package/lib/ConfigProvider/customToken.js +41 -0
- package/lib/ConfigProvider/index.js +3 -6
- package/lib/ConfigProvider/intlContext.js +8 -0
- package/lib/ConfigProvider/useLocale.js +2 -2
- package/lib/CustomScrollBar/index.js +4 -4
- package/lib/DataView/index.js +27 -14
- package/lib/DataView/index.style.js +34 -0
- package/lib/DatePicker/index.js +1 -14
- package/lib/Descriptions/index.js +2 -3
- package/lib/Divider/index.js +2 -3
- package/lib/Documentation/Tocify.js +35 -18
- package/lib/Documentation/index.js +48 -41
- package/lib/Documentation/index.style.js +180 -0
- package/lib/Drawer/index.js +57 -70
- package/lib/Drawer/index.style.js +93 -0
- package/lib/Dropdown/DropdownButton.js +20 -0
- package/lib/Dropdown/index.js +39 -4
- package/lib/Dropdown/index.style.js +22 -0
- package/lib/EchartsArea/index.js +15 -15
- package/lib/EchartsBar/index.js +28 -28
- package/lib/EchartsBarRow/index.js +10 -10
- package/lib/EchartsBase/index.js +31 -33
- package/lib/EchartsLine/index.js +24 -24
- package/lib/EchartsPie/index.js +20 -20
- package/lib/EchartsRing/index.js +18 -18
- package/lib/Empty/index.js +36 -27
- package/lib/Empty/index.style.js +36 -0
- package/lib/ErrorBoundary/ErrorPage.js +35 -0
- package/lib/ErrorBoundary/history.js +54 -54
- package/lib/ErrorBoundary/index.js +25 -47
- package/lib/ErrorBoundary/index.styles.js +48 -0
- package/lib/Exception/index.js +30 -18
- package/lib/Exception/index.style.js +37 -0
- package/lib/FilterDropDown/DragList.js +19 -26
- package/lib/FilterDropDown/assets/ShowSvgIcon.js +1 -1
- package/lib/FilterDropDown/index.js +39 -46
- 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 +21 -19
- package/lib/Flow/BasicLayout/util.js +12 -4
- package/lib/Flow/Flow.js +29 -25
- package/lib/Flow/commons/initCommands.js +10 -4
- package/lib/Flow/components/PluginWrapper.js +13 -9
- package/lib/Flow/layouts/callChain.js +8 -3
- package/lib/Flow/plugins/CommandLifeCycle.js +41 -8
- package/lib/Flow/plugins/InitSideBarPlugin.js +15 -3
- package/lib/Flow/plugins/InitToolBarPlugin.js +15 -3
- package/lib/Form/FormItem.js +26 -29
- package/lib/Form/hook/useForm3.js +117 -0
- package/lib/Form/index.js +73 -11
- package/lib/Form/index.style.js +56 -0
- package/lib/FormItemWrapper/index.js +22 -11
- package/lib/FormItemWrapper/index.style.js +32 -0
- package/lib/GlobalTabs/index.js +30 -18
- package/lib/GlobalTabs/index.style.js +31 -0
- package/lib/Grid/index.js +2 -0
- package/lib/Header/CommonDropMenu.js +11 -12
- package/lib/Header/CommonIcon.js +1 -1
- package/lib/Header/Document/index.js +6 -13
- package/lib/Header/LocaleSwitcher.js +3 -3
- package/lib/Header/Message/index.js +2 -2
- package/lib/Header/TopNavigationMenu/index.js +26 -12
- package/lib/Header/TopNavigationMenu/index.style.js +47 -0
- package/lib/Header/UserSetting/TenantList.js +3 -3
- package/lib/Header/UserSetting/TenantTree.js +7 -8
- package/lib/Header/UserSetting/index.js +63 -55
- package/lib/Header/UserSetting/index.style.js +60 -0
- package/lib/Header/UserSetting/utils.js +1 -1
- package/lib/Header/index.js +85 -81
- package/lib/Header/index.style.js +153 -0
- package/lib/Icon/index.js +23 -3
- package/lib/Icon/utils.js +20 -0
- package/lib/IconSelect/components/CustomImg/index.js +8 -15
- package/lib/IconSelect/components/SearchIcon/index.js +23 -25
- package/lib/IconSelect/index.js +49 -42
- package/lib/IconSelect/index.style.js +75 -0
- package/lib/Image/index.js +2 -0
- package/lib/Input/InputComponent.js +47 -150
- package/lib/Input/index.js +58 -71
- package/lib/Input/index.style.js +23 -0
- package/lib/InputNumber/index.js +15 -42
- package/lib/Joyride/List.js +35 -23
- package/lib/Joyride/index.js +74 -74
- package/lib/Joyride/style/index.style.js +67 -0
- package/lib/Joyride/style/list.style.js +115 -0
- package/lib/Layout/index.js +2 -4
- package/lib/LayoutWrapper/Footer.js +20 -8
- package/lib/LayoutWrapper/Header.js +27 -15
- package/lib/LayoutWrapper/LeftArrow.js +1 -1
- package/lib/LayoutWrapper/index.js +113 -20
- 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 +27 -12
- package/lib/LeftNavigation/index.style.js +34 -0
- package/lib/List/index.js +2 -3
- package/lib/Mentions/index.js +2 -3
- package/lib/Menu/index.js +2 -26
- package/lib/Message/index.js +2 -0
- package/lib/Modal/Modal.js +29 -27
- package/lib/Modal/assets/Close.js +1 -1
- package/lib/Modal/confirmGlobalStyle.js +37 -0
- package/lib/Modal/custom-backup/entiretyDrag.js +2 -2
- package/lib/Modal/index.js +57 -41
- package/lib/Modal/index.style.js +53 -0
- package/lib/ModuleFederation/ErrorBoundary/index.js +8 -8
- package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +10 -10
- package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +2 -2
- package/lib/ModuleTitle/index.js +26 -12
- package/lib/ModuleTitle/index.style.js +34 -0
- package/lib/Notification/index.js +2 -0
- package/lib/Overview/index.js +2 -0
- package/lib/Pagination/index.js +66 -89
- package/lib/Pagination/index.style.js +137 -0
- package/lib/Popconfirm/index.js +2 -56
- package/lib/Popover/index.js +2 -3
- package/lib/Progress/index.js +2 -108
- package/lib/QrCode/index.js +2 -0
- package/lib/QuickRangePicker/index.js +26 -26
- package/lib/QuickRangePicker/index.style.js +45 -0
- package/lib/QuickTransfer/Drag.js +5 -5
- package/lib/QuickTransfer/DragList.js +11 -17
- package/lib/QuickTransfer/NotDragList.js +2 -3
- package/lib/QuickTransfer/assets/DragSvg.js +1 -1
- package/lib/QuickTransfer/assets/LockSvg.js +1 -1
- package/lib/QuickTransfer/index.js +38 -40
- package/lib/QuickTransfer/index.style.js +185 -0
- package/lib/QuickTransfer/utils.js +19 -19
- package/lib/Radio/index.js +2 -9
- package/lib/RangePicker/index.js +2 -428
- package/lib/Rate/index.js +2 -3
- package/lib/Result/index.js +2 -3
- package/lib/Row/index.js +2 -3
- package/lib/ScrollLoad/index.js +15 -17
- package/lib/SearchBar/OutSearch.js +19 -16
- package/lib/SearchBar/index.js +54 -67
- package/lib/SearchBar/index.style.js +91 -0
- package/lib/Segmented/index.js +2 -0
- package/lib/Select/index.js +2 -3
- package/lib/SiderMenu/index.js +89 -155
- package/lib/SiderMenu/index.style.js +23 -0
- package/lib/SimpleCard/index.js +40 -34
- package/lib/SimpleCard/index.style.js +76 -0
- package/lib/SimplePagination/index.js +43 -62
- package/lib/SimplePagination/index.style.js +105 -0
- package/lib/SingleSpa/import-html/process-tpl.js +4 -4
- package/lib/SingleSpa/import-html/utils.js +15 -18
- package/lib/SingleSpa/index.js +19 -41
- package/lib/SingleSpa/singleSpa/single-spa.dev.js +7 -12
- package/lib/SingleSpa/system/amd.js +0 -1
- package/lib/SingleSpa/system/system.js +16 -23
- package/lib/SingleSpa/utils.js +2 -15
- package/lib/Skeleton/index.js +2 -3
- package/lib/Slider/index.js +32 -4
- package/lib/Slider/index.style.js +116 -0
- package/lib/Space/index.js +1 -2
- package/lib/Spin/index.js +2 -4
- package/lib/Statistic/index.js +2 -3
- package/lib/Steps/index.js +2 -4
- package/lib/Switch/index.js +2 -4
- package/lib/Table/index.js +1 -30
- package/lib/Tabs/index.js +29 -23
- package/lib/Tabs/index.style.js +58 -0
- package/lib/Tag/CheckableTag.js +28 -11
- package/lib/Tag/assets/LeftBottomCorner.js +1 -1
- package/lib/Tag/assets/LeftTopCorner.js +1 -1
- package/lib/Tag/assets/RightBottomCorner.js +1 -1
- package/lib/Tag/assets/RightTopCorner.js +1 -1
- package/lib/Tag/index.js +48 -45
- package/lib/Tag/index.style.js +156 -0
- package/lib/Theme/index.js +2 -0
- package/lib/ThemeProvider/Switcher.js +4 -5
- package/lib/ThemeProvider/main.js +26 -26
- package/lib/ThemeProvider/utils.js +4 -4
- package/lib/TimePicker/index.js +2 -3
- package/lib/Timeline/index.js +1 -3
- package/lib/Tooltip/index.js +36 -16
- package/lib/Tooltip/index.style.js +23 -0
- package/lib/TooltipText/ResizeObserverManager.js +3 -3
- package/lib/TooltipText/index.js +36 -26
- package/lib/TooltipText/index.style.js +46 -0
- package/lib/Tour/index.js +2 -0
- package/lib/Transfer/index.js +2 -3
- package/lib/Tree/index.js +2 -3
- package/lib/TreeSelect/index.js +2 -4
- package/lib/Typography/index.js +2 -3
- package/lib/Upload/index.js +2 -4
- package/lib/WangEditor/editor4.js +2 -2
- package/lib/WangEditor/index.js +33 -15
- package/lib/WangEditor/index.style.js +203 -0
- package/lib/WangEditor/usePreview.js +17 -14
- package/lib/WangEditor/wangEditor.js +502 -503
- package/lib/Watermark/index.js +1 -305
- 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 +6 -6
- package/lib/index.js +5 -145
- 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/noticeManager/globalState.js +4 -4
- package/lib/portalNoticeManager/usePortalDispatchNotice.js +5 -5
- package/lib/portalNoticeManager/withPortalDispatchNotice.js +1 -1
- package/lib/treeLoad/index.js +2 -5
- package/lib/useChartTheme/index.js +30 -23
- package/lib/useConfigContext/index.js +1 -1
- package/lib/utils/index.js +1 -0
- package/package.json +114 -115
- package/LICENSE +0 -21
- package/config/babel/antdComs-nouse.js +0 -51
- package/config/babel/formily.js +0 -22
- package/config/babel/index.js +0 -9
- package/config/city/citys.js +0 -1964
- package/config/swc.js +0 -5
- package/config/theme/CWTheme.js +0 -427
- package/config/theme/chart.dark.js +0 -394
- package/config/theme/chart.light.js +0 -3
- package/config/theme/common.less +0 -161
- package/config/theme/dark.js +0 -784
- package/config/theme/dark.less +0 -80
- package/config/theme/default.js +0 -717
- package/config/theme/default.less +0 -144
- package/config/theme/style/color/bezierEasing.less +0 -110
- package/config/theme/style/color/colorPalette.less +0 -85
- package/config/theme/style/color/colors.less +0 -162
- package/config/theme/style/color/tinyColor.less +0 -1184
- package/config/theme/style/compact.less +0 -4
- package/config/theme/style/components.less +0 -65
- package/config/theme/style/core/base.less +0 -10
- package/config/theme/style/core/global.less +0 -491
- package/config/theme/style/core/iconfont.less +0 -22
- package/config/theme/style/core/index.less +0 -5
- package/config/theme/style/core/motion/fade.less +0 -34
- package/config/theme/style/core/motion/move.less +0 -129
- package/config/theme/style/core/motion/other.less +0 -51
- package/config/theme/style/core/motion/slide.less +0 -129
- package/config/theme/style/core/motion/zoom.less +0 -179
- package/config/theme/style/core/motion.less +0 -22
- package/config/theme/style/css.js +0 -3
- package/config/theme/style/dark.less +0 -4
- package/config/theme/style/default.css +0 -1784
- package/config/theme/style/default.less +0 -4
- package/config/theme/style/index-pure.less +0 -2
- package/config/theme/style/index.css +0 -1784
- package/config/theme/style/index.d.ts +0 -1
- package/config/theme/style/index.js +0 -3
- package/config/theme/style/index.less +0 -3
- package/config/theme/style/mixins/box.less +0 -7
- package/config/theme/style/mixins/clearfix.less +0 -16
- package/config/theme/style/mixins/compatibility.less +0 -13
- package/config/theme/style/mixins/customize.less +0 -181
- package/config/theme/style/mixins/iconfont.less +0 -28
- package/config/theme/style/mixins/index.less +0 -14
- package/config/theme/style/mixins/modal-mask.less +0 -30
- package/config/theme/style/mixins/motion.less +0 -33
- package/config/theme/style/mixins/operation-unit.less +0 -16
- package/config/theme/style/mixins/reset.less +0 -11
- package/config/theme/style/mixins/rounded-arrow.less +0 -44
- package/config/theme/style/mixins/size.less +0 -10
- package/config/theme/style/mixins/typography.less +0 -58
- package/config/theme/style/themes/compact.less +0 -295
- package/config/theme/style/themes/dark.less +0 -457
- package/config/theme/style/themes/default.less +0 -1080
- package/config/theme/style/themes/index.less +0 -7
- package/config/theme/style/themes/variable.less +0 -1135
- package/config/theme/style/variable.less +0 -4
- package/lib/AbreastLayout/index.less +0 -98
- package/lib/AdaptiveLayout/index.less +0 -0
- package/lib/Alert/index.less +0 -214
- package/lib/AlgorithmChart/common/chart.option.js +0 -369
- package/lib/AlgorithmChart/common/images/blue.png +0 -0
- package/lib/AlgorithmChart/common/images/blue.svg +0 -54
- package/lib/AlgorithmChart/common/images/green.png +0 -0
- package/lib/AlgorithmChart/common/images/green.svg +0 -54
- package/lib/AlgorithmChart/common/images/lightBlue.svg +0 -54
- package/lib/AlgorithmChart/common/images/lightGreen.svg +0 -55
- package/lib/AlgorithmChart/common/images/origin.png +0 -0
- package/lib/AlgorithmChart/common/images/purple.png +0 -0
- package/lib/AlgorithmChart/common/images/red.png +0 -0
- package/lib/AlgorithmChart/common/images/restart.png +0 -0
- package/lib/AlgorithmChart/common/images/stop.png +0 -0
- package/lib/AlgorithmChart/common/images/yellow.png +0 -0
- package/lib/AlgorithmChart/common/images/yellow.svg +0 -54
- package/lib/AlgorithmChart/index.js +0 -276
- package/lib/Antd/Affix.js +0 -3
- package/lib/Antd/Alert.js +0 -3
- package/lib/Antd/Anchor.js +0 -3
- package/lib/Antd/AutoComplete.js +0 -3
- package/lib/Antd/Avatar.js +0 -3
- package/lib/Antd/BackTop.js +0 -3
- package/lib/Antd/Badge.js +0 -4
- package/lib/Antd/Badge.less +0 -25
- package/lib/Antd/Beadcrumb.less +0 -34
- package/lib/Antd/Breadcrumb.js +0 -4
- package/lib/Antd/Button.js +0 -3
- package/lib/Antd/Calendar.js +0 -3
- package/lib/Antd/Card.js +0 -3
- package/lib/Antd/Carousel.js +0 -3
- package/lib/Antd/Cascader.js +0 -3
- package/lib/Antd/Checkbox.js +0 -4
- package/lib/Antd/Checkbox.less +0 -8
- package/lib/Antd/Col.js +0 -3
- package/lib/Antd/Collapse.js +0 -4
- package/lib/Antd/Collapse.less +0 -129
- package/lib/Antd/Comment.js +0 -3
- package/lib/Antd/ConfigProvider.js +0 -3
- package/lib/Antd/DatePicker.js +0 -3
- package/lib/Antd/Descriptions.js +0 -3
- package/lib/Antd/Divider.js +0 -3
- package/lib/Antd/Drawer.js +0 -120
- package/lib/Antd/Drawer.less +0 -305
- package/lib/Antd/Dropdown.js +0 -4
- package/lib/Antd/Dropdown.less +0 -124
- package/lib/Antd/Empty.js +0 -3
- package/lib/Antd/Form.js +0 -4
- package/lib/Antd/Form.less +0 -363
- package/lib/Antd/Icon.js +0 -3
- package/lib/Antd/Input.js +0 -3
- package/lib/Antd/InputNumber.js +0 -3
- package/lib/Antd/Layout.js +0 -4
- package/lib/Antd/Layout.less +0 -6
- package/lib/Antd/List.js +0 -3
- package/lib/Antd/LocaleProvider.js +0 -3
- package/lib/Antd/Mention.js +0 -3
- package/lib/Antd/Mentions.js +0 -3
- package/lib/Antd/Menu.js +0 -3
- package/lib/Antd/Modal.js +0 -3
- package/lib/Antd/PageHeader.js +0 -3
- package/lib/Antd/Pagination.js +0 -3
- package/lib/Antd/Popconfirm.js +0 -3
- package/lib/Antd/Popover.js +0 -3
- package/lib/Antd/Progress.js +0 -3
- package/lib/Antd/Radio.js +0 -4
- package/lib/Antd/Radio.less +0 -5
- package/lib/Antd/Rate.js +0 -3
- package/lib/Antd/Result.js +0 -3
- package/lib/Antd/Row.js +0 -3
- package/lib/Antd/Select.js +0 -3
- package/lib/Antd/Skeleton.js +0 -3
- package/lib/Antd/Slider.js +0 -3
- package/lib/Antd/Spin.js +0 -4
- package/lib/Antd/Spin.less +0 -16
- package/lib/Antd/Statistic.js +0 -3
- package/lib/Antd/Steps.js +0 -4
- package/lib/Antd/Steps.less +0 -502
- package/lib/Antd/Switch.js +0 -4
- package/lib/Antd/Switch.less +0 -62
- package/lib/Antd/Table.js +0 -4
- package/lib/Antd/Table.less +0 -306
- package/lib/Antd/Tabs.js +0 -3
- package/lib/Antd/Tag.js +0 -4
- package/lib/Antd/Tag.less +0 -12
- package/lib/Antd/TimePicker.js +0 -3
- package/lib/Antd/Timeline.js +0 -3
- package/lib/Antd/Tooltip.js +0 -3
- package/lib/Antd/Transfer.js +0 -3
- package/lib/Antd/Tree.js +0 -3
- package/lib/Antd/TreeSelect.js +0 -4
- package/lib/Antd/TreeSelect.less +0 -10
- package/lib/Antd/Typography.js +0 -3
- package/lib/Antd/Upload.js +0 -3
- package/lib/Antd/message.js +0 -6
- package/lib/Antd/notification.js +0 -3
- package/lib/Antd/version.js +0 -3
- package/lib/Antd3/es/_util/colors.js +0 -3
- package/lib/Antd3/es/_util/easings.js +0 -9
- package/lib/Antd3/es/_util/getDataOrAriaProps.js +0 -8
- package/lib/Antd3/es/_util/getScroll.js +0 -14
- package/lib/Antd3/es/_util/interopDefault.js +0 -5
- package/lib/Antd3/es/_util/motion.js +0 -28
- package/lib/Antd3/es/_util/openAnimation.js +0 -51
- package/lib/Antd3/es/_util/raf.js +0 -26
- package/lib/Antd3/es/_util/reactNode.js +0 -9
- package/lib/Antd3/es/_util/ref.js +0 -31
- package/lib/Antd3/es/_util/responsiveObserve.js +0 -113
- package/lib/Antd3/es/_util/scrollTo.js +0 -32
- package/lib/Antd3/es/_util/styleChecker.js +0 -12
- package/lib/Antd3/es/_util/throttleByAnimationFrame.js +0 -74
- package/lib/Antd3/es/_util/transButton.js +0 -194
- package/lib/Antd3/es/_util/triggerEvent.js +0 -8
- package/lib/Antd3/es/_util/type.js +0 -13
- package/lib/Antd3/es/_util/warning.js +0 -5
- package/lib/Antd3/es/_util/wave.js +0 -267
- package/lib/Antd3/es/affix/index.js +0 -382
- package/lib/Antd3/es/affix/style/css.js +0 -2
- package/lib/Antd3/es/affix/style/index.js +0 -2
- package/lib/Antd3/es/affix/style/index.less +0 -6
- package/lib/Antd3/es/affix/utils.js +0 -76
- package/lib/Antd3/es/alert/index.js +0 -263
- package/lib/Antd3/es/alert/style/css.js +0 -2
- package/lib/Antd3/es/alert/style/index.js +0 -2
- package/lib/Antd3/es/alert/style/index.less +0 -188
- package/lib/Antd3/es/anchor/Anchor.js +0 -373
- package/lib/Antd3/es/anchor/AnchorLink.js +0 -197
- package/lib/Antd3/es/anchor/index.js +0 -4
- package/lib/Antd3/es/anchor/style/css.js +0 -4
- package/lib/Antd3/es/anchor/style/index.js +0 -4
- package/lib/Antd3/es/anchor/style/index.less +0 -82
- package/lib/Antd3/es/auto-complete/InputElement.js +0 -137
- package/lib/Antd3/es/auto-complete/index.js +0 -227
- package/lib/Antd3/es/auto-complete/style/css.js +0 -5
- package/lib/Antd3/es/auto-complete/style/index.js +0 -5
- package/lib/Antd3/es/auto-complete/style/index.less +0 -92
- package/lib/Antd3/es/avatar/index.js +0 -295
- package/lib/Antd3/es/avatar/style/css.js +0 -2
- package/lib/Antd3/es/avatar/style/index.js +0 -2
- package/lib/Antd3/es/avatar/style/index.less +0 -59
- package/lib/Antd3/es/back-top/index.js +0 -207
- package/lib/Antd3/es/back-top/style/css.js +0 -2
- package/lib/Antd3/es/back-top/style/index.js +0 -2
- package/lib/Antd3/es/back-top/style/index.less +0 -42
- package/lib/Antd3/es/back-top/style/responsive.less +0 -11
- package/lib/Antd3/es/badge/ScrollNumber.js +0 -310
- package/lib/Antd3/es/badge/index.js +0 -353
- package/lib/Antd3/es/badge/style/css.js +0 -2
- package/lib/Antd3/es/badge/style/index.js +0 -2
- package/lib/Antd3/es/badge/style/index.less +0 -190
- package/lib/Antd3/es/breadcrumb/Breadcrumb.js +0 -293
- package/lib/Antd3/es/breadcrumb/BreadcrumbItem.js +0 -199
- package/lib/Antd3/es/breadcrumb/BreadcrumbSeparator.js +0 -125
- package/lib/Antd3/es/breadcrumb/index.js +0 -6
- package/lib/Antd3/es/breadcrumb/style/css.js +0 -4
- package/lib/Antd3/es/breadcrumb/style/index.js +0 -4
- package/lib/Antd3/es/breadcrumb/style/index.less +0 -51
- package/lib/Antd3/es/button/button-group.js +0 -68
- package/lib/Antd3/es/button/button.js +0 -372
- package/lib/Antd3/es/button/index.js +0 -4
- package/lib/Antd3/es/button/style/css.js +0 -2
- package/lib/Antd3/es/button/style/index.js +0 -2
- package/lib/Antd3/es/button/style/index.less +0 -224
- package/lib/Antd3/es/button/style/mixin.less +0 -357
- package/lib/Antd3/es/calendar/Header.js +0 -355
- package/lib/Antd3/es/calendar/index.js +0 -391
- package/lib/Antd3/es/calendar/locale/ar_EG.js +0 -2
- package/lib/Antd3/es/calendar/locale/bg_BG.js +0 -2
- package/lib/Antd3/es/calendar/locale/ca_ES.js +0 -2
- package/lib/Antd3/es/calendar/locale/cs_CZ.js +0 -2
- package/lib/Antd3/es/calendar/locale/da_DK.js +0 -2
- package/lib/Antd3/es/calendar/locale/de_DE.js +0 -2
- package/lib/Antd3/es/calendar/locale/el_GR.js +0 -2
- package/lib/Antd3/es/calendar/locale/en_GB.js +0 -2
- package/lib/Antd3/es/calendar/locale/en_US.js +0 -2
- package/lib/Antd3/es/calendar/locale/es_ES.js +0 -2
- package/lib/Antd3/es/calendar/locale/et_EE.js +0 -2
- package/lib/Antd3/es/calendar/locale/fa_IR.js +0 -2
- package/lib/Antd3/es/calendar/locale/fi_FI.js +0 -2
- package/lib/Antd3/es/calendar/locale/fr_BE.js +0 -2
- package/lib/Antd3/es/calendar/locale/fr_FR.js +0 -2
- package/lib/Antd3/es/calendar/locale/ga_IE.js +0 -2
- package/lib/Antd3/es/calendar/locale/he_IL.js +0 -2
- package/lib/Antd3/es/calendar/locale/hi_IN.js +0 -2
- package/lib/Antd3/es/calendar/locale/hr_HR.js +0 -2
- package/lib/Antd3/es/calendar/locale/hu_HU.js +0 -2
- package/lib/Antd3/es/calendar/locale/id_ID.js +0 -2
- package/lib/Antd3/es/calendar/locale/is_IS.js +0 -2
- package/lib/Antd3/es/calendar/locale/it_IT.js +0 -2
- package/lib/Antd3/es/calendar/locale/ja_JP.js +0 -2
- package/lib/Antd3/es/calendar/locale/kn_IN.js +0 -2
- package/lib/Antd3/es/calendar/locale/ko_KR.js +0 -2
- package/lib/Antd3/es/calendar/locale/ku_IQ.js +0 -2
- package/lib/Antd3/es/calendar/locale/lv_LV.js +0 -2
- package/lib/Antd3/es/calendar/locale/mk_MK.js +0 -2
- package/lib/Antd3/es/calendar/locale/mn_MN.js +0 -2
- package/lib/Antd3/es/calendar/locale/ms_MY.js +0 -2
- package/lib/Antd3/es/calendar/locale/nb_NO.js +0 -2
- package/lib/Antd3/es/calendar/locale/nl_BE.js +0 -2
- package/lib/Antd3/es/calendar/locale/nl_NL.js +0 -2
- package/lib/Antd3/es/calendar/locale/pl_PL.js +0 -2
- package/lib/Antd3/es/calendar/locale/pt_BR.js +0 -2
- package/lib/Antd3/es/calendar/locale/pt_PT.js +0 -2
- package/lib/Antd3/es/calendar/locale/ro_RO.js +0 -2
- package/lib/Antd3/es/calendar/locale/ru_RU.js +0 -2
- package/lib/Antd3/es/calendar/locale/sk_SK.js +0 -2
- package/lib/Antd3/es/calendar/locale/sl_SI.js +0 -2
- package/lib/Antd3/es/calendar/locale/sr_RS.js +0 -2
- package/lib/Antd3/es/calendar/locale/sv_SE.js +0 -2
- package/lib/Antd3/es/calendar/locale/ta_IN.js +0 -2
- package/lib/Antd3/es/calendar/locale/th_TH.js +0 -2
- package/lib/Antd3/es/calendar/locale/tr_TR.js +0 -2
- package/lib/Antd3/es/calendar/locale/uk_UA.js +0 -2
- package/lib/Antd3/es/calendar/locale/vi_VN.js +0 -2
- package/lib/Antd3/es/calendar/locale/zh_CN.js +0 -2
- package/lib/Antd3/es/calendar/locale/zh_TW.js +0 -2
- package/lib/Antd3/es/calendar/style/css.js +0 -5
- package/lib/Antd3/es/calendar/style/index.js +0 -5
- package/lib/Antd3/es/calendar/style/index.less +0 -278
- package/lib/Antd3/es/card/Grid.js +0 -56
- package/lib/Antd3/es/card/Meta.js +0 -56
- package/lib/Antd3/es/card/index.js +0 -338
- package/lib/Antd3/es/card/style/css.js +0 -6
- package/lib/Antd3/es/card/style/index.js +0 -6
- package/lib/Antd3/es/card/style/index.less +0 -263
- package/lib/Antd3/es/card/style/size.less +0 -25
- package/lib/Antd3/es/carousel/index.js +0 -246
- package/lib/Antd3/es/carousel/style/css.js +0 -2
- package/lib/Antd3/es/carousel/style/index.js +0 -2
- package/lib/Antd3/es/carousel/style/index.less +0 -238
- package/lib/Antd3/es/cascader/index.js +0 -567
- package/lib/Antd3/es/cascader/style/css.js +0 -5
- package/lib/Antd3/es/cascader/style/index.js +0 -5
- package/lib/Antd3/es/cascader/style/index.less +0 -227
- package/lib/Antd3/es/checkbox/Checkbox.js +0 -268
- package/lib/Antd3/es/checkbox/Group.js +0 -316
- package/lib/Antd3/es/checkbox/index.js +0 -4
- package/lib/Antd3/es/checkbox/style/css.js +0 -2
- package/lib/Antd3/es/checkbox/style/index.js +0 -2
- package/lib/Antd3/es/checkbox/style/index.less +0 -4
- package/lib/Antd3/es/checkbox/style/mixin.less +0 -220
- package/lib/Antd3/es/col/style/css.js +0 -4
- package/lib/Antd3/es/col/style/index.js +0 -4
- package/lib/Antd3/es/collapse/Collapse.js +0 -187
- package/lib/Antd3/es/collapse/CollapsePanel.js +0 -160
- package/lib/Antd3/es/collapse/style/css.js +0 -2
- package/lib/Antd3/es/collapse/style/index.js +0 -2
- package/lib/Antd3/es/collapse/style/index.less +0 -134
- package/lib/Antd3/es/comment/index.js +0 -201
- package/lib/Antd3/es/comment/style/css.js +0 -2
- package/lib/Antd3/es/comment/style/index.js +0 -2
- package/lib/Antd3/es/comment/style/index.less +0 -93
- package/lib/Antd3/es/config-provider/context.js +0 -46
- package/lib/Antd3/es/config-provider/index.js +0 -180
- package/lib/Antd3/es/config-provider/renderEmpty.js +0 -28
- package/lib/Antd3/es/config-provider/style/css.js +0 -1
- package/lib/Antd3/es/config-provider/style/index.js +0 -1
- package/lib/Antd3/es/config-provider/style/index.less +0 -2
- package/lib/Antd3/es/date-picker/InputIcon.js +0 -29
- package/lib/Antd3/es/date-picker/RangePicker.js +0 -596
- package/lib/Antd3/es/date-picker/WeekPicker.js +0 -324
- package/lib/Antd3/es/date-picker/createPicker.js +0 -352
- package/lib/Antd3/es/date-picker/index.js +0 -28
- package/lib/Antd3/es/date-picker/interface.js +0 -2
- package/lib/Antd3/es/date-picker/locale/ar_EG.js +0 -31
- package/lib/Antd3/es/date-picker/locale/bg_BG.js +0 -27
- package/lib/Antd3/es/date-picker/locale/ca_ES.js +0 -27
- package/lib/Antd3/es/date-picker/locale/cs_CZ.js +0 -27
- package/lib/Antd3/es/date-picker/locale/da_DK.js +0 -27
- package/lib/Antd3/es/date-picker/locale/de_DE.js +0 -27
- package/lib/Antd3/es/date-picker/locale/el_GR.js +0 -27
- package/lib/Antd3/es/date-picker/locale/en_GB.js +0 -27
- package/lib/Antd3/es/date-picker/locale/en_US.js +0 -27
- package/lib/Antd3/es/date-picker/locale/es_ES.js +0 -27
- package/lib/Antd3/es/date-picker/locale/et_EE.js +0 -27
- package/lib/Antd3/es/date-picker/locale/fa_IR.js +0 -27
- package/lib/Antd3/es/date-picker/locale/fi_FI.js +0 -27
- package/lib/Antd3/es/date-picker/locale/fr_BE.js +0 -27
- package/lib/Antd3/es/date-picker/locale/fr_FR.js +0 -27
- package/lib/Antd3/es/date-picker/locale/ga_IE.js +0 -27
- package/lib/Antd3/es/date-picker/locale/he_IL.js +0 -27
- package/lib/Antd3/es/date-picker/locale/hi_IN.js +0 -27
- package/lib/Antd3/es/date-picker/locale/hr_HR.js +0 -27
- package/lib/Antd3/es/date-picker/locale/hu_HU.js +0 -27
- package/lib/Antd3/es/date-picker/locale/id_ID.js +0 -27
- package/lib/Antd3/es/date-picker/locale/is_IS.js +0 -27
- package/lib/Antd3/es/date-picker/locale/it_IT.js +0 -27
- package/lib/Antd3/es/date-picker/locale/ja_JP.js +0 -26
- package/lib/Antd3/es/date-picker/locale/kn_IN.js +0 -27
- package/lib/Antd3/es/date-picker/locale/ko_KR.js +0 -27
- package/lib/Antd3/es/date-picker/locale/ku_IQ.js +0 -27
- package/lib/Antd3/es/date-picker/locale/lv_LV.js +0 -27
- package/lib/Antd3/es/date-picker/locale/mk_MK.js +0 -27
- package/lib/Antd3/es/date-picker/locale/mn_MN.js +0 -27
- package/lib/Antd3/es/date-picker/locale/ms_MY.js +0 -27
- package/lib/Antd3/es/date-picker/locale/nb_NO.js +0 -27
- package/lib/Antd3/es/date-picker/locale/nl_BE.js +0 -27
- package/lib/Antd3/es/date-picker/locale/nl_NL.js +0 -27
- package/lib/Antd3/es/date-picker/locale/pl_PL.js +0 -27
- package/lib/Antd3/es/date-picker/locale/pt_BR.js +0 -27
- package/lib/Antd3/es/date-picker/locale/pt_PT.js +0 -55
- package/lib/Antd3/es/date-picker/locale/ro_RO.js +0 -27
- package/lib/Antd3/es/date-picker/locale/ru_RU.js +0 -30
- package/lib/Antd3/es/date-picker/locale/sk_SK.js +0 -27
- package/lib/Antd3/es/date-picker/locale/sl_SI.js +0 -52
- package/lib/Antd3/es/date-picker/locale/sr_RS.js +0 -27
- package/lib/Antd3/es/date-picker/locale/sv_SE.js +0 -26
- package/lib/Antd3/es/date-picker/locale/ta_IN.js +0 -29
- package/lib/Antd3/es/date-picker/locale/th_TH.js +0 -27
- package/lib/Antd3/es/date-picker/locale/tr_TR.js +0 -27
- package/lib/Antd3/es/date-picker/locale/uk_UA.js +0 -26
- package/lib/Antd3/es/date-picker/locale/vi_VN.js +0 -27
- package/lib/Antd3/es/date-picker/locale/zh_CN.js +0 -28
- package/lib/Antd3/es/date-picker/locale/zh_TW.js +0 -27
- package/lib/Antd3/es/date-picker/style/Calendar.less +0 -402
- package/lib/Antd3/es/date-picker/style/DecadePanel.less +0 -81
- package/lib/Antd3/es/date-picker/style/MonthPanel.less +0 -86
- package/lib/Antd3/es/date-picker/style/MonthPicker.less +0 -11
- package/lib/Antd3/es/date-picker/style/Picker.less +0 -113
- package/lib/Antd3/es/date-picker/style/RangePicker.less +0 -248
- package/lib/Antd3/es/date-picker/style/TimePicker.less +0 -151
- package/lib/Antd3/es/date-picker/style/WeekPicker.less +0 -21
- package/lib/Antd3/es/date-picker/style/YearPanel.less +0 -85
- package/lib/Antd3/es/date-picker/style/css.js +0 -7
- package/lib/Antd3/es/date-picker/style/index.js +0 -7
- package/lib/Antd3/es/date-picker/style/index.less +0 -17
- package/lib/Antd3/es/date-picker/utils.js +0 -10
- package/lib/Antd3/es/date-picker/wrapPicker.js +0 -324
- package/lib/Antd3/es/descriptions/Col.js +0 -73
- package/lib/Antd3/es/descriptions/index.js +0 -323
- package/lib/Antd3/es/descriptions/style/css.js +0 -2
- package/lib/Antd3/es/descriptions/style/index.js +0 -2
- package/lib/Antd3/es/descriptions/style/index.less +0 -144
- package/lib/Antd3/es/divider/index.js +0 -66
- package/lib/Antd3/es/divider/style/css.js +0 -2
- package/lib/Antd3/es/divider/style/index.js +0 -2
- package/lib/Antd3/es/divider/style/index.less +0 -109
- package/lib/Antd3/es/drawer/index.js +0 -334
- package/lib/Antd3/es/drawer/style/css.js +0 -3
- package/lib/Antd3/es/drawer/style/drawer.less +0 -230
- package/lib/Antd3/es/drawer/style/index.js +0 -3
- package/lib/Antd3/es/drawer/style/index.less +0 -3
- package/lib/Antd3/es/dropdown/dropdown-button.js +0 -200
- package/lib/Antd3/es/dropdown/dropdown.js +0 -222
- package/lib/Antd3/es/dropdown/index.js +0 -4
- package/lib/Antd3/es/dropdown/style/css.js +0 -4
- package/lib/Antd3/es/dropdown/style/index.js +0 -4
- package/lib/Antd3/es/dropdown/style/index.less +0 -282
- package/lib/Antd3/es/empty/empty.js +0 -48
- package/lib/Antd3/es/empty/index.js +0 -87
- package/lib/Antd3/es/empty/simple.js +0 -28
- package/lib/Antd3/es/empty/style/css.js +0 -2
- package/lib/Antd3/es/empty/style/index.js +0 -2
- package/lib/Antd3/es/empty/style/index.less +0 -52
- package/lib/Antd3/es/form/Form.js +0 -212
- package/lib/Antd3/es/form/FormItem.js +0 -525
- package/lib/Antd3/es/form/context.js +0 -6
- package/lib/Antd3/es/form/index.js +0 -2
- package/lib/Antd3/es/form/interface.js +0 -0
- package/lib/Antd3/es/form/style/css.js +0 -4
- package/lib/Antd3/es/form/style/index.js +0 -4
- package/lib/Antd3/es/form/style/index.less +0 -653
- package/lib/Antd3/es/form/style/mixin.less +0 -126
- package/lib/Antd3/es/grid/RowContext.js +0 -3
- package/lib/Antd3/es/grid/col.js +0 -219
- package/lib/Antd3/es/grid/index.js +0 -3
- package/lib/Antd3/es/grid/row.js +0 -248
- package/lib/Antd3/es/grid/style/css.js +0 -2
- package/lib/Antd3/es/grid/style/index.js +0 -2
- package/lib/Antd3/es/grid/style/index.less +0 -122
- package/lib/Antd3/es/grid/style/mixin.less +0 -101
- package/lib/Antd3/es/icon/IconFont.js +0 -65
- package/lib/Antd3/es/icon/__tests__/logo.svg +0 -0
- package/lib/Antd3/es/icon/index.js +0 -165
- package/lib/Antd3/es/icon/style/css.js +0 -2
- package/lib/Antd3/es/icon/style/index.js +0 -2
- package/lib/Antd3/es/icon/style/index.less +0 -4
- package/lib/Antd3/es/icon/twoTonePrimaryColor.js +0 -10
- package/lib/Antd3/es/icon/utils.js +0 -67
- package/lib/Antd3/es/input/ClearableLabeledInput.js +0 -264
- package/lib/Antd3/es/input/Group.js +0 -36
- package/lib/Antd3/es/input/Input.js +0 -335
- package/lib/Antd3/es/input/Password.js +0 -232
- package/lib/Antd3/es/input/ResizableTextArea.js +0 -246
- package/lib/Antd3/es/input/Search.js +0 -318
- package/lib/Antd3/es/input/TextArea.js +0 -220
- package/lib/Antd3/es/input/calculateNodeHeight.js +0 -98
- package/lib/Antd3/es/input/index.js +0 -10
- package/lib/Antd3/es/input/style/css.js +0 -4
- package/lib/Antd3/es/input/style/index.js +0 -4
- package/lib/Antd3/es/input/style/index.less +0 -57
- package/lib/Antd3/es/input/style/mixin.less +0 -449
- package/lib/Antd3/es/input/style/search-input.less +0 -34
- package/lib/Antd3/es/input-number/index.js +0 -198
- package/lib/Antd3/es/input-number/style/css.js +0 -2
- package/lib/Antd3/es/input-number/style/index.js +0 -2
- package/lib/Antd3/es/input-number/style/index.less +0 -179
- package/lib/Antd3/es/layout/Sider.js +0 -376
- package/lib/Antd3/es/layout/index.js +0 -4
- package/lib/Antd3/es/layout/layout.js +0 -300
- package/lib/Antd3/es/layout/style/css.js +0 -2
- package/lib/Antd3/es/layout/style/index.js +0 -2
- package/lib/Antd3/es/layout/style/index.less +0 -124
- package/lib/Antd3/es/layout/style/light.less +0 -15
- package/lib/Antd3/es/list/Item.js +0 -261
- package/lib/Antd3/es/list/index.js +0 -369
- package/lib/Antd3/es/list/style/bordered.less +0 -41
- package/lib/Antd3/es/list/style/css.js +0 -7
- package/lib/Antd3/es/list/style/index.js +0 -7
- package/lib/Antd3/es/list/style/index.less +0 -234
- package/lib/Antd3/es/list/style/responsive.less +0 -40
- package/lib/Antd3/es/locale/ar_EG.js +0 -42
- package/lib/Antd3/es/locale/bg_BG.js +0 -42
- package/lib/Antd3/es/locale/ca_ES.js +0 -40
- package/lib/Antd3/es/locale/cs_CZ.js +0 -40
- package/lib/Antd3/es/locale/da_DK.js +0 -42
- package/lib/Antd3/es/locale/de_DE.js +0 -42
- package/lib/Antd3/es/locale/default.js +0 -61
- package/lib/Antd3/es/locale/el_GR.js +0 -42
- package/lib/Antd3/es/locale/en_GB.js +0 -42
- package/lib/Antd3/es/locale/en_US.js +0 -2
- package/lib/Antd3/es/locale/es_ES.js +0 -58
- package/lib/Antd3/es/locale/et_EE.js +0 -42
- package/lib/Antd3/es/locale/fa_IR.js +0 -42
- package/lib/Antd3/es/locale/fi_FI.js +0 -43
- package/lib/Antd3/es/locale/fr_BE.js +0 -46
- package/lib/Antd3/es/locale/fr_FR.js +0 -46
- package/lib/Antd3/es/locale/ga_IE.js +0 -42
- package/lib/Antd3/es/locale/he_IL.js +0 -42
- package/lib/Antd3/es/locale/hi_IN.js +0 -50
- package/lib/Antd3/es/locale/hr_HR.js +0 -56
- package/lib/Antd3/es/locale/hu_HU.js +0 -43
- package/lib/Antd3/es/locale/hy_AM.js +0 -107
- package/lib/Antd3/es/locale/id_ID.js +0 -44
- package/lib/Antd3/es/locale/is_IS.js +0 -42
- package/lib/Antd3/es/locale/it_IT.js +0 -55
- package/lib/Antd3/es/locale/ja_JP.js +0 -42
- package/lib/Antd3/es/locale/kn_IN.js +0 -50
- package/lib/Antd3/es/locale/ko_KR.js +0 -42
- package/lib/Antd3/es/locale/ku_IQ.js +0 -42
- package/lib/Antd3/es/locale/lv_LV.js +0 -42
- package/lib/Antd3/es/locale/mk_MK.js +0 -57
- package/lib/Antd3/es/locale/mn_MN.js +0 -42
- package/lib/Antd3/es/locale/ms_MY.js +0 -62
- package/lib/Antd3/es/locale/nb_NO.js +0 -42
- package/lib/Antd3/es/locale/ne_NP.js +0 -43
- package/lib/Antd3/es/locale/nl_BE.js +0 -42
- package/lib/Antd3/es/locale/nl_NL.js +0 -61
- package/lib/Antd3/es/locale/pl_PL.js +0 -42
- package/lib/Antd3/es/locale/pt_BR.js +0 -48
- package/lib/Antd3/es/locale/pt_PT.js +0 -43
- package/lib/Antd3/es/locale/ro_RO.js +0 -61
- package/lib/Antd3/es/locale/ru_RU.js +0 -52
- package/lib/Antd3/es/locale/sk_SK.js +0 -61
- package/lib/Antd3/es/locale/sl_SI.js +0 -42
- package/lib/Antd3/es/locale/sr_RS.js +0 -42
- package/lib/Antd3/es/locale/sv_SE.js +0 -46
- package/lib/Antd3/es/locale/ta_IN.js +0 -62
- package/lib/Antd3/es/locale/th_TH.js +0 -61
- package/lib/Antd3/es/locale/tr_TR.js +0 -56
- package/lib/Antd3/es/locale/uk_UA.js +0 -42
- package/lib/Antd3/es/locale/vi_VN.js +0 -42
- package/lib/Antd3/es/locale/zh_CN.js +0 -61
- package/lib/Antd3/es/locale/zh_TW.js +0 -45
- package/lib/Antd3/es/locale-provider/LocaleReceiver.js +0 -157
- package/lib/Antd3/es/locale-provider/ar_EG.js +0 -2
- package/lib/Antd3/es/locale-provider/bg_BG.js +0 -2
- package/lib/Antd3/es/locale-provider/ca_ES.js +0 -2
- package/lib/Antd3/es/locale-provider/cs_CZ.js +0 -2
- package/lib/Antd3/es/locale-provider/da_DK.js +0 -2
- package/lib/Antd3/es/locale-provider/de_DE.js +0 -2
- package/lib/Antd3/es/locale-provider/default.js +0 -2
- package/lib/Antd3/es/locale-provider/el_GR.js +0 -2
- package/lib/Antd3/es/locale-provider/en_GB.js +0 -2
- package/lib/Antd3/es/locale-provider/en_US.js +0 -2
- package/lib/Antd3/es/locale-provider/es_ES.js +0 -2
- package/lib/Antd3/es/locale-provider/et_EE.js +0 -2
- package/lib/Antd3/es/locale-provider/fa_IR.js +0 -2
- package/lib/Antd3/es/locale-provider/fi_FI.js +0 -2
- package/lib/Antd3/es/locale-provider/fr_BE.js +0 -2
- package/lib/Antd3/es/locale-provider/fr_FR.js +0 -2
- package/lib/Antd3/es/locale-provider/ga_IE.js +0 -2
- package/lib/Antd3/es/locale-provider/he_IL.js +0 -2
- package/lib/Antd3/es/locale-provider/hi_IN.js +0 -2
- package/lib/Antd3/es/locale-provider/hr_HR.js +0 -2
- package/lib/Antd3/es/locale-provider/hu_HU.js +0 -2
- package/lib/Antd3/es/locale-provider/hy_AM.js +0 -2
- package/lib/Antd3/es/locale-provider/id_ID.js +0 -2
- package/lib/Antd3/es/locale-provider/index.js +0 -177
- package/lib/Antd3/es/locale-provider/is_IS.js +0 -2
- package/lib/Antd3/es/locale-provider/it_IT.js +0 -2
- package/lib/Antd3/es/locale-provider/ja_JP.js +0 -2
- package/lib/Antd3/es/locale-provider/kn_IN.js +0 -2
- package/lib/Antd3/es/locale-provider/ko_KR.js +0 -2
- package/lib/Antd3/es/locale-provider/ku_IQ.js +0 -2
- package/lib/Antd3/es/locale-provider/lv_LV.js +0 -2
- package/lib/Antd3/es/locale-provider/mk_MK.js +0 -2
- package/lib/Antd3/es/locale-provider/mn_MN.js +0 -2
- package/lib/Antd3/es/locale-provider/ms_MY.js +0 -2
- package/lib/Antd3/es/locale-provider/nb_NO.js +0 -2
- package/lib/Antd3/es/locale-provider/ne-NP.js +0 -2
- package/lib/Antd3/es/locale-provider/ne_NP.js +0 -2
- package/lib/Antd3/es/locale-provider/nl_BE.js +0 -2
- package/lib/Antd3/es/locale-provider/nl_NL.js +0 -2
- package/lib/Antd3/es/locale-provider/pl_PL.js +0 -2
- package/lib/Antd3/es/locale-provider/pt_BR.js +0 -2
- package/lib/Antd3/es/locale-provider/pt_PT.js +0 -2
- package/lib/Antd3/es/locale-provider/ro_RO.js +0 -2
- package/lib/Antd3/es/locale-provider/ru_RU.js +0 -2
- package/lib/Antd3/es/locale-provider/sk_SK.js +0 -2
- package/lib/Antd3/es/locale-provider/sl_SI.js +0 -2
- package/lib/Antd3/es/locale-provider/sr_RS.js +0 -2
- package/lib/Antd3/es/locale-provider/style/css.js +0 -1
- package/lib/Antd3/es/locale-provider/style/index.js +0 -1
- package/lib/Antd3/es/locale-provider/style/index.less +0 -2
- package/lib/Antd3/es/locale-provider/sv_SE.js +0 -2
- package/lib/Antd3/es/locale-provider/ta_IN.js +0 -61
- package/lib/Antd3/es/locale-provider/th_TH.js +0 -2
- package/lib/Antd3/es/locale-provider/tr_TR.js +0 -2
- package/lib/Antd3/es/locale-provider/uk_UA.js +0 -2
- package/lib/Antd3/es/locale-provider/vi_VN.js +0 -2
- package/lib/Antd3/es/locale-provider/zh_CN.js +0 -2
- package/lib/Antd3/es/locale-provider/zh_TW.js +0 -2
- package/lib/Antd3/es/mention/index.js +0 -244
- package/lib/Antd3/es/mention/style/css.js +0 -1
- package/lib/Antd3/es/mention/style/index.js +0 -1
- package/lib/Antd3/es/mention/style/index.less +0 -133
- package/lib/Antd3/es/mentions/index.js +0 -286
- package/lib/Antd3/es/mentions/style/css.js +0 -4
- package/lib/Antd3/es/mentions/style/index.js +0 -4
- package/lib/Antd3/es/mentions/style/index.less +0 -164
- package/lib/Antd3/es/menu/MenuContext.js +0 -5
- package/lib/Antd3/es/menu/MenuItem.js +0 -179
- package/lib/Antd3/es/menu/SubMenu.js +0 -154
- package/lib/Antd3/es/menu/index.js +0 -394
- package/lib/Antd3/es/menu/style/css.js +0 -5
- package/lib/Antd3/es/menu/style/dark.less +0 -139
- package/lib/Antd3/es/menu/style/index.js +0 -5
- package/lib/Antd3/es/menu/style/index.less +0 -515
- package/lib/Antd3/es/message/index.js +0 -148
- package/lib/Antd3/es/message/style/css.js +0 -2
- package/lib/Antd3/es/message/style/index.js +0 -2
- package/lib/Antd3/es/message/style/index.less +0 -75
- package/lib/Antd3/es/modal/ActionButton.js +0 -194
- package/lib/Antd3/es/modal/Modal.js +0 -263
- package/lib/Antd3/es/modal/confirm.js +0 -181
- package/lib/Antd3/es/modal/index.js +0 -76
- package/lib/Antd3/es/modal/locale.js +0 -26
- package/lib/Antd3/es/modal/style/confirm.less +0 -78
- package/lib/Antd3/es/modal/style/css.js +0 -4
- package/lib/Antd3/es/modal/style/index.js +0 -4
- package/lib/Antd3/es/modal/style/index.less +0 -4
- package/lib/Antd3/es/modal/style/modal.less +0 -165
- package/lib/Antd3/es/notification/index.js +0 -200
- package/lib/Antd3/es/notification/style/css.js +0 -2
- package/lib/Antd3/es/notification/style/index.js +0 -2
- package/lib/Antd3/es/notification/style/index.less +0 -199
- package/lib/Antd3/es/page-header/index.js +0 -118
- package/lib/Antd3/es/page-header/style/css.js +0 -4
- package/lib/Antd3/es/page-header/style/index.js +0 -4
- package/lib/Antd3/es/page-header/style/index.less +0 -119
- package/lib/Antd3/es/pagination/MiniSelect.js +0 -131
- package/lib/Antd3/es/pagination/Pagination.js +0 -214
- package/lib/Antd3/es/pagination/style/css.js +0 -4
- package/lib/Antd3/es/pagination/style/index.js +0 -4
- package/lib/Antd3/es/pagination/style/index.less +0 -400
- package/lib/Antd3/es/popconfirm/index.js +0 -267
- package/lib/Antd3/es/popconfirm/style/css.js +0 -5
- package/lib/Antd3/es/popconfirm/style/index.js +0 -5
- package/lib/Antd3/es/popover/index.js +0 -184
- package/lib/Antd3/es/popover/style/css.js +0 -3
- package/lib/Antd3/es/popover/style/index.js +0 -3
- package/lib/Antd3/es/popover/style/index.less +0 -205
- package/lib/Antd3/es/progress/Circle.js +0 -80
- package/lib/Antd3/es/progress/Line.js +0 -183
- package/lib/Antd3/es/progress/progress.js +0 -267
- package/lib/Antd3/es/progress/style/css.js +0 -2
- package/lib/Antd3/es/progress/style/index.js +0 -2
- package/lib/Antd3/es/progress/style/index.less +0 -182
- package/lib/Antd3/es/progress/utils.js +0 -10
- package/lib/Antd3/es/radio/group.js +0 -256
- package/lib/Antd3/es/radio/index.js +0 -7
- package/lib/Antd3/es/radio/interface.js +0 -0
- package/lib/Antd3/es/radio/radio.js +0 -223
- package/lib/Antd3/es/radio/radioButton.js +0 -159
- package/lib/Antd3/es/radio/style/css.js +0 -2
- package/lib/Antd3/es/radio/style/index.js +0 -2
- package/lib/Antd3/es/radio/style/index.less +0 -327
- package/lib/Antd3/es/rate/index.js +0 -189
- package/lib/Antd3/es/rate/style/css.js +0 -4
- package/lib/Antd3/es/rate/style/index.js +0 -4
- package/lib/Antd3/es/rate/style/index.less +0 -85
- package/lib/Antd3/es/result/index.js +0 -84
- package/lib/Antd3/es/result/noFound.js +0 -237
- package/lib/Antd3/es/result/serverError.js +0 -277
- package/lib/Antd3/es/result/style/css.js +0 -2
- package/lib/Antd3/es/result/style/index.js +0 -2
- package/lib/Antd3/es/result/style/index.less +0 -71
- package/lib/Antd3/es/result/unauthorized.js +0 -227
- package/lib/Antd3/es/row/style/css.js +0 -4
- package/lib/Antd3/es/row/style/index.js +0 -4
- package/lib/Antd3/es/select/index.js +0 -299
- package/lib/Antd3/es/select/style/css.js +0 -4
- package/lib/Antd3/es/select/style/index.js +0 -4
- package/lib/Antd3/es/select/style/index.less +0 -604
- package/lib/Antd3/es/skeleton/Avatar.js +0 -162
- package/lib/Antd3/es/skeleton/Paragraph.js +0 -177
- package/lib/Antd3/es/skeleton/Title.js +0 -31
- package/lib/Antd3/es/skeleton/index.js +0 -251
- package/lib/Antd3/es/skeleton/style/css.js +0 -2
- package/lib/Antd3/es/skeleton/style/index.js +0 -2
- package/lib/Antd3/es/skeleton/style/index.less +0 -130
- package/lib/Antd3/es/slider/index.js +0 -259
- package/lib/Antd3/es/slider/style/css.js +0 -4
- package/lib/Antd3/es/slider/style/index.js +0 -4
- package/lib/Antd3/es/slider/style/index.less +0 -197
- package/lib/Antd3/es/spin/index.js +0 -300
- package/lib/Antd3/es/spin/style/css.js +0 -2
- package/lib/Antd3/es/spin/style/index.js +0 -2
- package/lib/Antd3/es/spin/style/index.less +0 -214
- package/lib/Antd3/es/statistic/Countdown.js +0 -201
- package/lib/Antd3/es/statistic/Number.js +0 -46
- package/lib/Antd3/es/statistic/Statistic.js +0 -57
- package/lib/Antd3/es/statistic/index.js +0 -4
- package/lib/Antd3/es/statistic/style/css.js +0 -2
- package/lib/Antd3/es/statistic/style/index.js +0 -2
- package/lib/Antd3/es/statistic/style/index.less +0 -40
- package/lib/Antd3/es/statistic/utils.js +0 -88
- package/lib/Antd3/es/steps/index.js +0 -163
- package/lib/Antd3/es/steps/style/compatibility.less +0 -50
- package/lib/Antd3/es/steps/style/css.js +0 -2
- package/lib/Antd3/es/steps/style/custom-icon.less +0 -31
- package/lib/Antd3/es/steps/style/index.js +0 -2
- package/lib/Antd3/es/steps/style/index.less +0 -246
- package/lib/Antd3/es/steps/style/label-placement.less +0 -38
- package/lib/Antd3/es/steps/style/nav.less +0 -124
- package/lib/Antd3/es/steps/style/progress-dot.less +0 -80
- package/lib/Antd3/es/steps/style/small.less +0 -45
- package/lib/Antd3/es/steps/style/vertical.less +0 -74
- package/lib/Antd3/es/style/color/bezierEasing.less +0 -110
- package/lib/Antd3/es/style/color/colorPalette.less +0 -75
- package/lib/Antd3/es/style/color/colors.less +0 -149
- package/lib/Antd3/es/style/color/tinyColor.less +0 -1184
- package/lib/Antd3/es/style/core/base.less +0 -510
- package/lib/Antd3/es/style/core/iconfont.less +0 -19
- package/lib/Antd3/es/style/core/index.less +0 -4
- package/lib/Antd3/es/style/core/motion/fade.less +0 -31
- package/lib/Antd3/es/style/core/motion/move.less +0 -120
- package/lib/Antd3/es/style/core/motion/other.less +0 -45
- package/lib/Antd3/es/style/core/motion/slide.less +0 -120
- package/lib/Antd3/es/style/core/motion/swing.less +0 -34
- package/lib/Antd3/es/style/core/motion/zoom.less +0 -162
- package/lib/Antd3/es/style/core/motion.less +0 -20
- package/lib/Antd3/es/style/css.js +0 -1
- package/lib/Antd3/es/style/index.js +0 -1
- package/lib/Antd3/es/style/index.less +0 -2
- package/lib/Antd3/es/style/mixins/clearfix.less +0 -13
- package/lib/Antd3/es/style/mixins/compatibility.less +0 -22
- package/lib/Antd3/es/style/mixins/iconfont.less +0 -43
- package/lib/Antd3/es/style/mixins/index.less +0 -10
- package/lib/Antd3/es/style/mixins/motion.less +0 -35
- package/lib/Antd3/es/style/mixins/operation-unit.less +0 -18
- package/lib/Antd3/es/style/mixins/reset.less +0 -13
- package/lib/Antd3/es/style/mixins/size.less +0 -10
- package/lib/Antd3/es/style/mixins/typography.less +0 -49
- package/lib/Antd3/es/style/themes/default.less +0 -699
- package/lib/Antd3/es/style/themes/index.less +0 -1
- package/lib/Antd3/es/style/v2-compatible-reset.js +0 -1
- package/lib/Antd3/es/style/v2-compatible-reset.less +0 -51
- package/lib/Antd3/es/switch/index.js +0 -198
- package/lib/Antd3/es/switch/style/css.js +0 -2
- package/lib/Antd3/es/switch/style/index.js +0 -2
- package/lib/Antd3/es/switch/style/index.less +0 -178
- package/lib/Antd3/es/table/Column.js +0 -95
- package/lib/Antd3/es/table/ColumnGroup.js +0 -94
- package/lib/Antd3/es/table/FilterDropdownMenuWrapper.js +0 -10
- package/lib/Antd3/es/table/SelectionBox.js +0 -195
- package/lib/Antd3/es/table/SelectionCheckboxAll.js +0 -327
- package/lib/Antd3/es/table/Table.js +0 -1380
- package/lib/Antd3/es/table/createBodyRow.js +0 -187
- package/lib/Antd3/es/table/createStore.js +0 -39
- package/lib/Antd3/es/table/filterDropdown.js +0 -430
- package/lib/Antd3/es/table/interface.js +0 -2
- package/lib/Antd3/es/table/style/css.js +0 -10
- package/lib/Antd3/es/table/style/index.js +0 -10
- package/lib/Antd3/es/table/style/index.less +0 -800
- package/lib/Antd3/es/table/style/size.less +0 -179
- package/lib/Antd3/es/table/util.js +0 -112
- package/lib/Antd3/es/tabs/TabBar.js +0 -191
- package/lib/Antd3/es/tabs/index.js +0 -277
- package/lib/Antd3/es/tabs/style/card-style.less +0 -186
- package/lib/Antd3/es/tabs/style/css.js +0 -2
- package/lib/Antd3/es/tabs/style/index.js +0 -2
- package/lib/Antd3/es/tabs/style/index.less +0 -436
- package/lib/Antd3/es/tag/CheckableTag.js +0 -179
- package/lib/Antd3/es/tag/index.js +0 -264
- package/lib/Antd3/es/tag/style/css.js +0 -2
- package/lib/Antd3/es/tag/style/index.js +0 -2
- package/lib/Antd3/es/tag/style/index.less +0 -106
- package/lib/Antd3/es/time-picker/index.js +0 -337
- package/lib/Antd3/es/time-picker/locale/da_DK.js +0 -4
- package/lib/Antd3/es/time-picker/locale/de_DE.js +0 -4
- package/lib/Antd3/es/time-picker/locale/en_US.js +0 -4
- package/lib/Antd3/es/time-picker/locale/fa_IR.js +0 -4
- package/lib/Antd3/es/time-picker/locale/fr_BE.js +0 -4
- package/lib/Antd3/es/time-picker/locale/fr_FR.js +0 -4
- package/lib/Antd3/es/time-picker/locale/ga_IE.js +0 -4
- package/lib/Antd3/es/time-picker/locale/hi_IN.js +0 -4
- package/lib/Antd3/es/time-picker/locale/hr_HR.js +0 -4
- package/lib/Antd3/es/time-picker/locale/id_ID.js +0 -4
- package/lib/Antd3/es/time-picker/locale/ja_JP.js +0 -4
- package/lib/Antd3/es/time-picker/locale/ko_KR.js +0 -4
- package/lib/Antd3/es/time-picker/locale/ku_IQ.js +0 -4
- package/lib/Antd3/es/time-picker/locale/nb_NO.js +0 -4
- package/lib/Antd3/es/time-picker/locale/nl_BE.js +0 -4
- package/lib/Antd3/es/time-picker/locale/nl_NL.js +0 -4
- package/lib/Antd3/es/time-picker/locale/ru_RU.js +0 -7
- package/lib/Antd3/es/time-picker/locale/sr_RS.js +0 -4
- package/lib/Antd3/es/time-picker/locale/tr_TR.js +0 -4
- package/lib/Antd3/es/time-picker/locale/vi_VN.js +0 -4
- package/lib/Antd3/es/time-picker/locale/zh_CN.js +0 -4
- package/lib/Antd3/es/time-picker/style/css.js +0 -2
- package/lib/Antd3/es/time-picker/style/index.js +0 -2
- package/lib/Antd3/es/time-picker/style/index.less +0 -246
- package/lib/Antd3/es/timeline/Timeline.js +0 -239
- package/lib/Antd3/es/timeline/TimelineItem.js +0 -76
- package/lib/Antd3/es/timeline/style/css.js +0 -2
- package/lib/Antd3/es/timeline/style/index.js +0 -2
- package/lib/Antd3/es/timeline/style/index.less +0 -167
- package/lib/Antd3/es/tooltip/index.js +0 -326
- package/lib/Antd3/es/tooltip/placements.js +0 -101
- package/lib/Antd3/es/tooltip/style/css.js +0 -2
- package/lib/Antd3/es/tooltip/style/index.js +0 -2
- package/lib/Antd3/es/tooltip/style/index.less +0 -187
- package/lib/Antd3/es/transfer/ListItem.js +0 -191
- package/lib/Antd3/es/transfer/index.js +0 -573
- package/lib/Antd3/es/transfer/list.js +0 -374
- package/lib/Antd3/es/transfer/operation.js +0 -32
- package/lib/Antd3/es/transfer/renderListBody.js +0 -204
- package/lib/Antd3/es/transfer/search.js +0 -158
- package/lib/Antd3/es/transfer/style/css.js +0 -7
- package/lib/Antd3/es/transfer/style/customize.less +0 -62
- package/lib/Antd3/es/transfer/style/index.js +0 -7
- package/lib/Antd3/es/transfer/style/index.less +0 -191
- package/lib/Antd3/es/tree/DirectoryTree.js +0 -354
- package/lib/Antd3/es/tree/Tree.js +0 -220
- package/lib/Antd3/es/tree/index.js +0 -2
- package/lib/Antd3/es/tree/style/css.js +0 -2
- package/lib/Antd3/es/tree/style/directory.less +0 -95
- package/lib/Antd3/es/tree/style/index.js +0 -2
- package/lib/Antd3/es/tree/style/index.less +0 -280
- package/lib/Antd3/es/tree/style/mixin.less +0 -29
- package/lib/Antd3/es/tree/util.js +0 -112
- package/lib/Antd3/es/tree-select/index.js +0 -264
- package/lib/Antd3/es/tree-select/interface.js +0 -0
- package/lib/Antd3/es/tree-select/style/css.js +0 -6
- package/lib/Antd3/es/tree-select/style/index.js +0 -6
- package/lib/Antd3/es/tree-select/style/index.less +0 -191
- package/lib/Antd3/es/typography/Base.js +0 -564
- package/lib/Antd3/es/typography/Editable.js +0 -216
- package/lib/Antd3/es/typography/Paragraph.js +0 -22
- package/lib/Antd3/es/typography/Text.js +0 -51
- package/lib/Antd3/es/typography/Title.js +0 -45
- package/lib/Antd3/es/typography/Typography.js +0 -178
- package/lib/Antd3/es/typography/index.js +0 -9
- package/lib/Antd3/es/typography/style/css.js +0 -5
- package/lib/Antd3/es/typography/style/index.js +0 -5
- package/lib/Antd3/es/typography/style/index.less +0 -204
- package/lib/Antd3/es/typography/util.js +0 -183
- package/lib/Antd3/es/upload/Dragger.js +0 -150
- package/lib/Antd3/es/upload/Upload.js +0 -444
- package/lib/Antd3/es/upload/UploadList.js +0 -367
- package/lib/Antd3/es/upload/index.js +0 -4
- package/lib/Antd3/es/upload/interface.js +0 -0
- package/lib/Antd3/es/upload/style/css.js +0 -5
- package/lib/Antd3/es/upload/style/index.js +0 -5
- package/lib/Antd3/es/upload/style/index.less +0 -542
- package/lib/Antd3/es/upload/utils.js +0 -135
- package/lib/Antd3/es/version/index.js +0 -1
- package/lib/Antd3/es/version/style/css.js +0 -2
- package/lib/Antd3/es/version/style/index.js +0 -2
- package/lib/Antd4/_util/ActionButton.js +0 -94
- package/lib/Antd4/_util/colors.js +0 -4
- package/lib/Antd4/_util/devWarning.js +0 -5
- package/lib/Antd4/_util/easings.js +0 -10
- package/lib/Antd4/_util/getDataOrAriaProps.js +0 -8
- package/lib/Antd4/_util/getRenderPropValue.js +0 -10
- package/lib/Antd4/_util/getScroll.js +0 -22
- package/lib/Antd4/_util/hooks/useFlexGapSupport.js +0 -13
- package/lib/Antd4/_util/hooks/useForceUpdate.js +0 -10
- package/lib/Antd4/_util/hooks/usePatchElement.js +0 -25
- package/lib/Antd4/_util/hooks/useSyncState.js +0 -13
- package/lib/Antd4/_util/isNumeric.js +0 -4
- package/lib/Antd4/_util/motion.js +0 -51
- package/lib/Antd4/_util/placements.js +0 -87
- package/lib/Antd4/_util/raf.js +0 -26
- package/lib/Antd4/_util/reactNode.js +0 -10
- package/lib/Antd4/_util/responsiveObserve.js +0 -62
- package/lib/Antd4/_util/scrollTo.js +0 -34
- package/lib/Antd4/_util/statusUtils.js +0 -28
- package/lib/Antd4/_util/styleChecker.js +0 -29
- package/lib/Antd4/_util/throttleByAnimationFrame.js +0 -51
- package/lib/Antd4/_util/transButton.js +0 -63
- package/lib/Antd4/_util/type.js +0 -13
- package/lib/Antd4/_util/unreachableException.js +0 -7
- package/lib/Antd4/_util/warning.js +0 -15
- package/lib/Antd4/_util/wave.js +0 -193
- package/lib/Antd4/affix/index.js +0 -268
- package/lib/Antd4/affix/style/css.js +0 -2
- package/lib/Antd4/affix/style/index-pure.less +0 -6
- package/lib/Antd4/affix/style/index.js +0 -2
- package/lib/Antd4/affix/style/index.less +0 -3
- package/lib/Antd4/affix/utils.js +0 -76
- package/lib/Antd4/alert/ErrorBoundary.js +0 -55
- package/lib/Antd4/alert/index.js +0 -153
- package/lib/Antd4/alert/style/css.js +0 -2
- package/lib/Antd4/alert/style/index-pure.less +0 -155
- package/lib/Antd4/alert/style/index.js +0 -2
- package/lib/Antd4/alert/style/index.less +0 -3
- package/lib/Antd4/alert/style/rtl.less +0 -40
- package/lib/Antd4/anchor/Anchor.js +0 -257
- package/lib/Antd4/anchor/AnchorLink.js +0 -87
- package/lib/Antd4/anchor/context.js +0 -3
- package/lib/Antd4/anchor/index.js +0 -4
- package/lib/Antd4/anchor/style/css.js +0 -4
- package/lib/Antd4/anchor/style/index-pure.less +0 -87
- package/lib/Antd4/anchor/style/index.js +0 -4
- package/lib/Antd4/anchor/style/index.less +0 -3
- package/lib/Antd4/anchor/style/rtl.less +0 -35
- package/lib/Antd4/auto-complete/index.js +0 -89
- package/lib/Antd4/auto-complete/style/css.js +0 -4
- package/lib/Antd4/auto-complete/style/index-pure.less +0 -16
- package/lib/Antd4/auto-complete/style/index.js +0 -4
- package/lib/Antd4/auto-complete/style/index.less +0 -3
- package/lib/Antd4/avatar/SizeContext.js +0 -12
- package/lib/Antd4/avatar/avatar.js +0 -180
- package/lib/Antd4/avatar/group.js +0 -59
- package/lib/Antd4/avatar/index.js +0 -6
- package/lib/Antd4/avatar/style/css.js +0 -5
- package/lib/Antd4/avatar/style/group.less +0 -17
- package/lib/Antd4/avatar/style/index-pure.less +0 -70
- package/lib/Antd4/avatar/style/index.js +0 -5
- package/lib/Antd4/avatar/style/index.less +0 -3
- package/lib/Antd4/avatar/style/rtl.less +0 -15
- package/lib/Antd4/back-top/index.js +0 -111
- package/lib/Antd4/back-top/style/css.js +0 -2
- package/lib/Antd4/back-top/style/index-pure.less +0 -49
- package/lib/Antd4/back-top/style/index.js +0 -2
- package/lib/Antd4/back-top/style/index.less +0 -3
- package/lib/Antd4/back-top/style/responsive.less +0 -21
- package/lib/Antd4/badge/Ribbon.js +0 -41
- package/lib/Antd4/badge/ScrollNumber.js +0 -71
- package/lib/Antd4/badge/SingleNumber.js +0 -108
- package/lib/Antd4/badge/index.js +0 -160
- package/lib/Antd4/badge/style/css.js +0 -2
- package/lib/Antd4/badge/style/index-pure.less +0 -281
- package/lib/Antd4/badge/style/index.js +0 -2
- package/lib/Antd4/badge/style/index.less +0 -3
- package/lib/Antd4/badge/style/ribbon.less +0 -81
- package/lib/Antd4/badge/style/rtl.less +0 -103
- package/lib/Antd4/badge/utils.js +0 -5
- package/lib/Antd4/breadcrumb/Breadcrumb.js +0 -116
- package/lib/Antd4/breadcrumb/BreadcrumbItem.js +0 -60
- package/lib/Antd4/breadcrumb/BreadcrumbSeparator.js +0 -13
- package/lib/Antd4/breadcrumb/style/css.js +0 -5
- package/lib/Antd4/breadcrumb/style/index-pure.less +0 -56
- package/lib/Antd4/breadcrumb/style/index.js +0 -5
- package/lib/Antd4/breadcrumb/style/index.less +0 -3
- package/lib/Antd4/breadcrumb/style/rtl.less +0 -29
- package/lib/Antd4/button/LoadingIcon.js +0 -52
- package/lib/Antd4/button/button-group.js +0 -50
- package/lib/Antd4/button/button.js +0 -221
- package/lib/Antd4/button/index.js +0 -2
- package/lib/Antd4/button/style/css.js +0 -2
- package/lib/Antd4/button/style/index-pure.less +0 -290
- package/lib/Antd4/button/style/index.js +0 -2
- package/lib/Antd4/button/style/index.less +0 -3
- package/lib/Antd4/button/style/mixin.less +0 -593
- package/lib/Antd4/button/style/rtl.less +0 -97
- package/lib/Antd4/calendar/Header.js +0 -143
- package/lib/Antd4/calendar/generateCalendar.js +0 -171
- package/lib/Antd4/calendar/index.js +0 -4
- package/lib/Antd4/calendar/style/css.js +0 -7
- package/lib/Antd4/calendar/style/index-pure.less +0 -196
- package/lib/Antd4/calendar/style/index.js +0 -7
- package/lib/Antd4/calendar/style/index.less +0 -3
- package/lib/Antd4/calendar/style/rtl.less +0 -46
- package/lib/Antd4/card/Grid.js +0 -31
- package/lib/Antd4/card/Meta.js +0 -43
- package/lib/Antd4/card/index.js +0 -169
- package/lib/Antd4/card/style/css.js +0 -6
- package/lib/Antd4/card/style/index-pure.less +0 -308
- package/lib/Antd4/card/style/index.js +0 -6
- package/lib/Antd4/card/style/index.less +0 -3
- package/lib/Antd4/card/style/size.less +0 -20
- package/lib/Antd4/carousel/index.js +0 -73
- package/lib/Antd4/carousel/style/css.js +0 -2
- package/lib/Antd4/carousel/style/index-pure.less +0 -294
- package/lib/Antd4/carousel/style/index.js +0 -2
- package/lib/Antd4/carousel/style/index.less +0 -3
- package/lib/Antd4/carousel/style/rtl.less +0 -54
- package/lib/Antd4/cascader/index.js +0 -196
- package/lib/Antd4/cascader/style/css.js +0 -5
- package/lib/Antd4/cascader/style/index-pure.less +0 -104
- package/lib/Antd4/cascader/style/index.js +0 -5
- package/lib/Antd4/cascader/style/index.less +0 -3
- package/lib/Antd4/cascader/style/rtl.less +0 -19
- package/lib/Antd4/checkbox/Checkbox.js +0 -90
- package/lib/Antd4/checkbox/Group.js +0 -132
- package/lib/Antd4/checkbox/index.js +0 -6
- package/lib/Antd4/checkbox/style/css.js +0 -2
- package/lib/Antd4/checkbox/style/index-pure.less +0 -6
- package/lib/Antd4/checkbox/style/index.js +0 -2
- package/lib/Antd4/checkbox/style/index.less +0 -3
- package/lib/Antd4/checkbox/style/mixin.less +0 -234
- package/lib/Antd4/checkbox/style/rtl.less +0 -28
- package/lib/Antd4/col/index.js +0 -2
- package/lib/Antd4/col/style/css.js +0 -4
- package/lib/Antd4/col/style/index.js +0 -4
- package/lib/Antd4/collapse/Collapse.js +0 -80
- package/lib/Antd4/collapse/CollapsePanel.js +0 -24
- package/lib/Antd4/collapse/index.js +0 -2
- package/lib/Antd4/collapse/style/css.js +0 -2
- package/lib/Antd4/collapse/style/index-pure.less +0 -162
- package/lib/Antd4/collapse/style/index.js +0 -2
- package/lib/Antd4/collapse/style/index.less +0 -3
- package/lib/Antd4/collapse/style/rtl.less +0 -48
- package/lib/Antd4/comment/index.js +0 -68
- package/lib/Antd4/comment/style/css.js +0 -2
- package/lib/Antd4/comment/style/index-pure.less +0 -105
- package/lib/Antd4/comment/style/index.js +0 -2
- package/lib/Antd4/comment/style/index.less +0 -3
- package/lib/Antd4/comment/style/rtl.less +0 -51
- package/lib/Antd4/config-provider/DisabledContext.js +0 -11
- package/lib/Antd4/config-provider/SizeContext.js +0 -12
- package/lib/Antd4/config-provider/context.js +0 -35
- package/lib/Antd4/config-provider/cssVariables.js +0 -88
- package/lib/Antd4/config-provider/index.js +0 -181
- package/lib/Antd4/config-provider/renderEmpty.js +0 -28
- package/lib/Antd4/config-provider/style/css.js +0 -1
- package/lib/Antd4/config-provider/style/index-pure.less +0 -2
- package/lib/Antd4/config-provider/style/index.js +0 -1
- package/lib/Antd4/config-provider/style/index.less +0 -3
- package/lib/Antd4/date-picker/PickerButton.js +0 -9
- package/lib/Antd4/date-picker/PickerTag.js +0 -8
- package/lib/Antd4/date-picker/generatePicker/generateRangePicker.js +0 -152
- package/lib/Antd4/date-picker/generatePicker/generateSinglePicker.js +0 -174
- package/lib/Antd4/date-picker/generatePicker/index.js +0 -72
- package/lib/Antd4/date-picker/index.js +0 -4
- package/lib/Antd4/date-picker/locale/ar_EG.js +0 -18
- package/lib/Antd4/date-picker/locale/az_AZ.js +0 -11
- package/lib/Antd4/date-picker/locale/bg_BG.js +0 -14
- package/lib/Antd4/date-picker/locale/bn_BD.js +0 -21
- package/lib/Antd4/date-picker/locale/by_BY.js +0 -18
- package/lib/Antd4/date-picker/locale/ca_ES.js +0 -14
- package/lib/Antd4/date-picker/locale/cs_CZ.js +0 -14
- package/lib/Antd4/date-picker/locale/da_DK.js +0 -14
- package/lib/Antd4/date-picker/locale/de_DE.js +0 -14
- package/lib/Antd4/date-picker/locale/el_GR.js +0 -14
- package/lib/Antd4/date-picker/locale/en_GB.js +0 -22
- package/lib/Antd4/date-picker/locale/en_US.js +0 -22
- package/lib/Antd4/date-picker/locale/es_ES.js +0 -14
- package/lib/Antd4/date-picker/locale/et_EE.js +0 -14
- package/lib/Antd4/date-picker/locale/fa_IR.js +0 -21
- package/lib/Antd4/date-picker/locale/fi_FI.js +0 -14
- package/lib/Antd4/date-picker/locale/fr_BE.js +0 -14
- package/lib/Antd4/date-picker/locale/fr_CA.js +0 -21
- package/lib/Antd4/date-picker/locale/fr_FR.js +0 -21
- package/lib/Antd4/date-picker/locale/ga_IE.js +0 -21
- package/lib/Antd4/date-picker/locale/gl_ES.js +0 -14
- package/lib/Antd4/date-picker/locale/he_IL.js +0 -14
- package/lib/Antd4/date-picker/locale/hi_IN.js +0 -21
- package/lib/Antd4/date-picker/locale/hr_HR.js +0 -21
- package/lib/Antd4/date-picker/locale/hu_HU.js +0 -14
- package/lib/Antd4/date-picker/locale/id_ID.js +0 -14
- package/lib/Antd4/date-picker/locale/is_IS.js +0 -14
- package/lib/Antd4/date-picker/locale/it_IT.js +0 -14
- package/lib/Antd4/date-picker/locale/ja_JP.js +0 -14
- package/lib/Antd4/date-picker/locale/ka_GE.js +0 -18
- package/lib/Antd4/date-picker/locale/kk_KZ.js +0 -21
- package/lib/Antd4/date-picker/locale/km_KH.js +0 -21
- package/lib/Antd4/date-picker/locale/kmr_IQ.js +0 -14
- package/lib/Antd4/date-picker/locale/kn_IN.js +0 -14
- package/lib/Antd4/date-picker/locale/ko_KR.js +0 -14
- package/lib/Antd4/date-picker/locale/lt_LT.js +0 -21
- package/lib/Antd4/date-picker/locale/lv_LV.js +0 -14
- package/lib/Antd4/date-picker/locale/mk_MK.js +0 -14
- package/lib/Antd4/date-picker/locale/ml_IN.js +0 -21
- package/lib/Antd4/date-picker/locale/mn_MN.js +0 -14
- package/lib/Antd4/date-picker/locale/ms_MY.js +0 -14
- package/lib/Antd4/date-picker/locale/nb_NO.js +0 -21
- package/lib/Antd4/date-picker/locale/nl_BE.js +0 -21
- package/lib/Antd4/date-picker/locale/nl_NL.js +0 -21
- package/lib/Antd4/date-picker/locale/pl_PL.js +0 -14
- package/lib/Antd4/date-picker/locale/pt_BR.js +0 -14
- package/lib/Antd4/date-picker/locale/pt_PT.js +0 -42
- package/lib/Antd4/date-picker/locale/ro_RO.js +0 -14
- package/lib/Antd4/date-picker/locale/ru_RU.js +0 -23
- package/lib/Antd4/date-picker/locale/sk_SK.js +0 -14
- package/lib/Antd4/date-picker/locale/sl_SI.js +0 -40
- package/lib/Antd4/date-picker/locale/sr_RS.js +0 -21
- package/lib/Antd4/date-picker/locale/sv_SE.js +0 -21
- package/lib/Antd4/date-picker/locale/ta_IN.js +0 -15
- package/lib/Antd4/date-picker/locale/th_TH.js +0 -21
- package/lib/Antd4/date-picker/locale/tr_TR.js +0 -21
- package/lib/Antd4/date-picker/locale/uk_UA.js +0 -14
- package/lib/Antd4/date-picker/locale/ur_PK.js +0 -21
- package/lib/Antd4/date-picker/locale/vi_VN.js +0 -14
- package/lib/Antd4/date-picker/locale/zh_CN.js +0 -24
- package/lib/Antd4/date-picker/locale/zh_TW.js +0 -23
- package/lib/Antd4/date-picker/style/css.js +0 -4
- package/lib/Antd4/date-picker/style/index-pure.less +0 -364
- package/lib/Antd4/date-picker/style/index.js +0 -4
- package/lib/Antd4/date-picker/style/index.less +0 -3
- package/lib/Antd4/date-picker/style/panel.less +0 -677
- package/lib/Antd4/date-picker/style/rtl.less +0 -246
- package/lib/Antd4/date-picker/style/status.less +0 -52
- package/lib/Antd4/date-picker/util.js +0 -94
- package/lib/Antd4/descriptions/Cell.js +0 -46
- package/lib/Antd4/descriptions/Row.js +0 -100
- package/lib/Antd4/descriptions/index.js +0 -149
- package/lib/Antd4/descriptions/style/css.js +0 -2
- package/lib/Antd4/descriptions/style/index-pure.less +0 -179
- package/lib/Antd4/descriptions/style/index.js +0 -2
- package/lib/Antd4/descriptions/style/index.less +0 -3
- package/lib/Antd4/descriptions/style/rtl.less +0 -33
- package/lib/Antd4/divider/index.js +0 -52
- package/lib/Antd4/divider/style/css.js +0 -2
- package/lib/Antd4/divider/style/index-pure.less +0 -137
- package/lib/Antd4/divider/style/index.js +0 -2
- package/lib/Antd4/divider/style/index.less +0 -3
- package/lib/Antd4/divider/style/rtl.less +0 -38
- package/lib/Antd4/drawer/index.js +0 -247
- package/lib/Antd4/drawer/style/css.js +0 -3
- package/lib/Antd4/drawer/style/drawer.less +0 -249
- package/lib/Antd4/drawer/style/index-pure.less +0 -6
- package/lib/Antd4/drawer/style/index.js +0 -3
- package/lib/Antd4/drawer/style/index.less +0 -3
- package/lib/Antd4/drawer/style/rtl.less +0 -16
- package/lib/Antd4/dropdown/dropdown-button.js +0 -99
- package/lib/Antd4/dropdown/dropdown.js +0 -119
- package/lib/Antd4/dropdown/index.js +0 -2
- package/lib/Antd4/dropdown/style/css.js +0 -4
- package/lib/Antd4/dropdown/style/index-pure.less +0 -393
- package/lib/Antd4/dropdown/style/index.js +0 -4
- package/lib/Antd4/dropdown/style/index.less +0 -3
- package/lib/Antd4/dropdown/style/rtl.less +0 -90
- package/lib/Antd4/dropdown/style/status.less +0 -14
- package/lib/Antd4/empty/empty.js +0 -52
- package/lib/Antd4/empty/index.js +0 -63
- package/lib/Antd4/empty/simple.js +0 -33
- package/lib/Antd4/empty/style/css.js +0 -2
- package/lib/Antd4/empty/style/index-pure.less +0 -151
- package/lib/Antd4/empty/style/index.js +0 -2
- package/lib/Antd4/empty/style/index.less +0 -3
- package/lib/Antd4/empty/style/rtl.less +0 -10
- package/lib/Antd4/form/ErrorList.js +0 -80
- package/lib/Antd4/form/Form.js +0 -112
- package/lib/Antd4/form/FormItem.js +0 -295
- package/lib/Antd4/form/FormItemInput.js +0 -63
- package/lib/Antd4/form/FormItemLabel.js +0 -99
- package/lib/Antd4/form/FormList.js +0 -44
- package/lib/Antd4/form/context.js +0 -27
- package/lib/Antd4/form/hooks/useDebounce.js +0 -17
- package/lib/Antd4/form/hooks/useForm.js +0 -49
- package/lib/Antd4/form/hooks/useFrameState.js +0 -39
- package/lib/Antd4/form/hooks/useItemRef.js +0 -20
- package/lib/Antd4/form/index.js +0 -16
- package/lib/Antd4/form/style/components.less +0 -72
- package/lib/Antd4/form/style/css.js +0 -5
- package/lib/Antd4/form/style/horizontal.less +0 -20
- package/lib/Antd4/form/style/index-pure.less +0 -304
- package/lib/Antd4/form/style/index.js +0 -5
- package/lib/Antd4/form/style/index.less +0 -3
- package/lib/Antd4/form/style/inline.less +0 -38
- package/lib/Antd4/form/style/mixin.less +0 -82
- package/lib/Antd4/form/style/rtl.less +0 -204
- package/lib/Antd4/form/style/status.less +0 -42
- package/lib/Antd4/form/style/vertical.less +0 -87
- package/lib/Antd4/form/util.js +0 -18
- package/lib/Antd4/form4-24-7/ErrorList.js +0 -84
- package/lib/Antd4/form4-24-7/Form.js +0 -117
- package/lib/Antd4/form4-24-7/FormItem/ItemHolder.js +0 -132
- package/lib/Antd4/form4-24-7/FormItem/index.js +0 -262
- package/lib/Antd4/form4-24-7/FormItemInput.js +0 -85
- package/lib/Antd4/form4-24-7/FormItemLabel.js +0 -97
- package/lib/Antd4/form4-24-7/FormList.js +0 -42
- package/lib/Antd4/form4-24-7/context.js +0 -40
- package/lib/Antd4/form4-24-7/hooks/useDebounce.js +0 -17
- package/lib/Antd4/form4-24-7/hooks/useForm.js +0 -49
- package/lib/Antd4/form4-24-7/hooks/useFormItemStatus.js +0 -12
- package/lib/Antd4/form4-24-7/hooks/useFrameState.js +0 -41
- package/lib/Antd4/form4-24-7/hooks/useItemRef.js +0 -20
- package/lib/Antd4/form4-24-7/index.js +0 -19
- package/lib/Antd4/form4-24-7/style/components.less +0 -16
- package/lib/Antd4/form4-24-7/style/css.js +0 -5
- package/lib/Antd4/form4-24-7/style/horizontal.less +0 -22
- package/lib/Antd4/form4-24-7/style/index-pure.less +0 -332
- package/lib/Antd4/form4-24-7/style/index.js +0 -5
- package/lib/Antd4/form4-24-7/style/index.less +0 -3
- package/lib/Antd4/form4-24-7/style/inline.less +0 -38
- package/lib/Antd4/form4-24-7/style/mixin.less +0 -78
- package/lib/Antd4/form4-24-7/style/rtl.less +0 -204
- package/lib/Antd4/form4-24-7/style/status.less +0 -42
- package/lib/Antd4/form4-24-7/style/vertical.less +0 -93
- package/lib/Antd4/form4-24-7/util.js +0 -18
- package/lib/Antd4/grid/col.js +0 -91
- package/lib/Antd4/grid/hooks/useBreakpoint.js +0 -21
- package/lib/Antd4/grid/index.js +0 -11
- package/lib/Antd4/grid/row.js +0 -123
- package/lib/Antd4/grid/style/css.js +0 -2
- package/lib/Antd4/grid/style/index-pure.less +0 -118
- package/lib/Antd4/grid/style/index.js +0 -2
- package/lib/Antd4/grid/style/index.less +0 -3
- package/lib/Antd4/grid/style/mixin.less +0 -56
- package/lib/Antd4/grid/style/rtl.less +0 -69
- package/lib/Antd4/icon/__tests__/logo.svg +0 -0
- package/lib/Antd4/icon/index.js +0 -6
- package/lib/Antd4/icon/style/css.js +0 -2
- package/lib/Antd4/icon/style/index-pure.less +0 -4
- package/lib/Antd4/icon/style/index.js +0 -2
- package/lib/Antd4/icon/style/index.less +0 -3
- package/lib/Antd4/image/PreviewGroup.js +0 -57
- package/lib/Antd4/image/index.js +0 -54
- package/lib/Antd4/image/style/css.js +0 -2
- package/lib/Antd4/image/style/index-pure.less +0 -181
- package/lib/Antd4/image/style/index.js +0 -2
- package/lib/Antd4/image/style/index.less +0 -3
- package/lib/Antd4/input/ClearableLabeledInput.js +0 -95
- package/lib/Antd4/input/Group.js +0 -25
- package/lib/Antd4/input/Input.js +0 -189
- package/lib/Antd4/input/Password.js +0 -93
- package/lib/Antd4/input/Search.js +0 -116
- package/lib/Antd4/input/TextArea.js +0 -195
- package/lib/Antd4/input/index.js +0 -11
- package/lib/Antd4/input/style/IE11.less +0 -20
- package/lib/Antd4/input/style/affix.less +0 -74
- package/lib/Antd4/input/style/allow-clear.less +0 -44
- package/lib/Antd4/input/style/css.js +0 -5
- package/lib/Antd4/input/style/index-pure.less +0 -69
- package/lib/Antd4/input/style/index.js +0 -5
- package/lib/Antd4/input/style/index.less +0 -3
- package/lib/Antd4/input/style/mixin.less +0 -474
- package/lib/Antd4/input/style/rtl.less +0 -206
- package/lib/Antd4/input/style/search-input.less +0 -71
- package/lib/Antd4/input/style/status.less +0 -82
- package/lib/Antd4/input/utils.js +0 -4
- package/lib/Antd4/input-number/index.js +0 -134
- package/lib/Antd4/input-number/style/affix.less +0 -83
- package/lib/Antd4/input-number/style/css.js +0 -2
- package/lib/Antd4/input-number/style/index-pure.less +0 -235
- package/lib/Antd4/input-number/style/index.js +0 -2
- package/lib/Antd4/input-number/style/index.less +0 -3
- package/lib/Antd4/input-number/style/rtl.less +0 -48
- package/lib/Antd4/input-number/style/status.less +0 -45
- package/lib/Antd4/layout/Sider.js +0 -186
- package/lib/Antd4/layout/index.js +0 -8
- package/lib/Antd4/layout/layout.js +0 -122
- package/lib/Antd4/layout/style/css.js +0 -2
- package/lib/Antd4/layout/style/index-pure.less +0 -145
- package/lib/Antd4/layout/style/index.js +0 -2
- package/lib/Antd4/layout/style/index.less +0 -3
- package/lib/Antd4/layout/style/light.less +0 -11
- package/lib/Antd4/layout/style/rtl.less +0 -10
- package/lib/Antd4/list/Item.js +0 -104
- package/lib/Antd4/list/index.js +0 -214
- package/lib/Antd4/list/style/bordered.less +0 -44
- package/lib/Antd4/list/style/css.js +0 -7
- package/lib/Antd4/list/style/customize.less +0 -13
- package/lib/Antd4/list/style/index-pure.less +0 -249
- package/lib/Antd4/list/style/index.js +0 -7
- package/lib/Antd4/list/style/index.less +0 -3
- package/lib/Antd4/list/style/responsive.less +0 -43
- package/lib/Antd4/list/style/rtl.less +0 -139
- package/lib/Antd4/locale/ar_EG.js +0 -116
- package/lib/Antd4/locale/az_AZ.js +0 -45
- package/lib/Antd4/locale/bg_BG.js +0 -43
- package/lib/Antd4/locale/bn_BD.js +0 -130
- package/lib/Antd4/locale/by_BY.js +0 -124
- package/lib/Antd4/locale/ca_ES.js +0 -125
- package/lib/Antd4/locale/cs_CZ.js +0 -54
- package/lib/Antd4/locale/da_DK.js +0 -53
- package/lib/Antd4/locale/de_DE.js +0 -123
- package/lib/Antd4/locale/default.js +0 -132
- package/lib/Antd4/locale/el_GR.js +0 -43
- package/lib/Antd4/locale/en_GB.js +0 -104
- package/lib/Antd4/locale/en_US.js +0 -2
- package/lib/Antd4/locale/es_ES.js +0 -130
- package/lib/Antd4/locale/et_EE.js +0 -132
- package/lib/Antd4/locale/fa_IR.js +0 -130
- package/lib/Antd4/locale/fi_FI.js +0 -53
- package/lib/Antd4/locale/fr_BE.js +0 -47
- package/lib/Antd4/locale/fr_CA.js +0 -59
- package/lib/Antd4/locale/fr_FR.js +0 -127
- package/lib/Antd4/locale/ga_IE.js +0 -123
- package/lib/Antd4/locale/gl_ES.js +0 -110
- package/lib/Antd4/locale/he_IL.js +0 -116
- package/lib/Antd4/locale/hi_IN.js +0 -130
- package/lib/Antd4/locale/hr_HR.js +0 -129
- package/lib/Antd4/locale/hu_HU.js +0 -44
- package/lib/Antd4/locale/hy_AM.js +0 -109
- package/lib/Antd4/locale/id_ID.js +0 -45
- package/lib/Antd4/locale/is_IS.js +0 -43
- package/lib/Antd4/locale/it_IT.js +0 -61
- package/lib/Antd4/locale/ja_JP.js +0 -102
- package/lib/Antd4/locale/ka_GE.js +0 -130
- package/lib/Antd4/locale/kk_KZ.js +0 -124
- package/lib/Antd4/locale/km_KH.js +0 -104
- package/lib/Antd4/locale/kmr_IQ.js +0 -43
- package/lib/Antd4/locale/kn_IN.js +0 -51
- package/lib/Antd4/locale/ko_KR.js +0 -96
- package/lib/Antd4/locale/ku_IQ.js +0 -46
- package/lib/Antd4/locale/lt_LT.js +0 -121
- package/lib/Antd4/locale/lv_LV.js +0 -43
- package/lib/Antd4/locale/mk_MK.js +0 -58
- package/lib/Antd4/locale/ml_IN.js +0 -130
- package/lib/Antd4/locale/mn_MN.js +0 -43
- package/lib/Antd4/locale/ms_MY.js +0 -63
- package/lib/Antd4/locale/nb_NO.js +0 -124
- package/lib/Antd4/locale/ne_NP.js +0 -44
- package/lib/Antd4/locale/nl_BE.js +0 -130
- package/lib/Antd4/locale/nl_NL.js +0 -130
- package/lib/Antd4/locale/pl_PL.js +0 -132
- package/lib/Antd4/locale/pt_BR.js +0 -130
- package/lib/Antd4/locale/pt_PT.js +0 -44
- package/lib/Antd4/locale/ro_RO.js +0 -130
- package/lib/Antd4/locale/ru_RU.js +0 -128
- package/lib/Antd4/locale/sk_SK.js +0 -132
- package/lib/Antd4/locale/sl_SI.js +0 -43
- package/lib/Antd4/locale/sr_RS.js +0 -130
- package/lib/Antd4/locale/sv_SE.js +0 -130
- package/lib/Antd4/locale/ta_IN.js +0 -63
- package/lib/Antd4/locale/th_TH.js +0 -126
- package/lib/Antd4/locale/tr_TR.js +0 -128
- package/lib/Antd4/locale/uk_UA.js +0 -43
- package/lib/Antd4/locale/ur_PK.js +0 -130
- package/lib/Antd4/locale/vi_VN.js +0 -43
- package/lib/Antd4/locale/zh_CN.js +0 -131
- package/lib/Antd4/locale/zh_HK.js +0 -127
- package/lib/Antd4/locale/zh_TW.js +0 -128
- package/lib/Antd4/locale-provider/LocaleReceiver.js +0 -59
- package/lib/Antd4/locale-provider/ar_EG.js +0 -2
- package/lib/Antd4/locale-provider/az_AZ.js +0 -2
- package/lib/Antd4/locale-provider/bg_BG.js +0 -2
- package/lib/Antd4/locale-provider/bn_BD.js +0 -2
- package/lib/Antd4/locale-provider/by_BY.js +0 -2
- package/lib/Antd4/locale-provider/ca_ES.js +0 -2
- package/lib/Antd4/locale-provider/cs_CZ.js +0 -2
- package/lib/Antd4/locale-provider/da_DK.js +0 -2
- package/lib/Antd4/locale-provider/de_DE.js +0 -2
- package/lib/Antd4/locale-provider/default.js +0 -2
- package/lib/Antd4/locale-provider/el_GR.js +0 -2
- package/lib/Antd4/locale-provider/en_GB.js +0 -2
- package/lib/Antd4/locale-provider/en_US.js +0 -2
- package/lib/Antd4/locale-provider/es_ES.js +0 -2
- package/lib/Antd4/locale-provider/et_EE.js +0 -2
- package/lib/Antd4/locale-provider/fa_IR.js +0 -2
- package/lib/Antd4/locale-provider/fi_FI.js +0 -2
- package/lib/Antd4/locale-provider/fr_BE.js +0 -2
- package/lib/Antd4/locale-provider/fr_CA.js +0 -2
- package/lib/Antd4/locale-provider/fr_FR.js +0 -2
- package/lib/Antd4/locale-provider/ga_IE.js +0 -2
- package/lib/Antd4/locale-provider/gl_ES.js +0 -2
- package/lib/Antd4/locale-provider/he_IL.js +0 -2
- package/lib/Antd4/locale-provider/hi_IN.js +0 -2
- package/lib/Antd4/locale-provider/hr_HR.js +0 -2
- package/lib/Antd4/locale-provider/hu_HU.js +0 -2
- package/lib/Antd4/locale-provider/hy_AM.js +0 -2
- package/lib/Antd4/locale-provider/id_ID.js +0 -2
- package/lib/Antd4/locale-provider/index.js +0 -63
- package/lib/Antd4/locale-provider/is_IS.js +0 -2
- package/lib/Antd4/locale-provider/it_IT.js +0 -2
- package/lib/Antd4/locale-provider/ja_JP.js +0 -2
- package/lib/Antd4/locale-provider/ka_GE.js +0 -2
- package/lib/Antd4/locale-provider/kk_KZ.js +0 -2
- package/lib/Antd4/locale-provider/km_KH.js +0 -2
- package/lib/Antd4/locale-provider/kmr_IQ.js +0 -2
- package/lib/Antd4/locale-provider/kn_IN.js +0 -2
- package/lib/Antd4/locale-provider/ko_KR.js +0 -2
- package/lib/Antd4/locale-provider/ku_IQ.js +0 -2
- package/lib/Antd4/locale-provider/lt_LT.js +0 -2
- package/lib/Antd4/locale-provider/lv_LV.js +0 -2
- package/lib/Antd4/locale-provider/mk_MK.js +0 -2
- package/lib/Antd4/locale-provider/ml_IN.js +0 -2
- package/lib/Antd4/locale-provider/mn_MN.js +0 -2
- package/lib/Antd4/locale-provider/ms_MY.js +0 -2
- package/lib/Antd4/locale-provider/nb_NO.js +0 -2
- package/lib/Antd4/locale-provider/ne_NP.js +0 -2
- package/lib/Antd4/locale-provider/nl_BE.js +0 -2
- package/lib/Antd4/locale-provider/nl_NL.js +0 -2
- package/lib/Antd4/locale-provider/pl_PL.js +0 -2
- package/lib/Antd4/locale-provider/pt_BR.js +0 -2
- package/lib/Antd4/locale-provider/pt_PT.js +0 -2
- package/lib/Antd4/locale-provider/ro_RO.js +0 -2
- package/lib/Antd4/locale-provider/ru_RU.js +0 -2
- package/lib/Antd4/locale-provider/sk_SK.js +0 -2
- package/lib/Antd4/locale-provider/sl_SI.js +0 -2
- package/lib/Antd4/locale-provider/sr_RS.js +0 -2
- package/lib/Antd4/locale-provider/style/css.js +0 -1
- package/lib/Antd4/locale-provider/style/index-pure.less +0 -2
- package/lib/Antd4/locale-provider/style/index.js +0 -1
- package/lib/Antd4/locale-provider/style/index.less +0 -3
- package/lib/Antd4/locale-provider/sv_SE.js +0 -2
- package/lib/Antd4/locale-provider/ta_IN.js +0 -2
- package/lib/Antd4/locale-provider/th_TH.js +0 -2
- package/lib/Antd4/locale-provider/tr_TR.js +0 -2
- package/lib/Antd4/locale-provider/uk_UA.js +0 -2
- package/lib/Antd4/locale-provider/ur_PK.js +0 -2
- package/lib/Antd4/locale-provider/vi_VN.js +0 -2
- package/lib/Antd4/locale-provider/zh_CN.js +0 -2
- package/lib/Antd4/locale-provider/zh_HK.js +0 -2
- package/lib/Antd4/locale-provider/zh_TW.js +0 -2
- package/lib/Antd4/mentions/index.js +0 -141
- package/lib/Antd4/mentions/style/css.js +0 -4
- package/lib/Antd4/mentions/style/index-pure.less +0 -168
- package/lib/Antd4/mentions/style/index.js +0 -4
- package/lib/Antd4/mentions/style/index.less +0 -3
- package/lib/Antd4/mentions/style/rtl.less +0 -10
- package/lib/Antd4/mentions/style/status.less +0 -43
- package/lib/Antd4/menu/MenuDivider.js +0 -30
- package/lib/Antd4/menu/MenuItem.js +0 -114
- package/lib/Antd4/menu/SubMenu.js +0 -48
- package/lib/Antd4/menu/index.js +0 -120
- package/lib/Antd4/menu/style/css.js +0 -5
- package/lib/Antd4/menu/style/dark.less +0 -177
- package/lib/Antd4/menu/style/index-pure.less +0 -700
- package/lib/Antd4/menu/style/index.js +0 -5
- package/lib/Antd4/menu/style/index.less +0 -3
- package/lib/Antd4/menu/style/light.less +0 -12
- package/lib/Antd4/menu/style/rtl.less +0 -165
- package/lib/Antd4/menu/style/status.less +0 -49
- package/lib/Antd4/message/hooks/useMessage.js +0 -75
- package/lib/Antd4/message/index-copy.js +0 -212
- package/lib/Antd4/message/index.js +0 -3
- package/lib/Antd4/message/style/css.js +0 -2
- package/lib/Antd4/message/style/index-pure.less +0 -74
- package/lib/Antd4/message/style/index.js +0 -2
- package/lib/Antd4/message/style/index.less +0 -3
- package/lib/Antd4/message/style/rtl.less +0 -17
- package/lib/Antd4/modal/ConfirmDialog.js +0 -108
- package/lib/Antd4/modal/Modal.js +0 -110
- package/lib/Antd4/modal/confirm.js +0 -158
- package/lib/Antd4/modal/index.js +0 -33
- package/lib/Antd4/modal/locale.js +0 -13
- package/lib/Antd4/modal/style/confirm.less +0 -74
- package/lib/Antd4/modal/style/css.js +0 -4
- package/lib/Antd4/modal/style/index-pure.less +0 -7
- package/lib/Antd4/modal/style/index.js +0 -4
- package/lib/Antd4/modal/style/index.less +0 -3
- package/lib/Antd4/modal/style/modal.less +0 -136
- package/lib/Antd4/modal/style/rtl.less +0 -74
- package/lib/Antd4/modal/useModal/HookModal.js +0 -63
- package/lib/Antd4/modal/useModal/index.js +0 -96
- package/lib/Antd4/notification/hooks/useNotification.js +0 -51
- package/lib/Antd4/notification/index.js +0 -301
- package/lib/Antd4/notification/style/css.js +0 -2
- package/lib/Antd4/notification/style/index-pure.less +0 -207
- package/lib/Antd4/notification/style/index.js +0 -2
- package/lib/Antd4/notification/style/index.less +0 -3
- package/lib/Antd4/notification/style/placement.less +0 -68
- package/lib/Antd4/notification/style/rtl.less +0 -53
- package/lib/Antd4/page-header/index.js +0 -143
- package/lib/Antd4/page-header/style/css.js +0 -5
- package/lib/Antd4/page-header/style/index-pure.less +0 -123
- package/lib/Antd4/page-header/style/index.js +0 -5
- package/lib/Antd4/page-header/style/index.less +0 -3
- package/lib/Antd4/page-header/style/rtl.less +0 -77
- package/lib/Antd4/pagination/Pagination.js +0 -104
- package/lib/Antd4/pagination/Select.js +0 -16
- package/lib/Antd4/pagination/index.js +0 -2
- package/lib/Antd4/pagination/style/css.js +0 -5
- package/lib/Antd4/pagination/style/index-pure.less +0 -472
- package/lib/Antd4/pagination/style/index.js +0 -5
- package/lib/Antd4/pagination/style/index.less +0 -3
- package/lib/Antd4/pagination/style/rtl.less +0 -55
- package/lib/Antd4/popconfirm/index.js +0 -142
- package/lib/Antd4/popconfirm/style/css.js +0 -6
- package/lib/Antd4/popconfirm/style/index-pure.less +0 -8
- package/lib/Antd4/popconfirm/style/index.js +0 -6
- package/lib/Antd4/popconfirm/style/index.less +0 -3
- package/lib/Antd4/popover/index.js +0 -49
- package/lib/Antd4/popover/style/css.js +0 -3
- package/lib/Antd4/popover/style/index-pure.less +0 -258
- package/lib/Antd4/popover/style/index.js +0 -3
- package/lib/Antd4/popover/style/index.less +0 -3
- package/lib/Antd4/popover/style/rtl.less +0 -33
- package/lib/Antd4/progress/Circle.js +0 -75
- package/lib/Antd4/progress/Line.js +0 -121
- package/lib/Antd4/progress/Steps.js +0 -33
- package/lib/Antd4/progress/index.js +0 -2
- package/lib/Antd4/progress/progress.js +0 -147
- package/lib/Antd4/progress/style/css.js +0 -2
- package/lib/Antd4/progress/style/index-pure.less +0 -210
- package/lib/Antd4/progress/style/index.js +0 -2
- package/lib/Antd4/progress/style/index.less +0 -3
- package/lib/Antd4/progress/style/rtl.less +0 -37
- package/lib/Antd4/progress/utils.js +0 -25
- package/lib/Antd4/radio/context.js +0 -4
- package/lib/Antd4/radio/group.js +0 -98
- package/lib/Antd4/radio/index.js +0 -8
- package/lib/Antd4/radio/radio.js +0 -66
- package/lib/Antd4/radio/radioButton.js +0 -34
- package/lib/Antd4/radio/style/css.js +0 -2
- package/lib/Antd4/radio/style/index-pure.less +0 -359
- package/lib/Antd4/radio/style/index.js +0 -2
- package/lib/Antd4/radio/style/index.less +0 -3
- package/lib/Antd4/radio/style/rtl.less +0 -61
- package/lib/Antd4/rate/index.js +0 -44
- package/lib/Antd4/rate/style/css.js +0 -4
- package/lib/Antd4/rate/style/index-pure.less +0 -91
- package/lib/Antd4/rate/style/index.js +0 -4
- package/lib/Antd4/rate/style/index.less +0 -3
- package/lib/Antd4/rate/style/rtl.less +0 -21
- package/lib/Antd4/result/index.js +0 -90
- package/lib/Antd4/result/noFound.js +0 -237
- package/lib/Antd4/result/serverError.js +0 -277
- package/lib/Antd4/result/style/css.js +0 -2
- package/lib/Antd4/result/style/index-pure.less +0 -75
- package/lib/Antd4/result/style/index.js +0 -2
- package/lib/Antd4/result/style/index.less +0 -3
- package/lib/Antd4/result/style/rtl.less +0 -25
- package/lib/Antd4/result/unauthorized.js +0 -227
- package/lib/Antd4/row/index.js +0 -2
- package/lib/Antd4/row/style/css.js +0 -4
- package/lib/Antd4/row/style/index.js +0 -4
- package/lib/Antd4/select/index.js +0 -131
- package/lib/Antd4/select/style/css.js +0 -4
- package/lib/Antd4/select/style/index-pure.less +0 -322
- package/lib/Antd4/select/style/index.js +0 -4
- package/lib/Antd4/select/style/index.less +0 -3
- package/lib/Antd4/select/style/multiple.less +0 -222
- package/lib/Antd4/select/style/rtl.less +0 -168
- package/lib/Antd4/select/style/single.less +0 -179
- package/lib/Antd4/select/style/status.less +0 -76
- package/lib/Antd4/select/utils/iconUtil.js +0 -73
- package/lib/Antd4/skeleton/Avatar.js +0 -27
- package/lib/Antd4/skeleton/Button.js +0 -29
- package/lib/Antd4/skeleton/Element.js +0 -24
- package/lib/Antd4/skeleton/Image.js +0 -27
- package/lib/Antd4/skeleton/Input.js +0 -28
- package/lib/Antd4/skeleton/Paragraph.js +0 -38
- package/lib/Antd4/skeleton/Skeleton.js +0 -130
- package/lib/Antd4/skeleton/Title.js +0 -18
- package/lib/Antd4/skeleton/style/css.js +0 -2
- package/lib/Antd4/skeleton/style/index-pure.less +0 -285
- package/lib/Antd4/skeleton/style/index.js +0 -2
- package/lib/Antd4/skeleton/style/index.less +0 -3
- package/lib/Antd4/skeleton/style/rtl.less +0 -48
- package/lib/Antd4/slider/SliderTooltip.js +0 -34
- package/lib/Antd4/slider/index.js +0 -111
- package/lib/Antd4/slider/style/css.js +0 -4
- package/lib/Antd4/slider/style/index-pure.less +0 -206
- package/lib/Antd4/slider/style/index.js +0 -4
- package/lib/Antd4/slider/style/index.less +0 -3
- package/lib/Antd4/slider/style/rtl.less +0 -49
- package/lib/Antd4/space/Item.js +0 -42
- package/lib/Antd4/space/index.js +0 -118
- package/lib/Antd4/space/style/css.js +0 -2
- package/lib/Antd4/space/style/index-pure.less +0 -39
- package/lib/Antd4/space/style/index.js +0 -2
- package/lib/Antd4/space/style/index.less +0 -3
- package/lib/Antd4/space/style/rtl.less +0 -10
- package/lib/Antd4/spin/index.js +0 -176
- package/lib/Antd4/spin/style/css.js +0 -2
- package/lib/Antd4/spin/style/index-pure.less +0 -218
- package/lib/Antd4/spin/style/index.js +0 -2
- package/lib/Antd4/spin/style/index.less +0 -3
- package/lib/Antd4/spin/style/rtl.less +0 -20
- package/lib/Antd4/statistic/Countdown.js +0 -101
- package/lib/Antd4/statistic/Number.js +0 -46
- package/lib/Antd4/statistic/Statistic.js +0 -54
- package/lib/Antd4/statistic/index.js +0 -4
- package/lib/Antd4/statistic/style/css.js +0 -4
- package/lib/Antd4/statistic/style/index-pure.less +0 -40
- package/lib/Antd4/statistic/style/index.js +0 -4
- package/lib/Antd4/statistic/style/index.less +0 -3
- package/lib/Antd4/statistic/style/rtl.less +0 -21
- package/lib/Antd4/statistic/utils.js +0 -41
- package/lib/Antd4/steps/index.js +0 -85
- package/lib/Antd4/steps/style/css.js +0 -5
- package/lib/Antd4/steps/style/custom-icon.less +0 -32
- package/lib/Antd4/steps/style/index-pure.less +0 -255
- package/lib/Antd4/steps/style/index.js +0 -5
- package/lib/Antd4/steps/style/index.less +0 -3
- package/lib/Antd4/steps/style/label-placement.less +0 -45
- package/lib/Antd4/steps/style/nav.less +0 -134
- package/lib/Antd4/steps/style/progress-dot.less +0 -113
- package/lib/Antd4/steps/style/progress.less +0 -28
- package/lib/Antd4/steps/style/rtl.less +0 -253
- package/lib/Antd4/steps/style/small.less +0 -48
- package/lib/Antd4/steps/style/vertical.less +0 -73
- package/lib/Antd4/style/color/bezierEasing.less +0 -110
- package/lib/Antd4/style/color/colorPalette.less +0 -81
- package/lib/Antd4/style/color/colors.less +0 -162
- package/lib/Antd4/style/color/tinyColor.less +0 -1184
- package/lib/Antd4/style/compact.less +0 -4
- package/lib/Antd4/style/core/base.less +0 -10
- package/lib/Antd4/style/core/global.less +0 -491
- package/lib/Antd4/style/core/iconfont.less +0 -25
- package/lib/Antd4/style/core/index.less +0 -5
- package/lib/Antd4/style/core/motion/fade.less +0 -34
- package/lib/Antd4/style/core/motion/move.less +0 -129
- package/lib/Antd4/style/core/motion/other.less +0 -51
- package/lib/Antd4/style/core/motion/slide.less +0 -129
- package/lib/Antd4/style/core/motion/zoom.less +0 -179
- package/lib/Antd4/style/core/motion.less +0 -22
- package/lib/Antd4/style/css.js +0 -1
- package/lib/Antd4/style/dark.less +0 -4
- package/lib/Antd4/style/default.less +0 -4
- package/lib/Antd4/style/index-pure.less +0 -2
- package/lib/Antd4/style/index.js +0 -1
- package/lib/Antd4/style/index.less +0 -3
- package/lib/Antd4/style/mixins/box.less +0 -7
- package/lib/Antd4/style/mixins/clearfix.less +0 -16
- package/lib/Antd4/style/mixins/compatibility.less +0 -19
- package/lib/Antd4/style/mixins/customize.less +0 -181
- package/lib/Antd4/style/mixins/iconfont.less +0 -28
- package/lib/Antd4/style/mixins/index.less +0 -14
- package/lib/Antd4/style/mixins/modal-mask.less +0 -31
- package/lib/Antd4/style/mixins/motion.less +0 -33
- package/lib/Antd4/style/mixins/operation-unit.less +0 -16
- package/lib/Antd4/style/mixins/reset.less +0 -11
- package/lib/Antd4/style/mixins/rounded-arrow.less +0 -37
- package/lib/Antd4/style/mixins/size.less +0 -10
- package/lib/Antd4/style/mixins/typography.less +0 -58
- package/lib/Antd4/style/themes/compact.less +0 -295
- package/lib/Antd4/style/themes/dark.less +0 -449
- package/lib/Antd4/style/themes/default.less +0 -1072
- package/lib/Antd4/style/themes/index.less +0 -7
- package/lib/Antd4/style/themes/variable.less +0 -1127
- package/lib/Antd4/style/variable.less +0 -4
- package/lib/Antd4/switch/index.js +0 -54
- package/lib/Antd4/switch/style/css.js +0 -2
- package/lib/Antd4/switch/style/index-pure.less +0 -154
- package/lib/Antd4/switch/style/index.js +0 -2
- package/lib/Antd4/switch/style/index.less +0 -3
- package/lib/Antd4/switch/style/rtl.less +0 -52
- package/lib/Antd4/table/Column.js +0 -8
- package/lib/Antd4/table/ColumnGroup.js +0 -8
- package/lib/Antd4/table/ExpandIcon.js +0 -24
- package/lib/Antd4/table/Table.js +0 -379
- package/lib/Antd4/table/hooks/useFilter/FilterDropdown.js +0 -391
- package/lib/Antd4/table/hooks/useFilter/FilterSearch.js +0 -26
- package/lib/Antd4/table/hooks/useFilter/FilterWrapper.js +0 -10
- package/lib/Antd4/table/hooks/useFilter/index.js +0 -182
- package/lib/Antd4/table/hooks/useLazyKVMap.js +0 -30
- package/lib/Antd4/table/hooks/usePagination.js +0 -91
- package/lib/Antd4/table/hooks/useSelection.js +0 -539
- package/lib/Antd4/table/hooks/useSorter.js +0 -304
- package/lib/Antd4/table/hooks/useTitleColumns.js +0 -19
- package/lib/Antd4/table/index.js +0 -2
- package/lib/Antd4/table/interface.js +0 -2
- package/lib/Antd4/table/style/bordered.less +0 -135
- package/lib/Antd4/table/style/css.js +0 -15
- package/lib/Antd4/table/style/index-pure.less +0 -749
- package/lib/Antd4/table/style/index.js +0 -15
- package/lib/Antd4/table/style/index.less +0 -3
- package/lib/Antd4/table/style/radius.less +0 -45
- package/lib/Antd4/table/style/rtl.less +0 -168
- package/lib/Antd4/table/style/size.less +0 -56
- package/lib/Antd4/table/util.js +0 -18
- package/lib/Antd4/tabs/index.js +0 -79
- package/lib/Antd4/tabs/style/card.less +0 -98
- package/lib/Antd4/tabs/style/css.js +0 -2
- package/lib/Antd4/tabs/style/dropdown.less +0 -82
- package/lib/Antd4/tabs/style/index-pure.less +0 -224
- package/lib/Antd4/tabs/style/index.js +0 -2
- package/lib/Antd4/tabs/style/index.less +0 -3
- package/lib/Antd4/tabs/style/position.less +0 -198
- package/lib/Antd4/tabs/style/rtl.less +0 -86
- package/lib/Antd4/tabs/style/size.less +0 -42
- package/lib/Antd4/tag/CheckableTag.js +0 -37
- package/lib/Antd4/tag/index.js +0 -97
- package/lib/Antd4/tag/style/css.js +0 -2
- package/lib/Antd4/tag/style/index-pure.less +0 -129
- package/lib/Antd4/tag/style/index.js +0 -2
- package/lib/Antd4/tag/style/index.less +0 -3
- package/lib/Antd4/tag/style/rtl.less +0 -28
- package/lib/Antd4/time-picker/index.js +0 -49
- package/lib/Antd4/time-picker/locale/ar_EG.js +0 -4
- package/lib/Antd4/time-picker/locale/bg_BG.js +0 -4
- package/lib/Antd4/time-picker/locale/ca_ES.js +0 -4
- package/lib/Antd4/time-picker/locale/cs_CZ.js +0 -4
- package/lib/Antd4/time-picker/locale/de_DE.js +0 -4
- package/lib/Antd4/time-picker/locale/el_GR.js +0 -4
- package/lib/Antd4/time-picker/locale/en_GB.js +0 -4
- package/lib/Antd4/time-picker/locale/es_ES.js +0 -4
- package/lib/Antd4/time-picker/locale/et_EE.js +0 -4
- package/lib/Antd4/time-picker/locale/fi_FI.js +0 -4
- package/lib/Antd4/time-picker/locale/fr_BE.js +0 -4
- package/lib/Antd4/time-picker/locale/he_IL.js +0 -4
- package/lib/Antd4/time-picker/locale/hu_HU.js +0 -4
- package/lib/Antd4/time-picker/locale/id_ID.js +0 -4
- package/lib/Antd4/time-picker/locale/is_IS.js +0 -4
- package/lib/Antd4/time-picker/locale/it_IT.js +0 -4
- package/lib/Antd4/time-picker/locale/kn_IN.js +0 -4
- package/lib/Antd4/time-picker/locale/lv_LV.js +0 -4
- package/lib/Antd4/time-picker/locale/mk_MK.js +0 -4
- package/lib/Antd4/time-picker/locale/mn_MN.js +0 -4
- package/lib/Antd4/time-picker/locale/ms_MY.js +0 -4
- package/lib/Antd4/time-picker/locale/pl_PL.js +0 -4
- package/lib/Antd4/time-picker/locale/pt_BR.js +0 -4
- package/lib/Antd4/time-picker/locale/pt_PT.js +0 -4
- package/lib/Antd4/time-picker/locale/ro_RO.js +0 -4
- package/lib/Antd4/time-picker/locale/sk_SK.js +0 -4
- package/lib/Antd4/time-picker/locale/sl_SI.js +0 -4
- package/lib/Antd4/time-picker/locale/sv_SE.js +0 -4
- package/lib/Antd4/time-picker/locale/ta_IN.js +0 -4
- package/lib/Antd4/time-picker/locale/th_TH.js +0 -4
- package/lib/Antd4/time-picker/locale/uk_UA.js +0 -4
- package/lib/Antd4/time-picker/locale/vi_VN.js +0 -4
- package/lib/Antd4/time-picker/locale/zh_TW.js +0 -4
- package/lib/Antd4/time-picker/style/css.js +0 -4
- package/lib/Antd4/time-picker/style/index-pure.less +0 -3
- package/lib/Antd4/time-picker/style/index.js +0 -4
- package/lib/Antd4/time-picker/style/index.less +0 -3
- package/lib/Antd4/timeline/Timeline.js +0 -80
- package/lib/Antd4/timeline/TimelineItem.js +0 -51
- package/lib/Antd4/timeline/index.js +0 -2
- package/lib/Antd4/timeline/style/css.js +0 -2
- package/lib/Antd4/timeline/style/index-pure.less +0 -185
- package/lib/Antd4/timeline/style/index.js +0 -2
- package/lib/Antd4/timeline/style/index.less +0 -3
- package/lib/Antd4/timeline/style/rtl.less +0 -135
- package/lib/Antd4/tooltip/index.js +0 -201
- package/lib/Antd4/tooltip/style/css.js +0 -2
- package/lib/Antd4/tooltip/style/index-pure.less +0 -211
- package/lib/Antd4/tooltip/style/index.js +0 -2
- package/lib/Antd4/tooltip/style/index.less +0 -3
- package/lib/Antd4/tooltip/style/rtl.less +0 -14
- package/lib/Antd4/transfer/ListBody.js +0 -142
- package/lib/Antd4/transfer/ListItem.js +0 -58
- package/lib/Antd4/transfer/index.js +0 -390
- package/lib/Antd4/transfer/list.js +0 -347
- package/lib/Antd4/transfer/operation.js +0 -36
- package/lib/Antd4/transfer/search.js +0 -27
- package/lib/Antd4/transfer/style/css.js +0 -10
- package/lib/Antd4/transfer/style/customize.less +0 -52
- package/lib/Antd4/transfer/style/index-pure.less +0 -221
- package/lib/Antd4/transfer/style/index.js +0 -10
- package/lib/Antd4/transfer/style/index.less +0 -3
- package/lib/Antd4/transfer/style/rtl.less +0 -71
- package/lib/Antd4/transfer/style/status.less +0 -31
- package/lib/Antd4/tree/DirectoryTree.js +0 -195
- package/lib/Antd4/tree/Tree.js +0 -82
- package/lib/Antd4/tree/index.js +0 -2
- package/lib/Antd4/tree/style/css.js +0 -2
- package/lib/Antd4/tree/style/directory.less +0 -72
- package/lib/Antd4/tree/style/index-pure.less +0 -16
- package/lib/Antd4/tree/style/index.js +0 -2
- package/lib/Antd4/tree/style/index.less +0 -3
- package/lib/Antd4/tree/style/mixin.less +0 -322
- package/lib/Antd4/tree/style/rtl.less +0 -72
- package/lib/Antd4/tree/utils/dictUtil.js +0 -72
- package/lib/Antd4/tree/utils/dropIndicator.js +0 -32
- package/lib/Antd4/tree/utils/iconUtil.js +0 -55
- package/lib/Antd4/tree-select/index.js +0 -141
- package/lib/Antd4/tree-select/style/css.js +0 -6
- package/lib/Antd4/tree-select/style/index-pure.less +0 -57
- package/lib/Antd4/tree-select/style/index.js +0 -6
- package/lib/Antd4/tree-select/style/index.less +0 -3
- package/lib/Antd4/typography/Base/Ellipsis.js +0 -171
- package/lib/Antd4/typography/Base/EllipsisTooltip.js +0 -19
- package/lib/Antd4/typography/Base/index.js +0 -398
- package/lib/Antd4/typography/Editable.js +0 -104
- package/lib/Antd4/typography/Link.js +0 -37
- package/lib/Antd4/typography/Paragraph.js +0 -9
- package/lib/Antd4/typography/Text.js +0 -32
- package/lib/Antd4/typography/Title.js +0 -32
- package/lib/Antd4/typography/Typography.js +0 -48
- package/lib/Antd4/typography/hooks/useMergedConfig.js +0 -9
- package/lib/Antd4/typography/hooks/useUpdatedEffect.js +0 -13
- package/lib/Antd4/typography/index.js +0 -11
- package/lib/Antd4/typography/style/css.js +0 -5
- package/lib/Antd4/typography/style/index-pure.less +0 -311
- package/lib/Antd4/typography/style/index.js +0 -5
- package/lib/Antd4/typography/style/index.less +0 -3
- package/lib/Antd4/typography/style/rtl.less +0 -54
- package/lib/Antd4/upload/Dragger.js +0 -29
- package/lib/Antd4/upload/Upload.js +0 -415
- package/lib/Antd4/upload/UploadList/ListItem.js +0 -183
- package/lib/Antd4/upload/UploadList/index.js +0 -225
- package/lib/Antd4/upload/index.js +0 -4
- package/lib/Antd4/upload/style/css.js +0 -6
- package/lib/Antd4/upload/style/index-pure.less +0 -589
- package/lib/Antd4/upload/style/index.js +0 -6
- package/lib/Antd4/upload/style/index.less +0 -3
- package/lib/Antd4/upload/style/rtl.less +0 -179
- package/lib/Antd4/upload/utils.js +0 -111
- package/lib/Antd4/version/style/css.js +0 -2
- package/lib/Antd4/version/style/index.js +0 -2
- package/lib/Antd4/version/version.js +0 -1
- package/lib/Antd4Form/FieldList.js +0 -59
- package/lib/Antd4Form/Form.js +0 -36
- package/lib/Antd4Form/FormItem.js +0 -105
- package/lib/Antd4Form/FormItemChildren.js +0 -50
- package/lib/Antd4Form/index.js +0 -8
- package/lib/Antd4Form/useForm.js +0 -105
- package/lib/Badge/index.less +0 -120
- package/lib/BasicLayout/Footer.js +0 -43
- package/lib/BasicLayout/index.less +0 -191
- package/lib/Breadcrumb/Breadcrumb.less +0 -34
- package/lib/Button/index.less +0 -291
- package/lib/CWCascader/index.less +0 -31
- package/lib/CWMessage/MessageContent/TabList/index.less +0 -41
- package/lib/CWMessage/MessageContent/index.less +0 -93
- package/lib/CWMessage/index.less +0 -59
- package/lib/CWMessage/locale/en_US.js +0 -6
- package/lib/CWMessage/locale/index.js +0 -11
- package/lib/CWMessage/locale/zh_CN.js +0 -6
- package/lib/CWMessage/locale/zh_TW.js +0 -6
- package/lib/CWRadioTabs/index.less +0 -26
- package/lib/CWRangePicker/DropdownMenu/MoreHistoryList/index.less +0 -31
- package/lib/CWRangePicker/DropdownMenu/MoreTimeList/index.less +0 -15
- package/lib/CWRangePicker/DropdownMenu/index.less +0 -115
- package/lib/CWRangePicker/Refresh/index.less +0 -26
- package/lib/CWRangePicker/TimeSpan/index.less +0 -12
- package/lib/CWRangePicker/index.less +0 -77
- package/lib/CWSelect/DragTag/index.js +0 -52
- package/lib/CWSelect/Tag.js +0 -30
- package/lib/CWSelect/antd-select.js +0 -249
- package/lib/CWSelect/index-antd.less +0 -19
- package/lib/CWSelect/index.less +0 -815
- package/lib/CWSelect/locale/en_US.js +0 -4
- package/lib/CWSelect/locale/index.js +0 -11
- package/lib/CWSelect/locale/zh_CN.js +0 -4
- package/lib/CWSelect/locale/zh_TW.js +0 -4
- package/lib/CWSelect/mixin.less +0 -47
- package/lib/CWSelect/utils.js +0 -18
- package/lib/CWTable/EditLine.js +0 -191
- package/lib/CWTable/Filter.js +0 -128
- package/lib/CWTable/FormTable.js +0 -36
- package/lib/CWTable/SortContext.js +0 -3
- package/lib/CWTable/icon/DownGraySvg.js +0 -25
- package/lib/CWTable/icon/DownLightSvg.js +0 -25
- package/lib/CWTable/icon/SortSvg.js +0 -25
- package/lib/CWTable/icon/SortingSvg.js +0 -25
- package/lib/CWTable/icon/UpGraySvg.js +0 -25
- package/lib/CWTable/icon/UpLightSvg.js +0 -25
- package/lib/CWTable/index.less +0 -180
- package/lib/CWTable/locale/en_US.js +0 -6
- package/lib/CWTable/locale/index.js +0 -11
- package/lib/CWTable/locale/zh_CN.js +0 -6
- package/lib/CWTable/locale/zh_TW.js +0 -6
- package/lib/CWTable/util.js +0 -5
- package/lib/CWTree/index.less +0 -588
- package/lib/CWUpload/index.js +0 -150
- package/lib/CWUpload/index.less +0 -108
- package/lib/CWUpload/locale/en_US.js +0 -6
- package/lib/CWUpload/locale/index.js +0 -11
- package/lib/CWUpload/locale/zh_CN.js +0 -6
- package/lib/CWUpload/locale/zh_TW.js +0 -6
- package/lib/CWUpload/upload/DragList.js +0 -73
- package/lib/CWUpload/upload/Dragger.js +0 -65
- package/lib/CWUpload/upload/Upload.js +0 -486
- package/lib/CWUpload/upload/UploadList.js +0 -437
- package/lib/CWUpload/upload/style/index.less +0 -575
- package/lib/CWUpload/upload/utils.js +0 -120
- package/lib/CWUpload/upload.less +0 -629
- package/lib/CardSelect/index.less +0 -72
- package/lib/Cascader/index.less +0 -36
- package/lib/ChangeIcon/index.less +0 -104
- package/lib/Checkbox/Checkbox.js +0 -195
- package/lib/Checkbox/Group.js +0 -204
- package/lib/Checkbox/assets/duigou1.js +0 -23
- package/lib/Checkbox/assets/duigou2.js +0 -23
- package/lib/Checkbox/index.less +0 -163
- package/lib/Checkbox/warning.js +0 -4
- package/lib/Collapse/index-antd.less +0 -258
- package/lib/Collapse/index.less +0 -1
- package/lib/ColorPicker/SketchPicker/components/common/Alpha.js +0 -132
- package/lib/ColorPicker/SketchPicker/components/common/Checkboard.js +0 -40
- package/lib/ColorPicker/SketchPicker/components/common/ColorWrap.js +0 -79
- package/lib/ColorPicker/SketchPicker/components/common/EditableInput.js +0 -171
- package/lib/ColorPicker/SketchPicker/components/common/Hue.js +0 -117
- package/lib/ColorPicker/SketchPicker/components/common/Saturation.js +0 -138
- package/lib/ColorPicker/SketchPicker/components/common/Swatch.js +0 -62
- package/lib/ColorPicker/SketchPicker/components/sketch/SketchPresetColors.js +0 -72
- package/lib/ColorPicker/SketchPicker/components/sketch/index.js +0 -160
- package/lib/ColorPicker/SketchPicker/helpers/interaction.js +0 -54
- package/lib/ColorPicker/index.less +0 -94
- package/lib/ColorPicker/locale/en_US.js +0 -4
- package/lib/ColorPicker/locale/index.js +0 -11
- package/lib/ColorPicker/locale/zh_CN.js +0 -4
- package/lib/ColorPicker/locale/zh_TW.js +0 -4
- package/lib/Comment/index.js +0 -3
- package/lib/DataView/index.less +0 -24
- package/lib/DatePicker/DatePicker.js +0 -32
- package/lib/DatePicker/MonthPicker.js +0 -30
- package/lib/DatePicker/QuarterPicker.js +0 -15
- package/lib/DatePicker/RangePicker.js +0 -30
- package/lib/DatePicker/TimePicker.js +0 -14
- package/lib/DatePicker/WeekPicker.js +0 -15
- package/lib/DatePicker/YearPicker.js +0 -15
- package/lib/DatePicker/index.less +0 -131
- package/lib/DatePicker/useLocale.js +0 -13
- package/lib/DateRangePicker/RangeDatePicker.js +0 -160
- package/lib/DateRangePicker/RangeDateTimePicker.js +0 -532
- package/lib/DateRangePicker/components/ExtraQuickFooter.js +0 -85
- package/lib/DateRangePicker/components/ExtraTimeFooter.js +0 -49
- package/lib/DateRangePicker/index.js +0 -75
- package/lib/DateRangePicker/index.less +0 -231
- package/lib/DateRangePicker/locale/en_US.js +0 -5
- package/lib/DateRangePicker/locale/index.js +0 -11
- package/lib/DateRangePicker/locale/zh_CN.js +0 -5
- package/lib/DateRangePicker/locale/zh_TW.js +0 -5
- package/lib/DateRangePicker/utils/index.js +0 -33
- package/lib/Documentation/index.less +0 -259
- package/lib/Drawer/Drawer.less +0 -305
- package/lib/Dropdown/Dropdown.less +0 -124
- package/lib/DropdownDatePicker/DropdownMenu/MoreTimeList/index.js +0 -45
- package/lib/DropdownDatePicker/DropdownMenu/MoreTimeList/index.less +0 -14
- package/lib/DropdownDatePicker/DropdownMenu/index.js +0 -125
- package/lib/DropdownDatePicker/DropdownMenu/index.less +0 -68
- package/lib/DropdownDatePicker/assets/Calendar2.js +0 -15
- package/lib/DropdownDatePicker/assets/Recover.js +0 -18
- package/lib/DropdownDatePicker/assets/live.js +0 -19
- package/lib/DropdownDatePicker/assets/more.js +0 -23
- package/lib/DropdownDatePicker/index.js +0 -358
- package/lib/DropdownDatePicker/index.less +0 -34
- package/lib/DropdownDatePicker/locale/en_US.js +0 -21
- package/lib/DropdownDatePicker/locale/index.js +0 -11
- package/lib/DropdownDatePicker/locale/zh_CN.js +0 -21
- package/lib/DropdownDatePicker/locale/zh_TW.js +0 -21
- package/lib/DropdownDatePicker/utils/index.js +0 -253
- package/lib/EditableText/index.js +0 -135
- package/lib/EditableText/index.less +0 -12
- package/lib/Empty/index.less +0 -32
- package/lib/Empty/locale/en_US.js +0 -3
- package/lib/Empty/locale/index.js +0 -11
- package/lib/Empty/locale/zh_CN.js +0 -3
- package/lib/Empty/locale/zh_TW.js +0 -3
- package/lib/ErrorBoundary/index.less +0 -15
- package/lib/Exception/index.less +0 -24
- package/lib/Exception/locale/en_US.js +0 -9
- package/lib/Exception/locale/index.js +0 -11
- package/lib/Exception/locale/zh_CN.js +0 -9
- package/lib/Exception/locale/zh_TW.js +0 -9
- package/lib/FilterDropDown/index.less +0 -101
- package/lib/FilterDropDown/locale/en_US.js +0 -3
- package/lib/FilterDropDown/locale/index.js +0 -11
- package/lib/FilterDropDown/locale/zh_CN.js +0 -3
- package/lib/FilterDropDown/locale/zh_TW.js +0 -3
- package/lib/Footer/index.js +0 -56
- package/lib/Footer/index.less +0 -13
- package/lib/Form/index.less +0 -107
- package/lib/Form4/index.js +0 -12
- package/lib/FormItemWrapper/index.less +0 -19
- package/lib/Formily/FieldList/index.js +0 -43
- package/lib/Formily/Form/index.js +0 -3
- package/lib/Formily/FormButtonGroup/index.js +0 -2
- package/lib/Formily/FormItem/index.js +0 -92
- package/lib/Formily/FormItem/index.less +0 -34
- package/lib/Formily/FormItem/items/Checkbox.js +0 -14
- package/lib/Formily/FormItem/items/DatePicker.js +0 -122
- package/lib/Formily/FormItem/items/Input.js +0 -14
- package/lib/Formily/FormItem/items/NumberPicker.js +0 -10
- package/lib/Formily/FormItem/items/Password.js +0 -71
- package/lib/Formily/FormItem/items/Radio.js +0 -14
- package/lib/Formily/FormItem/items/Range.js +0 -83
- package/lib/Formily/FormItem/items/Rating.js +0 -8
- package/lib/Formily/FormItem/items/Select.js +0 -8
- package/lib/Formily/FormItem/items/Switch.js +0 -9
- package/lib/Formily/FormItem/items/Tansfer.js +0 -9
- package/lib/Formily/FormItem/items/TimePicker.js +0 -44
- package/lib/Formily/FormItem/items/Upload.js +0 -262
- package/lib/Formily/FormItem/items/formItemWrapper.js +0 -18
- package/lib/Formily/FormItem/items/shared.js +0 -141
- package/lib/Formily/FormPath/index.js +0 -2
- package/lib/Formily/MegaLayout/index.js +0 -25
- package/lib/Formily/MegaLayout/index.less +0 -7
- package/lib/Formily/Reset/index.js +0 -2
- package/lib/Formily/Submit/index.js +0 -2
- package/lib/Formily/context.js +0 -3
- package/lib/Formily/formily/index.js +0 -22
- package/lib/Formily/index.js +0 -6
- package/lib/Formily/subscribeFields/index.js +0 -46
- package/lib/GlobalTabs/TabPane.js +0 -16
- package/lib/GlobalTabs/index.less +0 -33
- package/lib/Header/TopNavigationMenu/index.less +0 -41
- package/lib/Header/index.less +0 -194
- package/lib/IconSelect/components/CustomImg/index.less +0 -17
- package/lib/IconSelect/components/SearchIcon/index.less +0 -35
- package/lib/IconSelect/index.less +0 -59
- package/lib/IconSelect/locale/en_US.js +0 -11
- package/lib/IconSelect/locale/index.js +0 -11
- package/lib/IconSelect/locale/zh_CN.js +0 -11
- package/lib/IconSelect/locale/zh_TW.js +0 -11
- package/lib/ImagePreview/index.js +0 -29
- package/lib/Input/index.less +0 -198
- package/lib/InputNumber/index.less +0 -10
- package/lib/InputNumber/utils.js +0 -6
- package/lib/IntersectionInput/index.js +0 -224
- package/lib/IntersectionInput/index.less +0 -0
- package/lib/Joyride/index.less +0 -196
- package/lib/Joyride/locale/en_US.js +0 -25
- package/lib/Joyride/locale/index.js +0 -11
- package/lib/Joyride/locale/zh_CN.js +0 -25
- package/lib/Joyride/locale/zh_TW.js +0 -25
- package/lib/Layout/Layout.less +0 -6
- package/lib/LayoutBreadcrumb/index.js +0 -78
- package/lib/LayoutWrapper/Footer.less +0 -12
- package/lib/LayoutWrapper/Header.less +0 -34
- package/lib/LayoutWrapper/index.less +0 -60
- package/lib/LazyLoadingTreeSelect/index.js +0 -341
- package/lib/LazyLoadingTreeSelect/index.less +0 -39
- package/lib/LeftNavigation/index.less +0 -23
- package/lib/LocaleProvider/index.js +0 -3
- package/lib/Mention/index.js +0 -3
- package/lib/Menu/menu/MenuContext.js +0 -6
- package/lib/Menu/menu/MenuItem.js +0 -86
- package/lib/Menu/menu/SubMenu.js +0 -64
- package/lib/Menu/menu/index.js +0 -282
- package/lib/Modal/index.less +0 -87
- package/lib/ModuleTitle/index.less +0 -18
- package/lib/Nodata/assets/images/no-data.svg +0 -30
- package/lib/Nodata/assets/images/no-search-result.svg +0 -23
- package/lib/Nodata/assets/images/no-table-data.svg +0 -23
- package/lib/Nodata/assets/style/index.less +0 -20
- package/lib/Nodata/index.js +0 -3
- package/lib/Nodata/index.old.js +0 -53
- package/lib/OutlineNumber/index.js +0 -85
- package/lib/OutlineNumber/index.less +0 -44
- package/lib/PageHeader/index.js +0 -3
- package/lib/Pagination/index.less +0 -219
- package/lib/Pagination/locale/en_US.js +0 -8
- package/lib/Pagination/locale/index.js +0 -11
- package/lib/Pagination/locale/zh_CN.js +0 -8
- package/lib/Pagination/locale/zh_TW.js +0 -8
- package/lib/PolymerizationSearch/DropdownMenu.js +0 -46
- package/lib/PolymerizationSearch/code.svg +0 -13
- package/lib/PolymerizationSearch/index.js +0 -359
- package/lib/PolymerizationSearch/index.less +0 -120
- package/lib/PolymerizationSearch/util.js +0 -45
- package/lib/Popconfirm/index.less +0 -40
- package/lib/Progress/index.less +0 -108
- package/lib/Progress/locale/en_US.js +0 -3
- package/lib/Progress/locale/index.js +0 -11
- package/lib/Progress/locale/zh_CN.js +0 -3
- package/lib/Progress/locale/zh_TW.js +0 -3
- package/lib/QuickRangePicker/index.less +0 -35
- package/lib/QuickTransfer/index.less +0 -403
- package/lib/QuickTransfer/locale/en_US.js +0 -8
- package/lib/QuickTransfer/locale/index.js +0 -11
- package/lib/QuickTransfer/locale/zh_CN.js +0 -8
- package/lib/QuickTransfer/locale/zh_TW.js +0 -8
- package/lib/Radio/Group.js +0 -184
- package/lib/Radio/Radio.js +0 -127
- package/lib/Radio/index-antd.less +0 -327
- package/lib/Radio/index.less +0 -196
- package/lib/RangePicker/components/ExtraQuickSelect.js +0 -61
- package/lib/RangePicker/components/ExtraTimeFooter.js +0 -68
- package/lib/RangePicker/index.less +0 -155
- package/lib/RangePicker/locale/en_US.js +0 -5
- package/lib/RangePicker/locale/index.js +0 -11
- package/lib/RangePicker/locale/zh_CN.js +0 -5
- package/lib/RangePicker/locale/zh_TW.js +0 -5
- package/lib/RangePicker/utils/index.js +0 -179
- package/lib/ReactSelect/CustomArrow.js +0 -12
- package/lib/ReactSelect/CustomControl.js +0 -31
- package/lib/ReactSelect/CustomMultiValueLabel.js +0 -23
- package/lib/ReactSelect/CustomOption.js +0 -11
- package/lib/ReactSelect/CustomSingleValue.js +0 -23
- package/lib/ReactSelect/OptGroup.js +0 -8
- package/lib/ReactSelect/Option.js +0 -8
- package/lib/ReactSelect/TagMore.js +0 -25
- package/lib/ReactSelect/customStyles.js +0 -19
- package/lib/ReactSelect/index.js +0 -253
- package/lib/ReactSelect/utils.js +0 -8
- package/lib/SearchBar/index.less +0 -96
- package/lib/SelectBackup/index.js +0 -398
- package/lib/SelectBackup/index.less +0 -520
- package/lib/SelectBackup/select/index.js +0 -300
- package/lib/SelectBackup/select/style/css.js +0 -4
- package/lib/SelectBackup/select/style/index.js +0 -3
- package/lib/SelectBackup/select/style/index.less +0 -604
- package/lib/SiderMenu/Item.js +0 -49
- package/lib/SiderMenu/dark.less +0 -195
- package/lib/SiderMenu/index.less +0 -637
- package/lib/SiderMenu/index_copy.less +0 -185
- package/lib/SiderMenu/sub-menu.js +0 -20
- package/lib/SimpleCard/index.less +0 -63
- package/lib/SimplePagination/index.less +0 -99
- package/lib/SingleSpa/hooks/useErrorHandle.js +0 -65
- package/lib/SingleSpa/hooks/useModel.js +0 -31
- package/lib/Slider/index.less +0 -170
- package/lib/Spin/Spin.less +0 -16
- package/lib/Steps/Steps.less +0 -502
- package/lib/Switch/Switch.less +0 -62
- package/lib/Table/Table.less +0 -306
- package/lib/Table/util.js +0 -15
- package/lib/Tabs/index.less +0 -99
- package/lib/Tag/index.less +0 -282
- package/lib/TimeRangeSlider/Refresh/index.js +0 -161
- package/lib/TimeRangeSlider/Refresh/index.less +0 -26
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/assets/LimitAreaSvg.js +0 -110
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/BottomPlaceholder.js +0 -70
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/BottomTimeDateProcess.js +0 -36
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/index.js +0 -38
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/index.less +0 -113
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/TopDateProcess.js +0 -36
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/TopPlaceholder.js +0 -36
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/index.js +0 -31
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/index.less +0 -79
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useHover.js +0 -31
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useMouse.js +0 -325
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/index.js +0 -73
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/utils/index.js +0 -227
- package/lib/TimeRangeSlider/TimeSpan/index.js +0 -81
- package/lib/TimeRangeSlider/TimeSpan/index.less +0 -12
- package/lib/TimeRangeSlider/assets/Calendar.js +0 -15
- package/lib/TimeRangeSlider/assets/Calendar2.js +0 -15
- package/lib/TimeRangeSlider/assets/Recover.js +0 -18
- package/lib/TimeRangeSlider/assets/Refresh1.js +0 -14
- package/lib/TimeRangeSlider/assets/Refresh2.js +0 -14
- package/lib/TimeRangeSlider/assets/Refresh3.js +0 -14
- package/lib/TimeRangeSlider/assets/live.js +0 -19
- package/lib/TimeRangeSlider/assets/more.js +0 -23
- package/lib/TimeRangeSlider/index.js +0 -480
- package/lib/TimeRangeSlider/index.less +0 -122
- package/lib/TimeRangeSlider/locale/en_US.js +0 -29
- package/lib/TimeRangeSlider/locale/index.js +0 -11
- package/lib/TimeRangeSlider/locale/zh_CN.js +0 -29
- package/lib/TimeRangeSlider/locale/zh_TW.js +0 -29
- package/lib/TimeRangeSlider/utils/index.js +0 -712
- package/lib/Tooltip/browserType.js +0 -50
- package/lib/Tooltip/index-bk.js +0 -45
- package/lib/Tooltip/index.less +0 -41
- package/lib/TooltipText/index.less +0 -36
- package/lib/TreeList/index.js +0 -180
- package/lib/TreeList/index.less +0 -22
- package/lib/TreeSelect/TreeSelect.less +0 -10
- package/lib/TreeSelect111/index.js +0 -163
- package/lib/TreeSelect111/index.less +0 -22
- package/lib/TreeSelect111/locale/en_US.js +0 -3
- package/lib/TreeSelect111/locale/index.js +0 -11
- package/lib/TreeSelect111/locale/zh_CN.js +0 -3
- package/lib/TreeSelect111/locale/zh_TW.js +0 -3
- package/lib/TreeSelect111/utils/index.js +0 -158
- package/lib/UniversalLayout/index.js +0 -83
- package/lib/UniversalLayout/index.less +0 -27
- package/lib/Upload/index.less +0 -1
- package/lib/Upload-back/index.js +0 -314
- package/lib/Upload-back/index.less +0 -59
- package/lib/VerticalLayout/index.js +0 -91
- package/lib/VerticalLayout/index.less +0 -67
- package/lib/WangEditor/index.less +0 -254
- package/lib/Watermark/context.js +0 -22
- package/lib/Watermark/useClips.js +0 -118
- package/lib/Watermark/useRafDebounce.js +0 -21
- package/lib/Watermark/useWatermark.js +0 -52
- package/lib/Watermark/utils.js +0 -42
- package/lib/allIcon/index.js +0 -1
- package/lib/configConsumer/index.js +0 -14
- package/lib/message/assets/Close.js +0 -14
- package/lib/message/index.js +0 -187
- package/lib/message/index.less +0 -63
- package/lib/notification/index.js +0 -5
- package/lib/notification/index.less +0 -3
- package/lib/useLocale/index.js +0 -20
- package/lib/usePreview/index.js +0 -47
- package/lib/version/index.js +0 -3
- /package/lib/{Antd4/date-picker/generatePicker/interface.js → Antd5/_util/aria-data-attrs.js} +0 -0
- /package/lib/{Antd3/es → Antd5}/_util/isNumeric.js +0 -0
- /package/lib/{Antd4/form/interface.js → Antd5/_util/type.js} +0 -0
- /package/lib/{Antd4 → Antd5}/breadcrumb/index.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/ar_EG.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/az_AZ.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/bg_BG.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/bn_BD.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/by_BY.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/ca_ES.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/cs_CZ.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/da_DK.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/de_DE.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/el_GR.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/en_GB.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/en_US.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/es_ES.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/et_EE.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/fa_IR.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/fi_FI.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/fr_BE.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/fr_CA.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/fr_FR.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/ga_IE.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/gl_ES.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/he_IL.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/hi_IN.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/hr_HR.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/hu_HU.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/id_ID.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/is_IS.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/it_IT.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/ja_JP.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/ka_GE.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/kk_KZ.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/km_KH.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/kmr_IQ.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/kn_IN.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/ko_KR.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/lt_LT.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/lv_LV.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/mk_MK.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/ml_IN.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/mn_MN.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/ms_MY.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/nb_NO.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/nl_BE.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/nl_NL.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/pl_PL.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/pt_BR.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/pt_PT.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/ro_RO.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/ru_RU.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/sk_SK.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/sl_SI.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/sr_RS.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/sv_SE.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/ta_IN.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/th_TH.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/tr_TR.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/uk_UA.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/ur_PK.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/vi_VN.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/zh_CN.js +0 -0
- /package/lib/{Antd4 → Antd5}/calendar/locale/zh_TW.js +0 -0
- /package/lib/{Antd3/es → Antd5}/col/index.js +0 -0
- /package/lib/{Antd3/es → Antd5}/collapse/index.js +0 -0
- /package/lib/{Antd4 → Antd5}/descriptions/Item.js +0 -0
- /package/lib/{Antd4/form4-24-7 → Antd5/flex}/interface.js +0 -0
- /package/lib/{Antd4/radio → Antd5/float-button}/interface.js +0 -0
- /package/lib/{Antd4/form4-24-7 → Antd5/form}/hooks/useFormInstance.js +0 -0
- /package/lib/{Antd4/transfer → Antd5/form}/interface.js +0 -0
- /package/lib/{Antd4 → Antd5}/grid/RowContext.js +0 -0
- /package/lib/{Antd4/locale-provider → Antd5/locale}/context.js +0 -0
- /package/lib/{Antd4 → Antd5}/menu/MenuContext.js +0 -0
- /package/lib/{Antd4/upload → Antd5/menu}/interface.js +0 -0
- /package/lib/{CWUpload/upload → Antd5/message}/interface.js +0 -0
- /package/lib/{Antd4 → Antd5}/modal/destroyFns.js +0 -0
- /package/lib/{Antd3/es → Antd5}/pagination/index.js +0 -0
- /package/lib/{Antd3/es → Antd5}/progress/index.js +0 -0
- /package/lib/{Antd3/es → Antd5}/row/index.js +0 -0
- /package/lib/{Antd4 → Antd5}/skeleton/index.js +0 -0
- /package/lib/{Antd3/es → Antd5}/table/index.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/ar_EG.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/az_AZ.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/bg_BG.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/bn_BD.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/by_BY.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/ca_ES.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/cs_CZ.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/da_DK.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/el_GR.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/en_GB.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/en_US.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/es_ES.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/et_EE.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/fa_IR.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/fi_FI.js +0 -0
- /package/lib/{Antd4/time-picker/locale/fr_CA.js → Antd5/time-picker/locale/fr_BE.js} +0 -0
- /package/lib/{Antd4/time-picker/locale/fr_FR.js → Antd5/time-picker/locale/fr_CA.js} +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/ga_IE.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/gl_ES.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/he_IL.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/hi_IN.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/hr_HR.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/hu_HU.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/is_IS.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/it_IT.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/ja_JP.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/ka_GE.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/kk_KZ.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/km_KH.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/kmr_IQ.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/kn_IN.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/ko_KR.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/lt_LT.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/lv_LV.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/mk_MK.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/ml_IN.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/mn_MN.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/ms_MY.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/nb_NO.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/nl_BE.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/nl_NL.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/pl_PL.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/pt_BR.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/pt_PT.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/ro_RO.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/ru_RU.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/sk_SK.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/sl_SI.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/sr_RS.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/sv_SE.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/ta_IN.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/th_TH.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/tr_TR.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/uk_UA.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/ur_PK.js +0 -0
- /package/lib/{Antd4 → Antd5}/time-picker/locale/zh_CN.js +0 -0
- /package/lib/{Antd3/es → Antd5}/time-picker/locale/zh_TW.js +0 -0
- /package/lib/{Antd3/es → Antd5}/timeline/index.js +0 -0
- /package/lib/{Antd4 → Antd5}/version/index.js +0 -0
- /package/lib/{ColorPicker → CWColorPicker}/SketchPicker/components/common/Raised.js +0 -0
- /package/lib/{ColorPicker → CWColorPicker}/SketchPicker/components/common/index.js +0 -0
- /package/lib/{ColorPicker → CWColorPicker}/SketchPicker/components/sketch/SketchFields.js +0 -0
- /package/lib/{ColorPicker → CWColorPicker}/SketchPicker/helpers/alpha.js +0 -0
- /package/lib/{ColorPicker → CWColorPicker}/SketchPicker/helpers/checkboard.js +0 -0
- /package/lib/{ColorPicker → CWColorPicker}/SketchPicker/helpers/color.js +0 -0
- /package/lib/{ColorPicker → CWColorPicker}/SketchPicker/helpers/hue.js +0 -0
- /package/lib/{ColorPicker → CWColorPicker}/SketchPicker/helpers/index.js +0 -0
- /package/lib/{ColorPicker → CWColorPicker}/SketchPicker/helpers/saturation.js +0 -0
- /package/lib/{ColorPicker → CWColorPicker}/utils.js +0 -0
- /package/lib/{Antd3/es/form/constants.js → Form/consts.js} +0 -0
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof2(o); }
|
|
2
|
-
(function (
|
|
3
|
-
|
|
2
|
+
(function () {
|
|
3
|
+
var global = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
|
|
4
|
+
var factory = arguments.length > 1 ? arguments[1] : undefined;
|
|
5
|
+
(typeof exports === "undefined" ? "undefined" : _typeof2(exports)) === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : global.wangEditor = factory();
|
|
4
6
|
})(this, function () {
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
7
|
/*
|
|
8
|
-
|
|
8
|
+
poly-fill
|
|
9
9
|
*/
|
|
10
|
+
|
|
10
11
|
var polyfill = function polyfill() {
|
|
11
12
|
// Object.assign
|
|
12
|
-
if (typeof Object.assign !=
|
|
13
|
+
if (typeof Object.assign != "function") {
|
|
13
14
|
Object.assign = function (target, varArgs) {
|
|
14
15
|
// .length of function is 2
|
|
15
16
|
if (target == null) {
|
|
16
17
|
// TypeError if undefined or null
|
|
17
|
-
throw new TypeError(
|
|
18
|
+
throw new TypeError("Cannot convert undefined or null to object");
|
|
18
19
|
}
|
|
19
20
|
var to = Object(target);
|
|
20
21
|
for (var index = 1; index < arguments.length; index++) {
|
|
@@ -45,13 +46,13 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
45
46
|
};
|
|
46
47
|
|
|
47
48
|
/*
|
|
48
|
-
|
|
49
|
+
DOM 操作 API
|
|
49
50
|
*/
|
|
50
51
|
|
|
51
52
|
// 根据 html 代码片段创建 dom 对象
|
|
52
53
|
function createElemByHTML(html) {
|
|
53
54
|
var div = void 0;
|
|
54
|
-
div = document.createElement(
|
|
55
|
+
div = document.createElement("div");
|
|
55
56
|
div.innerHTML = html;
|
|
56
57
|
return div.children;
|
|
57
58
|
}
|
|
@@ -145,10 +146,10 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
145
146
|
} else if (isDOMList(selector) || selector instanceof Array) {
|
|
146
147
|
// DOM List 或者数组
|
|
147
148
|
selectorResult = selector;
|
|
148
|
-
} else if (typeof selector ===
|
|
149
|
+
} else if (typeof selector === "string") {
|
|
149
150
|
// 字符串
|
|
150
|
-
selector = selector.replace(
|
|
151
|
-
if (selector.indexOf(
|
|
151
|
+
selector = selector.replace("/\n/mg", "").trim();
|
|
152
|
+
if (selector.indexOf("<") === 0) {
|
|
152
153
|
// 如 <div>
|
|
153
154
|
selectorResult = createElemByHTML(selector);
|
|
154
155
|
} else {
|
|
@@ -285,7 +286,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
285
286
|
arr.push(className);
|
|
286
287
|
}
|
|
287
288
|
// 修改 elem.class
|
|
288
|
-
elem.className = arr.join(
|
|
289
|
+
elem.className = arr.join(" ");
|
|
289
290
|
} else {
|
|
290
291
|
elem.className = className;
|
|
291
292
|
}
|
|
@@ -310,27 +311,27 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
310
311
|
return true;
|
|
311
312
|
});
|
|
312
313
|
// 修改 elem.class
|
|
313
|
-
elem.className = arr.join(
|
|
314
|
+
elem.className = arr.join(" ");
|
|
314
315
|
}
|
|
315
316
|
});
|
|
316
317
|
},
|
|
317
318
|
// 修改 css
|
|
318
319
|
css: function css(key, val) {
|
|
319
|
-
var currentStyle = key +
|
|
320
|
+
var currentStyle = key + ":" + val + ";";
|
|
320
321
|
return this.forEach(function (elem) {
|
|
321
|
-
var style = (elem.getAttribute(
|
|
322
|
+
var style = (elem.getAttribute("style") || "").trim();
|
|
322
323
|
var styleArr = void 0,
|
|
323
324
|
resultArr = [];
|
|
324
325
|
if (style) {
|
|
325
326
|
// 将 style 按照 ; 拆分为数组
|
|
326
|
-
styleArr = style.split(
|
|
327
|
+
styleArr = style.split(";");
|
|
327
328
|
styleArr.forEach(function (item) {
|
|
328
329
|
// 对每项样式,按照 : 拆分为 key 和 value
|
|
329
|
-
var arr = item.split(
|
|
330
|
+
var arr = item.split(":").map(function (i) {
|
|
330
331
|
return i.trim();
|
|
331
332
|
});
|
|
332
333
|
if (arr.length === 2) {
|
|
333
|
-
resultArr.push(arr[0] +
|
|
334
|
+
resultArr.push(arr[0] + ":" + arr[1]);
|
|
334
335
|
}
|
|
335
336
|
});
|
|
336
337
|
// 替换或者新增
|
|
@@ -345,20 +346,20 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
345
346
|
resultArr.push(currentStyle);
|
|
346
347
|
}
|
|
347
348
|
// 结果
|
|
348
|
-
elem.setAttribute(
|
|
349
|
+
elem.setAttribute("style", resultArr.join("; "));
|
|
349
350
|
} else {
|
|
350
351
|
// style 无值
|
|
351
|
-
elem.setAttribute(
|
|
352
|
+
elem.setAttribute("style", currentStyle);
|
|
352
353
|
}
|
|
353
354
|
});
|
|
354
355
|
},
|
|
355
356
|
// 显示
|
|
356
357
|
show: function show() {
|
|
357
|
-
return this.css(
|
|
358
|
+
return this.css("display", "block");
|
|
358
359
|
},
|
|
359
360
|
// 隐藏
|
|
360
361
|
hide: function hide() {
|
|
361
|
-
return this.css(
|
|
362
|
+
return this.css("display", "none");
|
|
362
363
|
},
|
|
363
364
|
// 获取子节点
|
|
364
365
|
children: function children() {
|
|
@@ -422,7 +423,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
422
423
|
// 获取 text
|
|
423
424
|
var elem = this[0];
|
|
424
425
|
return elem.innerHTML.replace(/<.*?>/g, function () {
|
|
425
|
-
return
|
|
426
|
+
return "";
|
|
426
427
|
});
|
|
427
428
|
} else {
|
|
428
429
|
// 设置 text
|
|
@@ -466,7 +467,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
466
467
|
return null;
|
|
467
468
|
}
|
|
468
469
|
var elem = _currentElem || this[0];
|
|
469
|
-
if (elem.nodeName ===
|
|
470
|
+
if (elem.nodeName === "BODY") {
|
|
470
471
|
return null;
|
|
471
472
|
}
|
|
472
473
|
var parent = elem.parentElement;
|
|
@@ -538,14 +539,14 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
538
539
|
};
|
|
539
540
|
|
|
540
541
|
/*
|
|
541
|
-
|
|
542
|
+
配置信息
|
|
542
543
|
*/
|
|
543
544
|
|
|
544
545
|
var config = {
|
|
545
546
|
// 默认菜单配置
|
|
546
|
-
menus: [
|
|
547
|
-
fontNames: [
|
|
548
|
-
colors: [
|
|
547
|
+
menus: ["head", "bold", "fontSize", "fontName", "italic", "underline", "strikeThrough", "foreColor", "backColor", "link", "list", "justify", "quote", "emoticon", "image", "table", "video", "code", "undo", "redo"],
|
|
548
|
+
fontNames: ["宋体", "微软雅黑", "Arial", "Tahoma", "Verdana"],
|
|
549
|
+
colors: ["#000000", "#eeece0", "#1c487f", "#4d80bf", "#ff0000", "#c24f4a", "#8baa4a", "#7b5ba1", "#46acc8", "#f9963b", "#ffffff"],
|
|
549
550
|
// // 语言配置
|
|
550
551
|
// lang: {
|
|
551
552
|
// '设置标题': 'title',
|
|
@@ -559,11 +560,11 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
559
560
|
// 表情
|
|
560
561
|
emotions: [{
|
|
561
562
|
// tab 的标题
|
|
562
|
-
title:
|
|
563
|
+
title: "emoji",
|
|
563
564
|
// type -> 'emoji' / 'image'
|
|
564
|
-
type:
|
|
565
|
+
type: "emoji",
|
|
565
566
|
// content -> 数组
|
|
566
|
-
content:
|
|
567
|
+
content: "😀 😃 😄 😁 😆 😅 😂 😊 😇 🙂 🙃 😉 😓 😪 😴 🙄 🤔 😬 🤐".split(/\s/)
|
|
567
568
|
}],
|
|
568
569
|
// 编辑区域的 z-index
|
|
569
570
|
zIndex: 10000,
|
|
@@ -575,7 +576,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
575
576
|
if (_boolean) {
|
|
576
577
|
return true;
|
|
577
578
|
} else {
|
|
578
|
-
return
|
|
579
|
+
return "请输入合法Url";
|
|
579
580
|
}
|
|
580
581
|
// text 是插入的文字
|
|
581
582
|
// link 是插入的链接
|
|
@@ -621,7 +622,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
621
622
|
// uploadImgServer: '/upload',
|
|
622
623
|
|
|
623
624
|
// 自定义配置 filename
|
|
624
|
-
uploadFileName:
|
|
625
|
+
uploadFileName: "",
|
|
625
626
|
// 上传图片的自定义参数
|
|
626
627
|
uploadImgParams: {
|
|
627
628
|
// token: 'abcdef12345'
|
|
@@ -634,7 +635,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
634
635
|
withCredentials: false,
|
|
635
636
|
// 自定义上传图片超时时间 ms
|
|
636
637
|
uploadImgTimeout: 10000,
|
|
637
|
-
// 上传图片 hook
|
|
638
|
+
// 上传图片 hook
|
|
638
639
|
uploadImgHooks: {
|
|
639
640
|
// customInsert: function (insertLinkImg, result, editor) {
|
|
640
641
|
// console.log('customInsert')
|
|
@@ -646,7 +647,6 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
646
647
|
// },
|
|
647
648
|
before: function before(xhr, editor, files) {
|
|
648
649
|
// 图片上传之前触发
|
|
649
|
-
|
|
650
650
|
// 如果返回的结果是 {prevent: true, msg: 'xxxx'} 则表示用户放弃上传
|
|
651
651
|
// return {
|
|
652
652
|
// prevent: true,
|
|
@@ -671,7 +671,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
671
671
|
};
|
|
672
672
|
|
|
673
673
|
/*
|
|
674
|
-
|
|
674
|
+
工具
|
|
675
675
|
*/
|
|
676
676
|
|
|
677
677
|
// 和 UA 相关的属性
|
|
@@ -684,7 +684,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
684
684
|
},
|
|
685
685
|
// 是否 IE
|
|
686
686
|
isIE: function isIE() {
|
|
687
|
-
return
|
|
687
|
+
return "ActiveXObject" in window;
|
|
688
688
|
}
|
|
689
689
|
};
|
|
690
690
|
|
|
@@ -725,26 +725,26 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
725
725
|
// 替换 html 特殊字符
|
|
726
726
|
function replaceHtmlSymbol(html) {
|
|
727
727
|
if (html == null) {
|
|
728
|
-
return
|
|
728
|
+
return "";
|
|
729
729
|
}
|
|
730
|
-
return html.replace(/</gm,
|
|
730
|
+
return html.replace(/</gm, "<").replace(/>/gm, ">").replace(/"/gm, """).replace(/(\r\n|\r|\n)/g, "<br/>");
|
|
731
731
|
}
|
|
732
732
|
|
|
733
733
|
// 返回百分比的格式
|
|
734
734
|
|
|
735
735
|
// 判断是不是 function
|
|
736
736
|
function isFunction(fn) {
|
|
737
|
-
return typeof fn ===
|
|
737
|
+
return typeof fn === "function";
|
|
738
738
|
}
|
|
739
739
|
|
|
740
740
|
/*
|
|
741
|
-
|
|
741
|
+
bold-menu
|
|
742
742
|
*/
|
|
743
743
|
// 构造函数
|
|
744
744
|
function Bold(editor) {
|
|
745
745
|
this.editor = editor;
|
|
746
746
|
this.$elem = $('<div class="w-e-menu">\n <i class="w-e-icon-bold"></i>\n </div>');
|
|
747
|
-
this.type =
|
|
747
|
+
this.type = "click";
|
|
748
748
|
|
|
749
749
|
// 当前是否 active 状态
|
|
750
750
|
this._active = false;
|
|
@@ -765,7 +765,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
765
765
|
}
|
|
766
766
|
|
|
767
767
|
// 执行 bold 命令
|
|
768
|
-
editor.cmd["do"](
|
|
768
|
+
editor.cmd["do"]("bold");
|
|
769
769
|
if (isSeleEmpty) {
|
|
770
770
|
// 需要将选取折叠起来
|
|
771
771
|
editor.selection.collapseRange();
|
|
@@ -776,18 +776,18 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
776
776
|
tryChangeActive: function tryChangeActive(e) {
|
|
777
777
|
var editor = this.editor;
|
|
778
778
|
var $elem = this.$elem;
|
|
779
|
-
if (editor.cmd.queryCommandState(
|
|
779
|
+
if (editor.cmd.queryCommandState("bold")) {
|
|
780
780
|
this._active = true;
|
|
781
|
-
$elem.addClass(
|
|
781
|
+
$elem.addClass("w-e-active");
|
|
782
782
|
} else {
|
|
783
783
|
this._active = false;
|
|
784
|
-
$elem.removeClass(
|
|
784
|
+
$elem.removeClass("w-e-active");
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
};
|
|
788
788
|
|
|
789
789
|
/*
|
|
790
|
-
|
|
790
|
+
替换多语言
|
|
791
791
|
*/
|
|
792
792
|
|
|
793
793
|
var replaceLang = function replaceLang(editor, str) {
|
|
@@ -806,7 +806,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
806
806
|
};
|
|
807
807
|
|
|
808
808
|
/*
|
|
809
|
-
|
|
809
|
+
droplist
|
|
810
810
|
*/
|
|
811
811
|
var _emptyFn = function _emptyFn() {};
|
|
812
812
|
|
|
@@ -818,7 +818,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
818
818
|
var editor = menu.editor;
|
|
819
819
|
this.menu = menu;
|
|
820
820
|
this.opt = opt;
|
|
821
|
-
var newClassName = editor.config.dropListPosition == "left" ? "w-e-droplist-left" : editor.config.dropListPosition == "center" ? "w-e-droplist-center" :
|
|
821
|
+
var newClassName = editor.config.dropListPosition == "left" ? "w-e-droplist-left" : editor.config.dropListPosition == "center" ? "w-e-droplist-center" : "";
|
|
822
822
|
// 容器
|
|
823
823
|
var $container = $('<div class="w-e-droplist"></div>');
|
|
824
824
|
$container.addClass(newClassName);
|
|
@@ -830,15 +830,15 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
830
830
|
titleHtml = $title.html();
|
|
831
831
|
titleHtml = replaceLang(editor, titleHtml);
|
|
832
832
|
$title.html(titleHtml);
|
|
833
|
-
$title.addClass(
|
|
833
|
+
$title.addClass("w-e-dp-title");
|
|
834
834
|
$container.append($title);
|
|
835
835
|
}
|
|
836
836
|
var list = opt.list || [];
|
|
837
|
-
var type = opt.type ||
|
|
837
|
+
var type = opt.type || "list"; // 'list' 列表形式(如“标题”菜单) / 'inline-block' 块状形式(如“颜色”菜单)
|
|
838
838
|
var onClick = opt.onClick || _emptyFn;
|
|
839
839
|
|
|
840
840
|
// 加入 DOM 并绑定事件
|
|
841
|
-
var $list = $('<ul class="' + (type ===
|
|
841
|
+
var $list = $('<ul class="' + (type === "list" ? "w-e-list" : "w-e-block") + '"></ul>');
|
|
842
842
|
$container.append($list);
|
|
843
843
|
list.forEach(function (item) {
|
|
844
844
|
var $elem = item.$elem;
|
|
@@ -852,7 +852,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
852
852
|
if ($elem) {
|
|
853
853
|
$li.append($elem);
|
|
854
854
|
$list.append($li);
|
|
855
|
-
$li.on(
|
|
855
|
+
$li.on("click", function (e) {
|
|
856
856
|
onClick(value);
|
|
857
857
|
|
|
858
858
|
// 隐藏
|
|
@@ -864,7 +864,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
864
864
|
});
|
|
865
865
|
|
|
866
866
|
// 绑定隐藏事件
|
|
867
|
-
$container.on(
|
|
867
|
+
$container.on("mouseleave", function (e) {
|
|
868
868
|
_this.hideTimeoutId = setTimeout(function () {
|
|
869
869
|
_this.hide();
|
|
870
870
|
}, 0);
|
|
@@ -900,7 +900,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
900
900
|
// 加入 DOM 之前先定位位置
|
|
901
901
|
var menuHeight = $menuELem.getSizeData().height || 0;
|
|
902
902
|
var width = this.opt.width || 100; // 默认为 100
|
|
903
|
-
$container.css(
|
|
903
|
+
$container.css("margin-top", menuHeight + "px").css("width", width + "px");
|
|
904
904
|
|
|
905
905
|
// 加入到 DOM
|
|
906
906
|
$menuELem.append($container);
|
|
@@ -927,14 +927,14 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
927
927
|
};
|
|
928
928
|
|
|
929
929
|
/*
|
|
930
|
-
|
|
930
|
+
menu - header
|
|
931
931
|
*/
|
|
932
932
|
// 构造函数
|
|
933
933
|
function Head(editor) {
|
|
934
934
|
var _this = this;
|
|
935
935
|
this.editor = editor;
|
|
936
936
|
this.$elem = $('<div class="w-e-menu"><i class="w-e-icon-header"></i></div>');
|
|
937
|
-
this.type =
|
|
937
|
+
this.type = "droplist";
|
|
938
938
|
|
|
939
939
|
// 当前是否 active 状态
|
|
940
940
|
this._active = false;
|
|
@@ -942,27 +942,27 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
942
942
|
// 初始化 droplist
|
|
943
943
|
this.droplist = new DropList(this, {
|
|
944
944
|
width: 100,
|
|
945
|
-
$title: $(
|
|
946
|
-
type:
|
|
945
|
+
$title: $("<p>设置标题</p>"),
|
|
946
|
+
type: "list",
|
|
947
947
|
// droplist 以列表形式展示
|
|
948
948
|
list: [{
|
|
949
|
-
$elem: $(
|
|
950
|
-
value:
|
|
949
|
+
$elem: $("<h1>H1</h1>"),
|
|
950
|
+
value: "<h1>"
|
|
951
951
|
}, {
|
|
952
|
-
$elem: $(
|
|
953
|
-
value:
|
|
952
|
+
$elem: $("<h2>H2</h2>"),
|
|
953
|
+
value: "<h2>"
|
|
954
954
|
}, {
|
|
955
|
-
$elem: $(
|
|
956
|
-
value:
|
|
955
|
+
$elem: $("<h3>H3</h3>"),
|
|
956
|
+
value: "<h3>"
|
|
957
957
|
}, {
|
|
958
|
-
$elem: $(
|
|
959
|
-
value:
|
|
958
|
+
$elem: $("<h4>H4</h4>"),
|
|
959
|
+
value: "<h4>"
|
|
960
960
|
}, {
|
|
961
|
-
$elem: $(
|
|
962
|
-
value:
|
|
961
|
+
$elem: $("<h5>H5</h5>"),
|
|
962
|
+
value: "<h5>"
|
|
963
963
|
}, {
|
|
964
|
-
$elem: $(
|
|
965
|
-
value:
|
|
964
|
+
$elem: $("<p>正文</p>"),
|
|
965
|
+
value: "<p>"
|
|
966
966
|
}],
|
|
967
967
|
onClick: function onClick(value) {
|
|
968
968
|
// 注意 this 是指向当前的 Head 对象
|
|
@@ -983,26 +983,26 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
983
983
|
// 例如选中的是 <p>xxx</p><p>yyy</p> 来设置标题,设置之后会成为 <h1>xxx<br>yyy</h1> 不符合预期
|
|
984
984
|
return;
|
|
985
985
|
}
|
|
986
|
-
editor.cmd["do"](
|
|
986
|
+
editor.cmd["do"]("formatBlock", value);
|
|
987
987
|
},
|
|
988
988
|
// 试图改变 active 状态
|
|
989
989
|
tryChangeActive: function tryChangeActive(e) {
|
|
990
990
|
var editor = this.editor;
|
|
991
991
|
var $elem = this.$elem;
|
|
992
992
|
var reg = /^h/i;
|
|
993
|
-
var cmdValue = editor.cmd.queryCommandValue(
|
|
993
|
+
var cmdValue = editor.cmd.queryCommandValue("formatBlock");
|
|
994
994
|
if (reg.test(cmdValue)) {
|
|
995
995
|
this._active = true;
|
|
996
|
-
$elem.addClass(
|
|
996
|
+
$elem.addClass("w-e-active");
|
|
997
997
|
} else {
|
|
998
998
|
this._active = false;
|
|
999
|
-
$elem.removeClass(
|
|
999
|
+
$elem.removeClass("w-e-active");
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
1003
1003
|
|
|
1004
1004
|
/*
|
|
1005
|
-
|
|
1005
|
+
menu - fontSize
|
|
1006
1006
|
*/
|
|
1007
1007
|
|
|
1008
1008
|
// 构造函数
|
|
@@ -1010,7 +1010,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1010
1010
|
var _this = this;
|
|
1011
1011
|
this.editor = editor;
|
|
1012
1012
|
this.$elem = $('<div class="w-e-menu"><i class="w-e-icon-text-heigh"></i></div>');
|
|
1013
|
-
this.type =
|
|
1013
|
+
this.type = "droplist";
|
|
1014
1014
|
|
|
1015
1015
|
// 当前是否 active 状态
|
|
1016
1016
|
this._active = false;
|
|
@@ -1018,27 +1018,27 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1018
1018
|
// 初始化 droplist
|
|
1019
1019
|
this.droplist = new DropList(this, {
|
|
1020
1020
|
width: 160,
|
|
1021
|
-
$title: $(
|
|
1022
|
-
type:
|
|
1021
|
+
$title: $("<p>字号</p>"),
|
|
1022
|
+
type: "list",
|
|
1023
1023
|
// droplist 以列表形式展示
|
|
1024
1024
|
list: [{
|
|
1025
1025
|
$elem: $('<span style="font-size: x-small;">x-small</span>'),
|
|
1026
|
-
value:
|
|
1026
|
+
value: "1"
|
|
1027
1027
|
}, {
|
|
1028
1028
|
$elem: $('<span style="font-size: small;">small</span>'),
|
|
1029
|
-
value:
|
|
1029
|
+
value: "2"
|
|
1030
1030
|
}, {
|
|
1031
|
-
$elem: $(
|
|
1032
|
-
value:
|
|
1031
|
+
$elem: $("<span>normal</span>"),
|
|
1032
|
+
value: "3"
|
|
1033
1033
|
}, {
|
|
1034
1034
|
$elem: $('<span style="font-size: large;">large</span>'),
|
|
1035
|
-
value:
|
|
1035
|
+
value: "4"
|
|
1036
1036
|
}, {
|
|
1037
1037
|
$elem: $('<span style="font-size: x-large;">x-large</span>'),
|
|
1038
|
-
value:
|
|
1038
|
+
value: "5"
|
|
1039
1039
|
}, {
|
|
1040
1040
|
$elem: $('<span style="font-size: xx-large;">xx-large</span>'),
|
|
1041
|
-
value:
|
|
1041
|
+
value: "6"
|
|
1042
1042
|
}],
|
|
1043
1043
|
onClick: function onClick(value) {
|
|
1044
1044
|
// 注意 this 是指向当前的 FontSize 对象
|
|
@@ -1053,12 +1053,12 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1053
1053
|
// 执行命令
|
|
1054
1054
|
_command: function _command(value) {
|
|
1055
1055
|
var editor = this.editor;
|
|
1056
|
-
editor.cmd["do"](
|
|
1056
|
+
editor.cmd["do"]("fontSize", value);
|
|
1057
1057
|
}
|
|
1058
1058
|
};
|
|
1059
1059
|
|
|
1060
1060
|
/*
|
|
1061
|
-
|
|
1061
|
+
menu - fontName
|
|
1062
1062
|
*/
|
|
1063
1063
|
|
|
1064
1064
|
// 构造函数
|
|
@@ -1066,7 +1066,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1066
1066
|
var _this = this;
|
|
1067
1067
|
this.editor = editor;
|
|
1068
1068
|
this.$elem = $('<div class="w-e-menu"><i class="w-e-icon-font"></i></div>');
|
|
1069
|
-
this.type =
|
|
1069
|
+
this.type = "droplist";
|
|
1070
1070
|
|
|
1071
1071
|
// 当前是否 active 状态
|
|
1072
1072
|
this._active = false;
|
|
@@ -1078,12 +1078,12 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1078
1078
|
// 初始化 droplist
|
|
1079
1079
|
this.droplist = new DropList(this, {
|
|
1080
1080
|
width: 100,
|
|
1081
|
-
$title: $(
|
|
1082
|
-
type:
|
|
1081
|
+
$title: $("<p>字体</p>"),
|
|
1082
|
+
type: "list",
|
|
1083
1083
|
// droplist 以列表形式展示
|
|
1084
1084
|
list: fontNames.map(function (fontName) {
|
|
1085
1085
|
return {
|
|
1086
|
-
$elem: $('<span style="font-family: ' + fontName + ';">' + fontName +
|
|
1086
|
+
$elem: $('<span style="font-family: ' + fontName + ';">' + fontName + "</span>"),
|
|
1087
1087
|
value: fontName
|
|
1088
1088
|
};
|
|
1089
1089
|
}),
|
|
@@ -1099,12 +1099,12 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1099
1099
|
constructor: FontName,
|
|
1100
1100
|
_command: function _command(value) {
|
|
1101
1101
|
var editor = this.editor;
|
|
1102
|
-
editor.cmd["do"](
|
|
1102
|
+
editor.cmd["do"]("fontName", value);
|
|
1103
1103
|
}
|
|
1104
1104
|
};
|
|
1105
1105
|
|
|
1106
1106
|
/*
|
|
1107
|
-
|
|
1107
|
+
panel
|
|
1108
1108
|
*/
|
|
1109
1109
|
|
|
1110
1110
|
var emptyFn = function emptyFn() {};
|
|
@@ -1134,19 +1134,19 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1134
1134
|
return;
|
|
1135
1135
|
}
|
|
1136
1136
|
var editor = menu.editor;
|
|
1137
|
-
var $body = $(
|
|
1137
|
+
var $body = $("body");
|
|
1138
1138
|
var $textContainerElem = editor.$textContainerElem;
|
|
1139
1139
|
var opt = this.opt;
|
|
1140
1140
|
|
|
1141
1141
|
// panel 的容器
|
|
1142
1142
|
var $container = $('<div class="w-e-panel-container"></div>');
|
|
1143
1143
|
var width = opt.width || 300; // 默认 300px
|
|
1144
|
-
$container.css(
|
|
1144
|
+
$container.css("width", width + "px").css("margin-left", (0 - width) / 2 + "px");
|
|
1145
1145
|
|
|
1146
1146
|
// 添加关闭按钮
|
|
1147
1147
|
var $closeBtn = $('<i class="w-e-icon-close w-e-panel-close"></i>');
|
|
1148
1148
|
$container.append($closeBtn);
|
|
1149
|
-
$closeBtn.on(
|
|
1149
|
+
$closeBtn.on("click", function () {
|
|
1150
1150
|
_this.hide();
|
|
1151
1151
|
});
|
|
1152
1152
|
|
|
@@ -1158,7 +1158,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1158
1158
|
// 设置高度
|
|
1159
1159
|
var height = opt.height;
|
|
1160
1160
|
if (height) {
|
|
1161
|
-
$tabContentContainer.css(
|
|
1161
|
+
$tabContentContainer.css("height", height + "px").css("overflow-y", "auto");
|
|
1162
1162
|
}
|
|
1163
1163
|
|
|
1164
1164
|
// tabs
|
|
@@ -1169,15 +1169,15 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1169
1169
|
if (!tab) {
|
|
1170
1170
|
return;
|
|
1171
1171
|
}
|
|
1172
|
-
var title = tab.title ||
|
|
1173
|
-
var tpl = tab.tpl ||
|
|
1172
|
+
var title = tab.title || "";
|
|
1173
|
+
var tpl = tab.tpl || "";
|
|
1174
1174
|
|
|
1175
1175
|
// 替换多语言
|
|
1176
1176
|
title = replaceLang(editor, title);
|
|
1177
1177
|
tpl = replaceLang(editor, tpl);
|
|
1178
1178
|
|
|
1179
1179
|
// 添加到 DOM
|
|
1180
|
-
var $title = $('<li class="w-e-item">' + title +
|
|
1180
|
+
var $title = $('<li class="w-e-item">' + title + "</li>");
|
|
1181
1181
|
$tabTitleContainer.append($title);
|
|
1182
1182
|
var $content = $(tpl);
|
|
1183
1183
|
$tabContentContainer.append($content);
|
|
@@ -1190,20 +1190,20 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1190
1190
|
// 设置 active 项
|
|
1191
1191
|
if (tabIndex === 0) {
|
|
1192
1192
|
$title._active = true;
|
|
1193
|
-
$title.addClass(
|
|
1193
|
+
$title.addClass("w-e-active");
|
|
1194
1194
|
} else {
|
|
1195
1195
|
$content.hide();
|
|
1196
1196
|
}
|
|
1197
1197
|
|
|
1198
1198
|
// 绑定 tab 的事件
|
|
1199
|
-
$title.on(
|
|
1199
|
+
$title.on("click", function (e) {
|
|
1200
1200
|
if ($title._active) {
|
|
1201
1201
|
return;
|
|
1202
1202
|
}
|
|
1203
1203
|
// 隐藏所有的 tab
|
|
1204
1204
|
tabTitleArr.forEach(function ($title) {
|
|
1205
1205
|
$title._active = false;
|
|
1206
|
-
$title.removeClass(
|
|
1206
|
+
$title.removeClass("w-e-active");
|
|
1207
1207
|
});
|
|
1208
1208
|
tabContentArr.forEach(function ($content) {
|
|
1209
1209
|
$content.hide();
|
|
@@ -1211,17 +1211,17 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1211
1211
|
|
|
1212
1212
|
// 显示当前的 tab
|
|
1213
1213
|
$title._active = true;
|
|
1214
|
-
$title.addClass(
|
|
1214
|
+
$title.addClass("w-e-active");
|
|
1215
1215
|
$content.show();
|
|
1216
1216
|
});
|
|
1217
1217
|
});
|
|
1218
1218
|
|
|
1219
1219
|
// 绑定关闭事件
|
|
1220
|
-
$container.on(
|
|
1220
|
+
$container.on("click", function (e) {
|
|
1221
1221
|
// 点击时阻止冒泡
|
|
1222
1222
|
e.stopPropagation();
|
|
1223
1223
|
});
|
|
1224
|
-
$body.on(
|
|
1224
|
+
$body.on("click", function (e) {
|
|
1225
1225
|
_this.hide();
|
|
1226
1226
|
});
|
|
1227
1227
|
|
|
@@ -1251,7 +1251,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1251
1251
|
});
|
|
1252
1252
|
|
|
1253
1253
|
// focus 第一个 elem
|
|
1254
|
-
var $inputs = $container.find(
|
|
1254
|
+
var $inputs = $container.find("input[type=text],textarea");
|
|
1255
1255
|
if ($inputs.length) {
|
|
1256
1256
|
$inputs.get(0).focus();
|
|
1257
1257
|
}
|
|
@@ -1298,13 +1298,13 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1298
1298
|
};
|
|
1299
1299
|
|
|
1300
1300
|
/*
|
|
1301
|
-
|
|
1301
|
+
menu - link
|
|
1302
1302
|
*/
|
|
1303
1303
|
// 构造函数
|
|
1304
1304
|
function Link(editor) {
|
|
1305
1305
|
this.editor = editor;
|
|
1306
1306
|
this.$elem = $('<div class="w-e-menu"><i class="w-e-icon-link"></i></div>');
|
|
1307
|
-
this.type =
|
|
1307
|
+
this.type = "panel";
|
|
1308
1308
|
|
|
1309
1309
|
// 当前是否 active 状态
|
|
1310
1310
|
this._active = false;
|
|
@@ -1327,15 +1327,15 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1327
1327
|
editor.selection.createRangeByElem($linkelem);
|
|
1328
1328
|
editor.selection.restoreSelection();
|
|
1329
1329
|
// 显示 panel
|
|
1330
|
-
this._createPanel($linkelem.text(), $linkelem.attr(
|
|
1330
|
+
this._createPanel($linkelem.text(), $linkelem.attr("href"));
|
|
1331
1331
|
} else {
|
|
1332
1332
|
// 当前选区不在链接里面
|
|
1333
1333
|
if (editor.selection.isSelectionEmpty()) {
|
|
1334
1334
|
// 选区是空的,未选中内容
|
|
1335
|
-
this._createPanel(
|
|
1335
|
+
this._createPanel("", "");
|
|
1336
1336
|
} else {
|
|
1337
1337
|
// 选中内容了
|
|
1338
|
-
this._createPanel(editor.selection.getSelectionText(),
|
|
1338
|
+
this._createPanel(editor.selection.getSelectionText(), "");
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
},
|
|
@@ -1344,44 +1344,43 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1344
1344
|
var _this = this;
|
|
1345
1345
|
|
|
1346
1346
|
// panel 中需要用到的id
|
|
1347
|
-
var inputLinkId = getRandom(
|
|
1348
|
-
var inputTextId = getRandom(
|
|
1349
|
-
var btnOkId = getRandom(
|
|
1350
|
-
var btnDelId = getRandom(
|
|
1347
|
+
var inputLinkId = getRandom("input-link");
|
|
1348
|
+
var inputTextId = getRandom("input-text");
|
|
1349
|
+
var btnOkId = getRandom("btn-ok");
|
|
1350
|
+
var btnDelId = getRandom("btn-del");
|
|
1351
1351
|
|
|
1352
1352
|
// 是否显示“删除链接”
|
|
1353
|
-
var delBtnDisplay = this._active ?
|
|
1353
|
+
var delBtnDisplay = this._active ? "inline-block" : "none";
|
|
1354
1354
|
// 初始化并显示 panel
|
|
1355
1355
|
var panel = new Panel(this, {
|
|
1356
1356
|
width: 300,
|
|
1357
1357
|
// panel 中可包含多个 tab
|
|
1358
1358
|
tabs: [{
|
|
1359
1359
|
// tab 的标题
|
|
1360
|
-
title:
|
|
1360
|
+
title: "链接",
|
|
1361
1361
|
// 模板
|
|
1362
1362
|
tpl: '<div>\n <input id="' + inputTextId + '" type="text" class="block" value="' + text + "\" placeholder=\"\u94FE\u63A5\u6587\u5B57\"/></td>\n <input id=\"" + inputLinkId + '" type="text" class="block" value="' + link + '" placeholder="http://..."/></td>\n <div class="w-e-button-container">\n <button id="' + btnOkId + "\" class=\"right\">\u63D2\u5165</button>\n <button id=\"" + btnDelId + '" class="gray right" style="display:' + delBtnDisplay + "\">\u5220\u9664\u94FE\u63A5</button>\n </div>\n </div>",
|
|
1363
1363
|
// 事件绑定
|
|
1364
1364
|
events: [
|
|
1365
1365
|
// 插入链接
|
|
1366
1366
|
{
|
|
1367
|
-
selector:
|
|
1368
|
-
type:
|
|
1367
|
+
selector: "#" + btnOkId,
|
|
1368
|
+
type: "click",
|
|
1369
1369
|
fn: function fn() {
|
|
1370
1370
|
// 执行插入链接
|
|
1371
|
-
var $link = $(
|
|
1372
|
-
var $text = $(
|
|
1371
|
+
var $link = $("#" + inputLinkId);
|
|
1372
|
+
var $text = $("#" + inputTextId);
|
|
1373
1373
|
var link = $link.val();
|
|
1374
1374
|
var text = $text.val();
|
|
1375
1375
|
|
|
1376
1376
|
// 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
|
|
1377
1377
|
return !_this._insertLink(text, link);
|
|
1378
|
-
;
|
|
1379
1378
|
}
|
|
1380
1379
|
},
|
|
1381
1380
|
// 删除链接
|
|
1382
1381
|
{
|
|
1383
|
-
selector:
|
|
1384
|
-
type:
|
|
1382
|
+
selector: "#" + btnDelId,
|
|
1383
|
+
type: "click",
|
|
1385
1384
|
fn: function fn() {
|
|
1386
1385
|
// 执行删除链接
|
|
1387
1386
|
_this._delLink();
|
|
@@ -1412,7 +1411,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1412
1411
|
return;
|
|
1413
1412
|
}
|
|
1414
1413
|
var selectionText = editor.selection.getSelectionText();
|
|
1415
|
-
editor.cmd["do"](
|
|
1414
|
+
editor.cmd["do"]("insertHTML", "<span>" + selectionText + "</span>");
|
|
1416
1415
|
},
|
|
1417
1416
|
// 插入链接
|
|
1418
1417
|
_insertLink: function _insertLink(text, link) {
|
|
@@ -1420,16 +1419,16 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1420
1419
|
var config = editor.config;
|
|
1421
1420
|
var linkCheck = config.linkCheck;
|
|
1422
1421
|
var checkResult = true; // 默认为 true
|
|
1423
|
-
if (linkCheck && typeof linkCheck ===
|
|
1422
|
+
if (linkCheck && typeof linkCheck === "function") {
|
|
1424
1423
|
checkResult = linkCheck(text, link);
|
|
1425
1424
|
}
|
|
1426
|
-
if (checkResult === true && text !=
|
|
1427
|
-
editor.cmd["do"](
|
|
1428
|
-
} else if (checkResult === true && text ==
|
|
1429
|
-
editor.cmd["do"](
|
|
1425
|
+
if (checkResult === true && text != "") {
|
|
1426
|
+
editor.cmd["do"]("insertHTML", '<a href="' + link + '" target="_blank">' + handleChangeContent(text) + "</a>");
|
|
1427
|
+
} else if (checkResult === true && text == "") {
|
|
1428
|
+
editor.cmd["do"]("insertHTML", '<a href="' + link + '" target="_blank">' + link + "</a>");
|
|
1430
1429
|
} else {
|
|
1431
1430
|
alert(checkResult);
|
|
1432
|
-
return
|
|
1431
|
+
return "save panel";
|
|
1433
1432
|
}
|
|
1434
1433
|
},
|
|
1435
1434
|
// 试图改变 active 状态
|
|
@@ -1440,24 +1439,24 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1440
1439
|
if (!$selectionELem) {
|
|
1441
1440
|
return;
|
|
1442
1441
|
}
|
|
1443
|
-
if ($selectionELem.getNodeName() ===
|
|
1442
|
+
if ($selectionELem.getNodeName() === "A") {
|
|
1444
1443
|
this._active = true;
|
|
1445
|
-
$elem.addClass(
|
|
1444
|
+
$elem.addClass("w-e-active");
|
|
1446
1445
|
} else {
|
|
1447
1446
|
this._active = false;
|
|
1448
|
-
$elem.removeClass(
|
|
1447
|
+
$elem.removeClass("w-e-active");
|
|
1449
1448
|
}
|
|
1450
1449
|
}
|
|
1451
1450
|
};
|
|
1452
1451
|
|
|
1453
1452
|
/*
|
|
1454
|
-
|
|
1453
|
+
italic-menu
|
|
1455
1454
|
*/
|
|
1456
1455
|
// 构造函数
|
|
1457
1456
|
function Italic(editor) {
|
|
1458
1457
|
this.editor = editor;
|
|
1459
1458
|
this.$elem = $('<div class="w-e-menu">\n <i class="w-e-icon-italic"></i>\n </div>');
|
|
1460
|
-
this.type =
|
|
1459
|
+
this.type = "click";
|
|
1461
1460
|
|
|
1462
1461
|
// 当前是否 active 状态
|
|
1463
1462
|
this._active = false;
|
|
@@ -1478,7 +1477,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1478
1477
|
}
|
|
1479
1478
|
|
|
1480
1479
|
// 执行 italic 命令
|
|
1481
|
-
editor.cmd["do"](
|
|
1480
|
+
editor.cmd["do"]("italic");
|
|
1482
1481
|
if (isSeleEmpty) {
|
|
1483
1482
|
// 需要将选取折叠起来
|
|
1484
1483
|
editor.selection.collapseRange();
|
|
@@ -1489,24 +1488,24 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1489
1488
|
tryChangeActive: function tryChangeActive(e) {
|
|
1490
1489
|
var editor = this.editor;
|
|
1491
1490
|
var $elem = this.$elem;
|
|
1492
|
-
if (editor.cmd.queryCommandState(
|
|
1491
|
+
if (editor.cmd.queryCommandState("italic")) {
|
|
1493
1492
|
this._active = true;
|
|
1494
|
-
$elem.addClass(
|
|
1493
|
+
$elem.addClass("w-e-active");
|
|
1495
1494
|
} else {
|
|
1496
1495
|
this._active = false;
|
|
1497
|
-
$elem.removeClass(
|
|
1496
|
+
$elem.removeClass("w-e-active");
|
|
1498
1497
|
}
|
|
1499
1498
|
}
|
|
1500
1499
|
};
|
|
1501
1500
|
|
|
1502
1501
|
/*
|
|
1503
|
-
|
|
1502
|
+
redo-menu
|
|
1504
1503
|
*/
|
|
1505
1504
|
// 构造函数
|
|
1506
1505
|
function Redo(editor) {
|
|
1507
1506
|
this.editor = editor;
|
|
1508
1507
|
this.$elem = $('<div class="w-e-menu">\n <i class="w-e-icon-redo"></i>\n </div>');
|
|
1509
|
-
this.type =
|
|
1508
|
+
this.type = "click";
|
|
1510
1509
|
|
|
1511
1510
|
// 当前是否 active 状态
|
|
1512
1511
|
this._active = false;
|
|
@@ -1522,18 +1521,18 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1522
1521
|
var editor = this.editor;
|
|
1523
1522
|
|
|
1524
1523
|
// 执行 redo 命令
|
|
1525
|
-
editor.cmd["do"](
|
|
1524
|
+
editor.cmd["do"]("redo");
|
|
1526
1525
|
}
|
|
1527
1526
|
};
|
|
1528
1527
|
|
|
1529
1528
|
/*
|
|
1530
|
-
|
|
1529
|
+
strikeThrough-menu
|
|
1531
1530
|
*/
|
|
1532
1531
|
// 构造函数
|
|
1533
1532
|
function StrikeThrough(editor) {
|
|
1534
1533
|
this.editor = editor;
|
|
1535
1534
|
this.$elem = $('<div class="w-e-menu">\n <i class="w-e-icon-strikethrough"></i>\n </div>');
|
|
1536
|
-
this.type =
|
|
1535
|
+
this.type = "click";
|
|
1537
1536
|
|
|
1538
1537
|
// 当前是否 active 状态
|
|
1539
1538
|
this._active = false;
|
|
@@ -1554,7 +1553,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1554
1553
|
}
|
|
1555
1554
|
|
|
1556
1555
|
// 执行 strikeThrough 命令
|
|
1557
|
-
editor.cmd["do"](
|
|
1556
|
+
editor.cmd["do"]("strikeThrough");
|
|
1558
1557
|
if (isSeleEmpty) {
|
|
1559
1558
|
// 需要将选取折叠起来
|
|
1560
1559
|
editor.selection.collapseRange();
|
|
@@ -1565,24 +1564,24 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1565
1564
|
tryChangeActive: function tryChangeActive(e) {
|
|
1566
1565
|
var editor = this.editor;
|
|
1567
1566
|
var $elem = this.$elem;
|
|
1568
|
-
if (editor.cmd.queryCommandState(
|
|
1567
|
+
if (editor.cmd.queryCommandState("strikeThrough")) {
|
|
1569
1568
|
this._active = true;
|
|
1570
|
-
$elem.addClass(
|
|
1569
|
+
$elem.addClass("w-e-active");
|
|
1571
1570
|
} else {
|
|
1572
1571
|
this._active = false;
|
|
1573
|
-
$elem.removeClass(
|
|
1572
|
+
$elem.removeClass("w-e-active");
|
|
1574
1573
|
}
|
|
1575
1574
|
}
|
|
1576
1575
|
};
|
|
1577
1576
|
|
|
1578
1577
|
/*
|
|
1579
|
-
|
|
1578
|
+
underline-menu
|
|
1580
1579
|
*/
|
|
1581
1580
|
// 构造函数
|
|
1582
1581
|
function Underline(editor) {
|
|
1583
1582
|
this.editor = editor;
|
|
1584
1583
|
this.$elem = $('<div class="w-e-menu">\n <i class="w-e-icon-underline"></i>\n </div>');
|
|
1585
|
-
this.type =
|
|
1584
|
+
this.type = "click";
|
|
1586
1585
|
|
|
1587
1586
|
// 当前是否 active 状态
|
|
1588
1587
|
this._active = false;
|
|
@@ -1603,7 +1602,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1603
1602
|
}
|
|
1604
1603
|
|
|
1605
1604
|
// 执行 underline 命令
|
|
1606
|
-
editor.cmd["do"](
|
|
1605
|
+
editor.cmd["do"]("underline");
|
|
1607
1606
|
if (isSeleEmpty) {
|
|
1608
1607
|
// 需要将选取折叠起来
|
|
1609
1608
|
editor.selection.collapseRange();
|
|
@@ -1614,24 +1613,24 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1614
1613
|
tryChangeActive: function tryChangeActive(e) {
|
|
1615
1614
|
var editor = this.editor;
|
|
1616
1615
|
var $elem = this.$elem;
|
|
1617
|
-
if (editor.cmd.queryCommandState(
|
|
1616
|
+
if (editor.cmd.queryCommandState("underline")) {
|
|
1618
1617
|
this._active = true;
|
|
1619
|
-
$elem.addClass(
|
|
1618
|
+
$elem.addClass("w-e-active");
|
|
1620
1619
|
} else {
|
|
1621
1620
|
this._active = false;
|
|
1622
|
-
$elem.removeClass(
|
|
1621
|
+
$elem.removeClass("w-e-active");
|
|
1623
1622
|
}
|
|
1624
1623
|
}
|
|
1625
1624
|
};
|
|
1626
1625
|
|
|
1627
1626
|
/*
|
|
1628
|
-
|
|
1627
|
+
undo-menu
|
|
1629
1628
|
*/
|
|
1630
1629
|
// 构造函数
|
|
1631
1630
|
function Undo(editor) {
|
|
1632
1631
|
this.editor = editor;
|
|
1633
1632
|
this.$elem = $('<div class="w-e-menu">\n <i class="w-e-icon-undo"></i>\n </div>');
|
|
1634
|
-
this.type =
|
|
1633
|
+
this.type = "click";
|
|
1635
1634
|
|
|
1636
1635
|
// 当前是否 active 状态
|
|
1637
1636
|
this._active = false;
|
|
@@ -1647,19 +1646,19 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1647
1646
|
var editor = this.editor;
|
|
1648
1647
|
|
|
1649
1648
|
// 执行 undo 命令
|
|
1650
|
-
editor.cmd["do"](
|
|
1649
|
+
editor.cmd["do"]("undo");
|
|
1651
1650
|
}
|
|
1652
1651
|
};
|
|
1653
1652
|
|
|
1654
1653
|
/*
|
|
1655
|
-
|
|
1654
|
+
menu - list
|
|
1656
1655
|
*/
|
|
1657
1656
|
// 构造函数
|
|
1658
1657
|
function List(editor) {
|
|
1659
1658
|
var _this = this;
|
|
1660
1659
|
this.editor = editor;
|
|
1661
1660
|
this.$elem = $('<div class="w-e-menu"><i class="w-e-icon-list2"></i></div>');
|
|
1662
|
-
this.type =
|
|
1661
|
+
this.type = "droplist";
|
|
1663
1662
|
|
|
1664
1663
|
// 当前是否 active 状态
|
|
1665
1664
|
this._active = false;
|
|
@@ -1667,15 +1666,15 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1667
1666
|
// 初始化 droplist
|
|
1668
1667
|
this.droplist = new DropList(this, {
|
|
1669
1668
|
width: 120,
|
|
1670
|
-
$title: $(
|
|
1671
|
-
type:
|
|
1669
|
+
$title: $("<p>设置列表</p>"),
|
|
1670
|
+
type: "list",
|
|
1672
1671
|
// droplist 以列表形式展示
|
|
1673
1672
|
list: [{
|
|
1674
1673
|
$elem: $('<span><i class="w-e-icon-list-numbered"></i> 有序列表</span>'),
|
|
1675
|
-
value:
|
|
1674
|
+
value: "insertOrderedList"
|
|
1676
1675
|
}, {
|
|
1677
1676
|
$elem: $('<span><i class="w-e-icon-list2"></i> 无序列表</span>'),
|
|
1678
|
-
value:
|
|
1677
|
+
value: "insertUnorderedList"
|
|
1679
1678
|
}],
|
|
1680
1679
|
onClick: function onClick(value) {
|
|
1681
1680
|
// 注意 this 是指向当前的 List 对象
|
|
@@ -1699,7 +1698,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1699
1698
|
|
|
1700
1699
|
// 验证列表是否被包裹在 <p> 之内
|
|
1701
1700
|
var $selectionElem = editor.selection.getSelectionContainerElem();
|
|
1702
|
-
if ($selectionElem.getNodeName() ===
|
|
1701
|
+
if ($selectionElem.getNodeName() === "LI") {
|
|
1703
1702
|
$selectionElem = $selectionElem.parent();
|
|
1704
1703
|
}
|
|
1705
1704
|
if (/^ol|ul$/i.test($selectionElem.getNodeName()) === false) {
|
|
@@ -1721,25 +1720,25 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1721
1720
|
tryChangeActive: function tryChangeActive(e) {
|
|
1722
1721
|
var editor = this.editor;
|
|
1723
1722
|
var $elem = this.$elem;
|
|
1724
|
-
if (editor.cmd.queryCommandState(
|
|
1723
|
+
if (editor.cmd.queryCommandState("insertUnOrderedList") || editor.cmd.queryCommandState("insertOrderedList")) {
|
|
1725
1724
|
this._active = true;
|
|
1726
|
-
$elem.addClass(
|
|
1725
|
+
$elem.addClass("w-e-active");
|
|
1727
1726
|
} else {
|
|
1728
1727
|
this._active = false;
|
|
1729
|
-
$elem.removeClass(
|
|
1728
|
+
$elem.removeClass("w-e-active");
|
|
1730
1729
|
}
|
|
1731
1730
|
}
|
|
1732
1731
|
};
|
|
1733
1732
|
|
|
1734
1733
|
/*
|
|
1735
|
-
|
|
1734
|
+
menu - justify
|
|
1736
1735
|
*/
|
|
1737
1736
|
// 构造函数
|
|
1738
1737
|
function Justify(editor) {
|
|
1739
1738
|
var _this = this;
|
|
1740
1739
|
this.editor = editor;
|
|
1741
1740
|
this.$elem = $('<div class="w-e-menu"><i class="w-e-icon-paragraph-left"></i></div>');
|
|
1742
|
-
this.type =
|
|
1741
|
+
this.type = "droplist";
|
|
1743
1742
|
|
|
1744
1743
|
// 当前是否 active 状态
|
|
1745
1744
|
this._active = false;
|
|
@@ -1747,18 +1746,18 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1747
1746
|
// 初始化 droplist
|
|
1748
1747
|
this.droplist = new DropList(this, {
|
|
1749
1748
|
width: 100,
|
|
1750
|
-
$title: $(
|
|
1751
|
-
type:
|
|
1749
|
+
$title: $("<p>对齐方式</p>"),
|
|
1750
|
+
type: "list",
|
|
1752
1751
|
// droplist 以列表形式展示
|
|
1753
1752
|
list: [{
|
|
1754
1753
|
$elem: $('<span><i class="w-e-icon-paragraph-left"></i> 靠左</span>'),
|
|
1755
|
-
value:
|
|
1754
|
+
value: "justifyLeft"
|
|
1756
1755
|
}, {
|
|
1757
1756
|
$elem: $('<span><i class="w-e-icon-paragraph-center"></i> 居中</span>'),
|
|
1758
|
-
value:
|
|
1757
|
+
value: "justifyCenter"
|
|
1759
1758
|
}, {
|
|
1760
1759
|
$elem: $('<span><i class="w-e-icon-paragraph-right"></i> 靠右</span>'),
|
|
1761
|
-
value:
|
|
1760
|
+
value: "justifyRight"
|
|
1762
1761
|
}],
|
|
1763
1762
|
onClick: function onClick(value) {
|
|
1764
1763
|
// 注意 this 是指向当前的 List 对象
|
|
@@ -1778,14 +1777,14 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1778
1777
|
};
|
|
1779
1778
|
|
|
1780
1779
|
/*
|
|
1781
|
-
|
|
1780
|
+
menu - Forecolor
|
|
1782
1781
|
*/
|
|
1783
1782
|
// 构造函数
|
|
1784
1783
|
function ForeColor(editor) {
|
|
1785
1784
|
var _this = this;
|
|
1786
1785
|
this.editor = editor;
|
|
1787
1786
|
this.$elem = $('<div class="w-e-menu"><i class="w-e-icon-pencil2"></i></div>');
|
|
1788
|
-
this.type =
|
|
1787
|
+
this.type = "droplist";
|
|
1789
1788
|
|
|
1790
1789
|
// 获取配置的颜色
|
|
1791
1790
|
var config = editor.config;
|
|
@@ -1797,8 +1796,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1797
1796
|
// 初始化 droplist
|
|
1798
1797
|
this.droplist = new DropList(this, {
|
|
1799
1798
|
width: 120,
|
|
1800
|
-
$title: $(
|
|
1801
|
-
type:
|
|
1799
|
+
$title: $("<p>文字颜色</p>"),
|
|
1800
|
+
type: "inline-block",
|
|
1802
1801
|
// droplist 内容以 block 形式展示
|
|
1803
1802
|
list: colors.map(function (color) {
|
|
1804
1803
|
return {
|
|
@@ -1819,19 +1818,19 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1819
1818
|
// 执行命令
|
|
1820
1819
|
_command: function _command(value) {
|
|
1821
1820
|
var editor = this.editor;
|
|
1822
|
-
editor.cmd["do"](
|
|
1821
|
+
editor.cmd["do"]("foreColor", value);
|
|
1823
1822
|
}
|
|
1824
1823
|
};
|
|
1825
1824
|
|
|
1826
1825
|
/*
|
|
1827
|
-
|
|
1826
|
+
menu - BackColor
|
|
1828
1827
|
*/
|
|
1829
1828
|
// 构造函数
|
|
1830
1829
|
function BackColor(editor) {
|
|
1831
1830
|
var _this = this;
|
|
1832
1831
|
this.editor = editor;
|
|
1833
1832
|
this.$elem = $('<div class="w-e-menu"><i class="w-e-icon-paint-brush"></i></div>');
|
|
1834
|
-
this.type =
|
|
1833
|
+
this.type = "droplist";
|
|
1835
1834
|
|
|
1836
1835
|
// 获取配置的颜色
|
|
1837
1836
|
var config = editor.config;
|
|
@@ -1843,8 +1842,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1843
1842
|
// 初始化 droplist
|
|
1844
1843
|
this.droplist = new DropList(this, {
|
|
1845
1844
|
width: 120,
|
|
1846
|
-
$title: $(
|
|
1847
|
-
type:
|
|
1845
|
+
$title: $("<p>背景色</p>"),
|
|
1846
|
+
type: "inline-block",
|
|
1848
1847
|
// droplist 内容以 block 形式展示
|
|
1849
1848
|
list: colors.map(function (color) {
|
|
1850
1849
|
return {
|
|
@@ -1865,18 +1864,18 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1865
1864
|
// 执行命令
|
|
1866
1865
|
_command: function _command(value) {
|
|
1867
1866
|
var editor = this.editor;
|
|
1868
|
-
editor.cmd["do"](
|
|
1867
|
+
editor.cmd["do"]("backColor", value);
|
|
1869
1868
|
}
|
|
1870
1869
|
};
|
|
1871
1870
|
|
|
1872
1871
|
/*
|
|
1873
|
-
|
|
1872
|
+
menu - quote
|
|
1874
1873
|
*/
|
|
1875
1874
|
// 构造函数
|
|
1876
1875
|
function Quote(editor) {
|
|
1877
1876
|
this.editor = editor;
|
|
1878
1877
|
this.$elem = $('<div class="w-e-menu">\n <i class="w-e-icon-quotes-left"></i>\n </div>');
|
|
1879
|
-
this.type =
|
|
1878
|
+
this.type = "click";
|
|
1880
1879
|
|
|
1881
1880
|
// 当前是否 active 状态
|
|
1882
1881
|
this._active = false;
|
|
@@ -1890,12 +1889,12 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1890
1889
|
var $selectionElem = editor.selection.getSelectionContainerElem();
|
|
1891
1890
|
var nodeName = $selectionElem.getNodeName();
|
|
1892
1891
|
if (!UA.isIE()) {
|
|
1893
|
-
if (nodeName ===
|
|
1892
|
+
if (nodeName === "BLOCKQUOTE") {
|
|
1894
1893
|
// 撤销 quote
|
|
1895
|
-
editor.cmd["do"](
|
|
1894
|
+
editor.cmd["do"]("formatBlock", "<P>");
|
|
1896
1895
|
} else {
|
|
1897
1896
|
// 转换为 quote
|
|
1898
|
-
editor.cmd["do"](
|
|
1897
|
+
editor.cmd["do"]("formatBlock", "<BLOCKQUOTE>");
|
|
1899
1898
|
}
|
|
1900
1899
|
return;
|
|
1901
1900
|
}
|
|
@@ -1903,18 +1902,18 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1903
1902
|
// IE 中不支持 formatBlock <BLOCKQUOTE> ,要用其他方式兼容
|
|
1904
1903
|
var content = void 0,
|
|
1905
1904
|
$targetELem = void 0;
|
|
1906
|
-
if (nodeName ===
|
|
1905
|
+
if (nodeName === "P") {
|
|
1907
1906
|
// 将 P 转换为 quote
|
|
1908
1907
|
content = $selectionElem.text();
|
|
1909
|
-
$targetELem = $(
|
|
1908
|
+
$targetELem = $("<blockquote>" + content + "</blockquote>");
|
|
1910
1909
|
$targetELem.insertAfter($selectionElem);
|
|
1911
1910
|
$selectionElem.remove();
|
|
1912
1911
|
return;
|
|
1913
1912
|
}
|
|
1914
|
-
if (nodeName ===
|
|
1913
|
+
if (nodeName === "BLOCKQUOTE") {
|
|
1915
1914
|
// 撤销 quote
|
|
1916
1915
|
content = $selectionElem.text();
|
|
1917
|
-
$targetELem = $(
|
|
1916
|
+
$targetELem = $("<p>" + content + "</p>");
|
|
1918
1917
|
$targetELem.insertAfter($selectionElem);
|
|
1919
1918
|
$selectionElem.remove();
|
|
1920
1919
|
}
|
|
@@ -1923,25 +1922,25 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1923
1922
|
var editor = this.editor;
|
|
1924
1923
|
var $elem = this.$elem;
|
|
1925
1924
|
var reg = /^BLOCKQUOTE$/i;
|
|
1926
|
-
var cmdValue = editor.cmd.queryCommandValue(
|
|
1925
|
+
var cmdValue = editor.cmd.queryCommandValue("formatBlock");
|
|
1927
1926
|
if (reg.test(cmdValue)) {
|
|
1928
1927
|
this._active = true;
|
|
1929
|
-
$elem.addClass(
|
|
1928
|
+
$elem.addClass("w-e-active");
|
|
1930
1929
|
} else {
|
|
1931
1930
|
this._active = false;
|
|
1932
|
-
$elem.removeClass(
|
|
1931
|
+
$elem.removeClass("w-e-active");
|
|
1933
1932
|
}
|
|
1934
1933
|
}
|
|
1935
1934
|
};
|
|
1936
1935
|
|
|
1937
1936
|
/*
|
|
1938
|
-
|
|
1937
|
+
menu - code
|
|
1939
1938
|
*/
|
|
1940
1939
|
// 构造函数
|
|
1941
1940
|
function Code(editor) {
|
|
1942
1941
|
this.editor = editor;
|
|
1943
1942
|
this.$elem = $('<div class="w-e-menu">\n <i class="w-e-icon-terminal"></i>\n </div>');
|
|
1944
|
-
this.type =
|
|
1943
|
+
this.type = "panel";
|
|
1945
1944
|
|
|
1946
1945
|
// 当前是否 active 状态
|
|
1947
1946
|
this._active = false;
|
|
@@ -1964,8 +1963,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1964
1963
|
}
|
|
1965
1964
|
if (!isSeleEmpty) {
|
|
1966
1965
|
// 选取不是空,用 <code> 包裹即可
|
|
1967
|
-
$code = $(
|
|
1968
|
-
editor.cmd["do"](
|
|
1966
|
+
$code = $("<code>" + selectionText + "</code>");
|
|
1967
|
+
editor.cmd["do"]("insertElem", $code);
|
|
1969
1968
|
editor.selection.createRangeByElem($code, false);
|
|
1970
1969
|
editor.selection.restoreSelection();
|
|
1971
1970
|
return;
|
|
@@ -1984,29 +1983,29 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
1984
1983
|
var _this = this;
|
|
1985
1984
|
|
|
1986
1985
|
// value - 要编辑的内容
|
|
1987
|
-
value = value ||
|
|
1988
|
-
var type = !value ?
|
|
1989
|
-
var textId = getRandom(
|
|
1990
|
-
var btnId = getRandom(
|
|
1986
|
+
value = value || "";
|
|
1987
|
+
var type = !value ? "new" : "edit";
|
|
1988
|
+
var textId = getRandom("texxt");
|
|
1989
|
+
var btnId = getRandom("btn");
|
|
1991
1990
|
var panel = new Panel(this, {
|
|
1992
1991
|
width: 500,
|
|
1993
1992
|
// 一个 Panel 包含多个 tab
|
|
1994
1993
|
tabs: [{
|
|
1995
1994
|
// 标题
|
|
1996
|
-
title:
|
|
1995
|
+
title: "插入代码",
|
|
1997
1996
|
// 模板
|
|
1998
1997
|
tpl: '<div>\n <textarea id="' + textId + '" style="height:145px;;">' + value + '</textarea>\n <div class="w-e-button-container">\n <button id="' + btnId + "\" class=\"right\">\u63D2\u5165</button>\n </div>\n <div>",
|
|
1999
1998
|
// 事件绑定
|
|
2000
1999
|
events: [
|
|
2001
2000
|
// 插入代码
|
|
2002
2001
|
{
|
|
2003
|
-
selector:
|
|
2004
|
-
type:
|
|
2002
|
+
selector: "#" + btnId,
|
|
2003
|
+
type: "click",
|
|
2005
2004
|
fn: function fn() {
|
|
2006
|
-
var $text = $(
|
|
2005
|
+
var $text = $("#" + textId);
|
|
2007
2006
|
var text = $text.val() || $text.html();
|
|
2008
2007
|
text = replaceHtmlSymbol(text);
|
|
2009
|
-
if (type ===
|
|
2008
|
+
if (type === "new") {
|
|
2010
2009
|
// 新插入
|
|
2011
2010
|
_this._insertCode(text);
|
|
2012
2011
|
} else {
|
|
@@ -2032,7 +2031,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2032
2031
|
// 插入代码
|
|
2033
2032
|
_insertCode: function _insertCode(value) {
|
|
2034
2033
|
var editor = this.editor;
|
|
2035
|
-
editor.cmd["do"](
|
|
2034
|
+
editor.cmd["do"]("insertHTML", "<pre><code>" + value + "</code></pre><p><br></p>");
|
|
2036
2035
|
},
|
|
2037
2036
|
// 更新代码
|
|
2038
2037
|
_updateCode: function _updateCode(value) {
|
|
@@ -2053,24 +2052,24 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2053
2052
|
return;
|
|
2054
2053
|
}
|
|
2055
2054
|
var $parentElem = $selectionELem.parent();
|
|
2056
|
-
if ($selectionELem.getNodeName() ===
|
|
2055
|
+
if ($selectionELem.getNodeName() === "CODE" && $parentElem.getNodeName() === "PRE") {
|
|
2057
2056
|
this._active = true;
|
|
2058
|
-
$elem.addClass(
|
|
2057
|
+
$elem.addClass("w-e-active");
|
|
2059
2058
|
} else {
|
|
2060
2059
|
this._active = false;
|
|
2061
|
-
$elem.removeClass(
|
|
2060
|
+
$elem.removeClass("w-e-active");
|
|
2062
2061
|
}
|
|
2063
2062
|
}
|
|
2064
2063
|
};
|
|
2065
2064
|
|
|
2066
2065
|
/*
|
|
2067
|
-
|
|
2066
|
+
menu - emoticon
|
|
2068
2067
|
*/
|
|
2069
2068
|
// 构造函数
|
|
2070
2069
|
function Emoticon(editor) {
|
|
2071
2070
|
this.editor = editor;
|
|
2072
2071
|
this.$elem = $('<div class="w-e-menu">\n <i class="w-e-icon-happy"></i>\n </div>');
|
|
2073
|
-
this.type =
|
|
2072
|
+
this.type = "panel";
|
|
2074
2073
|
|
|
2075
2074
|
// 当前是否 active 状态
|
|
2076
2075
|
this._active = false;
|
|
@@ -2096,18 +2095,18 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2096
2095
|
var content = emotData.content || [];
|
|
2097
2096
|
|
|
2098
2097
|
// 这一组表情最终拼接出来的 html
|
|
2099
|
-
var faceHtml =
|
|
2098
|
+
var faceHtml = "";
|
|
2100
2099
|
|
|
2101
2100
|
// emoji 表情
|
|
2102
|
-
if (emotType ===
|
|
2101
|
+
if (emotType === "emoji") {
|
|
2103
2102
|
content.forEach(function (item) {
|
|
2104
2103
|
if (item) {
|
|
2105
|
-
faceHtml += '<span class="w-e-item">' + item +
|
|
2104
|
+
faceHtml += '<span class="w-e-item">' + item + "</span>";
|
|
2106
2105
|
}
|
|
2107
2106
|
});
|
|
2108
2107
|
}
|
|
2109
2108
|
// 图片表情
|
|
2110
|
-
if (emotType ===
|
|
2109
|
+
if (emotType === "image") {
|
|
2111
2110
|
content.forEach(function (item) {
|
|
2112
2111
|
var src = item.src;
|
|
2113
2112
|
var alt = item.alt;
|
|
@@ -2119,21 +2118,21 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2119
2118
|
}
|
|
2120
2119
|
tabConfig.push({
|
|
2121
2120
|
title: emotData.title,
|
|
2122
|
-
tpl: '<div class="w-e-emoticon-container">' + faceHtml +
|
|
2121
|
+
tpl: '<div class="w-e-emoticon-container">' + faceHtml + "</div>",
|
|
2123
2122
|
events: [{
|
|
2124
|
-
selector:
|
|
2125
|
-
type:
|
|
2123
|
+
selector: "span.w-e-item",
|
|
2124
|
+
type: "click",
|
|
2126
2125
|
fn: function fn(e) {
|
|
2127
2126
|
var target = e.target;
|
|
2128
2127
|
var $target = $(target);
|
|
2129
2128
|
var nodeName = $target.getNodeName();
|
|
2130
2129
|
var insertHtml = void 0;
|
|
2131
|
-
if (nodeName ===
|
|
2130
|
+
if (nodeName === "IMG") {
|
|
2132
2131
|
// 插入图片
|
|
2133
2132
|
insertHtml = $target.parent().html();
|
|
2134
2133
|
} else {
|
|
2135
2134
|
// 插入 emoji
|
|
2136
|
-
insertHtml =
|
|
2135
|
+
insertHtml = "<span>" + $target.html() + "</span>";
|
|
2137
2136
|
}
|
|
2138
2137
|
_this._insert(insertHtml);
|
|
2139
2138
|
// 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
|
|
@@ -2159,18 +2158,18 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2159
2158
|
// 插入表情
|
|
2160
2159
|
_insert: function _insert(emotHtml) {
|
|
2161
2160
|
var editor = this.editor;
|
|
2162
|
-
editor.cmd["do"](
|
|
2161
|
+
editor.cmd["do"]("insertHTML", emotHtml);
|
|
2163
2162
|
}
|
|
2164
2163
|
};
|
|
2165
2164
|
|
|
2166
2165
|
/*
|
|
2167
|
-
|
|
2166
|
+
menu - table
|
|
2168
2167
|
*/
|
|
2169
2168
|
// 构造函数
|
|
2170
2169
|
function Table(editor) {
|
|
2171
2170
|
this.editor = editor;
|
|
2172
2171
|
this.$elem = $('<div class="w-e-menu"><i class="w-e-icon-table2"></i></div>');
|
|
2173
|
-
this.type =
|
|
2172
|
+
this.type = "panel";
|
|
2174
2173
|
|
|
2175
2174
|
// 当前是否 active 状态
|
|
2176
2175
|
this._active = false;
|
|
@@ -2193,25 +2192,25 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2193
2192
|
var _this = this;
|
|
2194
2193
|
|
|
2195
2194
|
// 用到的 id
|
|
2196
|
-
var btnInsertId = getRandom(
|
|
2197
|
-
var textRowNum = getRandom(
|
|
2198
|
-
var textColNum = getRandom(
|
|
2195
|
+
var btnInsertId = getRandom("btn");
|
|
2196
|
+
var textRowNum = getRandom("row");
|
|
2197
|
+
var textColNum = getRandom("col");
|
|
2199
2198
|
var panel = new Panel(this, {
|
|
2200
2199
|
width: 250,
|
|
2201
2200
|
// panel 包含多个 tab
|
|
2202
2201
|
tabs: [{
|
|
2203
2202
|
// 标题
|
|
2204
|
-
title:
|
|
2203
|
+
title: "插入表格",
|
|
2205
2204
|
// 模板
|
|
2206
2205
|
tpl: "<div>\n <p style=\"text-align:left; padding:5px 0;\">\n \u521B\u5EFA\n <input id=\"" + textRowNum + "\" type=\"text\" value=\"5\" style=\"width:40px;text-align:center;\"/>\n \u884C\n <input id=\"" + textColNum + "\" type=\"text\" value=\"5\" style=\"width:40px;text-align:center;\"/>\n \u5217\u7684\u8868\u683C\n </p>\n <div class=\"w-e-button-container\">\n <button id=\"" + btnInsertId + "\" class=\"right\">\u63D2\u5165</button>\n </div>\n </div>",
|
|
2207
2206
|
// 事件绑定
|
|
2208
2207
|
events: [{
|
|
2209
2208
|
// 点击按钮,插入表格
|
|
2210
|
-
selector:
|
|
2211
|
-
type:
|
|
2209
|
+
selector: "#" + btnInsertId,
|
|
2210
|
+
type: "click",
|
|
2212
2211
|
fn: function fn() {
|
|
2213
|
-
var rowNum = parseInt($(
|
|
2214
|
-
var colNum = parseInt($(
|
|
2212
|
+
var rowNum = parseInt($("#" + textRowNum).val());
|
|
2213
|
+
var colNum = parseInt($("#" + textColNum).val());
|
|
2215
2214
|
if (rowNum && colNum && rowNum > 0 && colNum > 0) {
|
|
2216
2215
|
// form 数据有效
|
|
2217
2216
|
_this._insert(rowNum, colNum);
|
|
@@ -2239,38 +2238,38 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2239
2238
|
c = void 0;
|
|
2240
2239
|
var html = '<table border="0" width="100%" cellpadding="0" cellspacing="0">';
|
|
2241
2240
|
for (r = 0; r < rowNum; r++) {
|
|
2242
|
-
html +=
|
|
2241
|
+
html += "<tr>";
|
|
2243
2242
|
if (r === 0) {
|
|
2244
2243
|
for (c = 0; c < colNum; c++) {
|
|
2245
|
-
html +=
|
|
2244
|
+
html += "<th> </th>";
|
|
2246
2245
|
}
|
|
2247
2246
|
} else {
|
|
2248
2247
|
for (c = 0; c < colNum; c++) {
|
|
2249
|
-
html +=
|
|
2248
|
+
html += "<td> </td>";
|
|
2250
2249
|
}
|
|
2251
2250
|
}
|
|
2252
|
-
html +=
|
|
2251
|
+
html += "</tr>";
|
|
2253
2252
|
}
|
|
2254
|
-
html +=
|
|
2253
|
+
html += "</table><p><br></p>";
|
|
2255
2254
|
|
|
2256
2255
|
// 执行命令
|
|
2257
2256
|
var editor = this.editor;
|
|
2258
|
-
editor.cmd["do"](
|
|
2257
|
+
editor.cmd["do"]("insertHTML", html);
|
|
2259
2258
|
|
|
2260
2259
|
// 防止 firefox 下出现 resize 的控制点
|
|
2261
|
-
editor.cmd["do"](
|
|
2262
|
-
editor.cmd["do"](
|
|
2260
|
+
editor.cmd["do"]("enableObjectResizing", false);
|
|
2261
|
+
editor.cmd["do"]("enableInlineTableEditing", false);
|
|
2263
2262
|
},
|
|
2264
2263
|
// 创建编辑表格的 panel
|
|
2265
2264
|
_createEditPanel: function _createEditPanel() {
|
|
2266
2265
|
var _this2 = this;
|
|
2267
2266
|
|
|
2268
2267
|
// 可用的 id
|
|
2269
|
-
var addRowBtnId = getRandom(
|
|
2270
|
-
var addColBtnId = getRandom(
|
|
2271
|
-
var delRowBtnId = getRandom(
|
|
2272
|
-
var delColBtnId = getRandom(
|
|
2273
|
-
var delTableBtnId = getRandom(
|
|
2268
|
+
var addRowBtnId = getRandom("add-row");
|
|
2269
|
+
var addColBtnId = getRandom("add-col");
|
|
2270
|
+
var delRowBtnId = getRandom("del-row");
|
|
2271
|
+
var delColBtnId = getRandom("del-col");
|
|
2272
|
+
var delTableBtnId = getRandom("del-table");
|
|
2274
2273
|
|
|
2275
2274
|
// 创建 panel 对象
|
|
2276
2275
|
var panel = new Panel(this, {
|
|
@@ -2278,14 +2277,14 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2278
2277
|
// panel 包含多个 tab
|
|
2279
2278
|
tabs: [{
|
|
2280
2279
|
// 标题
|
|
2281
|
-
title:
|
|
2280
|
+
title: "编辑表格",
|
|
2282
2281
|
// 模板
|
|
2283
2282
|
tpl: '<div>\n <div class="w-e-button-container" style="border-bottom:1px solid #f1f1f1;padding-bottom:5px;margin-bottom:5px;">\n <button id="' + addRowBtnId + "\" class=\"left\">\u589E\u52A0\u884C</button>\n <button id=\"" + delRowBtnId + "\" class=\"red left\">\u5220\u9664\u884C</button>\n <button id=\"" + addColBtnId + "\" class=\"left\">\u589E\u52A0\u5217</button>\n <button id=\"" + delColBtnId + "\" class=\"red left\">\u5220\u9664\u5217</button>\n </div>\n <div class=\"w-e-button-container\">\n <button id=\"" + delTableBtnId + "\" class=\"gray left\">\u5220\u9664\u8868\u683C</button>\n </dv>\n </div>",
|
|
2284
2283
|
// 事件绑定
|
|
2285
2284
|
events: [{
|
|
2286
2285
|
// 增加行
|
|
2287
|
-
selector:
|
|
2288
|
-
type:
|
|
2286
|
+
selector: "#" + addRowBtnId,
|
|
2287
|
+
type: "click",
|
|
2289
2288
|
fn: function fn() {
|
|
2290
2289
|
_this2._addRow();
|
|
2291
2290
|
// 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
|
|
@@ -2293,8 +2292,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2293
2292
|
}
|
|
2294
2293
|
}, {
|
|
2295
2294
|
// 增加列
|
|
2296
|
-
selector:
|
|
2297
|
-
type:
|
|
2295
|
+
selector: "#" + addColBtnId,
|
|
2296
|
+
type: "click",
|
|
2298
2297
|
fn: function fn() {
|
|
2299
2298
|
_this2._addCol();
|
|
2300
2299
|
// 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
|
|
@@ -2302,8 +2301,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2302
2301
|
}
|
|
2303
2302
|
}, {
|
|
2304
2303
|
// 删除行
|
|
2305
|
-
selector:
|
|
2306
|
-
type:
|
|
2304
|
+
selector: "#" + delRowBtnId,
|
|
2305
|
+
type: "click",
|
|
2307
2306
|
fn: function fn() {
|
|
2308
2307
|
_this2._delRow();
|
|
2309
2308
|
// 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
|
|
@@ -2311,8 +2310,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2311
2310
|
}
|
|
2312
2311
|
}, {
|
|
2313
2312
|
// 删除列
|
|
2314
|
-
selector:
|
|
2315
|
-
type:
|
|
2313
|
+
selector: "#" + delColBtnId,
|
|
2314
|
+
type: "click",
|
|
2316
2315
|
fn: function fn() {
|
|
2317
2316
|
_this2._delCol();
|
|
2318
2317
|
// 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
|
|
@@ -2320,8 +2319,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2320
2319
|
}
|
|
2321
2320
|
}, {
|
|
2322
2321
|
// 删除表格
|
|
2323
|
-
selector:
|
|
2324
|
-
type:
|
|
2322
|
+
selector: "#" + delTableBtnId,
|
|
2323
|
+
type: "click",
|
|
2325
2324
|
fn: function fn() {
|
|
2326
2325
|
_this2._delTable();
|
|
2327
2326
|
// 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
|
|
@@ -2342,7 +2341,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2342
2341
|
return;
|
|
2343
2342
|
}
|
|
2344
2343
|
var nodeName = $selectionELem.getNodeName();
|
|
2345
|
-
if (nodeName !==
|
|
2344
|
+
if (nodeName !== "TD" && nodeName !== "TH") {
|
|
2346
2345
|
return;
|
|
2347
2346
|
}
|
|
2348
2347
|
|
|
@@ -2394,11 +2393,11 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2394
2393
|
var tdLength = tdData.length;
|
|
2395
2394
|
|
|
2396
2395
|
// 拼接即将插入的字符串
|
|
2397
|
-
var newTr = document.createElement(
|
|
2398
|
-
var tpl =
|
|
2396
|
+
var newTr = document.createElement("tr");
|
|
2397
|
+
var tpl = "",
|
|
2399
2398
|
i = void 0;
|
|
2400
2399
|
for (i = 0; i < tdLength; i++) {
|
|
2401
|
-
tpl +=
|
|
2400
|
+
tpl += "<td> </td>";
|
|
2402
2401
|
}
|
|
2403
2402
|
newTr.innerHTML = tpl;
|
|
2404
2403
|
// 插入
|
|
@@ -2473,7 +2472,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2473
2472
|
if (!$selectionELem) {
|
|
2474
2473
|
return;
|
|
2475
2474
|
}
|
|
2476
|
-
var $table = $selectionELem.parentUntil(
|
|
2475
|
+
var $table = $selectionELem.parentUntil("table");
|
|
2477
2476
|
if (!$table) {
|
|
2478
2477
|
return;
|
|
2479
2478
|
}
|
|
@@ -2488,24 +2487,24 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2488
2487
|
return;
|
|
2489
2488
|
}
|
|
2490
2489
|
var nodeName = $selectionELem.getNodeName();
|
|
2491
|
-
if (nodeName ===
|
|
2490
|
+
if (nodeName === "TD" || nodeName === "TH") {
|
|
2492
2491
|
this._active = true;
|
|
2493
|
-
$elem.addClass(
|
|
2492
|
+
$elem.addClass("w-e-active");
|
|
2494
2493
|
} else {
|
|
2495
2494
|
this._active = false;
|
|
2496
|
-
$elem.removeClass(
|
|
2495
|
+
$elem.removeClass("w-e-active");
|
|
2497
2496
|
}
|
|
2498
2497
|
}
|
|
2499
2498
|
};
|
|
2500
2499
|
|
|
2501
2500
|
/*
|
|
2502
|
-
|
|
2501
|
+
menu - video
|
|
2503
2502
|
*/
|
|
2504
2503
|
// 构造函数
|
|
2505
2504
|
function Video(editor) {
|
|
2506
2505
|
this.editor = editor;
|
|
2507
2506
|
this.$elem = $('<div class="w-e-menu"><i class="w-e-icon-play"></i></div>');
|
|
2508
|
-
this.type =
|
|
2507
|
+
this.type = "panel";
|
|
2509
2508
|
|
|
2510
2509
|
// 当前是否 active 状态
|
|
2511
2510
|
this._active = false;
|
|
@@ -2521,8 +2520,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2521
2520
|
var _this = this;
|
|
2522
2521
|
|
|
2523
2522
|
// 创建 id
|
|
2524
|
-
var textValId = getRandom(
|
|
2525
|
-
var btnId = getRandom(
|
|
2523
|
+
var textValId = getRandom("text-val");
|
|
2524
|
+
var btnId = getRandom("btn");
|
|
2526
2525
|
|
|
2527
2526
|
// 创建 panel
|
|
2528
2527
|
var panel = new Panel(this, {
|
|
@@ -2530,15 +2529,15 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2530
2529
|
// 一个 panel 多个 tab
|
|
2531
2530
|
tabs: [{
|
|
2532
2531
|
// 标题
|
|
2533
|
-
title:
|
|
2532
|
+
title: "插入视频",
|
|
2534
2533
|
// 模板
|
|
2535
2534
|
tpl: '<div>\n <input id="' + textValId + "\" type=\"text\" class=\"block\" placeholder=\"\u683C\u5F0F\u5982\uFF1A<iframe src=... ></iframe>\"/>\n <div class=\"w-e-button-container\">\n <button id=\"" + btnId + "\" class=\"right\">\u63D2\u5165</button>\n </div>\n </div>",
|
|
2536
2535
|
// 事件绑定
|
|
2537
2536
|
events: [{
|
|
2538
|
-
selector:
|
|
2539
|
-
type:
|
|
2537
|
+
selector: "#" + btnId,
|
|
2538
|
+
type: "click",
|
|
2540
2539
|
fn: function fn() {
|
|
2541
|
-
var $text = $(
|
|
2540
|
+
var $text = $("#" + textValId);
|
|
2542
2541
|
var val = $text.val().trim();
|
|
2543
2542
|
|
|
2544
2543
|
// 测试用视频地址
|
|
@@ -2567,20 +2566,20 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2567
2566
|
// 插入视频
|
|
2568
2567
|
_insert: function _insert(val) {
|
|
2569
2568
|
var editor = this.editor;
|
|
2570
|
-
editor.cmd["do"](
|
|
2569
|
+
editor.cmd["do"]("insertHTML", val + "<p><br></p>");
|
|
2571
2570
|
}
|
|
2572
2571
|
};
|
|
2573
2572
|
|
|
2574
2573
|
/*
|
|
2575
|
-
|
|
2574
|
+
menu - img
|
|
2576
2575
|
*/
|
|
2577
2576
|
// 构造函数
|
|
2578
2577
|
function Image(editor) {
|
|
2579
2578
|
this.editor = editor;
|
|
2580
|
-
var imgMenuId = getRandom(
|
|
2579
|
+
var imgMenuId = getRandom("w-e-img");
|
|
2581
2580
|
this.$elem = $('<div class="w-e-menu" id="' + imgMenuId + '"><i class="w-e-icon-image"></i></div>');
|
|
2582
2581
|
editor.imgMenuId = imgMenuId;
|
|
2583
|
-
this.type =
|
|
2582
|
+
this.type = "panel";
|
|
2584
2583
|
|
|
2585
2584
|
// 当前是否 active 状态
|
|
2586
2585
|
this._active = false;
|
|
@@ -2605,51 +2604,51 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2605
2604
|
var editor = this.editor;
|
|
2606
2605
|
|
|
2607
2606
|
// id
|
|
2608
|
-
var width30 = getRandom(
|
|
2609
|
-
var width50 = getRandom(
|
|
2610
|
-
var width100 = getRandom(
|
|
2611
|
-
var delBtn = getRandom(
|
|
2607
|
+
var width30 = getRandom("width-30");
|
|
2608
|
+
var width50 = getRandom("width-50");
|
|
2609
|
+
var width100 = getRandom("width-100");
|
|
2610
|
+
var delBtn = getRandom("del-btn");
|
|
2612
2611
|
|
|
2613
2612
|
// tab 配置
|
|
2614
2613
|
var tabsConfig = [{
|
|
2615
|
-
title:
|
|
2614
|
+
title: "编辑图片",
|
|
2616
2615
|
tpl: "<div>\n <div class=\"w-e-button-container\" style=\"border-bottom:1px solid #f1f1f1;padding-bottom:5px;margin-bottom:5px;\">\n <span style=\"float:left;font-size:14px;margin:4px 5px 0 5px;color:#333;\">\u6700\u5927\u5BBD\u5EA6\uFF1A</span>\n <button id=\"" + width30 + '" class="left">30%</button>\n <button id="' + width50 + '" class="left">50%</button>\n <button id="' + width100 + '" class="left">100%</button>\n </div>\n <div class="w-e-button-container">\n <button id="' + delBtn + "\" class=\"gray left\">\u5220\u9664\u56FE\u7247</button>\n </dv>\n </div>",
|
|
2617
2616
|
events: [{
|
|
2618
|
-
selector:
|
|
2619
|
-
type:
|
|
2617
|
+
selector: "#" + width30,
|
|
2618
|
+
type: "click",
|
|
2620
2619
|
fn: function fn() {
|
|
2621
2620
|
var $img = editor._selectedImg;
|
|
2622
2621
|
if ($img) {
|
|
2623
|
-
$img.css(
|
|
2622
|
+
$img.css("max-width", "30%");
|
|
2624
2623
|
}
|
|
2625
2624
|
// 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
|
|
2626
2625
|
return true;
|
|
2627
2626
|
}
|
|
2628
2627
|
}, {
|
|
2629
|
-
selector:
|
|
2630
|
-
type:
|
|
2628
|
+
selector: "#" + width50,
|
|
2629
|
+
type: "click",
|
|
2631
2630
|
fn: function fn() {
|
|
2632
2631
|
var $img = editor._selectedImg;
|
|
2633
2632
|
if ($img) {
|
|
2634
|
-
$img.css(
|
|
2633
|
+
$img.css("max-width", "50%");
|
|
2635
2634
|
}
|
|
2636
2635
|
// 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
|
|
2637
2636
|
return true;
|
|
2638
2637
|
}
|
|
2639
2638
|
}, {
|
|
2640
|
-
selector:
|
|
2641
|
-
type:
|
|
2639
|
+
selector: "#" + width100,
|
|
2640
|
+
type: "click",
|
|
2642
2641
|
fn: function fn() {
|
|
2643
2642
|
var $img = editor._selectedImg;
|
|
2644
2643
|
if ($img) {
|
|
2645
|
-
$img.css(
|
|
2644
|
+
$img.css("max-width", "100%");
|
|
2646
2645
|
}
|
|
2647
2646
|
// 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
|
|
2648
2647
|
return true;
|
|
2649
2648
|
}
|
|
2650
2649
|
}, {
|
|
2651
|
-
selector:
|
|
2652
|
-
type:
|
|
2650
|
+
selector: "#" + delBtn,
|
|
2651
|
+
type: "click",
|
|
2653
2652
|
fn: function fn() {
|
|
2654
2653
|
var $img = editor._selectedImg;
|
|
2655
2654
|
if ($img) {
|
|
@@ -2678,21 +2677,21 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2678
2677
|
var config = editor.config;
|
|
2679
2678
|
|
|
2680
2679
|
// id
|
|
2681
|
-
var upTriggerId = getRandom(
|
|
2682
|
-
var upFileId = getRandom(
|
|
2683
|
-
var linkUrlId = getRandom(
|
|
2684
|
-
var linkBtnId = getRandom(
|
|
2680
|
+
var upTriggerId = getRandom("up-trigger");
|
|
2681
|
+
var upFileId = getRandom("up-file");
|
|
2682
|
+
var linkUrlId = getRandom("link-url");
|
|
2683
|
+
var linkBtnId = getRandom("link-btn");
|
|
2685
2684
|
|
|
2686
2685
|
// tabs 的配置
|
|
2687
2686
|
var tabsConfig = [{
|
|
2688
|
-
title:
|
|
2687
|
+
title: "上传图片",
|
|
2689
2688
|
tpl: '<div class="w-e-up-img-container">\n <div id="' + upTriggerId + '" class="w-e-up-btn">\n <i class="w-e-icon-upload2"></i>\n </div>\n <div style="display:none;">\n <input id="' + upFileId + '" type="file" multiple="multiple" accept="image/jpg,image/jpeg,image/png,image/gif,image/bmp"/>\n </div>\n </div>',
|
|
2690
2689
|
events: [{
|
|
2691
2690
|
// 触发选择图片
|
|
2692
|
-
selector:
|
|
2693
|
-
type:
|
|
2691
|
+
selector: "#" + upTriggerId,
|
|
2692
|
+
type: "click",
|
|
2694
2693
|
fn: function fn() {
|
|
2695
|
-
var $file = $(
|
|
2694
|
+
var $file = $("#" + upFileId);
|
|
2696
2695
|
var fileElem = $file[0];
|
|
2697
2696
|
if (fileElem) {
|
|
2698
2697
|
fileElem.click();
|
|
@@ -2703,10 +2702,10 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2703
2702
|
}
|
|
2704
2703
|
}, {
|
|
2705
2704
|
// 选择图片完毕
|
|
2706
|
-
selector:
|
|
2707
|
-
type:
|
|
2705
|
+
selector: "#" + upFileId,
|
|
2706
|
+
type: "change",
|
|
2708
2707
|
fn: function fn() {
|
|
2709
|
-
var $file = $(
|
|
2708
|
+
var $file = $("#" + upFileId);
|
|
2710
2709
|
var fileElem = $file[0];
|
|
2711
2710
|
if (!fileElem) {
|
|
2712
2711
|
// 返回 true 可关闭 panel
|
|
@@ -2726,13 +2725,13 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2726
2725
|
},
|
|
2727
2726
|
// first tab end
|
|
2728
2727
|
{
|
|
2729
|
-
title:
|
|
2728
|
+
title: "网络图片",
|
|
2730
2729
|
tpl: '<div>\n <input id="' + linkUrlId + "\" type=\"text\" class=\"block\" placeholder=\"\u56FE\u7247\u94FE\u63A5\"/></td>\n <div class=\"w-e-button-container\">\n <button id=\"" + linkBtnId + "\" class=\"right\">\u63D2\u5165</button>\n </div>\n </div>",
|
|
2731
2730
|
events: [{
|
|
2732
|
-
selector:
|
|
2733
|
-
type:
|
|
2731
|
+
selector: "#" + linkBtnId,
|
|
2732
|
+
type: "click",
|
|
2734
2733
|
fn: function fn() {
|
|
2735
|
-
var $linkUrl = $(
|
|
2734
|
+
var $linkUrl = $("#" + linkUrlId);
|
|
2736
2735
|
var url = $linkUrl.val().trim();
|
|
2737
2736
|
var url = handleChangeContent($linkUrl.val().trim());
|
|
2738
2737
|
if (url) {
|
|
@@ -2774,16 +2773,16 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2774
2773
|
var $elem = this.$elem;
|
|
2775
2774
|
if (editor._selectedImg) {
|
|
2776
2775
|
this._active = true;
|
|
2777
|
-
$elem.addClass(
|
|
2776
|
+
$elem.addClass("w-e-active");
|
|
2778
2777
|
} else {
|
|
2779
2778
|
this._active = false;
|
|
2780
|
-
$elem.removeClass(
|
|
2779
|
+
$elem.removeClass("w-e-active");
|
|
2781
2780
|
}
|
|
2782
2781
|
}
|
|
2783
2782
|
};
|
|
2784
2783
|
|
|
2785
2784
|
/*
|
|
2786
|
-
|
|
2785
|
+
所有菜单的汇总
|
|
2787
2786
|
*/
|
|
2788
2787
|
|
|
2789
2788
|
// 存储菜单的构造函数
|
|
@@ -2810,7 +2809,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2810
2809
|
MenuConstructors.image = Image;
|
|
2811
2810
|
|
|
2812
2811
|
/*
|
|
2813
|
-
|
|
2812
|
+
菜单集合
|
|
2814
2813
|
*/
|
|
2815
2814
|
// 构造函数
|
|
2816
2815
|
function Menus(editor) {
|
|
@@ -2831,7 +2830,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2831
2830
|
// 根据配置信息,创建菜单
|
|
2832
2831
|
configMenus.forEach(function (menuKey) {
|
|
2833
2832
|
var MenuConstructor = MenuConstructors[menuKey];
|
|
2834
|
-
if (MenuConstructor && typeof MenuConstructor ===
|
|
2833
|
+
if (MenuConstructor && typeof MenuConstructor === "function") {
|
|
2835
2834
|
// 创建单个菜单
|
|
2836
2835
|
_this.menus[menuKey] = new MenuConstructor(editor);
|
|
2837
2836
|
}
|
|
@@ -2855,7 +2854,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2855
2854
|
var $elem = menu.$elem;
|
|
2856
2855
|
if ($elem) {
|
|
2857
2856
|
// 设置 z-index
|
|
2858
|
-
$elem.css(
|
|
2857
|
+
$elem.css("z-index", zIndex);
|
|
2859
2858
|
$toolbarElem.append($elem);
|
|
2860
2859
|
}
|
|
2861
2860
|
});
|
|
@@ -2874,8 +2873,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2874
2873
|
var panel = menu.panel;
|
|
2875
2874
|
|
|
2876
2875
|
// 点击类型,例如 bold
|
|
2877
|
-
if (type ===
|
|
2878
|
-
$elem.on(
|
|
2876
|
+
if (type === "click" && menu.onClick) {
|
|
2877
|
+
$elem.on("click", function (e) {
|
|
2879
2878
|
if (editor.selection.getRange() == null) {
|
|
2880
2879
|
return;
|
|
2881
2880
|
}
|
|
@@ -2884,8 +2883,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2884
2883
|
}
|
|
2885
2884
|
|
|
2886
2885
|
// 下拉框,例如 head
|
|
2887
|
-
if (type ===
|
|
2888
|
-
$elem.on(
|
|
2886
|
+
if (type === "droplist" && droplist) {
|
|
2887
|
+
$elem.on("mouseenter", function (e) {
|
|
2889
2888
|
if (editor.selection.getRange() == null) {
|
|
2890
2889
|
return;
|
|
2891
2890
|
}
|
|
@@ -2893,7 +2892,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2893
2892
|
droplist.showTimeoutId = setTimeout(function () {
|
|
2894
2893
|
droplist.show();
|
|
2895
2894
|
}, 200);
|
|
2896
|
-
}).on(
|
|
2895
|
+
}).on("mouseleave", function (e) {
|
|
2897
2896
|
// 隐藏
|
|
2898
2897
|
droplist.hideTimeoutId = setTimeout(function () {
|
|
2899
2898
|
droplist.hide();
|
|
@@ -2902,8 +2901,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2902
2901
|
}
|
|
2903
2902
|
|
|
2904
2903
|
// 弹框类型,例如 link
|
|
2905
|
-
if (type ===
|
|
2906
|
-
$elem.on(
|
|
2904
|
+
if (type === "panel" && menu.onClick) {
|
|
2905
|
+
$elem.on("click", function (e) {
|
|
2907
2906
|
e.stopPropagation();
|
|
2908
2907
|
if (editor.selection.getRange() == null) {
|
|
2909
2908
|
// return;
|
|
@@ -2929,7 +2928,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2929
2928
|
};
|
|
2930
2929
|
|
|
2931
2930
|
/*
|
|
2932
|
-
|
|
2931
|
+
粘贴信息的处理
|
|
2933
2932
|
*/
|
|
2934
2933
|
|
|
2935
2934
|
// 获取粘贴的纯文本
|
|
@@ -2937,9 +2936,9 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2937
2936
|
var clipboardData = e.clipboardData || e.originalEvent && e.originalEvent.clipboardData;
|
|
2938
2937
|
var pasteText = void 0;
|
|
2939
2938
|
if (clipboardData == null) {
|
|
2940
|
-
pasteText = window.clipboardData && window.clipboardData.getData(
|
|
2939
|
+
pasteText = window.clipboardData && window.clipboardData.getData("text");
|
|
2941
2940
|
} else {
|
|
2942
|
-
pasteText = clipboardData.getData(
|
|
2941
|
+
pasteText = clipboardData.getData("text/plain");
|
|
2943
2942
|
}
|
|
2944
2943
|
return replaceHtmlSymbol(pasteText);
|
|
2945
2944
|
}
|
|
@@ -2950,40 +2949,40 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
2950
2949
|
var pasteText = void 0,
|
|
2951
2950
|
pasteHtml = void 0;
|
|
2952
2951
|
if (clipboardData == null) {
|
|
2953
|
-
pasteText = window.clipboardData && window.clipboardData.getData(
|
|
2952
|
+
pasteText = window.clipboardData && window.clipboardData.getData("text");
|
|
2954
2953
|
} else {
|
|
2955
|
-
pasteText = clipboardData.getData(
|
|
2956
|
-
pasteHtml = clipboardData.getData(
|
|
2954
|
+
pasteText = clipboardData.getData("text/plain");
|
|
2955
|
+
pasteHtml = clipboardData.getData("text/html");
|
|
2957
2956
|
}
|
|
2958
2957
|
if (!pasteHtml && pasteText) {
|
|
2959
|
-
pasteHtml =
|
|
2958
|
+
pasteHtml = "<p>" + replaceHtmlSymbol(pasteText) + "</p>";
|
|
2960
2959
|
}
|
|
2961
2960
|
if (!pasteHtml) {
|
|
2962
2961
|
return;
|
|
2963
2962
|
}
|
|
2964
2963
|
|
|
2965
2964
|
// 过滤word中状态过来的无用字符
|
|
2966
|
-
var docSplitHtml = pasteHtml.split(
|
|
2965
|
+
var docSplitHtml = pasteHtml.split("</html>");
|
|
2967
2966
|
if (docSplitHtml.length === 2) {
|
|
2968
2967
|
pasteHtml = docSplitHtml[0];
|
|
2969
2968
|
}
|
|
2970
2969
|
|
|
2971
2970
|
// 过滤无用标签
|
|
2972
|
-
pasteHtml = pasteHtml.replace(/<(meta|script|link).+?>/
|
|
2971
|
+
pasteHtml = pasteHtml.replace(/<(meta|script|link).+?>/gim, "");
|
|
2973
2972
|
// 去掉注释
|
|
2974
|
-
pasteHtml = pasteHtml.replace(/<!--.*?-->/
|
|
2973
|
+
pasteHtml = pasteHtml.replace(/<!--.*?-->/gm, "");
|
|
2975
2974
|
// 过滤 data-xxx 属性
|
|
2976
|
-
pasteHtml = pasteHtml.replace(/\s?data-.+?=('|").+?('|")/
|
|
2975
|
+
pasteHtml = pasteHtml.replace(/\s?data-.+?=('|").+?('|")/gim, "");
|
|
2977
2976
|
if (ignoreImg) {
|
|
2978
2977
|
// 忽略图片
|
|
2979
|
-
pasteHtml = pasteHtml.replace(/<img.+?>/
|
|
2978
|
+
pasteHtml = pasteHtml.replace(/<img.+?>/gim, "");
|
|
2980
2979
|
}
|
|
2981
2980
|
if (filterStyle) {
|
|
2982
2981
|
// 过滤样式
|
|
2983
|
-
pasteHtml = pasteHtml.replace(/\s?(class|style)=('|").*?('|")/
|
|
2982
|
+
pasteHtml = pasteHtml.replace(/\s?(class|style)=('|").*?('|")/gim, "");
|
|
2984
2983
|
} else {
|
|
2985
2984
|
// 保留样式
|
|
2986
|
-
pasteHtml = pasteHtml.replace(/\s?class=('|").*?('|")/
|
|
2985
|
+
pasteHtml = pasteHtml.replace(/\s?class=('|").*?('|")/gim, "");
|
|
2987
2986
|
}
|
|
2988
2987
|
return pasteHtml;
|
|
2989
2988
|
}
|
|
@@ -3011,7 +3010,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3011
3010
|
}
|
|
3012
3011
|
|
|
3013
3012
|
/*
|
|
3014
|
-
|
|
3013
|
+
编辑区域
|
|
3015
3014
|
*/
|
|
3016
3015
|
|
|
3017
3016
|
// 获取一个 elem.childNodes 的 JSON 数据
|
|
@@ -3069,7 +3068,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3069
3068
|
},
|
|
3070
3069
|
// 清空内容
|
|
3071
3070
|
clear: function clear() {
|
|
3072
|
-
this.html(
|
|
3071
|
+
this.html("<p><br></p>");
|
|
3073
3072
|
this.editor.updateClassName();
|
|
3074
3073
|
},
|
|
3075
3074
|
// 获取 设置 html
|
|
@@ -3080,7 +3079,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3080
3079
|
if (val == null) {
|
|
3081
3080
|
html = $textElem.html();
|
|
3082
3081
|
// 未选中任何内容的时候点击“加粗”或者“斜体”等按钮,就得需要一个空的占位符 ​ ,这里替换掉
|
|
3083
|
-
html = html.replace(/\u200b/gm,
|
|
3082
|
+
html = html.replace(/\u200b/gm, "");
|
|
3084
3083
|
return html;
|
|
3085
3084
|
} else {
|
|
3086
3085
|
// FIXED: 受控模式光标总是被初始化到最后
|
|
@@ -3112,10 +3111,10 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3112
3111
|
if (val == null) {
|
|
3113
3112
|
text = $textElem.text();
|
|
3114
3113
|
// 未选中任何内容的时候点击“加粗”或者“斜体”等按钮,就得需要一个空的占位符 ​ ,这里替换掉
|
|
3115
|
-
text = text.replace(/\u200b/gm,
|
|
3114
|
+
text = text.replace(/\u200b/gm, "");
|
|
3116
3115
|
return text;
|
|
3117
3116
|
} else {
|
|
3118
|
-
$textElem.text(
|
|
3117
|
+
$textElem.text("<p>" + val + "</p>");
|
|
3119
3118
|
|
|
3120
3119
|
// 初始化选取,将光标定位到内容尾部
|
|
3121
3120
|
editor.initSelection();
|
|
@@ -3168,15 +3167,15 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3168
3167
|
editor.menus.changeActive();
|
|
3169
3168
|
}
|
|
3170
3169
|
// 按键后保存
|
|
3171
|
-
$textElem.on(
|
|
3172
|
-
$textElem.on(
|
|
3170
|
+
$textElem.on("keyup", saveRange);
|
|
3171
|
+
$textElem.on("mousedown", function (e) {
|
|
3173
3172
|
// mousedown 状态下,鼠标滑动到编辑区域外面,也需要保存选区
|
|
3174
|
-
$textElem.on(
|
|
3173
|
+
$textElem.on("mouseleave", saveRange);
|
|
3175
3174
|
});
|
|
3176
|
-
$textElem.on(
|
|
3175
|
+
$textElem.on("mouseup", function (e) {
|
|
3177
3176
|
saveRange();
|
|
3178
3177
|
// 在编辑器区域之内完成点击,取消鼠标滑动到编辑区外面的事件
|
|
3179
|
-
$textElem.off(
|
|
3178
|
+
$textElem.off("mouseleave", saveRange);
|
|
3180
3179
|
});
|
|
3181
3180
|
},
|
|
3182
3181
|
// 按回车键时的特殊处理
|
|
@@ -3184,7 +3183,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3184
3183
|
var editor = this.editor;
|
|
3185
3184
|
var $textElem = editor.$textElem;
|
|
3186
3185
|
function insertEmptyP($selectionElem) {
|
|
3187
|
-
var $p = $(
|
|
3186
|
+
var $p = $("<p><br></p>");
|
|
3188
3187
|
$p.insertBefore($selectionElem);
|
|
3189
3188
|
editor.selection.createRangeByElem($p, true);
|
|
3190
3189
|
editor.selection.restoreSelection();
|
|
@@ -3195,7 +3194,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3195
3194
|
function pHandle(e) {
|
|
3196
3195
|
var $selectionElem = editor.selection.getSelectionContainerElem();
|
|
3197
3196
|
var $parentElem = $selectionElem.parent();
|
|
3198
|
-
if ($parentElem.html() ===
|
|
3197
|
+
if ($parentElem.html() === "<code><br></code>") {
|
|
3199
3198
|
// 回车之前光标所在一个 <p><code>.....</code></p> ,忽然回车生成一个空的 <p><code><br></code></p>
|
|
3200
3199
|
// 而且继续回车跳不出去,因此只能特殊处理
|
|
3201
3200
|
insertEmptyP($selectionElem);
|
|
@@ -3206,7 +3205,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3206
3205
|
return;
|
|
3207
3206
|
}
|
|
3208
3207
|
var nodeName = $selectionElem.getNodeName();
|
|
3209
|
-
if (nodeName ===
|
|
3208
|
+
if (nodeName === "P") {
|
|
3210
3209
|
// 当前的标签是 P ,不用做处理
|
|
3211
3210
|
return;
|
|
3212
3211
|
}
|
|
@@ -3218,7 +3217,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3218
3217
|
// 插入 <p> ,并将选取定位到 <p>,删除当前标签
|
|
3219
3218
|
insertEmptyP($selectionElem);
|
|
3220
3219
|
}
|
|
3221
|
-
$textElem.on(
|
|
3220
|
+
$textElem.on("keyup", function (e) {
|
|
3222
3221
|
if (e.keyCode !== 13) {
|
|
3223
3222
|
// 不是回车键
|
|
3224
3223
|
return;
|
|
@@ -3236,11 +3235,11 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3236
3235
|
var $parentElem = $selectionElem.parent();
|
|
3237
3236
|
var selectionNodeName = $selectionElem.getNodeName();
|
|
3238
3237
|
var parentNodeName = $parentElem.getNodeName();
|
|
3239
|
-
if (selectionNodeName !==
|
|
3238
|
+
if (selectionNodeName !== "CODE" || parentNodeName !== "PRE") {
|
|
3240
3239
|
// 不符合要求 忽略
|
|
3241
3240
|
return;
|
|
3242
3241
|
}
|
|
3243
|
-
if (!editor.cmd.queryCommandSupported(
|
|
3242
|
+
if (!editor.cmd.queryCommandSupported("insertHTML")) {
|
|
3244
3243
|
// 必须原生支持 insertHTML 命令
|
|
3245
3244
|
return;
|
|
3246
3245
|
}
|
|
@@ -3249,7 +3248,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3249
3248
|
if (editor._willBreakCode === true) {
|
|
3250
3249
|
// 此时可以跳出代码块
|
|
3251
3250
|
// 插入 <p> ,并将选取定位到 <p>
|
|
3252
|
-
var $p = $(
|
|
3251
|
+
var $p = $("<p><br></p>");
|
|
3253
3252
|
$p.insertAfter($parentElem);
|
|
3254
3253
|
editor.selection.createRangeByElem($p, true);
|
|
3255
3254
|
editor.selection.restoreSelection();
|
|
@@ -3262,11 +3261,11 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3262
3261
|
var _startOffset = editor.selection.getRange().startOffset;
|
|
3263
3262
|
|
|
3264
3263
|
// 处理:回车时,不能插入 <br> 而是插入 \n ,因为是在 pre 标签里面
|
|
3265
|
-
editor.cmd["do"](
|
|
3264
|
+
editor.cmd["do"]("insertHTML", "\n");
|
|
3266
3265
|
editor.selection.saveRange();
|
|
3267
3266
|
if (editor.selection.getRange().startOffset === _startOffset) {
|
|
3268
3267
|
// 没起作用,再来一遍
|
|
3269
|
-
editor.cmd["do"](
|
|
3268
|
+
editor.cmd["do"]("insertHTML", "\n");
|
|
3270
3269
|
}
|
|
3271
3270
|
var codeLength = $selectionElem.html().length;
|
|
3272
3271
|
if (editor.selection.getRange().startOffset + 1 === codeLength) {
|
|
@@ -3278,7 +3277,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3278
3277
|
// 阻止默认行为
|
|
3279
3278
|
e.preventDefault();
|
|
3280
3279
|
}
|
|
3281
|
-
$textElem.on(
|
|
3280
|
+
$textElem.on("keydown", function (e) {
|
|
3282
3281
|
// FIXED 通过选中内容点击删除达到的聚焦效果不触发聚焦事件
|
|
3283
3282
|
if (e.keyCode === 8 && !editor.isFocus) {
|
|
3284
3283
|
editor.isFocus = true;
|
|
@@ -3298,18 +3297,18 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3298
3297
|
_clearHandle: function _clearHandle() {
|
|
3299
3298
|
var editor = this.editor;
|
|
3300
3299
|
var $textElem = editor.$textElem;
|
|
3301
|
-
$textElem.on(
|
|
3300
|
+
$textElem.on("keydown", function (e) {
|
|
3302
3301
|
if (e.keyCode !== 8) {
|
|
3303
3302
|
return;
|
|
3304
3303
|
}
|
|
3305
3304
|
var txtHtml = $textElem.html().toLowerCase().trim();
|
|
3306
|
-
if (txtHtml ===
|
|
3305
|
+
if (txtHtml === "<p><br></p>") {
|
|
3307
3306
|
// 最后剩下一个空行,就不再删除了
|
|
3308
3307
|
e.preventDefault();
|
|
3309
3308
|
return;
|
|
3310
3309
|
}
|
|
3311
3310
|
});
|
|
3312
|
-
$textElem.on(
|
|
3311
|
+
$textElem.on("keyup", function (e) {
|
|
3313
3312
|
if (e.keyCode !== 8) {
|
|
3314
3313
|
return;
|
|
3315
3314
|
}
|
|
@@ -3317,10 +3316,10 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3317
3316
|
var txtHtml = $textElem.html().toLowerCase().trim();
|
|
3318
3317
|
|
|
3319
3318
|
// firefox 时用 txtHtml === '<br>' 判断,其他用 !txtHtml 判断
|
|
3320
|
-
if (!txtHtml || txtHtml ===
|
|
3319
|
+
if (!txtHtml || txtHtml === "<br>") {
|
|
3321
3320
|
// 内容空了
|
|
3322
|
-
$p = $(
|
|
3323
|
-
$textElem.html(
|
|
3321
|
+
$p = $("<p><br/></p>");
|
|
3322
|
+
$textElem.html(""); // 一定要先清空,否则在 firefox 下有问题
|
|
3324
3323
|
$textElem.append($p);
|
|
3325
3324
|
editor.selection.createRangeByElem($p, false, true);
|
|
3326
3325
|
editor.selection.restoreSelection();
|
|
@@ -3354,7 +3353,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3354
3353
|
}
|
|
3355
3354
|
|
|
3356
3355
|
// 粘贴文字
|
|
3357
|
-
$textElem.on(
|
|
3356
|
+
$textElem.on("paste", function (e) {
|
|
3358
3357
|
if (UA.isIE()) {
|
|
3359
3358
|
return;
|
|
3360
3359
|
} else {
|
|
@@ -3370,7 +3369,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3370
3369
|
// 获取粘贴的文字
|
|
3371
3370
|
var pasteHtml = getPasteHtml(e, pasteFilterStyle, ignoreImg);
|
|
3372
3371
|
var pasteText = getPasteText(e);
|
|
3373
|
-
pasteText = pasteText.replace(/\n/gm,
|
|
3372
|
+
pasteText = pasteText.replace(/\n/gm, "<br>");
|
|
3374
3373
|
var $selectionElem = editor.selection.getSelectionContainerElem();
|
|
3375
3374
|
if (!$selectionElem) {
|
|
3376
3375
|
return;
|
|
@@ -3378,12 +3377,12 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3378
3377
|
var nodeName = $selectionElem.getNodeName();
|
|
3379
3378
|
|
|
3380
3379
|
// code 中只能粘贴纯文本
|
|
3381
|
-
if (nodeName ===
|
|
3380
|
+
if (nodeName === "CODE" || nodeName === "PRE") {
|
|
3382
3381
|
if (pasteTextHandle && isFunction(pasteTextHandle)) {
|
|
3383
3382
|
// 用户自定义过滤处理粘贴内容
|
|
3384
|
-
pasteText =
|
|
3383
|
+
pasteText = "" + (pasteTextHandle(pasteText) || "");
|
|
3385
3384
|
}
|
|
3386
|
-
editor.cmd["do"](
|
|
3385
|
+
editor.cmd["do"]("insertHTML", "<p>" + pasteText + "</p>");
|
|
3387
3386
|
return;
|
|
3388
3387
|
}
|
|
3389
3388
|
|
|
@@ -3403,21 +3402,21 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3403
3402
|
// 因此执行 insertHTML 会报错
|
|
3404
3403
|
if (pasteTextHandle && isFunction(pasteTextHandle)) {
|
|
3405
3404
|
// 用户自定义过滤处理粘贴内容
|
|
3406
|
-
pasteHtml =
|
|
3405
|
+
pasteHtml = "" + (pasteTextHandle(pasteHtml) || "");
|
|
3407
3406
|
}
|
|
3408
|
-
editor.cmd["do"](
|
|
3407
|
+
editor.cmd["do"]("insertHTML", pasteHtml);
|
|
3409
3408
|
} catch (ex) {
|
|
3410
3409
|
// 此时使用 pasteText 来兼容一下
|
|
3411
3410
|
if (pasteTextHandle && isFunction(pasteTextHandle)) {
|
|
3412
3411
|
// 用户自定义过滤处理粘贴内容
|
|
3413
|
-
pasteText =
|
|
3412
|
+
pasteText = "" + (pasteTextHandle(pasteText) || "");
|
|
3414
3413
|
}
|
|
3415
|
-
editor.cmd["do"](
|
|
3414
|
+
editor.cmd["do"]("insertHTML", "<p>" + pasteText + "</p>");
|
|
3416
3415
|
}
|
|
3417
3416
|
});
|
|
3418
3417
|
|
|
3419
3418
|
// 粘贴图片
|
|
3420
|
-
$textElem.on(
|
|
3419
|
+
$textElem.on("paste", function (e) {
|
|
3421
3420
|
if (UA.isIE()) {
|
|
3422
3421
|
return;
|
|
3423
3422
|
} else {
|
|
@@ -3443,7 +3442,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3443
3442
|
var nodeName = $selectionElem.getNodeName();
|
|
3444
3443
|
|
|
3445
3444
|
// code 中粘贴忽略
|
|
3446
|
-
if (nodeName ===
|
|
3445
|
+
if (nodeName === "CODE" || nodeName === "PRE") {
|
|
3447
3446
|
return;
|
|
3448
3447
|
}
|
|
3449
3448
|
|
|
@@ -3456,11 +3455,11 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3456
3455
|
_tabHandle: function _tabHandle() {
|
|
3457
3456
|
var editor = this.editor;
|
|
3458
3457
|
var $textElem = editor.$textElem;
|
|
3459
|
-
$textElem.on(
|
|
3458
|
+
$textElem.on("keydown", function (e) {
|
|
3460
3459
|
if (e.keyCode !== 9) {
|
|
3461
3460
|
return;
|
|
3462
3461
|
}
|
|
3463
|
-
if (!editor.cmd.queryCommandSupported(
|
|
3462
|
+
if (!editor.cmd.queryCommandSupported("insertHTML")) {
|
|
3464
3463
|
// 必须原生支持 insertHTML 命令
|
|
3465
3464
|
return;
|
|
3466
3465
|
}
|
|
@@ -3471,12 +3470,12 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3471
3470
|
var $parentElem = $selectionElem.parent();
|
|
3472
3471
|
var selectionNodeName = $selectionElem.getNodeName();
|
|
3473
3472
|
var parentNodeName = $parentElem.getNodeName();
|
|
3474
|
-
if (selectionNodeName ===
|
|
3473
|
+
if (selectionNodeName === "CODE" && parentNodeName === "PRE") {
|
|
3475
3474
|
// <pre><code> 里面
|
|
3476
|
-
editor.cmd["do"](
|
|
3475
|
+
editor.cmd["do"]("insertHTML", " ");
|
|
3477
3476
|
} else {
|
|
3478
3477
|
// 普通文字
|
|
3479
|
-
editor.cmd["do"](
|
|
3478
|
+
editor.cmd["do"]("insertHTML", " ");
|
|
3480
3479
|
}
|
|
3481
3480
|
e.preventDefault();
|
|
3482
3481
|
});
|
|
@@ -3487,10 +3486,10 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3487
3486
|
var $textElem = editor.$textElem;
|
|
3488
3487
|
|
|
3489
3488
|
// 为图片增加 selected 样式
|
|
3490
|
-
$textElem.on(
|
|
3489
|
+
$textElem.on("click", "img", function (e) {
|
|
3491
3490
|
var img = this;
|
|
3492
3491
|
var $img = $(img);
|
|
3493
|
-
if ($img.attr(
|
|
3492
|
+
if ($img.attr("data-w-e") === "1") {
|
|
3494
3493
|
// 是表情图片,忽略
|
|
3495
3494
|
return;
|
|
3496
3495
|
}
|
|
@@ -3504,8 +3503,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3504
3503
|
});
|
|
3505
3504
|
|
|
3506
3505
|
// 去掉图片的 selected 样式
|
|
3507
|
-
$textElem.on(
|
|
3508
|
-
if (e.target.matches(
|
|
3506
|
+
$textElem.on("click keyup", function (e) {
|
|
3507
|
+
if (e.target.matches("img")) {
|
|
3509
3508
|
// 点击的是图片,忽略
|
|
3510
3509
|
return;
|
|
3511
3510
|
}
|
|
@@ -3519,13 +3518,13 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3519
3518
|
|
|
3520
3519
|
// 禁用 document 拖拽事件
|
|
3521
3520
|
var $document = $(document);
|
|
3522
|
-
$document.on(
|
|
3521
|
+
$document.on("dragleave drop dragenter dragover", function (e) {
|
|
3523
3522
|
e.preventDefault();
|
|
3524
3523
|
});
|
|
3525
3524
|
|
|
3526
3525
|
// 添加编辑区域拖拽事件
|
|
3527
3526
|
var $textElem = editor.$textElem;
|
|
3528
|
-
$textElem.on(
|
|
3527
|
+
$textElem.on("drop", function (e) {
|
|
3529
3528
|
e.preventDefault();
|
|
3530
3529
|
var files = e.dataTransfer && e.dataTransfer.files;
|
|
3531
3530
|
if (!files || !files.length) {
|
|
@@ -3540,7 +3539,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3540
3539
|
};
|
|
3541
3540
|
|
|
3542
3541
|
/*
|
|
3543
|
-
|
|
3542
|
+
命令,封装 document.execCommand
|
|
3544
3543
|
*/
|
|
3545
3544
|
|
|
3546
3545
|
// 构造函数
|
|
@@ -3557,7 +3556,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3557
3556
|
|
|
3558
3557
|
// 使用 styleWithCSS
|
|
3559
3558
|
if (!editor._useStyleWithCSS) {
|
|
3560
|
-
document.execCommand(
|
|
3559
|
+
document.execCommand("styleWithCSS", null, true);
|
|
3561
3560
|
editor._useStyleWithCSS = true;
|
|
3562
3561
|
}
|
|
3563
3562
|
|
|
@@ -3570,7 +3569,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3570
3569
|
editor.selection.restoreSelection();
|
|
3571
3570
|
|
|
3572
3571
|
// 执行
|
|
3573
|
-
var _name =
|
|
3572
|
+
var _name = "_" + name;
|
|
3574
3573
|
if (this[_name]) {
|
|
3575
3574
|
// 有自定义事件
|
|
3576
3575
|
this[_name](value);
|
|
@@ -3596,9 +3595,9 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3596
3595
|
_insertHTML: function _insertHTML(html) {
|
|
3597
3596
|
var editor = this.editor;
|
|
3598
3597
|
var range = editor.selection.getRange();
|
|
3599
|
-
if (this.queryCommandSupported(
|
|
3598
|
+
if (this.queryCommandSupported("insertHTML")) {
|
|
3600
3599
|
// W3C
|
|
3601
|
-
this._execCommand(
|
|
3600
|
+
this._execCommand("insertHTML", html);
|
|
3602
3601
|
} else if (range.insertNode) {
|
|
3603
3602
|
// IE
|
|
3604
3603
|
range.deleteContents();
|
|
@@ -3636,7 +3635,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3636
3635
|
};
|
|
3637
3636
|
|
|
3638
3637
|
/*
|
|
3639
|
-
|
|
3638
|
+
selection range API
|
|
3640
3639
|
*/
|
|
3641
3640
|
|
|
3642
3641
|
// 构造函数
|
|
@@ -3674,7 +3673,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3674
3673
|
}
|
|
3675
3674
|
|
|
3676
3675
|
// 判断选区内容是否在不可编辑区域之内
|
|
3677
|
-
if ($containerElem.attr(
|
|
3676
|
+
if ($containerElem.attr("contenteditable") === "false" || $containerElem.parentUntil("[contenteditable=false]")) {
|
|
3678
3677
|
return;
|
|
3679
3678
|
}
|
|
3680
3679
|
var editor = this.editor;
|
|
@@ -3701,7 +3700,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3701
3700
|
if (range) {
|
|
3702
3701
|
return this._currentRange.toString();
|
|
3703
3702
|
} else {
|
|
3704
|
-
return
|
|
3703
|
+
return "";
|
|
3705
3704
|
}
|
|
3706
3705
|
},
|
|
3707
3706
|
// 选区的 $Elem
|
|
@@ -3764,14 +3763,14 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3764
3763
|
// 目前只支持 webkit 内核
|
|
3765
3764
|
if (UA.isWebkit()) {
|
|
3766
3765
|
// 插入 ​
|
|
3767
|
-
editor.cmd["do"](
|
|
3766
|
+
editor.cmd["do"]("insertHTML", "​");
|
|
3768
3767
|
// 修改 offset 位置
|
|
3769
3768
|
range.setEnd(range.endContainer, range.endOffset + 1);
|
|
3770
3769
|
// 存储
|
|
3771
3770
|
this.saveRange(range);
|
|
3772
3771
|
} else {
|
|
3773
|
-
$elem = $(
|
|
3774
|
-
editor.cmd["do"](
|
|
3772
|
+
$elem = $("<strong>​</strong>");
|
|
3773
|
+
editor.cmd["do"]("insertElem", $elem);
|
|
3775
3774
|
this.createRangeByElem($elem, true);
|
|
3776
3775
|
}
|
|
3777
3776
|
} catch (ex) {
|
|
@@ -3793,7 +3792,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3793
3792
|
} else {
|
|
3794
3793
|
range.selectNode(elem);
|
|
3795
3794
|
}
|
|
3796
|
-
if (typeof toStart ===
|
|
3795
|
+
if (typeof toStart === "boolean") {
|
|
3797
3796
|
range.collapse(toStart);
|
|
3798
3797
|
}
|
|
3799
3798
|
|
|
@@ -3803,7 +3802,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3803
3802
|
};
|
|
3804
3803
|
|
|
3805
3804
|
/*
|
|
3806
|
-
|
|
3805
|
+
上传进度条
|
|
3807
3806
|
*/
|
|
3808
3807
|
|
|
3809
3808
|
function Progress(editor) {
|
|
@@ -3838,7 +3837,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3838
3837
|
// 改变进度(节流,100ms 渲染一次)
|
|
3839
3838
|
if (Date.now() - this._time > 100) {
|
|
3840
3839
|
if (progress <= 1) {
|
|
3841
|
-
$bar.css(
|
|
3840
|
+
$bar.css("width", progress * 100 + "%");
|
|
3842
3841
|
this._time = Date.now();
|
|
3843
3842
|
}
|
|
3844
3843
|
}
|
|
@@ -3862,14 +3861,14 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3862
3861
|
this._isRender = false;
|
|
3863
3862
|
}
|
|
3864
3863
|
};
|
|
3865
|
-
var _typeof = typeof Symbol ===
|
|
3864
|
+
var _typeof = typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol" ? function (obj) {
|
|
3866
3865
|
return _typeof2(obj);
|
|
3867
3866
|
} : function (obj) {
|
|
3868
|
-
return obj && typeof Symbol ===
|
|
3867
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
|
|
3869
3868
|
};
|
|
3870
3869
|
|
|
3871
3870
|
/*
|
|
3872
|
-
|
|
3871
|
+
上传图片
|
|
3873
3872
|
*/
|
|
3874
3873
|
|
|
3875
3874
|
// 构造函数
|
|
@@ -3886,9 +3885,9 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3886
3885
|
var debug = editor.config.debug;
|
|
3887
3886
|
var customAlert = editor.config.customAlert;
|
|
3888
3887
|
if (debug) {
|
|
3889
|
-
throw new Error(
|
|
3888
|
+
throw new Error("wangEditor: " + (debugInfo || alertInfo));
|
|
3890
3889
|
} else {
|
|
3891
|
-
if (customAlert && typeof customAlert ===
|
|
3890
|
+
if (customAlert && typeof customAlert === "function") {
|
|
3892
3891
|
customAlert(alertInfo);
|
|
3893
3892
|
} else {
|
|
3894
3893
|
alert(alertInfo);
|
|
@@ -3907,21 +3906,21 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3907
3906
|
// 校验格式
|
|
3908
3907
|
var linkImgCheck = config.linkImgCheck;
|
|
3909
3908
|
var checkResult = void 0;
|
|
3910
|
-
if (linkImgCheck && typeof linkImgCheck ===
|
|
3909
|
+
if (linkImgCheck && typeof linkImgCheck === "function") {
|
|
3911
3910
|
checkResult = linkImgCheck(link);
|
|
3912
|
-
if (typeof checkResult ===
|
|
3911
|
+
if (typeof checkResult === "string") {
|
|
3913
3912
|
// 校验失败,提示信息
|
|
3914
3913
|
alert(checkResult);
|
|
3915
3914
|
return;
|
|
3916
3915
|
}
|
|
3917
3916
|
}
|
|
3918
|
-
editor.cmd["do"](
|
|
3917
|
+
editor.cmd["do"]("insertHTML", '<img src="' + handleChangeContent(link) + '" style="max-width:100%;"/>');
|
|
3919
3918
|
|
|
3920
3919
|
// 验证图片 url 是否有效,无效的话给出提示
|
|
3921
|
-
var img = document.createElement(
|
|
3920
|
+
var img = document.createElement("img");
|
|
3922
3921
|
img.onload = function () {
|
|
3923
3922
|
var callback = config.linkImgCallback;
|
|
3924
|
-
if (callback && typeof callback ===
|
|
3923
|
+
if (callback && typeof callback === "function") {
|
|
3925
3924
|
callback(link);
|
|
3926
3925
|
}
|
|
3927
3926
|
img = null;
|
|
@@ -3929,7 +3928,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3929
3928
|
img.onerror = function () {
|
|
3930
3929
|
img = null;
|
|
3931
3930
|
// 无法成功下载图片
|
|
3932
|
-
_this2._alert(
|
|
3931
|
+
_this2._alert("插入图片错误", "wangEditor: \u63D2\u5165\u56FE\u7247\u51FA\u9519\uFF0C\u56FE\u7247\u94FE\u63A5\u662F \"" + link + "\"\uFF0C\u4E0B\u8F7D\u8BE5\u94FE\u63A5\u5931\u8D25");
|
|
3933
3932
|
return;
|
|
3934
3933
|
};
|
|
3935
3934
|
img.onabort = function () {
|
|
@@ -3952,7 +3951,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3952
3951
|
var maxSize = config.uploadImgMaxSize;
|
|
3953
3952
|
var maxSizeM = maxSize / 1024 / 1024;
|
|
3954
3953
|
var maxLength = config.uploadImgMaxLength || 10000;
|
|
3955
|
-
var uploadFileName = config.uploadFileName ||
|
|
3954
|
+
var uploadFileName = config.uploadFileName || "";
|
|
3956
3955
|
var uploadImgParams = config.uploadImgParams || {};
|
|
3957
3956
|
var uploadImgParamsWithUrl = config.uploadImgParamsWithUrl;
|
|
3958
3957
|
var uploadImgHeaders = config.uploadImgHeaders || {};
|
|
@@ -3988,7 +3987,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3988
3987
|
}
|
|
3989
3988
|
if (maxSize < size) {
|
|
3990
3989
|
// 上传图片过大
|
|
3991
|
-
errInfo.push("\u3010" + name + "\u3011\u5927\u4E8E " + maxSizeM +
|
|
3990
|
+
errInfo.push("\u3010" + name + "\u3011\u5927\u4E8E " + maxSizeM + "M");
|
|
3992
3991
|
return;
|
|
3993
3992
|
}
|
|
3994
3993
|
|
|
@@ -3997,16 +3996,16 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
3997
3996
|
});
|
|
3998
3997
|
// 抛出验证信息
|
|
3999
3998
|
if (errInfo.length) {
|
|
4000
|
-
this._alert(
|
|
3999
|
+
this._alert("图片验证未通过: \n" + errInfo.join("\n"));
|
|
4001
4000
|
return;
|
|
4002
4001
|
}
|
|
4003
4002
|
if (resultFiles.length > maxLength) {
|
|
4004
|
-
this._alert(
|
|
4003
|
+
this._alert("一次最多上传" + maxLength + "张图片");
|
|
4005
4004
|
return;
|
|
4006
4005
|
}
|
|
4007
4006
|
|
|
4008
4007
|
// ------------------------------ 自定义上传 ------------------------------
|
|
4009
|
-
if (customUploadImg && typeof customUploadImg ===
|
|
4008
|
+
if (customUploadImg && typeof customUploadImg === "function") {
|
|
4010
4009
|
customUploadImg(resultFiles, this.insertLinkImg.bind(this));
|
|
4011
4010
|
|
|
4012
4011
|
// 阻止以下代码执行
|
|
@@ -4021,44 +4020,44 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4021
4020
|
});
|
|
4022
4021
|
|
|
4023
4022
|
// ------------------------------ 上传图片 ------------------------------
|
|
4024
|
-
if (uploadImgServer && typeof uploadImgServer ===
|
|
4023
|
+
if (uploadImgServer && typeof uploadImgServer === "string") {
|
|
4025
4024
|
// 添加参数
|
|
4026
|
-
var uploadImgServerArr = uploadImgServer.split(
|
|
4025
|
+
var uploadImgServerArr = uploadImgServer.split("#");
|
|
4027
4026
|
uploadImgServer = uploadImgServerArr[0];
|
|
4028
|
-
var uploadImgServerHash = uploadImgServerArr[1] ||
|
|
4027
|
+
var uploadImgServerHash = uploadImgServerArr[1] || "";
|
|
4029
4028
|
objForEach(uploadImgParams, function (key, val) {
|
|
4030
4029
|
// 因使用者反应,自定义参数不能默认 encode ,由 v3.1.1 版本开始注释掉
|
|
4031
4030
|
// val = encodeURIComponent(val)
|
|
4032
4031
|
|
|
4033
4032
|
// 第一,将参数拼接到 url 中
|
|
4034
4033
|
if (uploadImgParamsWithUrl) {
|
|
4035
|
-
if (uploadImgServer.indexOf(
|
|
4036
|
-
uploadImgServer +=
|
|
4034
|
+
if (uploadImgServer.indexOf("?") > 0) {
|
|
4035
|
+
uploadImgServer += "&";
|
|
4037
4036
|
} else {
|
|
4038
|
-
uploadImgServer +=
|
|
4037
|
+
uploadImgServer += "?";
|
|
4039
4038
|
}
|
|
4040
|
-
uploadImgServer = uploadImgServer + key +
|
|
4039
|
+
uploadImgServer = uploadImgServer + key + "=" + val;
|
|
4041
4040
|
}
|
|
4042
4041
|
|
|
4043
4042
|
// 第二,将参数添加到 formdata 中
|
|
4044
4043
|
formdata.append(key, val);
|
|
4045
4044
|
});
|
|
4046
4045
|
if (uploadImgServerHash) {
|
|
4047
|
-
uploadImgServer +=
|
|
4046
|
+
uploadImgServer += "#" + uploadImgServerHash;
|
|
4048
4047
|
}
|
|
4049
4048
|
|
|
4050
4049
|
// 定义 xhr
|
|
4051
4050
|
var xhr = new XMLHttpRequest();
|
|
4052
|
-
xhr.open(
|
|
4051
|
+
xhr.open("POST", uploadImgServer);
|
|
4053
4052
|
|
|
4054
4053
|
// 设置超时
|
|
4055
4054
|
xhr.timeout = timeout;
|
|
4056
4055
|
xhr.ontimeout = function () {
|
|
4057
4056
|
// hook - timeout
|
|
4058
|
-
if (hooks.timeout && typeof hooks.timeout ===
|
|
4057
|
+
if (hooks.timeout && typeof hooks.timeout === "function") {
|
|
4059
4058
|
hooks.timeout(xhr, editor);
|
|
4060
4059
|
}
|
|
4061
|
-
_this3._alert(
|
|
4060
|
+
_this3._alert("上传图片超时");
|
|
4062
4061
|
};
|
|
4063
4062
|
|
|
4064
4063
|
// 监控 progress
|
|
@@ -4080,37 +4079,37 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4080
4079
|
if (xhr.readyState === 4) {
|
|
4081
4080
|
if (xhr.status < 200 || xhr.status >= 300) {
|
|
4082
4081
|
// hook - error
|
|
4083
|
-
if (hooks.error && typeof hooks.error ===
|
|
4082
|
+
if (hooks.error && typeof hooks.error === "function") {
|
|
4084
4083
|
hooks.error(xhr, editor);
|
|
4085
4084
|
}
|
|
4086
4085
|
|
|
4087
4086
|
// xhr 返回状态错误
|
|
4088
|
-
_this3._alert(
|
|
4087
|
+
_this3._alert("上传图片发生错误", "\u4E0A\u4F20\u56FE\u7247\u53D1\u751F\u9519\u8BEF\uFF0C\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001\u662F " + xhr.status);
|
|
4089
4088
|
return;
|
|
4090
4089
|
}
|
|
4091
4090
|
result = xhr.responseText;
|
|
4092
|
-
if ((typeof result ===
|
|
4091
|
+
if ((typeof result === "undefined" ? "undefined" : _typeof(result)) !== "object") {
|
|
4093
4092
|
try {
|
|
4094
4093
|
result = JSON.parse(result);
|
|
4095
4094
|
} catch (ex) {
|
|
4096
4095
|
// hook - fail
|
|
4097
|
-
if (hooks.fail && typeof hooks.fail ===
|
|
4096
|
+
if (hooks.fail && typeof hooks.fail === "function") {
|
|
4098
4097
|
hooks.fail(xhr, editor, result);
|
|
4099
4098
|
}
|
|
4100
|
-
_this3._alert(
|
|
4099
|
+
_this3._alert("上传图片失败", "上传图片返回结果错误,返回结果是: " + result);
|
|
4101
4100
|
return;
|
|
4102
4101
|
}
|
|
4103
4102
|
}
|
|
4104
|
-
if (!hooks.customInsert && result.errno !=
|
|
4103
|
+
if (!hooks.customInsert && result.errno != "0") {
|
|
4105
4104
|
// hook - fail
|
|
4106
|
-
if (hooks.fail && typeof hooks.fail ===
|
|
4105
|
+
if (hooks.fail && typeof hooks.fail === "function") {
|
|
4107
4106
|
hooks.fail(xhr, editor, result);
|
|
4108
4107
|
}
|
|
4109
4108
|
|
|
4110
4109
|
// 数据错误
|
|
4111
|
-
_this3._alert(
|
|
4110
|
+
_this3._alert("上传图片失败", "上传图片返回结果错误,返回结果 errno=" + result.errno);
|
|
4112
4111
|
} else {
|
|
4113
|
-
if (hooks.customInsert && typeof hooks.customInsert ===
|
|
4112
|
+
if (hooks.customInsert && typeof hooks.customInsert === "function") {
|
|
4114
4113
|
// 使用者自定义插入方法
|
|
4115
4114
|
hooks.customInsert(_this3.insertLinkImg.bind(_this3), result, editor);
|
|
4116
4115
|
} else {
|
|
@@ -4122,7 +4121,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4122
4121
|
}
|
|
4123
4122
|
|
|
4124
4123
|
// hook - success
|
|
4125
|
-
if (hooks.success && typeof hooks.success ===
|
|
4124
|
+
if (hooks.success && typeof hooks.success === "function") {
|
|
4126
4125
|
hooks.success(xhr, editor, result);
|
|
4127
4126
|
}
|
|
4128
4127
|
}
|
|
@@ -4130,9 +4129,9 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4130
4129
|
};
|
|
4131
4130
|
|
|
4132
4131
|
// hook - before
|
|
4133
|
-
if (hooks.before && typeof hooks.before ===
|
|
4132
|
+
if (hooks.before && typeof hooks.before === "function") {
|
|
4134
4133
|
var beforeResult = hooks.before(xhr, editor, resultFiles);
|
|
4135
|
-
if (beforeResult && (typeof beforeResult ===
|
|
4134
|
+
if (beforeResult && (typeof beforeResult === "undefined" ? "undefined" : _typeof(beforeResult)) === "object") {
|
|
4136
4135
|
if (beforeResult.prevent) {
|
|
4137
4136
|
// 如果返回的结果是 {prevent: true, msg: 'xxxx'} 则表示用户放弃上传
|
|
4138
4137
|
this._alert(beforeResult.msg);
|
|
@@ -4171,7 +4170,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4171
4170
|
};
|
|
4172
4171
|
|
|
4173
4172
|
/*
|
|
4174
|
-
|
|
4173
|
+
编辑器构造函数
|
|
4175
4174
|
*/
|
|
4176
4175
|
|
|
4177
4176
|
// id,累加
|
|
@@ -4181,10 +4180,10 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4181
4180
|
function Editor(toolbarSelector, textSelector) {
|
|
4182
4181
|
if (toolbarSelector == null) {
|
|
4183
4182
|
// 没有传入任何参数,报错
|
|
4184
|
-
throw new Error(
|
|
4183
|
+
throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");
|
|
4185
4184
|
}
|
|
4186
4185
|
// id,用以区分单个页面不同的编辑器对象
|
|
4187
|
-
this.id =
|
|
4186
|
+
this.id = "wangEditor-" + editorId++;
|
|
4188
4187
|
this.toolbarSelector = toolbarSelector;
|
|
4189
4188
|
this.textSelector = textSelector;
|
|
4190
4189
|
|
|
@@ -4208,7 +4207,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4208
4207
|
// key 即需要生成正则表达式的规则,如“插入链接”
|
|
4209
4208
|
// val 即需要被替换成的语言,如“insert link”
|
|
4210
4209
|
langArgs.push({
|
|
4211
|
-
reg: new RegExp(key,
|
|
4210
|
+
reg: new RegExp(key, "img"),
|
|
4212
4211
|
val: val
|
|
4213
4212
|
});
|
|
4214
4213
|
});
|
|
@@ -4220,10 +4219,10 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4220
4219
|
return;
|
|
4221
4220
|
}
|
|
4222
4221
|
var currentDom = this.$textElem[0];
|
|
4223
|
-
if (currentDom.innerHTML ===
|
|
4224
|
-
this.$textElem.addClass(
|
|
4222
|
+
if (currentDom.innerHTML === "<p><br></p>") {
|
|
4223
|
+
this.$textElem.addClass("w-e-show-placeholder");
|
|
4225
4224
|
} else {
|
|
4226
|
-
this.$textElem.removeClass(
|
|
4225
|
+
this.$textElem.removeClass("w-e-show-placeholder");
|
|
4227
4226
|
}
|
|
4228
4227
|
},
|
|
4229
4228
|
// 初始化 DOM
|
|
@@ -4243,8 +4242,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4243
4242
|
$toolTip = void 0;
|
|
4244
4243
|
if (textSelector == null) {
|
|
4245
4244
|
// 只传入一个参数,即是容器的选择器或元素,toolbar 和 text 的元素自行创建
|
|
4246
|
-
$toolbarElem = $(
|
|
4247
|
-
$textContainerElem = $(
|
|
4245
|
+
$toolbarElem = $("<div></div>");
|
|
4246
|
+
$textContainerElem = $("<div></div>");
|
|
4248
4247
|
|
|
4249
4248
|
// 将编辑器区域原有的内容,暂存起来
|
|
4250
4249
|
$children = $toolbarSelector.children();
|
|
@@ -4253,8 +4252,8 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4253
4252
|
$toolbarSelector.append($toolbarElem).append($textContainerElem);
|
|
4254
4253
|
|
|
4255
4254
|
// 自行创建的,需要配置默认的样式
|
|
4256
|
-
$toolbarElem.css(
|
|
4257
|
-
$textContainerElem.css(
|
|
4255
|
+
$toolbarElem.css("background-color", "#f1f1f1").css("border", "1px solid #ccc").css("flex-wrap", "wrap");
|
|
4256
|
+
$textContainerElem.css("border", "1px solid #ccc").css("border-top", "none").css("height", "300px");
|
|
4258
4257
|
} else {
|
|
4259
4258
|
// toolbar 和 text 的选择器都有值,记录属性
|
|
4260
4259
|
$toolbarElem = $toolbarSelector;
|
|
@@ -4264,34 +4263,34 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4264
4263
|
}
|
|
4265
4264
|
|
|
4266
4265
|
// 编辑区域
|
|
4267
|
-
$textElem = $(
|
|
4268
|
-
$textElem.attr(
|
|
4266
|
+
$textElem = $("<div></div>");
|
|
4267
|
+
$textElem.attr("contenteditable", "true").css("width", "100%").css("height", "100%");
|
|
4269
4268
|
|
|
4270
4269
|
// 初始化编辑区域内容
|
|
4271
4270
|
if ($children && $children.length) {
|
|
4272
4271
|
$textElem.append($children);
|
|
4273
4272
|
} else {
|
|
4274
|
-
$textElem.append($(
|
|
4273
|
+
$textElem.append($("<p><br></p>"));
|
|
4275
4274
|
}
|
|
4276
4275
|
|
|
4277
4276
|
// 编辑区域加入DOM
|
|
4278
4277
|
$textContainerElem.append($textElem);
|
|
4279
4278
|
|
|
4280
4279
|
// 设置通用的 class
|
|
4281
|
-
$toolbarElem.addClass(
|
|
4282
|
-
$textContainerElem.addClass(
|
|
4283
|
-
$textContainerElem.css(
|
|
4284
|
-
$textElem.addClass(
|
|
4280
|
+
$toolbarElem.addClass("w-e-toolbar");
|
|
4281
|
+
$textContainerElem.addClass("w-e-text-container");
|
|
4282
|
+
$textContainerElem.css("z-index", zIndex);
|
|
4283
|
+
$textElem.addClass("w-e-text");
|
|
4285
4284
|
|
|
4286
4285
|
// 添加 ID
|
|
4287
|
-
var toolbarElemId = getRandom(
|
|
4288
|
-
$toolbarElem.attr(
|
|
4289
|
-
var textElemId = getRandom(
|
|
4290
|
-
$textElem.attr(
|
|
4291
|
-
$textContainerElem.attr(
|
|
4286
|
+
var toolbarElemId = getRandom("toolbar-elem");
|
|
4287
|
+
$toolbarElem.attr("id", toolbarElemId);
|
|
4288
|
+
var textElemId = getRandom("text-elem");
|
|
4289
|
+
$textElem.attr("id", textElemId);
|
|
4290
|
+
$textContainerElem.attr("id", this.id);
|
|
4292
4291
|
|
|
4293
4292
|
// 添加 placeholder
|
|
4294
|
-
$textElem.attr(
|
|
4293
|
+
$textElem.attr("placeholder", this.config.placeholder);
|
|
4295
4294
|
|
|
4296
4295
|
// 记录属性
|
|
4297
4296
|
this.$toolbarElem = $toolbarElem;
|
|
@@ -4305,11 +4304,11 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4305
4304
|
|
|
4306
4305
|
// 记录输入法的开始和结束
|
|
4307
4306
|
var compositionEnd = true;
|
|
4308
|
-
$textContainerElem.on(
|
|
4307
|
+
$textContainerElem.on("compositionstart", function () {
|
|
4309
4308
|
// 输入法开始输入
|
|
4310
4309
|
compositionEnd = false;
|
|
4311
4310
|
});
|
|
4312
|
-
$textContainerElem.on(
|
|
4311
|
+
$textContainerElem.on("compositionend", function () {
|
|
4313
4312
|
// 输入法结束输入
|
|
4314
4313
|
compositionEnd = true;
|
|
4315
4314
|
|
|
@@ -4318,11 +4317,11 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4318
4317
|
});
|
|
4319
4318
|
|
|
4320
4319
|
// 绑定 onchange
|
|
4321
|
-
$textContainerElem.on(
|
|
4320
|
+
$textContainerElem.on("click keyup", function () {
|
|
4322
4321
|
// 输入法结束才出发 onchange
|
|
4323
4322
|
compositionEnd && _this.change && _this.change();
|
|
4324
4323
|
});
|
|
4325
|
-
$toolbarElem.on(
|
|
4324
|
+
$toolbarElem.on("click", function () {
|
|
4326
4325
|
this.change && this.change();
|
|
4327
4326
|
});
|
|
4328
4327
|
|
|
@@ -4331,18 +4330,18 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4331
4330
|
// 当前编辑器是否是焦点状态
|
|
4332
4331
|
this.isFocus = false;
|
|
4333
4332
|
var tab$focus = false;
|
|
4334
|
-
$(document).on(
|
|
4335
|
-
if (e.type ===
|
|
4336
|
-
tab$focus = e.keyCode ==
|
|
4333
|
+
$(document).on("keydown", function (e) {
|
|
4334
|
+
if (e.type === "keydown") {
|
|
4335
|
+
tab$focus = e.keyCode == "9" ? true : false;
|
|
4337
4336
|
}
|
|
4338
4337
|
});
|
|
4339
|
-
$(document).on(
|
|
4338
|
+
$(document).on("click focusin", function (e) {
|
|
4340
4339
|
var _e$target;
|
|
4341
|
-
if (tab$focus && e.type ==
|
|
4340
|
+
if (tab$focus && e.type == "focusin" && !(e !== null && e !== void 0 && (_e$target = e.target) !== null && _e$target !== void 0 && (_e$target = _e$target.className) !== null && _e$target !== void 0 && _e$target.includes("w-e-text"))) {
|
|
4342
4341
|
tab$focus = false;
|
|
4343
4342
|
return;
|
|
4344
4343
|
}
|
|
4345
|
-
if (!tab$focus && e.type ==
|
|
4344
|
+
if (!tab$focus && e.type == "focusin") {
|
|
4346
4345
|
return;
|
|
4347
4346
|
}
|
|
4348
4347
|
if (_this.isFocus) {
|
|
@@ -4369,7 +4368,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4369
4368
|
var $children = $textElem.children();
|
|
4370
4369
|
if ($children.length) {
|
|
4371
4370
|
var $last = $children.last();
|
|
4372
|
-
// disabled状态不初始化光标
|
|
4371
|
+
// disabled状态不初始化光标
|
|
4373
4372
|
if (_this.config.disabled) {
|
|
4374
4373
|
return;
|
|
4375
4374
|
}
|
|
@@ -4383,9 +4382,9 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4383
4382
|
_this.isFocus = true;
|
|
4384
4383
|
|
|
4385
4384
|
// a标签还需要做一些特殊的操作,不可编辑状态下直接在新的标签页中打开链接,可编辑状态下弹出toolTip
|
|
4386
|
-
if (e.target.tagName ===
|
|
4387
|
-
var disabled = _this.$textElem[0].getAttribute(
|
|
4388
|
-
if (disabled ===
|
|
4385
|
+
if (e.target.tagName === "A" && !e.target.classList.contains("knowledgeLinkDiv")) {
|
|
4386
|
+
var disabled = _this.$textElem[0].getAttribute("contenteditable");
|
|
4387
|
+
if (disabled === "false") {
|
|
4389
4388
|
return;
|
|
4390
4389
|
}
|
|
4391
4390
|
if (_this.toolTipVisible && _this.prevSelecteLink === e.target) return;
|
|
@@ -4397,38 +4396,38 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4397
4396
|
}
|
|
4398
4397
|
}
|
|
4399
4398
|
var currSelectedNodeRect = e.target.getBoundingClientRect();
|
|
4400
|
-
var rect = document.querySelector(
|
|
4399
|
+
var rect = document.querySelector("#" + _this.id).getBoundingClientRect();
|
|
4401
4400
|
var offsetX = (currSelectedNodeRect.x || currSelectedNodeRect.left) - (rect.x || rect.left) - 35 + currSelectedNodeRect.width / 2;
|
|
4402
4401
|
var offsetY = (currSelectedNodeRect.y || currSelectedNodeRect.top) - (rect.y || rect.top) - 32 - 22;
|
|
4403
|
-
var classDownData =
|
|
4404
|
-
var classUpData =
|
|
4402
|
+
var classDownData = "w-e-tooltip-down";
|
|
4403
|
+
var classUpData = "w-e-tooltip-up";
|
|
4405
4404
|
if (offsetX < 0) {
|
|
4406
4405
|
offsetX = 0;
|
|
4407
|
-
classDownData =
|
|
4408
|
-
classUpData =
|
|
4406
|
+
classDownData = "w-e-tooltip-down-left";
|
|
4407
|
+
classUpData = "w-e-tooltip-up-left";
|
|
4409
4408
|
}
|
|
4410
4409
|
if (offsetX > rect.width - 2 - 86 && rect.width) {
|
|
4411
4410
|
offsetX = rect.width - 2 - 86;
|
|
4412
|
-
classDownData =
|
|
4413
|
-
classUpData =
|
|
4411
|
+
classDownData = "w-e-tooltip-down-right";
|
|
4412
|
+
classUpData = "w-e-tooltip-up-right";
|
|
4414
4413
|
}
|
|
4415
4414
|
if (offsetY < 0) {
|
|
4416
4415
|
offsetY = (currSelectedNodeRect.y || currSelectedNodeRect.top) - (rect.y || rect.top) + 22;
|
|
4417
|
-
$toolTip = $('<div class="w-e-tooltip ' + classDownData + '" style="top: ' + offsetY +
|
|
4416
|
+
$toolTip = $('<div class="w-e-tooltip ' + classDownData + '" style="top: ' + offsetY + "px; left: " + offsetX + 'px; z-index:10001; "><div class="w-e-tooltip-item-wrapper "><span>查看链接</span></div><div class="w-e-tooltip-item-wrapper "><span>取消链接</span></div></div>');
|
|
4418
4417
|
} else {
|
|
4419
|
-
$toolTip = $('<div class="w-e-tooltip ' + classUpData + '" style="top: ' + offsetY +
|
|
4418
|
+
$toolTip = $('<div class="w-e-tooltip ' + classUpData + '" style="top: ' + offsetY + "px; left: " + offsetX + 'px; z-index:10001; "><div class="w-e-tooltip-item-wrapper "><span>查看链接</span></div><div class="w-e-tooltip-item-wrapper "><span>取消链接</span></div></div>');
|
|
4420
4419
|
}
|
|
4421
4420
|
_this.$textContainerElem[0].appendChild($toolTip[0]);
|
|
4422
4421
|
_this.$toolTip = $toolTip;
|
|
4423
4422
|
_this.toolTipVisible = true;
|
|
4424
4423
|
_this.prevSelecteLink = e.target;
|
|
4425
|
-
$($toolTip.find(
|
|
4424
|
+
$($toolTip.find("span")[0]).on("click", function () {
|
|
4426
4425
|
window.open(e.target.href);
|
|
4427
4426
|
});
|
|
4428
|
-
$($toolTip.find(
|
|
4427
|
+
$($toolTip.find("span")[1]).on("click", function () {
|
|
4429
4428
|
var text = e.target.innerText;
|
|
4430
4429
|
e.target.parentNode.removeChild(e.target);
|
|
4431
|
-
_this.cmd["do"](
|
|
4430
|
+
_this.cmd["do"]("insertHTML", "<span>" + handleChangeContent(text) + "</span>");
|
|
4432
4431
|
_this.change && _this.change();
|
|
4433
4432
|
_this.toolTipVisible = false;
|
|
4434
4433
|
var parentNode = _this.$toolTip[0].parentNode;
|
|
@@ -4478,7 +4477,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4478
4477
|
var $children = $textElem.children();
|
|
4479
4478
|
if (!$children.length) {
|
|
4480
4479
|
// 如果编辑器区域无内容,添加一个空行,重新设置选区
|
|
4481
|
-
$textElem.append($(
|
|
4480
|
+
$textElem.append($("<p><br></p>"));
|
|
4482
4481
|
this.initSelection();
|
|
4483
4482
|
return;
|
|
4484
4483
|
}
|
|
@@ -4487,15 +4486,15 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4487
4486
|
// 新增一个空行
|
|
4488
4487
|
var html = $last.html().toLowerCase();
|
|
4489
4488
|
var nodeName = $last.getNodeName();
|
|
4490
|
-
if (html !==
|
|
4489
|
+
if (html !== "<br>" && html !== "<br/>" || nodeName !== "P") {
|
|
4491
4490
|
// 最后一个元素不是 <p><br></p>,添加一个空行,重新设置选区
|
|
4492
|
-
$textElem.append($(
|
|
4491
|
+
$textElem.append($("<p><br></p>"));
|
|
4493
4492
|
this.initSelection();
|
|
4494
4493
|
return;
|
|
4495
4494
|
}
|
|
4496
4495
|
}
|
|
4497
4496
|
|
|
4498
|
-
// disabled状态不初始化光标
|
|
4497
|
+
// disabled状态不初始化光标
|
|
4499
4498
|
// FIXED 受控模式且每次初始化会丢失光标
|
|
4500
4499
|
if (this.config.disabled) {
|
|
4501
4500
|
return;
|
|
@@ -4522,7 +4521,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4522
4521
|
onchangeTimeout = 200;
|
|
4523
4522
|
}
|
|
4524
4523
|
var onchange = config$$1.onchange;
|
|
4525
|
-
if (onchange && typeof onchange ===
|
|
4524
|
+
if (onchange && typeof onchange === "function") {
|
|
4526
4525
|
// 触发 change 的有三个场景:
|
|
4527
4526
|
// 1. $textContainerElem.on('click keyup')
|
|
4528
4527
|
// 2. $toolbarElem.on('click')
|
|
@@ -4553,7 +4552,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4553
4552
|
|
|
4554
4553
|
// -------- 绑定 onblur 事件 --------
|
|
4555
4554
|
var onblur = config$$1.onblur;
|
|
4556
|
-
if (onblur && typeof onblur ===
|
|
4555
|
+
if (onblur && typeof onblur === "function") {
|
|
4557
4556
|
this.onblur = function () {
|
|
4558
4557
|
var currentHtml = this.txt.html();
|
|
4559
4558
|
onblur(currentHtml);
|
|
@@ -4562,7 +4561,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4562
4561
|
|
|
4563
4562
|
// -------- 绑定 onfocus 事件 --------
|
|
4564
4563
|
var onfocus = config$$1.onfocus;
|
|
4565
|
-
if (onfocus && typeof onfocus ===
|
|
4564
|
+
if (onfocus && typeof onfocus === "function") {
|
|
4566
4565
|
this.onfocus = function () {
|
|
4567
4566
|
onfocus();
|
|
4568
4567
|
};
|
|
@@ -4607,7 +4606,7 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4607
4606
|
try {
|
|
4608
4607
|
document;
|
|
4609
4608
|
} catch (ex) {
|
|
4610
|
-
throw new Error(
|
|
4609
|
+
throw new Error("请在浏览器环境下运行");
|
|
4611
4610
|
}
|
|
4612
4611
|
|
|
4613
4612
|
// polyfill
|
|
@@ -4617,10 +4616,10 @@ function _typeof2(o) { "@babel/helpers - typeof"; return _typeof2 = "function" =
|
|
|
4617
4616
|
var inlinecss = '.w-e-toolbar,.w-e-text-container,.w-e-menu-panel { padding: 0; margin: 0; box-sizing: border-box;}.w-e-toolbar *,.w-e-text-container *,.w-e-menu-panel * { padding: 0; margin: 0; box-sizing: border-box;}.w-e-clear-fix:after { content: ""; display: table; clear: both;}.w-e-toolbar .w-e-droplist { position: absolute; left: 0; top: 0; background-color: #fff; border: 1px solid #f1f1f1; border-right-color: #ccc; border-bottom-color: #ccc;}.w-e-droplist.w-e-droplist-left{transform: translateX(calc(-100% + 16px));}.w-e-droplist.w-e-droplist-center{transform: translateX(-50%);}.w-e-toolbar .w-e-droplist .w-e-dp-title { text-align: center; color: #999; line-height: 2; border-bottom: 1px solid #f1f1f1; font-size: 13px;}.w-e-toolbar .w-e-droplist ul.w-e-list { list-style: none; line-height: 1;}.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item { color: #333; padding: 5px 0;}.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover { background-color: #f1f1f1;}.w-e-toolbar .w-e-droplist ul.w-e-block { list-style: none; text-align: left; padding: 5px;}.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item { display: inline-block; *display: inline; *zoom: 1; padding: 3px 5px;}.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover { background-color: #f1f1f1;}@font-face { font-family: \'w-e-icon\'; src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABhQAAsAAAAAGAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPBGNtYXAAAAFoAAABBAAAAQQrSf4BZ2FzcAAAAmwAAAAIAAAACAAAABBnbHlmAAACdAAAEvAAABLwfpUWUWhlYWQAABVkAAAANgAAADYQp00kaGhlYQAAFZwAAAAkAAAAJAfEA+FobXR4AAAVwAAAAIQAAACEeAcD7GxvY2EAABZEAAAARAAAAERBSEX+bWF4cAAAFogAAAAgAAAAIAAsALZuYW1lAAAWqAAAAYYAAAGGmUoJ+3Bvc3QAABgwAAAAIAAAACAAAwAAAAMD3gGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAOgAAAA2ACAABAAWAAEAIOkG6Q3pEulH6Wbpd+m56bvpxunL6d/qDepc6l/qZepo6nHqefAN8BTxIPHc8fz//f//AAAAAAAg6QbpDekS6UfpZel36bnpu+nG6cvp3+oN6lzqX+pi6mjqcep38A3wFPEg8dzx/P/9//8AAf/jFv4W+Bb0FsAWoxaTFlIWURZHFkMWMBYDFbUVsxWxFa8VpxWiEA8QCQ7+DkMOJAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAACAAD/wAQAA8AABAATAAABNwEnAQMuAScTNwEjAQMlATUBBwGAgAHAQP5Anxc7MmOAAYDA/oDAAoABgP6ATgFAQAHAQP5A/p0yOxcBEU4BgP6A/YDAAYDA/oCAAAQAAAAABAADgAAQACEALQA0AAABOAExETgBMSE4ATEROAExITUhIgYVERQWMyEyNjURNCYjBxQGIyImNTQ2MzIWEyE1EwEzNwPA/IADgPyAGiYmGgOAGiYmGoA4KCg4OCgoOED9AOABAEDgA0D9AAMAQCYa/QAaJiYaAwAaJuAoODgoKDg4/biAAYD+wMAAAAIAAABABAADQAA4ADwAAAEmJy4BJyYjIgcOAQcGBwYHDgEHBhUUFx4BFxYXFhceARcWMzI3PgE3Njc2Nz4BNzY1NCcuAScmJwERDQED1TY4OXY8PT8/PTx2OTg2CwcICwMDAwMLCAcLNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBwv9qwFA/sADIAgGBggCAgICCAYGCCkqKlktLi8vLi1ZKiopCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKin94AGAwMAAAAAAAgDA/8ADQAPAABsAJwAAASIHDgEHBhUUFx4BFxYxMDc+ATc2NTQnLgEnJgMiJjU0NjMyFhUUBgIAQjs6VxkZMjJ4MjIyMngyMhkZVzo7QlBwcFBQcHADwBkZVzo7Qnh9fcxBQUFBzH19eEI7OlcZGf4AcFBQcHBQUHAAAAEAAAAABAADgAArAAABIgcOAQcGBycRISc+ATMyFx4BFxYVFAcOAQcGBxc2Nz4BNzY1NCcuAScmIwIANTIyXCkpI5YBgJA1i1BQRUZpHh4JCSIYGB5VKCAgLQwMKCiLXl1qA4AKCycbHCOW/oCQNDweHmlGRVArKClJICEaYCMrK2I2NjlqXV6LKCgAAQAAAAAEAAOAACoAABMUFx4BFxYXNyYnLgEnJjU0Nz4BNzYzMhYXByERByYnLgEnJiMiBw4BBwYADAwtICAoVR4YGCIJCR4eaUZFUFCLNZABgJYjKSlcMjI1al1eiygoAYA5NjZiKysjYBohIEkpKCtQRUZpHh48NJABgJYjHBsnCwooKIteXQAAAAACAAAAQAQBAwAAJgBNAAATMhceARcWFRQHDgEHBiMiJy4BJyY1JzQ3PgE3NjMVIgYHDgEHPgEhMhceARcWFRQHDgEHBiMiJy4BJyY1JzQ3PgE3NjMVIgYHDgEHPgHhLikpPRESEhE9KSkuLikpPRESASMjelJRXUB1LQkQBwgSAkkuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICABIRPSkpLi4pKT0REhIRPSkpLiBdUVJ6IyOAMC4IEwoCARIRPSkpLi4pKT0REhIRPSkpLiBdUVJ6IyOAMC4IEwoCAQAABgBA/8AEAAPAAAMABwALABEAHQApAAAlIRUhESEVIREhFSEnESM1IzUTFTMVIzU3NSM1MxUVESM1MzUjNTM1IzUBgAKA/YACgP2AAoD9gMBAQECAwICAwMCAgICAgIACAIACAIDA/wDAQP3yMkCSPDJAku7+wEBAQEBAAAYAAP/ABAADwAADAAcACwAXACMALwAAASEVIREhFSERIRUhATQ2MzIWFRQGIyImETQ2MzIWFRQGIyImETQ2MzIWFRQGIyImAYACgP2AAoD9gAKA/YD+gEs1NUtLNTVLSzU1S0s1NUtLNTVLSzU1SwOAgP8AgP8AgANANUtLNTVLS/61NUtLNTVLS/61NUtLNTVLSwADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAMAAP/ABAADwAAbADcAQwAAASIHDgEHBhUUFx4BFxYzMjc+ATc2NTQnLgEnJgMiJy4BJyY1NDc+ATc2MzIXHgEXFhUUBw4BBwYTBycHFwcXNxc3JzcCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMSqCgYKCgYKCgYKCgA8AoKIteXWpqXV6LKCgoKIteXWpqXV6LKCj8YCEgcUxMVlZMTHEgISEgcUxMVlZMTHEgIQKgoKBgoKBgoKBgoKAAAQBl/8ADmwPAACkAAAEiJiMiBw4BBwYVFBYzLgE1NDY3MAcGAgcGBxUhEzM3IzceATMyNjcOAQMgRGhGcVNUbRobSUgGDWVKEBBLPDxZAT1sxizXNC1VJi5QGB09A7AQHh1hPj9BTTsLJjeZbwN9fv7Fj5AjGQIAgPYJDzdrCQcAAAAAAgAAAAAEAAOAAAkAFwAAJTMHJzMRIzcXIyURJyMRMxUhNTMRIwcRA4CAoKCAgKCggP8AQMCA/oCAwEDAwMACAMDAwP8AgP1AQEACwIABAAADAMAAAANAA4AAFgAfACgAAAE+ATU0Jy4BJyYjIREhMjc+ATc2NTQmATMyFhUUBisBEyMRMzIWFRQGAsQcIBQURi4vNf7AAYA1Ly5GFBRE/oRlKjw8KWafn58sPj4B2yJULzUvLkYUFPyAFBRGLi81RnQBRks1NUv+gAEASzU1SwAAAAACAMAAAANAA4AAHwAjAAABMxEUBw4BBwYjIicuAScmNREzERQWFx4BMzI2Nz4BNQEhFSECwIAZGVc6O0JCOzpXGRmAGxgcSSgoSRwYG/4AAoD9gAOA/mA8NDVOFhcXFk41NDwBoP5gHjgXGBsbGBc4Hv6ggAAAAAABAIAAAAOAA4AACwAAARUjATMVITUzASM1A4CA/sCA/kCAAUCAA4BA/QBAQAMAQAABAAAAAAQAA4AAPQAAARUjHgEVFAYHDgEjIiYnLgE1MxQWMzI2NTQmIyE1IS4BJy4BNTQ2Nz4BMzIWFx4BFSM0JiMiBhUUFjMyFhcEAOsVFjUwLHE+PnEsMDWAck5OcnJO/gABLAIEATA1NTAscT4+cSwwNYByTk5yck47bisBwEAdQSI1YiQhJCQhJGI1NExMNDRMQAEDASRiNTViJCEkJCEkYjU0TEw0NEwhHwAAAAcAAP/ABAADwAADAAcACwAPABMAGwAjAAATMxUjNzMVIyUzFSM3MxUjJTMVIwMTIRMzEyETAQMhAyMDIQMAgIDAwMABAICAwMDAAQCAgBAQ/QAQIBACgBD9QBADABAgEP2AEAHAQEBAQEBAQEBAAkD+QAHA/oABgPwAAYD+gAFA/sAAAAoAAAAABAADgAADAAcACwAPABMAFwAbAB8AIwAnAAATESERATUhFR0BITUBFSE1IxUhNREhFSElIRUhETUhFQEhFSEhNSEVAAQA/YABAP8AAQD/AED/AAEA/wACgAEA/wABAPyAAQD/AAKAAQADgPyAA4D9wMDAQMDAAgDAwMDA/wDAwMABAMDA/sDAwMAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhESEVIREhFSERIRUhAAQA/AACgP2AAoD9gAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRchFSERIRUhAyEVIREhFSEABAD8AMACgP2AAoD9gMAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhBSEVIREhFSEBIRUhESEVIQAEAPwAAYACgP2AAoD9gP6ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAABAD8APwLmAuYALAAAJRQPAQYjIi8BBwYjIi8BJjU0PwEnJjU0PwE2MzIfATc2MzIfARYVFA8BFxYVAuYQThAXFxCoqBAXFhBOEBCoqBAQThAWFxCoqBAXFxBOEBCoqBDDFhBOEBCoqBAQThAWFxCoqBAXFxBOEBCoqBAQThAXFxCoqBAXAAAABgAAAAADJQNuABQAKAA8AE0AVQCCAAABERQHBisBIicmNRE0NzY7ATIXFhUzERQHBisBIicmNRE0NzY7ATIXFhcRFAcGKwEiJyY1ETQ3NjsBMhcWExEhERQXFhcWMyEyNzY3NjUBIScmJyMGBwUVFAcGKwERFAcGIyEiJyY1ESMiJyY9ATQ3NjsBNzY3NjsBMhcWHwEzMhcWFQElBgUIJAgFBgYFCCQIBQaSBQUIJQgFBQUFCCUIBQWSBQUIJQgFBQUFCCUIBQVJ/gAEBAUEAgHbAgQEBAT+gAEAGwQGtQYEAfcGBQg3Ghsm/iUmGxs3CAUFBQUIsSgIFxYXtxcWFgkosAgFBgIS/rcIBQUFBQgBSQgFBgYFCP63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgX+WwId/eMNCwoFBQUFCgsNAmZDBQICBVUkCAYF/eMwIiMhIi8CIAUGCCQIBQVgFQ8PDw8VYAUFCAACAAcASQO3Aq8AGgAuAAAJAQYjIi8BJjU0PwEnJjU0PwE2MzIXARYVFAcBFRQHBiMhIicmPQE0NzYzITIXFgFO/vYGBwgFHQYG4eEGBh0FCAcGAQoGBgJpBQUI/dsIBQUFBQgCJQgFBQGF/vYGBhwGCAcG4OEGBwcGHQUF/vUFCAcG/vslCAUFBQUIJQgFBQUFAAAAAQAjAAAD3QNuALMAACUiJyYjIgcGIyInJjU0NzY3Njc2NzY9ATQnJiMhIgcGHQEUFxYXFjMWFxYVFAcGIyInJiMiBwYjIicmNTQ3Njc2NzY3Nj0BETQ1NDU0JzQnJicmJyYnJicmIyInJjU0NzYzMhcWMzI3NjMyFxYVFAcGIwYHBgcGHQEUFxYzITI3Nj0BNCcmJyYnJjU0NzYzMhcWMzI3NjMyFxYVFAcGByIHBgcGFREUFxYXFhcyFxYVFAcGIwPBGTMyGhkyMxkNCAcJCg0MERAKEgEHFf5+FgcBFQkSEw4ODAsHBw4bNTUaGDExGA0HBwkJCwwQDwkSAQIBAgMEBAUIEhENDQoLBwcOGjU1GhgwMRgOBwcJCgwNEBAIFAEHDwGQDgcBFAoXFw8OBwcOGTMyGRkxMRkOBwcKCg0NEBEIFBQJEREODQoLBwcOAAICAgIMCw8RCQkBAQMDBQxE4AwFAwMFDNRRDQYBAgEICBIPDA0CAgICDAwOEQgJAQIDAwUNRSEB0AINDQgIDg4KCgsLBwcDBgEBCAgSDwwNAgICAg0MDxEICAECAQYMULYMBwEBBwy2UAwGAQEGBxYPDA0CAgICDQwPEQgIAQECBg1P/eZEDAYCAgEJCBEPDA0AAAIAAP+3A/8DtwATADkAAAEyFxYVFAcCBwYjIicmNTQ3ATYzARYXFh8BFgcGIyInJicmJyY1FhcWFxYXFjMyNzY3Njc2NzY3NjcDmygeHhq+TDdFSDQ0NQFtISn9+BcmJy8BAkxMe0c2NiEhEBEEExQQEBIRCRcIDxITFRUdHR4eKQO3GxooJDP+mUY0NTRJSTABSx/9sSsfHw0oek1MGhsuLzo6RAMPDgsLCgoWJRsaEREKCwQEAgABAAAAAAAA9evv618PPPUACwQAAAAAANbEBFgAAAAA1sQEWAAA/7cEAQPAAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAD//wQBAAEAAAAAAAAAAAAAAAAAAAAhBAAAAAAAAAAAAAAAAgAAAAQAAAAEAAAABAAAAAQAAMAEAAAABAAAAAQAAAAEAABABAAAAAQAAAAEAAAeBAAAAAQAAAAEAABlBAAAAAQAAMAEAADABAAAgAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBMAJQA+AE2AXwBwgI2AnQCvgLoA34EHgSIBMoE8gU0BXAFiAXgBiIGagaSBroG5AcoB+AIKgkcCXgAAQAAACEAtAAKAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=) format(\'truetype\'); font-weight: normal; font-style: normal;}[class^="w-e-icon-"],[class*=" w-e-icon-"] { /* use !important to prevent issues with browser extensions that change fonts */ font-family: \'w-e-icon\' !important; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;}.w-e-icon-close:before { content: "\\f00d";}.w-e-icon-upload2:before { content: "\\e9c6";}.w-e-icon-trash-o:before { content: "\\f014";}.w-e-icon-header:before { content: "\\f1dc";}.w-e-icon-pencil2:before { content: "\\e906";}.w-e-icon-paint-brush:before { content: "\\f1fc";}.w-e-icon-image:before { content: "\\e90d";}.w-e-icon-play:before { content: "\\e912";}.w-e-icon-location:before { content: "\\e947";}.w-e-icon-undo:before { content: "\\e965";}.w-e-icon-redo:before { content: "\\e966";}.w-e-icon-quotes-left:before { content: "\\e977";}.w-e-icon-list-numbered:before { content: "\\e9b9";}.w-e-icon-list2:before { content: "\\e9bb";}.w-e-icon-link:before { content: "\\e9cb";}.w-e-icon-happy:before { content: "\\e9df";}.w-e-icon-bold:before { content: "\\ea62";}.w-e-icon-underline:before { content: "\\ea63";}.w-e-icon-italic:before { content: "\\ea64";}.w-e-icon-strikethrough:before { content: "\\ea65";}.w-e-icon-table2:before { content: "\\ea71";}.w-e-icon-paragraph-left:before { content: "\\ea77";}.w-e-icon-paragraph-center:before { content: "\\ea78";}.w-e-icon-paragraph-right:before { content: "\\ea79";}.w-e-icon-terminal:before { content: "\\f120";}.w-e-icon-page-break:before { content: "\\ea68";}.w-e-icon-cancel-circle:before { content: "\\ea0d";}.w-e-icon-font:before { content: "\\ea5c";}.w-e-icon-text-heigh:before { content: "\\ea5f";}.w-e-toolbar { display: -webkit-box; display: -ms-flexbox; display: flex; padding: 0 5px; /* flex-wrap: wrap; */ /* 单个菜单 */}.w-e-toolbar .w-e-menu { position: relative; text-align: center; padding: 5px 10px; cursor: pointer;}.w-e-toolbar .w-e-menu i { color: #999;}.w-e-toolbar .w-e-menu:hover i { color: #333;}.w-e-toolbar .w-e-active i { color: #1e88e5;}.w-e-toolbar .w-e-active:hover i { color: #1e88e5;}.w-e-text-container .w-e-panel-container { position: absolute; top: 0; left: 50%; border: 1px solid #ccc; border-top: 0; box-shadow: 1px 1px 2px #ccc; color: #333; background-color: #fff; /* 为 emotion panel 定制的样式 */ /* 上传图片的 panel 定制样式 */}.w-e-text-container .w-e-panel-container .w-e-panel-close { position: absolute; right: 0; top: 0; padding: 5px; margin: 2px 5px 0 0; cursor: pointer; color: #999;}.w-e-text-container .w-e-panel-container .w-e-panel-close:hover { color: #333;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title { list-style: none; display: -webkit-box; display: -ms-flexbox; display: flex; font-size: 14px; margin: 2px 10px 0 10px; border-bottom: 1px solid #f1f1f1;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-item { padding: 3px 5px; color: #999; cursor: pointer; margin: 0 3px; position: relative; top: 1px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-active { color: #333; border-bottom: 1px solid #333; cursor: default; font-weight: 700;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content { padding: 10px 15px 10px 15px; font-size: 16px; /* 输入框的样式 */ /* 按钮的样式 */}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input:focus,.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus,.w-e-text-container .w-e-panel-container .w-e-panel-tab-content button:focus { outline: none;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea { width: 100%; border: 1px solid #ccc; padding: 5px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus { border-color: #1e88e5;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text] { border: none; border-bottom: 1px solid #ccc; font-size: 14px; height: 20px; color: #333; text-align: left;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].small { width: 30px; text-align: center;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].block { display: block; width: 100%; margin: 10px 0;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus { border-bottom: 2px solid #1e88e5;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button { font-size: 14px; color: #1e88e5; border: none; padding: 5px 10px; background-color: #fff; cursor: pointer; border-radius: 3px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left { float: left; margin-right: 10px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right { float: right; margin-left: 10px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray { color: #999;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red { color: #c24f4a;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover { background-color: #f1f1f1;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after { content: ""; display: table; clear: both;}.w-e-text-container .w-e-panel-container .w-e-emoticon-container .w-e-item { cursor: pointer; font-size: 18px; padding: 0 3px; display: inline-block; *display: inline; *zoom: 1;}.w-e-text-container .w-e-panel-container .w-e-up-img-container { text-align: center;}.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn { display: inline-block; *display: inline; *zoom: 1; color: #999; cursor: pointer; font-size: 60px; line-height: 1;}.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover { color: #333;}.w-e-text-container { position: relative;}.w-e-text-container .w-e-progress { position: absolute; background-color: #1e88e5; bottom: 0; left: 0; height: 1px;}.w-e-text { padding: 0 10px; overflow-y: scroll;}.w-e-text p,.w-e-text h1,.w-e-text h2,.w-e-text h3,.w-e-text h4,.w-e-text h5,.w-e-text table,.w-e-text pre { margin: 10px 0; line-height: 1.5;}.w-e-text ul,.w-e-text ol { margin: 10px 0 10px 20px;}.w-e-text blockquote { display: block; border-left: 8px solid #d0e5f2; padding: 5px 10px; margin: 10px 0; line-height: 1.4; font-size: 100%; background-color: #f1f1f1;}.w-e-text code { display: inline-block; *display: inline; *zoom: 1; background-color: #f1f1f1; border-radius: 3px; padding: 3px 5px; margin: 0 3px;}.w-e-text pre code { display: block;}.w-e-text table { border-top: 1px solid #ccc; border-left: 1px solid #ccc;}.w-e-text table td,.w-e-text table th { border-bottom: 1px solid #ccc; border-right: 1px solid #ccc; padding: 3px 5px;}.w-e-text table th { border-bottom: 2px solid #ccc; text-align: center;}.w-e-text:focus { outline: none;}.w-e-text img { cursor: pointer; display: block;}.w-e-text img:hover { box-shadow: 0 0 5px #333;}';
|
|
4618
4617
|
|
|
4619
4618
|
// 将 css 代码添加到 <style> 中
|
|
4620
|
-
var style = document.createElement(
|
|
4621
|
-
style.type =
|
|
4619
|
+
var style = document.createElement("style");
|
|
4620
|
+
style.type = "text/css";
|
|
4622
4621
|
style.innerHTML = inlinecss;
|
|
4623
|
-
document.getElementsByTagName(
|
|
4622
|
+
document.getElementsByTagName("HEAD").item(0).appendChild(style);
|
|
4624
4623
|
|
|
4625
4624
|
// 返回
|
|
4626
4625
|
var index = window.wangEditor || Editor;
|