@tendaui/react 1.1.1 → 1.1.3
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/es/_chunks/{dep-D7LanWes.js → dep-4LYjB3c6.js} +3 -18
- package/es/_chunks/dep-4LYjB3c6.js.map +1 -0
- package/es/_chunks/dep-5U9UjDaf.js +345 -0
- package/es/_chunks/dep-5U9UjDaf.js.map +1 -0
- package/es/_chunks/{dep-B7HmDtze.js → dep-B4_O1Vgv.js} +2 -2
- package/es/_chunks/{dep-B7HmDtze.js.map → dep-B4_O1Vgv.js.map} +1 -1
- package/es/_chunks/dep-BP0-apUT.js.map +1 -1
- package/es/_chunks/dep-BRbJGDI9.js +7 -0
- package/es/_chunks/dep-BRbJGDI9.js.map +1 -0
- package/es/_chunks/{dep-EcrDKDlu.js → dep-BYlJzn45.js} +10 -9
- package/es/_chunks/dep-BYlJzn45.js.map +1 -0
- package/es/_chunks/dep-BbeHB7S3.js +116 -0
- package/es/_chunks/dep-BbeHB7S3.js.map +1 -0
- package/es/_chunks/{dep-DB5wmwh1.js → dep-Bjfn7Zv_.js} +2 -2
- package/es/_chunks/{dep-DB5wmwh1.js.map → dep-Bjfn7Zv_.js.map} +1 -1
- package/es/_chunks/{dep-C36au4Ip.js → dep-BuIAffJt.js} +2 -2
- package/es/_chunks/{dep-C36au4Ip.js.map → dep-BuIAffJt.js.map} +1 -1
- package/es/_chunks/{dep-bWaVq_y3.js → dep-ByzdZjUR.js} +2 -2
- package/es/_chunks/dep-ByzdZjUR.js.map +1 -0
- package/es/_chunks/dep-CD_4-1Xb.js +103 -0
- package/es/_chunks/dep-CD_4-1Xb.js.map +1 -0
- package/es/_chunks/{dep-Dk2xX8lh.js → dep-CJCt0IS0.js} +5 -212
- package/es/_chunks/dep-CJCt0IS0.js.map +1 -0
- package/es/_chunks/dep-CMPsNAXF.js +52 -0
- package/es/_chunks/dep-CMPsNAXF.js.map +1 -0
- package/es/_chunks/dep-COy5g3FT.js +512 -0
- package/es/_chunks/dep-COy5g3FT.js.map +1 -0
- package/es/_chunks/{dep-CoIiHOgo.js → dep-CRURwzDj.js} +3 -3
- package/es/_chunks/{dep-CoIiHOgo.js.map → dep-CRURwzDj.js.map} +1 -1
- package/es/_chunks/dep-C_wPqvpm.js +36 -0
- package/es/_chunks/dep-C_wPqvpm.js.map +1 -0
- package/es/_chunks/dep-Ccktr_jk.js +33 -0
- package/es/_chunks/dep-Ccktr_jk.js.map +1 -0
- package/es/_chunks/dep-Chz4ZJCb.js +20 -0
- package/es/_chunks/dep-Chz4ZJCb.js.map +1 -0
- package/es/_chunks/dep-CkmtEv0Y.js +55 -0
- package/es/_chunks/dep-CkmtEv0Y.js.map +1 -0
- package/es/_chunks/dep-DJmE940f.js +764 -0
- package/es/_chunks/dep-DJmE940f.js.map +1 -0
- package/es/_chunks/{dep-DHWwZ2Nj.js → dep-DQ6kXoi8.js} +2 -2
- package/es/_chunks/{dep-DHWwZ2Nj.js.map → dep-DQ6kXoi8.js.map} +1 -1
- package/es/_chunks/{dep-0QH2Ee4R.js → dep-DRwijJcv.js} +5 -5
- package/es/_chunks/dep-DRwijJcv.js.map +1 -0
- package/es/_chunks/dep-DTlQ2dCA.js +46 -0
- package/es/_chunks/dep-DTlQ2dCA.js.map +1 -0
- package/es/_chunks/dep-DURB9x8g.js +170 -0
- package/es/_chunks/dep-DURB9x8g.js.map +1 -0
- package/es/_chunks/{dep-DZ_0EvBk.js → dep-DX65P8M9.js} +4 -45
- package/es/_chunks/dep-DX65P8M9.js.map +1 -0
- package/es/_chunks/{dep-BH5n5r1M.js → dep-DbVHGoUC.js} +2 -2
- package/es/_chunks/dep-DbVHGoUC.js.map +1 -0
- package/es/_chunks/dep-Dlppf0JU.js +214 -0
- package/es/_chunks/dep-Dlppf0JU.js.map +1 -0
- package/es/_chunks/dep-Dr5wkz0z.js +266 -0
- package/es/_chunks/dep-Dr5wkz0z.js.map +1 -0
- package/es/_chunks/dep-DwWrhxkd.js.map +1 -1
- package/es/_chunks/dep-Tshfumgl.js +31 -0
- package/es/_chunks/dep-Tshfumgl.js.map +1 -0
- package/es/_chunks/{dep-u1x3x6MJ.js → dep-gy8uvBaS.js} +2 -2
- package/es/_chunks/{dep-u1x3x6MJ.js.map → dep-gy8uvBaS.js.map} +1 -1
- package/es/_chunks/dep-oUgTcXgm.js +11 -0
- package/es/_chunks/dep-oUgTcXgm.js.map +1 -0
- package/es/_chunks/dep-zOZQ0R9g.js +1181 -0
- package/es/_chunks/dep-zOZQ0R9g.js.map +1 -0
- package/es/alert/Alert.d.ts +7 -0
- package/es/alert/Alert.js +4 -3
- package/es/alert/Alert.js.map +1 -1
- package/es/alert/defaultProps.d.ts +2 -0
- package/es/alert/index.d.ts +5 -0
- package/es/alert/index.js +4 -3
- package/es/alert/index.js.map +1 -1
- package/es/alert/style/css.d.ts +1 -0
- package/es/alert/style/index.d.ts +1 -0
- package/es/alert/type.d.ts +45 -0
- package/es/badge/Badge.d.ts +7 -0
- package/es/badge/Badge.js +3 -2
- package/es/badge/Badge.js.map +1 -1
- package/es/badge/defaultProps.d.ts +2 -0
- package/es/badge/index.d.ts +5 -0
- package/es/badge/index.js +3 -2
- package/es/badge/index.js.map +1 -1
- package/es/badge/style/css.d.ts +1 -0
- package/es/badge/style/index.d.ts +1 -0
- package/es/badge/type.d.ts +50 -0
- package/es/button/Button.d.ts +6 -0
- package/es/button/Button.js +7 -5
- package/es/button/Button.js.map +1 -1
- package/es/button/_example/base.js +171 -0
- package/es/button/_example/base.js.map +1 -0
- package/es/button/_example/icon.js +181 -0
- package/es/button/_example/icon.js.map +1 -0
- package/es/button/defaultProps.d.ts +2 -0
- package/es/button/index.d.ts +5 -0
- package/es/button/index.js +7 -5
- package/es/button/index.js.map +1 -1
- package/es/button/style/css.d.ts +1 -0
- package/es/button/style/index.d.ts +1 -0
- package/es/button/type.d.ts +81 -0
- package/es/checkbox/Checkbox.d.ts +10 -0
- package/es/checkbox/Checkbox.js +5 -4
- package/es/checkbox/Checkbox.js.map +1 -1
- package/es/checkbox/CheckboxGroup.d.ts +14 -0
- package/es/checkbox/CheckboxGroup.js +5 -4
- package/es/checkbox/CheckboxGroup.js.map +1 -1
- package/es/checkbox/defaultProps.d.ts +3 -0
- package/es/checkbox/index.d.ts +11 -0
- package/es/checkbox/index.js +5 -4
- package/es/checkbox/index.js.map +1 -1
- package/es/checkbox/style/css.d.ts +1 -0
- package/es/checkbox/style/index.d.ts +1 -0
- package/es/checkbox/type.d.ts +115 -0
- package/es/color-picker/ColorPickPanel.d.ts +4 -0
- package/es/color-picker/ColorPickPanel.js +44 -0
- package/es/color-picker/ColorPickPanel.js.map +1 -0
- package/es/color-picker/ColorPicker.d.ts +4 -0
- package/es/color-picker/ColorPicker.js +118 -0
- package/es/color-picker/ColorPicker.js.map +1 -0
- package/es/color-picker/components/panel/alpha.d.ts +4 -0
- package/es/color-picker/components/panel/alpha.js +44 -0
- package/es/color-picker/components/panel/alpha.js.map +1 -0
- package/es/color-picker/components/panel/format/index.d.ts +10 -0
- package/es/color-picker/components/panel/format/index.js +128 -0
- package/es/color-picker/components/panel/format/index.js.map +1 -0
- package/es/color-picker/components/panel/format/inputs.d.ts +4 -0
- package/es/color-picker/components/panel/format/inputs.js +147 -0
- package/es/color-picker/components/panel/format/inputs.js.map +1 -0
- package/es/color-picker/components/panel/header.d.ts +13 -0
- package/es/color-picker/components/panel/header.js +60 -0
- package/es/color-picker/components/panel/header.js.map +1 -0
- package/es/color-picker/components/panel/hue.d.ts +4 -0
- package/es/color-picker/components/panel/hue.js +33 -0
- package/es/color-picker/components/panel/hue.js.map +1 -0
- package/es/color-picker/components/panel/index.d.ts +4 -0
- package/es/color-picker/components/panel/index.js +32 -0
- package/es/color-picker/components/panel/index.js.map +1 -0
- package/es/color-picker/components/panel/saturation.d.ts +4 -0
- package/es/color-picker/components/panel/saturation.js +101 -0
- package/es/color-picker/components/panel/saturation.js.map +1 -0
- package/es/color-picker/components/panel/slider.d.ts +11 -0
- package/es/color-picker/components/panel/slider.js +121 -0
- package/es/color-picker/components/panel/slider.js.map +1 -0
- package/es/color-picker/components/panel/swatches.d.ts +11 -0
- package/es/color-picker/components/panel/swatches.js +100 -0
- package/es/color-picker/components/panel/swatches.js.map +1 -0
- package/es/color-picker/components/trigger.d.ts +9 -0
- package/es/color-picker/components/trigger.js +73 -0
- package/es/color-picker/components/trigger.js.map +1 -0
- package/es/color-picker/defaultProps.d.ts +2 -0
- package/es/color-picker/helpers.d.ts +5 -0
- package/es/color-picker/hooks/useClassNames.d.ts +2 -0
- package/es/color-picker/hooks/useStyles.d.ts +14 -0
- package/es/color-picker/index.d.ts +6 -0
- package/es/color-picker/index.js +62 -0
- package/es/color-picker/index.js.map +1 -0
- package/es/color-picker/style/index.css +597 -0
- package/es/color-picker/style/index.d.ts +1 -0
- package/es/color-picker/style/index.js +2 -0
- package/es/color-picker/style/index.js.map +1 -0
- package/es/color-picker/type.d.ts +135 -0
- package/es/color-picker/utils/color-picker/cmyk.d.ts +27 -0
- package/es/color-picker/utils/color-picker/color.d.ts +144 -0
- package/es/color-picker/utils/color-picker/constants.d.ts +30 -0
- package/es/color-picker/utils/color-picker/draggable.d.ts +23 -0
- package/es/color-picker/utils/color-picker/format.d.ts +64 -0
- package/es/color-picker/utils/color-picker/gradient.d.ts +22 -0
- package/es/color-picker/utils/color-picker/index.d.ts +7 -0
- package/es/color-picker/utils/color-picker/index.js +147 -0
- package/es/color-picker/utils/color-picker/index.js.map +1 -0
- package/es/color-picker/utils/color-picker/types.d.ts +28 -0
- package/es/common/Check.d.ts +22 -0
- package/es/common/Check.js +4 -3
- package/es/common/Check.js.map +1 -1
- package/es/common/FakeArrow.d.ts +9 -0
- package/es/common/FakeArrow.js +3 -2
- package/es/common/FakeArrow.js.map +1 -1
- package/es/common/PluginContainer.d.ts +9 -0
- package/es/common/PluginContainer.js +2 -1
- package/es/common/PluginContainer.js.map +1 -1
- package/es/common/Portal.d.ts +16 -0
- package/es/common/Portal.js +6 -3
- package/es/common/Portal.js.map +1 -1
- package/es/common/observe.d.ts +1 -0
- package/es/common.d.ts +81 -0
- package/es/config-provider/ConfigContext.d.ts +13 -0
- package/es/config-provider/ConfigContext.js +5 -16
- package/es/config-provider/ConfigContext.js.map +1 -1
- package/es/config-provider/ConfigProvider.d.ts +25 -0
- package/es/config-provider/ConfigProvider.js +2 -1
- package/es/config-provider/ConfigProvider.js.map +1 -1
- package/es/config-provider/index.d.ts +7 -0
- package/es/config-provider/index.js +2 -1
- package/es/config-provider/index.js.map +1 -1
- package/es/config-provider/type.d.ts +1029 -0
- package/es/dialog/Dialog.d.ts +8 -0
- package/es/dialog/Dialog.js +12 -149
- package/es/dialog/Dialog.js.map +1 -1
- package/es/dialog/DialogCard.d.ts +8 -0
- package/es/dialog/DialogCard.js +9 -7
- package/es/dialog/DialogCard.js.map +1 -1
- package/es/dialog/defaultProps.d.ts +6 -0
- package/es/dialog/hooks/useDialogDrag.d.ts +7 -0
- package/es/dialog/hooks/useDialogEsc.d.ts +3 -0
- package/es/dialog/hooks/useDialogPosition.d.ts +2 -0
- package/es/dialog/hooks/useLockStyle.d.ts +2 -0
- package/es/dialog/index.d.ts +8 -0
- package/es/dialog/index.js +12 -8
- package/es/dialog/index.js.map +1 -1
- package/es/dialog/plugin.d.ts +6 -0
- package/es/dialog/plugin.js +15 -10
- package/es/dialog/plugin.js.map +1 -1
- package/es/dialog/style/css.d.ts +1 -0
- package/es/dialog/style/index.d.ts +1 -0
- package/es/dialog/type.d.ts +227 -0
- package/es/dialog/utils.d.ts +1 -0
- package/es/drawer/Drawer.d.ts +11 -0
- package/es/drawer/Drawer.js +458 -0
- package/es/drawer/Drawer.js.map +1 -0
- package/es/drawer/defaultProps.d.ts +2 -0
- package/es/drawer/hooks/useDrag.d.ts +8 -0
- package/es/drawer/hooks/useLockStyle.d.ts +1 -0
- package/es/drawer/index.d.ts +4 -0
- package/es/drawer/index.js +39 -0
- package/es/drawer/index.js.map +1 -0
- package/es/drawer/style/css.d.ts +1 -0
- package/es/drawer/style/css.js +1 -0
- package/es/drawer/style/index.css +231 -0
- package/es/drawer/style/index.d.ts +1 -0
- package/es/drawer/style/index.js +2 -0
- package/es/drawer/style/index.js.map +1 -0
- package/es/drawer/type.d.ts +199 -0
- package/es/drawer/utils/index.d.ts +23 -0
- package/es/drawer/utils/index.js +46 -0
- package/es/drawer/utils/index.js.map +1 -0
- package/es/fireworks/Fireworks.d.ts +7 -0
- package/es/fireworks/Fireworks.js +139 -0
- package/es/fireworks/Fireworks.js.map +1 -0
- package/es/fireworks/index.d.ts +5 -0
- package/es/fireworks/index.js +16 -0
- package/es/fireworks/index.js.map +1 -0
- package/es/fireworks/style/css.d.ts +1 -0
- package/es/fireworks/style/css.js +2 -0
- package/es/fireworks/style/index.css +121 -0
- package/es/fireworks/style/index.d.ts +1 -0
- package/es/fireworks/style/index.js +2 -0
- package/es/fireworks/style/index.js.map +1 -0
- package/es/fireworks/type.d.ts +69 -0
- package/es/form/Form.d.ts +8 -0
- package/es/form/Form.js +14 -10
- package/es/form/Form.js.map +1 -1
- package/es/form/FormContext.d.ts +59 -0
- package/es/form/FormItem.d.ts +23 -0
- package/es/form/FormItem.js +14 -10
- package/es/form/FormItem.js.map +1 -1
- package/es/form/FormList.d.ts +4 -0
- package/es/form/FormList.js +2 -1
- package/es/form/FormList.js.map +1 -1
- package/es/form/const.d.ts +6 -0
- package/es/form/defaultProps.d.ts +3 -0
- package/es/form/easing.d.ts +2 -0
- package/es/form/formModel.d.ts +37 -0
- package/es/form/hooks/interface.d.ts +16 -0
- package/es/form/hooks/useForm.d.ts +3 -0
- package/es/form/hooks/useFormItemInitialData.d.ts +9 -0
- package/es/form/hooks/useFormItemStyle.d.ts +10 -0
- package/es/form/hooks/useFormItemStyle.js +4 -3
- package/es/form/hooks/useFormItemStyle.js.map +1 -1
- package/es/form/hooks/useInstance.d.ts +16 -0
- package/es/form/hooks/useInstance.js +5 -4
- package/es/form/hooks/useInstance.js.map +1 -1
- package/es/form/hooks/useWatch.d.ts +3 -0
- package/es/form/index.d.ts +7 -0
- package/es/form/index.js +14 -10
- package/es/form/index.js.map +1 -1
- package/es/form/scroll.d.ts +39 -0
- package/es/form/style/css.d.ts +1 -0
- package/es/form/style/index.d.ts +1 -0
- package/es/form/type.d.ts +486 -0
- package/es/form/utils/index.d.ts +5 -0
- package/es/global-config/default-config.d.ts +84 -0
- package/es/global-config/locale/ar_KW.d.ts +239 -0
- package/es/global-config/locale/en_US.d.ts +263 -0
- package/es/global-config/locale/it_IT.d.ts +263 -0
- package/es/global-config/locale/ja_JP.d.ts +263 -0
- package/es/global-config/locale/ko_KR.d.ts +263 -0
- package/es/global-config/locale/ru_RU.d.ts +263 -0
- package/es/global-config/locale/zh_CN.d.ts +263 -0
- package/es/global-config/locale/zh_TW.d.ts +263 -0
- package/es/global-config/mobile/default-config.d.ts +7 -0
- package/es/global-config/mobile/locale/ar_KW.d.ts +98 -0
- package/es/global-config/mobile/locale/en_US.d.ts +99 -0
- package/es/global-config/mobile/locale/it_IT.d.ts +99 -0
- package/es/global-config/mobile/locale/ja_JP.d.ts +99 -0
- package/es/global-config/mobile/locale/ko_KR.d.ts +99 -0
- package/es/global-config/mobile/locale/ru_RU.d.ts +99 -0
- package/es/global-config/mobile/locale/zh_CN.d.ts +99 -0
- package/es/global-config/mobile/locale/zh_TW.d.ts +99 -0
- package/es/global-config/t.d.ts +25 -0
- package/es/hooks/useAttach.d.ts +10 -0
- package/es/hooks/useCommonClassName.d.ts +54 -0
- package/es/hooks/useConfig.d.ts +2 -0
- package/es/hooks/useControlled.d.ts +9 -0
- package/es/hooks/useDeepEffect.d.ts +7 -0
- package/es/hooks/useDefaultProps.d.ts +1 -0
- package/es/hooks/useDomCallback.d.ts +1 -0
- package/es/hooks/useDomRefCallback.d.ts +1 -0
- package/es/hooks/useDragSorter.d.ts +28 -0
- package/es/hooks/useEventCallback.d.ts +9 -0
- package/es/hooks/useGlobalConfig.d.ts +1 -0
- package/es/hooks/useGlobalIcon.d.ts +5 -0
- package/es/hooks/useLastest.d.ts +2 -0
- package/es/hooks/useLayoutEffect.d.ts +3 -0
- package/es/hooks/useMouseEvent.d.ts +25 -0
- package/es/hooks/useMutationObserver.d.ts +4 -0
- package/es/hooks/usePopper.d.ts +19 -0
- package/es/hooks/useResizeObserve.d.ts +1 -0
- package/es/hooks/useRipple.d.ts +0 -0
- package/es/hooks/useSetState.d.ts +7 -0
- package/es/hooks/useVirtualScroll.d.ts +30 -0
- package/es/hooks/useWindowSize.d.ts +6 -0
- package/es/index.d.ts +25 -0
- package/es/index.js +68 -14
- package/es/index.js.map +1 -1
- package/es/input/Input.d.ts +16 -0
- package/es/input/Input.js +5 -5
- package/es/input/Input.js.map +1 -1
- package/es/input/InputGroup.d.ts +10 -0
- package/es/input/defaultProps.d.ts +17 -0
- package/es/input/index.d.ts +6 -0
- package/es/input/index.js +5 -3
- package/es/input/index.js.map +1 -1
- package/es/input/style/css.d.ts +1 -0
- package/es/input/style/index.d.ts +1 -0
- package/es/input/type.d.ts +237 -0
- package/es/input-number/InputNumber.d.ts +17 -0
- package/es/input-number/InputNumber.js +139 -0
- package/es/input-number/InputNumber.js.map +1 -0
- package/es/input-number/defaultProps.d.ts +2 -0
- package/es/input-number/index.d.ts +5 -0
- package/es/input-number/index.js +43 -0
- package/es/input-number/index.js.map +1 -0
- package/es/input-number/style/css.d.ts +1 -0
- package/es/input-number/style/css.js +1 -0
- package/es/input-number/style/index.css +331 -0
- package/es/input-number/style/index.d.ts +1 -0
- package/es/input-number/style/index.js +2 -0
- package/es/input-number/style/index.js.map +1 -0
- package/es/input-number/type.d.ts +156 -0
- package/es/input-number/useInputNumber.d.ts +51 -0
- package/es/input-number/useInputNumber.js +809 -0
- package/es/input-number/useInputNumber.js.map +1 -0
- package/es/ip-input/IPInput.d.ts +5 -0
- package/es/ip-input/IPInput.js +16 -0
- package/es/ip-input/IPInput.js.map +1 -0
- package/es/ip-input/defaultProps.d.ts +2 -0
- package/es/ip-input/index.d.ts +3 -0
- package/es/ip-input/index.js +16 -0
- package/es/ip-input/index.js.map +1 -0
- package/es/ip-input/style/index.css +323 -0
- package/es/ip-input/style/index.d.ts +1 -0
- package/es/ip-input/style/index.js +2 -0
- package/es/ip-input/style/index.js.map +1 -0
- package/es/ip-input/type.d.ts +113 -0
- package/es/ip-input/utils.d.ts +35 -0
- package/es/layout/Aside.d.ts +11 -0
- package/es/layout/Aside.js +41 -0
- package/es/layout/Aside.js.map +1 -0
- package/es/layout/Layout.d.ts +26 -0
- package/es/layout/Layout.js +106 -0
- package/es/layout/Layout.js.map +1 -0
- package/es/layout/defaultProps.d.ts +5 -0
- package/es/layout/index.d.ts +10 -0
- package/es/layout/index.js +19 -0
- package/es/layout/index.js.map +1 -0
- package/es/layout/style/index.css +56 -0
- package/es/layout/style/index.d.ts +1 -0
- package/es/layout/style/index.js +2 -0
- package/es/layout/style/index.js.map +1 -0
- package/es/layout/type.d.ts +38 -0
- package/es/list/List.d.ts +17 -0
- package/es/list/List.js +217 -0
- package/es/list/List.js.map +1 -0
- package/es/list/ListItem.d.ts +15 -0
- package/es/list/ListItem.js +31 -0
- package/es/list/ListItem.js.map +1 -0
- package/es/list/ListItemMeta.d.ts +10 -0
- package/es/list/ListItemMeta.js +45 -0
- package/es/list/ListItemMeta.js.map +1 -0
- package/es/list/defaultProps.d.ts +7 -0
- package/es/list/hooks/useListVirtualScroll.d.ts +24 -0
- package/es/list/index.d.ts +10 -0
- package/es/list/index.js +40 -0
- package/es/list/index.js.map +1 -0
- package/es/list/style/css.d.ts +1 -0
- package/es/list/style/css.js +1 -0
- package/es/list/style/index.css +172 -0
- package/es/list/style/index.d.ts +1 -0
- package/es/list/style/index.js +2 -0
- package/es/list/style/index.js.map +1 -0
- package/es/list/type.d.ts +92 -0
- package/es/loading/Gradient.d.ts +6 -0
- package/es/loading/Gradient.js +4 -3
- package/es/loading/Gradient.js.map +1 -1
- package/es/loading/Loading.d.ts +7 -0
- package/es/loading/Loading.js +7 -5
- package/es/loading/Loading.js.map +1 -1
- package/es/loading/circleAdapter.d.ts +1 -0
- package/es/loading/defaultProps.d.ts +2 -0
- package/es/loading/index.d.ts +5 -0
- package/es/loading/index.js +7 -5
- package/es/loading/index.js.map +1 -1
- package/es/loading/style/css.d.ts +1 -0
- package/es/loading/style/index.d.ts +1 -0
- package/es/loading/type.d.ts +68 -0
- package/es/loading/utils/setStyle.d.ts +7 -0
- package/es/locale/LocalReceiver.d.ts +6 -0
- package/es/locale/ar_KW.d.ts +3 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/it_IT.d.ts +3 -0
- package/es/locale/ja_JP.d.ts +3 -0
- package/es/locale/ko_KR.d.ts +3 -0
- package/es/locale/ru_RU.d.ts +3 -0
- package/es/locale/zh_CN.d.ts +3 -0
- package/es/locale/zh_TW.d.ts +3 -0
- package/es/myform/index.d.ts +0 -0
- package/es/notification/Notify.d.ts +11 -0
- package/es/notification/NotifyContainer.d.ts +13 -0
- package/es/notification/NotifyContainer.js +3 -2
- package/es/notification/NotifyContainer.js.map +1 -1
- package/es/notification/NotifyContext.d.ts +23 -0
- package/es/notification/NotifyContext.js +3 -2
- package/es/notification/NotifyContext.js.map +1 -1
- package/es/notification/NotifyItem.d.ts +4 -0
- package/es/notification/NotifyItem.js +3 -2
- package/es/notification/NotifyItem.js.map +1 -1
- package/es/notification/index.d.ts +3 -0
- package/es/notification/index.js +3 -2
- package/es/notification/index.js.map +1 -1
- package/es/notification/style/css.d.ts +1 -0
- package/es/notification/style/index.d.ts +1 -0
- package/es/notification/type.d.ts +22 -0
- package/es/popup/Popup.d.ts +21 -0
- package/es/popup/Popup.js +36 -100
- package/es/popup/Popup.js.map +1 -1
- package/es/popup/defaultProps.d.ts +5 -0
- package/es/popup/hooks/useTrigger.d.ts +20 -0
- package/es/popup/index.d.ts +5 -0
- package/es/popup/index.js +8 -4
- package/es/popup/index.js.map +1 -1
- package/es/popup/style/css.d.ts +1 -0
- package/es/popup/style/index.d.ts +1 -0
- package/es/popup/type.d.ts +109 -0
- package/es/portal/Portal.d.ts +16 -0
- package/es/portal/Portal.js +2 -1
- package/es/portal/Portal.js.map +1 -1
- package/es/portal/index.d.ts +1 -0
- package/es/portal/index.js +2 -1
- package/es/portal/index.js.map +1 -1
- package/es/radio/Radio.d.ts +8 -0
- package/es/radio/Radio.js +22 -0
- package/es/radio/Radio.js.map +1 -0
- package/es/radio/RadioGroup.d.ts +14 -0
- package/es/radio/RadioGroup.js +22 -0
- package/es/radio/RadioGroup.js.map +1 -0
- package/es/radio/defaultProps.d.ts +3 -0
- package/es/radio/index.d.ts +10 -0
- package/es/radio/index.js +28 -0
- package/es/radio/index.js.map +1 -0
- package/es/radio/style/css.d.ts +0 -0
- package/es/radio/style/css.js +0 -0
- package/es/radio/style/index.css +333 -0
- package/es/radio/style/index.d.ts +1 -0
- package/es/radio/style/index.js +2 -0
- package/es/radio/style/index.js.map +1 -0
- package/es/radio/type.d.ts +117 -0
- package/es/radio/useKeyboard.d.ts +4 -0
- package/es/select/Option.d.ts +24 -0
- package/es/select/Option.js +3 -2
- package/es/select/Option.js.map +1 -1
- package/es/select/OptionGroup.d.ts +7 -0
- package/es/select/OptionGroup.js +4 -3
- package/es/select/OptionGroup.js.map +1 -1
- package/es/select/PopupContent.d.ts +24 -0
- package/es/select/PopupContent.js +6 -4
- package/es/select/PopupContent.js.map +1 -1
- package/es/select/Select.d.ts +13 -0
- package/es/select/Select.js +21 -12
- package/es/select/Select.js.map +1 -1
- package/es/select/defaultProps.d.ts +4 -0
- package/es/select/hooks/useOptions.d.ts +16 -0
- package/es/select/hooks/usePanelVirtualScroll.d.ts +24 -0
- package/es/select/index.d.ts +8 -0
- package/es/select/index.js +14 -8
- package/es/select/index.js.map +1 -1
- package/es/select/style/css.d.ts +1 -0
- package/es/select/style/index.d.ts +1 -0
- package/es/select/type.d.ts +344 -0
- package/es/select/utils/helper.d.ts +18 -0
- package/es/select-input/SelectInput.d.ts +11 -0
- package/es/select-input/SelectInput.js +10 -5
- package/es/select-input/SelectInput.js.map +1 -1
- package/es/select-input/defaultProps.d.ts +2 -0
- package/es/select-input/hook/useMultiple.d.ts +23 -0
- package/es/select-input/hook/useMultiple.js +7 -4
- package/es/select-input/hook/useMultiple.js.map +1 -1
- package/es/select-input/hook/useOverlayInnerStyle.d.ts +11 -0
- package/es/select-input/hook/useSingle.d.ts +16 -0
- package/es/select-input/hook/useSingle.js +5 -3
- package/es/select-input/hook/useSingle.js.map +1 -1
- package/es/select-input/index.d.ts +5 -0
- package/es/select-input/index.js +10 -5
- package/es/select-input/index.js.map +1 -1
- package/es/select-input/interface.d.ts +17 -0
- package/es/select-input/style/css.d.ts +1 -0
- package/es/select-input/style/index.d.ts +1 -0
- package/es/select-input/type.d.ts +243 -0
- package/es/slider/Slider.d.ts +7 -0
- package/es/slider/Slider.js +668 -0
- package/es/slider/Slider.js.map +1 -0
- package/es/slider/SliderHandleButton.d.ts +11 -0
- package/es/slider/SliderHandleButton.js +48 -0
- package/es/slider/SliderHandleButton.js.map +1 -0
- package/es/slider/defaultProps.d.ts +5 -0
- package/es/slider/index.d.ts +5 -0
- package/es/slider/index.js +46 -0
- package/es/slider/index.js.map +1 -0
- package/es/slider/style/css.d.ts +1 -0
- package/es/slider/style/css.js +1 -0
- package/es/slider/style/index.css +252 -0
- package/es/slider/style/index.d.ts +1 -0
- package/es/slider/style/index.js +2 -0
- package/es/slider/style/index.js.map +1 -0
- package/es/slider/type.d.ts +78 -0
- package/es/space/defaultProps.d.ts +0 -0
- package/es/space/index.d.ts +0 -0
- package/es/space/type.d.ts +0 -0
- package/es/style/index.css +24 -34
- package/es/style/index.d.ts +1 -0
- package/es/switch/Switch.d.ts +9 -0
- package/es/switch/Switch.js +9 -47
- package/es/switch/Switch.js.map +1 -1
- package/es/switch/defaultProps.d.ts +2 -0
- package/es/switch/index.d.ts +4 -0
- package/es/switch/index.js +8 -5
- package/es/switch/index.js.map +1 -1
- package/es/switch/style/css.d.ts +1 -0
- package/es/switch/style/index.d.ts +1 -0
- package/es/switch/type.d.ts +48 -0
- package/es/tab/TabBar.d.ts +9 -0
- package/es/tab/TabBar.js +109 -0
- package/es/tab/TabBar.js.map +1 -0
- package/es/tab/TabNav.d.ts +10 -0
- package/es/tab/TabNav.js +123 -0
- package/es/tab/TabNav.js.map +1 -0
- package/es/tab/TabNavItem.d.ts +15 -0
- package/es/tab/TabNavItem.js +65 -0
- package/es/tab/TabNavItem.js.map +1 -0
- package/es/tab/TabPanel.d.ts +9 -0
- package/es/tab/TabPanel.js +11 -0
- package/es/tab/TabPanel.js.map +1 -0
- package/es/tab/Tabs.d.ts +10 -0
- package/es/tab/Tabs.js +95 -0
- package/es/tab/Tabs.js.map +1 -0
- package/es/tab/defaultProps.d.ts +3 -0
- package/es/tab/index.d.ts +8 -0
- package/es/tab/index.js +31 -0
- package/es/tab/index.js.map +1 -0
- package/es/tab/style/index.css +159 -0
- package/es/tab/style/index.d.ts +1 -0
- package/es/tab/style/index.js +2 -0
- package/es/tab/style/index.js.map +1 -0
- package/es/tab/type.d.ts +130 -0
- package/es/tab/useTabClass.d.ts +8 -0
- package/es/table/Cell.d.ts +18 -0
- package/es/table/Cell.js +73 -0
- package/es/table/Cell.js.map +1 -0
- package/es/table/TBody.d.ts +28 -0
- package/es/table/TBody.js +70 -0
- package/es/table/TBody.js.map +1 -0
- package/es/table/THead.d.ts +10 -0
- package/es/table/THead.js +56 -0
- package/es/table/THead.js.map +1 -0
- package/es/table/TR.d.ts +28 -0
- package/es/table/TR.js +76 -0
- package/es/table/TR.js.map +1 -0
- package/es/table/Table.d.ts +6 -0
- package/es/table/Table.js +98 -0
- package/es/table/Table.js.map +1 -0
- package/es/table/defaultProps.d.ts +2 -0
- package/es/table/hooks/index.d.ts +4 -0
- package/es/table/hooks/index.js +98 -0
- package/es/table/hooks/index.js.map +1 -0
- package/es/table/hooks/useTableClassName.d.ts +26 -0
- package/es/table/hooks/useTableStyle.d.ts +11 -0
- package/es/table/index.d.ts +5 -0
- package/es/table/index.js +22 -0
- package/es/table/index.js.map +1 -0
- package/es/table/style/css.d.ts +1 -0
- package/es/table/style/css.js +1 -0
- package/es/table/style/index.css +139 -0
- package/es/table/style/index.d.ts +1 -0
- package/es/table/style/index.js +2 -0
- package/es/table/style/index.js.map +1 -0
- package/es/table/type.d.ts +195 -0
- package/es/tag/Tag.d.ts +14 -0
- package/es/tag/Tag.js +5 -1182
- package/es/tag/Tag.js.map +1 -1
- package/es/tag/defaultProps.d.ts +7 -0
- package/es/tag/index.d.ts +4 -0
- package/es/tag/index.js +5 -3
- package/es/tag/index.js.map +1 -1
- package/es/tag/style/css.d.ts +1 -0
- package/es/tag/style/index.d.ts +1 -0
- package/es/tag/type.d.ts +169 -0
- package/es/tag-input/TagInput.d.ts +9 -0
- package/es/tag-input/TagInput.js +7 -4
- package/es/tag-input/TagInput.js.map +1 -1
- package/es/tag-input/defaultProps.d.ts +2 -0
- package/es/tag-input/hooks/useHover.d.ts +17 -0
- package/es/tag-input/hooks/useTagList.d.ts +30 -0
- package/es/tag-input/hooks/useTagList.js +5 -3
- package/es/tag-input/hooks/useTagList.js.map +1 -1
- package/es/tag-input/hooks/useTagScroll.d.ts +25 -0
- package/es/tag-input/index.d.ts +5 -0
- package/es/tag-input/index.js +7 -4
- package/es/tag-input/index.js.map +1 -1
- package/es/tag-input/style/css.d.ts +1 -0
- package/es/tag-input/style/index.d.ts +1 -0
- package/es/tag-input/type.d.ts +235 -0
- package/es/tag-input/useTagList.d.ts +30 -0
- package/es/tag-input/useTagList.js +5 -3
- package/es/tag-input/useTagList.js.map +1 -1
- package/es/utils/composeRefs.d.ts +2 -0
- package/es/utils/dom.d.ts +7 -0
- package/es/utils/forwardRefWithStatics.d.ts +2 -0
- package/es/utils/getScrollbarWidth.d.ts +6 -0
- package/es/utils/helper.d.ts +46 -0
- package/es/utils/input-number/large-number.d.ts +85 -0
- package/es/utils/input-number/number.d.ts +81 -0
- package/es/utils/isFragment.d.ts +4 -0
- package/es/utils/listener.d.ts +4 -0
- package/es/utils/log/index.d.ts +2 -0
- package/es/utils/log/index.js +27 -0
- package/es/utils/log/index.js.map +1 -0
- package/es/utils/log/log.d.ts +3 -0
- package/es/utils/log/types.d.ts +8 -0
- package/es/utils/noop.d.ts +2 -0
- package/es/utils/number.d.ts +7 -0
- package/es/utils/parentTNode.d.ts +10 -0
- package/es/utils/parseTNode.d.ts +10 -0
- package/es/utils/react-render.d.ts +16 -0
- package/es/utils/ref.d.ts +1 -0
- package/es/utils/refs.d.ts +13 -0
- package/es/utils/scroll.d.ts +3 -0
- package/es/utils/style.d.ts +4 -0
- package/es/utils/transition.d.ts +20 -0
- package/package.json +59 -59
- package/LICENSE +0 -21
- package/es/_chunks/dep-0QH2Ee4R.js.map +0 -1
- package/es/_chunks/dep-BH5n5r1M.js.map +0 -1
- package/es/_chunks/dep-D7LanWes.js.map +0 -1
- package/es/_chunks/dep-DZ_0EvBk.js.map +0 -1
- package/es/_chunks/dep-Dk2xX8lh.js.map +0 -1
- package/es/_chunks/dep-EcrDKDlu.js.map +0 -1
- package/es/_chunks/dep-bWaVq_y3.js.map +0 -1
|
@@ -0,0 +1,1029 @@
|
|
|
1
|
+
import { TNode, TElement, SizeEnum, AttachNode } from "../common";
|
|
2
|
+
import { ButtonProps } from "../button";
|
|
3
|
+
import Icon from "@tendaui/icons";
|
|
4
|
+
export interface TdConfigProviderProps {
|
|
5
|
+
/**
|
|
6
|
+
* 全局配置
|
|
7
|
+
*/
|
|
8
|
+
globalConfig?: GlobalConfigProvider;
|
|
9
|
+
}
|
|
10
|
+
export interface GlobalConfigProvider {
|
|
11
|
+
/**
|
|
12
|
+
* 警告全局配置
|
|
13
|
+
*/
|
|
14
|
+
alert?: AlertConfig;
|
|
15
|
+
/**
|
|
16
|
+
* 锚点全局配置
|
|
17
|
+
*/
|
|
18
|
+
anchor?: AnchorConfig;
|
|
19
|
+
/**
|
|
20
|
+
* 动画效果控制,`ripple` 指波纹动画, `expand` 指展开动画,`fade` 指渐变动画。默认为 `{ include: ['ripple','expand','fade'], exclude: [] }`
|
|
21
|
+
*/
|
|
22
|
+
animation?: Partial<Record<"include" | "exclude", Array<AnimationType>>>;
|
|
23
|
+
/**
|
|
24
|
+
* null
|
|
25
|
+
*/
|
|
26
|
+
attach?: AttachNode | {
|
|
27
|
+
imageViewer?: AttachNode;
|
|
28
|
+
popup?: AttachNode;
|
|
29
|
+
dialog?: AttachNode;
|
|
30
|
+
drawer?: AttachNode;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* 自动填充组件全局配置
|
|
34
|
+
*/
|
|
35
|
+
autoComplete?: AutoCompleteConfig;
|
|
36
|
+
/**
|
|
37
|
+
* 日历组件全局配置
|
|
38
|
+
*/
|
|
39
|
+
calendar?: CalendarConfig;
|
|
40
|
+
/**
|
|
41
|
+
* 级联选择器全局配置
|
|
42
|
+
*/
|
|
43
|
+
cascader?: CascaderConfig;
|
|
44
|
+
/**
|
|
45
|
+
* CSS 类名前缀
|
|
46
|
+
* @default t
|
|
47
|
+
*/
|
|
48
|
+
classPrefix?: string;
|
|
49
|
+
/**
|
|
50
|
+
* 颜色选择器全局配置
|
|
51
|
+
*/
|
|
52
|
+
colorPicker?: ColorPickerConfig;
|
|
53
|
+
/**
|
|
54
|
+
* 日期选择器全局配置
|
|
55
|
+
*/
|
|
56
|
+
datePicker?: DatePickerConfig;
|
|
57
|
+
/**
|
|
58
|
+
* 描述全局配置
|
|
59
|
+
*/
|
|
60
|
+
descriptions?: DescriptionsConfig;
|
|
61
|
+
/**
|
|
62
|
+
* 对话框全局配置
|
|
63
|
+
*/
|
|
64
|
+
dialog?: DialogConfig;
|
|
65
|
+
/**
|
|
66
|
+
* 抽屉全局配置
|
|
67
|
+
*/
|
|
68
|
+
drawer?: DrawerConfig;
|
|
69
|
+
/**
|
|
70
|
+
* 空状态全局配置
|
|
71
|
+
*/
|
|
72
|
+
empty?: EmptyConfig;
|
|
73
|
+
/**
|
|
74
|
+
* 表单组件全局配置
|
|
75
|
+
*/
|
|
76
|
+
form?: FormConfig;
|
|
77
|
+
/**
|
|
78
|
+
* 引导全局配置
|
|
79
|
+
*/
|
|
80
|
+
guide?: GuideConfig;
|
|
81
|
+
/**
|
|
82
|
+
* 图标全局配置
|
|
83
|
+
*/
|
|
84
|
+
icon?: Record<string, typeof Icon>;
|
|
85
|
+
/**
|
|
86
|
+
* 图片全局配置
|
|
87
|
+
*/
|
|
88
|
+
image?: ImageConfig;
|
|
89
|
+
/**
|
|
90
|
+
* 图片预览器全局配置
|
|
91
|
+
*/
|
|
92
|
+
imageViewer?: ImageViewerConfig;
|
|
93
|
+
/**
|
|
94
|
+
* 输入框组件全局配置
|
|
95
|
+
*/
|
|
96
|
+
input?: InputConfig;
|
|
97
|
+
/**
|
|
98
|
+
* 全局配置是否影响函数式调用方法使用的组件
|
|
99
|
+
* @default false
|
|
100
|
+
*/
|
|
101
|
+
isContextEffectPlugin?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* 列表组件全局配置
|
|
104
|
+
*/
|
|
105
|
+
list?: ListConfig;
|
|
106
|
+
/**
|
|
107
|
+
* 消息组件全局配置
|
|
108
|
+
*/
|
|
109
|
+
message?: MessageConfig;
|
|
110
|
+
/**
|
|
111
|
+
* 分页组件全局配置
|
|
112
|
+
*/
|
|
113
|
+
pagination?: PaginationConfig;
|
|
114
|
+
/**
|
|
115
|
+
* 气泡确认框全局配置
|
|
116
|
+
*/
|
|
117
|
+
popconfirm?: PopconfirmConfig;
|
|
118
|
+
/**
|
|
119
|
+
* 二维码全局配置
|
|
120
|
+
*/
|
|
121
|
+
qrcode?: QRCodeConfig;
|
|
122
|
+
/**
|
|
123
|
+
* 评分全局配置
|
|
124
|
+
*/
|
|
125
|
+
rate?: RateConfig;
|
|
126
|
+
/**
|
|
127
|
+
* 选择器组件全局配置
|
|
128
|
+
*/
|
|
129
|
+
select?: SelectConfig;
|
|
130
|
+
/**
|
|
131
|
+
* 步骤条组件全局配置
|
|
132
|
+
*/
|
|
133
|
+
steps?: StepsConfig;
|
|
134
|
+
/**
|
|
135
|
+
* 表格组件全局配置
|
|
136
|
+
*/
|
|
137
|
+
table?: TableConfig;
|
|
138
|
+
/**
|
|
139
|
+
* 标签全局配置
|
|
140
|
+
*/
|
|
141
|
+
tag?: TagConfig;
|
|
142
|
+
/**
|
|
143
|
+
* 时间选择器全局配置
|
|
144
|
+
*/
|
|
145
|
+
timePicker?: TimePickerConfig;
|
|
146
|
+
/**
|
|
147
|
+
* 穿梭框全局配置
|
|
148
|
+
*/
|
|
149
|
+
transfer?: TransferConfig;
|
|
150
|
+
/**
|
|
151
|
+
* 树组件全局配置
|
|
152
|
+
*/
|
|
153
|
+
tree?: TreeConfig;
|
|
154
|
+
/**
|
|
155
|
+
* 树选择器组件全局配置
|
|
156
|
+
*/
|
|
157
|
+
treeSelect?: TreeSelectConfig;
|
|
158
|
+
/**
|
|
159
|
+
* 排版组件全局配置
|
|
160
|
+
*/
|
|
161
|
+
typography?: TypographyConfig;
|
|
162
|
+
/**
|
|
163
|
+
* 上传组件全局配置
|
|
164
|
+
*/
|
|
165
|
+
upload?: UploadConfig;
|
|
166
|
+
}
|
|
167
|
+
export interface AlertConfig {
|
|
168
|
+
/**
|
|
169
|
+
* 语言配置,“收起”描述文本
|
|
170
|
+
* @default ''
|
|
171
|
+
*/
|
|
172
|
+
collapseText?: string;
|
|
173
|
+
/**
|
|
174
|
+
* 语言配置,“展开更多”描述文本
|
|
175
|
+
* @default ''
|
|
176
|
+
*/
|
|
177
|
+
expandText?: string;
|
|
178
|
+
}
|
|
179
|
+
export interface AnchorConfig {
|
|
180
|
+
/**
|
|
181
|
+
* 语言配置,“链接复制成功”描述文本
|
|
182
|
+
* @default ''
|
|
183
|
+
*/
|
|
184
|
+
copySuccessText?: string;
|
|
185
|
+
/**
|
|
186
|
+
* 语言配置,“复制链接” 描述文本
|
|
187
|
+
* @default ''
|
|
188
|
+
*/
|
|
189
|
+
copyText?: string;
|
|
190
|
+
}
|
|
191
|
+
export interface AutoCompleteConfig {
|
|
192
|
+
/**
|
|
193
|
+
* 语言配置,“暂无数据”描述文本
|
|
194
|
+
* @default ''
|
|
195
|
+
*/
|
|
196
|
+
empty?: string;
|
|
197
|
+
}
|
|
198
|
+
export interface CalendarConfig {
|
|
199
|
+
/**
|
|
200
|
+
* 语言配置,月份描述文本,示例:'一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月'
|
|
201
|
+
* @default ''
|
|
202
|
+
*/
|
|
203
|
+
cellMonth?: string;
|
|
204
|
+
/**
|
|
205
|
+
* 日历右上角控制器按钮配置
|
|
206
|
+
*/
|
|
207
|
+
controllerConfig?: Record<string, unknown>;
|
|
208
|
+
/**
|
|
209
|
+
* 当日期数字小于 10 时,是否使用 '0' 填充
|
|
210
|
+
* @default true
|
|
211
|
+
*/
|
|
212
|
+
fillWithZero?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* 第一天从星期几开始
|
|
215
|
+
* @default 1
|
|
216
|
+
*/
|
|
217
|
+
firstDayOfWeek?: number;
|
|
218
|
+
/**
|
|
219
|
+
* 语言配置,“隐藏周末”描述文本
|
|
220
|
+
* @default ''
|
|
221
|
+
*/
|
|
222
|
+
hideWeekend?: string;
|
|
223
|
+
/**
|
|
224
|
+
* 语言配置,模式切换时的“月”描述文本
|
|
225
|
+
* @default ''
|
|
226
|
+
*/
|
|
227
|
+
monthRadio?: string;
|
|
228
|
+
/**
|
|
229
|
+
* 语言配置,“月”选择描述文本。示例:`'{month} 月'`
|
|
230
|
+
*/
|
|
231
|
+
monthSelection?: string | ((data: {
|
|
232
|
+
month: number;
|
|
233
|
+
}) => string);
|
|
234
|
+
/**
|
|
235
|
+
* 语言配置,“显示周末”描述文本
|
|
236
|
+
* @default ''
|
|
237
|
+
*/
|
|
238
|
+
showWeekend?: string;
|
|
239
|
+
/**
|
|
240
|
+
* 语言配置,“本月”描述文本
|
|
241
|
+
* @default ''
|
|
242
|
+
*/
|
|
243
|
+
thisMonth?: string;
|
|
244
|
+
/**
|
|
245
|
+
* 语言配置,“今天”描述文本
|
|
246
|
+
* @default ''
|
|
247
|
+
*/
|
|
248
|
+
today?: string;
|
|
249
|
+
/**
|
|
250
|
+
* 语言配置,星期描述文本,示例:`'周一,周二,周三,周四,周五,周六,周日'`
|
|
251
|
+
* @default ''
|
|
252
|
+
*/
|
|
253
|
+
week?: string;
|
|
254
|
+
/**
|
|
255
|
+
* 语言配置,模式切换时的“年”描述文本
|
|
256
|
+
* @default ''
|
|
257
|
+
*/
|
|
258
|
+
yearRadio?: string;
|
|
259
|
+
/**
|
|
260
|
+
* 语言配置,“年”选择描述文本,示例:`'{year} 年'`
|
|
261
|
+
* @default ''
|
|
262
|
+
*/
|
|
263
|
+
yearSelection?: string;
|
|
264
|
+
}
|
|
265
|
+
export interface CascaderConfig {
|
|
266
|
+
/**
|
|
267
|
+
* 语言配置,“暂无数据”描述文本
|
|
268
|
+
* @default ''
|
|
269
|
+
*/
|
|
270
|
+
empty?: string;
|
|
271
|
+
/**
|
|
272
|
+
* 语言配置,“加载中”描述文本
|
|
273
|
+
* @default ''
|
|
274
|
+
*/
|
|
275
|
+
loadingText?: string;
|
|
276
|
+
/**
|
|
277
|
+
* 语言配置,“请选择”占位描述文本
|
|
278
|
+
* @default ''
|
|
279
|
+
*/
|
|
280
|
+
placeholder?: string;
|
|
281
|
+
}
|
|
282
|
+
export interface ColorPickerConfig {
|
|
283
|
+
/**
|
|
284
|
+
* 语言配置,“确定清空最近使用的颜色吗?”清空颜色确认文案
|
|
285
|
+
* @default ''
|
|
286
|
+
*/
|
|
287
|
+
clearConfirmText?: string;
|
|
288
|
+
/**
|
|
289
|
+
* 语言配置,“最近使用颜色” 区域标题文本
|
|
290
|
+
* @default ''
|
|
291
|
+
*/
|
|
292
|
+
recentColorTitle?: string;
|
|
293
|
+
/**
|
|
294
|
+
* 语言配置,“系统预设颜色” 区域标题文本
|
|
295
|
+
* @default ''
|
|
296
|
+
*/
|
|
297
|
+
swatchColorTitle?: string;
|
|
298
|
+
}
|
|
299
|
+
export interface DatePickerConfig {
|
|
300
|
+
/**
|
|
301
|
+
* 语言配置,“确定” 描述文本
|
|
302
|
+
* @default ''
|
|
303
|
+
*/
|
|
304
|
+
confirm?: string;
|
|
305
|
+
/**
|
|
306
|
+
* 语言配置,“日” 描述文本
|
|
307
|
+
* @default ''
|
|
308
|
+
*/
|
|
309
|
+
dayAriaLabel?: string;
|
|
310
|
+
/**
|
|
311
|
+
* dayjs 语言国际化配置
|
|
312
|
+
* @default ''
|
|
313
|
+
*/
|
|
314
|
+
dayjsLocale?: string;
|
|
315
|
+
/**
|
|
316
|
+
* 日期方向,'ltr' 表示从左往右
|
|
317
|
+
* @default 'ltr'
|
|
318
|
+
*/
|
|
319
|
+
direction?: string;
|
|
320
|
+
/**
|
|
321
|
+
* 第一天从星期几开始
|
|
322
|
+
* @default 7
|
|
323
|
+
*/
|
|
324
|
+
firstDayOfWeek?: number;
|
|
325
|
+
/**
|
|
326
|
+
* 日期格式化规则
|
|
327
|
+
* @default 'YYYY-MM-DD'
|
|
328
|
+
*/
|
|
329
|
+
format?: string;
|
|
330
|
+
/**
|
|
331
|
+
* 语言配置,“月” 描述文本
|
|
332
|
+
* @default ''
|
|
333
|
+
*/
|
|
334
|
+
monthAriaLabel?: string;
|
|
335
|
+
/**
|
|
336
|
+
* 月文本描述,默认值:['1 月', '2 月', '3 月', '4 月', '5 月', '6 月', '7 月', '8 月', '9 月', '10 月', '11 月', '12 月']
|
|
337
|
+
*/
|
|
338
|
+
months?: string[];
|
|
339
|
+
/**
|
|
340
|
+
* 语言配置,“下个十年” 描述文本
|
|
341
|
+
* @default ''
|
|
342
|
+
*/
|
|
343
|
+
nextDecade?: string;
|
|
344
|
+
/**
|
|
345
|
+
* 语言配置,“下个月” 描述文本
|
|
346
|
+
* @default ''
|
|
347
|
+
*/
|
|
348
|
+
nextMonth?: string;
|
|
349
|
+
/**
|
|
350
|
+
* 语言配置,“下一年” 描述文本
|
|
351
|
+
* @default ''
|
|
352
|
+
*/
|
|
353
|
+
nextYear?: string;
|
|
354
|
+
/**
|
|
355
|
+
* 语言配置,“此刻” 描述文本
|
|
356
|
+
* @default ''
|
|
357
|
+
*/
|
|
358
|
+
now?: string;
|
|
359
|
+
/**
|
|
360
|
+
* 占位符文本提示,默认值:`{ date: '请选择日期', month: '请选择月份', year: '请选择年份' }`
|
|
361
|
+
*/
|
|
362
|
+
placeholder?: {
|
|
363
|
+
date?: string;
|
|
364
|
+
month?: string;
|
|
365
|
+
year?: string;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* 语言配置,“上个十年” 描述文本
|
|
369
|
+
* @default ''
|
|
370
|
+
*/
|
|
371
|
+
preDecade?: string;
|
|
372
|
+
/**
|
|
373
|
+
* 语言配置,“上个月” 描述文本
|
|
374
|
+
* @default ''
|
|
375
|
+
*/
|
|
376
|
+
preMonth?: string;
|
|
377
|
+
/**
|
|
378
|
+
* 语言配置,“上一年” 描述文本
|
|
379
|
+
* @default ''
|
|
380
|
+
*/
|
|
381
|
+
preYear?: string;
|
|
382
|
+
/**
|
|
383
|
+
* 【暂不支持,讨论确认中】预设快捷日期选择,示例:`{ '元旦': '2021-01-01', '昨天': dayjs().subtract(1, 'day').format('YYYY-MM-DD'), '特定日期': () => ['2021-02-01'] }`
|
|
384
|
+
*/
|
|
385
|
+
presets?: ConfigPresetDate;
|
|
386
|
+
/**
|
|
387
|
+
* 季度文本描述,默认值:['1 季度', '2 季度', '3 季度', '4 季度']
|
|
388
|
+
*/
|
|
389
|
+
quarters?: string[];
|
|
390
|
+
/**
|
|
391
|
+
* 语言配置,“ 至 ” 范围分隔符描述文本,示例:' ~ '
|
|
392
|
+
* @default ''
|
|
393
|
+
*/
|
|
394
|
+
rangeSeparator?: string;
|
|
395
|
+
/**
|
|
396
|
+
* 语言配置,“选择日期” 描述文本
|
|
397
|
+
* @default ''
|
|
398
|
+
*/
|
|
399
|
+
selectDate?: string;
|
|
400
|
+
/**
|
|
401
|
+
* 语言配置,“选择时间” 描述文本
|
|
402
|
+
* @default ''
|
|
403
|
+
*/
|
|
404
|
+
selectTime?: string;
|
|
405
|
+
/**
|
|
406
|
+
* 语言配置,“周” 描述文本
|
|
407
|
+
* @default ''
|
|
408
|
+
*/
|
|
409
|
+
weekAbbreviation?: string;
|
|
410
|
+
/**
|
|
411
|
+
* 星期文本描述,默认值:['日', '一', '二', '三', '四', '五', '六']
|
|
412
|
+
*/
|
|
413
|
+
weekdays?: string[];
|
|
414
|
+
/**
|
|
415
|
+
* 语言配置,“年” 描述文本
|
|
416
|
+
* @default ''
|
|
417
|
+
*/
|
|
418
|
+
yearAriaLabel?: string;
|
|
419
|
+
}
|
|
420
|
+
export interface DescriptionsConfig {
|
|
421
|
+
/**
|
|
422
|
+
* 字段旁边的冒号,中文为“:”
|
|
423
|
+
* @default ''
|
|
424
|
+
*/
|
|
425
|
+
colonText?: string;
|
|
426
|
+
}
|
|
427
|
+
export interface DialogConfig {
|
|
428
|
+
/**
|
|
429
|
+
* 取消按钮风格
|
|
430
|
+
*/
|
|
431
|
+
cancel?: string | ButtonProps;
|
|
432
|
+
/**
|
|
433
|
+
* 按下 ESC 时是否触发对话框关闭事件
|
|
434
|
+
* @default true
|
|
435
|
+
*/
|
|
436
|
+
closeOnEscKeydown?: boolean;
|
|
437
|
+
/**
|
|
438
|
+
* 点击蒙层时是否触发关闭事件
|
|
439
|
+
* @default true
|
|
440
|
+
*/
|
|
441
|
+
closeOnOverlayClick?: boolean;
|
|
442
|
+
/**
|
|
443
|
+
* 确认按钮风格
|
|
444
|
+
*/
|
|
445
|
+
confirm?: string | ButtonProps;
|
|
446
|
+
/**
|
|
447
|
+
* 确认按钮主题色,即 Dialog 的 `theme` 和 确认按钮的 `theme` 映射关系。示例:{ danger: 'danger' }
|
|
448
|
+
*/
|
|
449
|
+
confirmBtnTheme?: {
|
|
450
|
+
default: string;
|
|
451
|
+
info: string;
|
|
452
|
+
warning: string;
|
|
453
|
+
danger: string;
|
|
454
|
+
success: string;
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
export interface DrawerConfig {
|
|
458
|
+
/**
|
|
459
|
+
* 语言配置,“取消”描述文本
|
|
460
|
+
* @default ''
|
|
461
|
+
*/
|
|
462
|
+
cancel?: string | ButtonProps;
|
|
463
|
+
/**
|
|
464
|
+
* 按下 ESC 时是否触发抽屉关闭事件
|
|
465
|
+
* @default true
|
|
466
|
+
*/
|
|
467
|
+
closeOnEscKeydown?: boolean;
|
|
468
|
+
/**
|
|
469
|
+
* 点击蒙层时是否触发关闭事件
|
|
470
|
+
* @default true
|
|
471
|
+
*/
|
|
472
|
+
closeOnOverlayClick?: boolean;
|
|
473
|
+
/**
|
|
474
|
+
* 语言配置,“确认”描述文本
|
|
475
|
+
* @default ''
|
|
476
|
+
*/
|
|
477
|
+
confirm?: string | ButtonProps;
|
|
478
|
+
/**
|
|
479
|
+
* 尺寸配置,配置Drawer尺寸
|
|
480
|
+
* @default 'small'
|
|
481
|
+
*/
|
|
482
|
+
size?: string;
|
|
483
|
+
}
|
|
484
|
+
export interface EmptyConfig {
|
|
485
|
+
/**
|
|
486
|
+
* 空状态组件各类型的图片配置
|
|
487
|
+
*/
|
|
488
|
+
image?: {
|
|
489
|
+
maintenance: TNode;
|
|
490
|
+
success: TNode;
|
|
491
|
+
fail: TNode;
|
|
492
|
+
empty: TNode;
|
|
493
|
+
networkError: TNode;
|
|
494
|
+
};
|
|
495
|
+
/**
|
|
496
|
+
* 空状态组件各类型的标题文本配置
|
|
497
|
+
*/
|
|
498
|
+
titleText?: {
|
|
499
|
+
maintenance: string;
|
|
500
|
+
success: string;
|
|
501
|
+
fail: string;
|
|
502
|
+
empty: string;
|
|
503
|
+
networkError: string;
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
export interface FormConfig {
|
|
507
|
+
/**
|
|
508
|
+
* 字段旁边的冒号,中文为“:”
|
|
509
|
+
* @default ''
|
|
510
|
+
*/
|
|
511
|
+
colonText?: string;
|
|
512
|
+
/**
|
|
513
|
+
* 表单错误信息配置,示例:`{ idcard: '请输入正确的身份证号码', max: '字符长度不能超过 ${max}' }`
|
|
514
|
+
*/
|
|
515
|
+
errorMessage?: Record<string, unknown>;
|
|
516
|
+
/**
|
|
517
|
+
* 是否显示必填符号(*),默认显示
|
|
518
|
+
* @default true
|
|
519
|
+
*/
|
|
520
|
+
requiredMark?: boolean;
|
|
521
|
+
/**
|
|
522
|
+
* 表单必填符号(*)显示位置
|
|
523
|
+
* @default left
|
|
524
|
+
*/
|
|
525
|
+
requiredMarkPosition?: "left" | "right";
|
|
526
|
+
}
|
|
527
|
+
export interface GuideConfig {
|
|
528
|
+
/**
|
|
529
|
+
* 最后一步中的完成按钮,示例:`{ content: '完成', theme: 'primary' }`
|
|
530
|
+
*/
|
|
531
|
+
finishButtonProps?: ButtonProps;
|
|
532
|
+
/**
|
|
533
|
+
* 下一步按钮,示例:`{ content: '下一步', theme: 'primary' }`
|
|
534
|
+
*/
|
|
535
|
+
nextButtonProps?: ButtonProps;
|
|
536
|
+
/**
|
|
537
|
+
* 上一步按钮,示例:`{ content: '上一步', theme: 'default' }`
|
|
538
|
+
*/
|
|
539
|
+
prevButtonProps?: ButtonProps;
|
|
540
|
+
/**
|
|
541
|
+
* 跳过按钮,示例:`{ content: '跳过', theme: 'default' }`
|
|
542
|
+
*/
|
|
543
|
+
skipButtonProps?: ButtonProps;
|
|
544
|
+
}
|
|
545
|
+
export interface ImageConfig {
|
|
546
|
+
/**
|
|
547
|
+
* 图片加载失败显示的文本,中文默认为“图片无法显示”
|
|
548
|
+
* @default ''
|
|
549
|
+
*/
|
|
550
|
+
errorText?: string;
|
|
551
|
+
/**
|
|
552
|
+
* 图片加载中显示的文本,中文默认为“图片加载中”
|
|
553
|
+
* @default ''
|
|
554
|
+
*/
|
|
555
|
+
loadingText?: string;
|
|
556
|
+
/**
|
|
557
|
+
* 统一替换图片 `src` 地址,参数为组件的全部属性,返回值为新的图片地址
|
|
558
|
+
*/
|
|
559
|
+
replaceImageSrc?: (params: Record<string, unknown>) => string;
|
|
560
|
+
}
|
|
561
|
+
export interface ImageViewerConfig {
|
|
562
|
+
/**
|
|
563
|
+
* 全局语言配置,默认为 “图片加载失败,可尝试重新加载”
|
|
564
|
+
* @default ''
|
|
565
|
+
*/
|
|
566
|
+
errorText?: string;
|
|
567
|
+
/**
|
|
568
|
+
* 全局语言配置,默认为 “镜像”
|
|
569
|
+
* @default ''
|
|
570
|
+
*/
|
|
571
|
+
mirrorTipText?: string;
|
|
572
|
+
/**
|
|
573
|
+
* 全局语言配置,默认为 “原始大小”
|
|
574
|
+
* @default ''
|
|
575
|
+
*/
|
|
576
|
+
originalSizeTipText?: string;
|
|
577
|
+
/**
|
|
578
|
+
* 全局语言配置,默认为 “旋转”
|
|
579
|
+
* @default ''
|
|
580
|
+
*/
|
|
581
|
+
rotateTipText?: string;
|
|
582
|
+
}
|
|
583
|
+
export interface InputConfig {
|
|
584
|
+
/**
|
|
585
|
+
* 是否开启自动填充功能
|
|
586
|
+
* @default ''
|
|
587
|
+
*/
|
|
588
|
+
autocomplete?: string;
|
|
589
|
+
/**
|
|
590
|
+
* 清空图标触发方式,仅在输入框有值时有效
|
|
591
|
+
* @default focus
|
|
592
|
+
*/
|
|
593
|
+
clearTrigger?: "always" | "focus";
|
|
594
|
+
/**
|
|
595
|
+
* 语言配置,“请输入”占位符描述文本
|
|
596
|
+
* @default ''
|
|
597
|
+
*/
|
|
598
|
+
placeholder?: string;
|
|
599
|
+
}
|
|
600
|
+
export interface ListConfig {
|
|
601
|
+
/**
|
|
602
|
+
* 语言配置,'点击加载更多' 描述文本
|
|
603
|
+
* @default ''
|
|
604
|
+
*/
|
|
605
|
+
loadingMoreText?: string;
|
|
606
|
+
/**
|
|
607
|
+
* 语言配置,'正在加载中,请稍后' 描述文本
|
|
608
|
+
* @default ''
|
|
609
|
+
*/
|
|
610
|
+
loadingText?: string;
|
|
611
|
+
}
|
|
612
|
+
export interface MessageConfig {
|
|
613
|
+
[key: string]: unknown;
|
|
614
|
+
}
|
|
615
|
+
export interface PaginationConfig {
|
|
616
|
+
/**
|
|
617
|
+
* 语言配置,每页条数文本,示例:`'{size} 条/页'`
|
|
618
|
+
* @default ''
|
|
619
|
+
*/
|
|
620
|
+
itemsPerPage?: string;
|
|
621
|
+
/**
|
|
622
|
+
* 语言配置,页码跳转文本,示例:'跳至'
|
|
623
|
+
* @default ''
|
|
624
|
+
*/
|
|
625
|
+
jumpTo?: string;
|
|
626
|
+
/**
|
|
627
|
+
* 语言配置,“页”描述文本
|
|
628
|
+
* @default ''
|
|
629
|
+
*/
|
|
630
|
+
page?: string;
|
|
631
|
+
/**
|
|
632
|
+
* 语言配置,数据总条数文本,示例:`'共 {total} 项数据'`
|
|
633
|
+
* @default ''
|
|
634
|
+
*/
|
|
635
|
+
total?: string;
|
|
636
|
+
/**
|
|
637
|
+
* 自定义跳转组件
|
|
638
|
+
*/
|
|
639
|
+
jumper?: (jumperProps: JumperProps) => TNode<JumperProps>;
|
|
640
|
+
}
|
|
641
|
+
export interface PopconfirmConfig {
|
|
642
|
+
/**
|
|
643
|
+
* 语言配置,“取消”描述文本
|
|
644
|
+
*/
|
|
645
|
+
cancel?: string | ButtonProps;
|
|
646
|
+
/**
|
|
647
|
+
* 语言配置,“确定”描述文本
|
|
648
|
+
*/
|
|
649
|
+
confirm?: string | ButtonProps;
|
|
650
|
+
/**
|
|
651
|
+
* 确认按钮主题色,即 Popconfirm 的 `theme` 和 确认按钮的 `theme` 映射关系。示例:{ danger: 'danger' }
|
|
652
|
+
*/
|
|
653
|
+
confirmBtnTheme?: {
|
|
654
|
+
default: string;
|
|
655
|
+
warning: string;
|
|
656
|
+
danger: string;
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
export interface QRCodeConfig {
|
|
660
|
+
/**
|
|
661
|
+
* 语言配置,“二维码过期”描述文本
|
|
662
|
+
* @default ''
|
|
663
|
+
*/
|
|
664
|
+
expiredText?: string;
|
|
665
|
+
/**
|
|
666
|
+
* 语言配置,“点击刷新”描述文本
|
|
667
|
+
* @default ''
|
|
668
|
+
*/
|
|
669
|
+
refreshText?: string;
|
|
670
|
+
/**
|
|
671
|
+
* 语言配置,“已扫描”描述文本
|
|
672
|
+
* @default ''
|
|
673
|
+
*/
|
|
674
|
+
scannedText?: string;
|
|
675
|
+
}
|
|
676
|
+
export interface RateConfig {
|
|
677
|
+
/**
|
|
678
|
+
* 评分描述,默认值:['极差', '失望', '一般', '满意', '惊喜']
|
|
679
|
+
*/
|
|
680
|
+
rateText?: string[];
|
|
681
|
+
}
|
|
682
|
+
export interface SelectConfig {
|
|
683
|
+
/**
|
|
684
|
+
* 清除图标,【注意】使用渲染函数输出图标组件
|
|
685
|
+
*/
|
|
686
|
+
clearIcon?: TNode;
|
|
687
|
+
/**
|
|
688
|
+
* 语言配置,“暂无数据”描述文本
|
|
689
|
+
* @default ''
|
|
690
|
+
*/
|
|
691
|
+
empty?: string;
|
|
692
|
+
/**
|
|
693
|
+
* 全局配置是否可筛选
|
|
694
|
+
* @default false
|
|
695
|
+
*/
|
|
696
|
+
filterable?: boolean;
|
|
697
|
+
/**
|
|
698
|
+
* 语言配置,“加载中”描述文本
|
|
699
|
+
* @default ''
|
|
700
|
+
*/
|
|
701
|
+
loadingText?: string;
|
|
702
|
+
/**
|
|
703
|
+
* 语言配置,“请选择”占位符描述文本
|
|
704
|
+
* @default ''
|
|
705
|
+
*/
|
|
706
|
+
placeholder?: string;
|
|
707
|
+
}
|
|
708
|
+
export interface StepsConfig {
|
|
709
|
+
/**
|
|
710
|
+
* 已完成步骤图标,【注意】使用渲染函数输出图标组件
|
|
711
|
+
*/
|
|
712
|
+
checkIcon?: TElement;
|
|
713
|
+
/**
|
|
714
|
+
* 错误步骤图标,【注意】使用渲染函数输出图标组件
|
|
715
|
+
*/
|
|
716
|
+
errorIcon?: TElement;
|
|
717
|
+
}
|
|
718
|
+
export interface TableConfig {
|
|
719
|
+
/**
|
|
720
|
+
* 语言配置,“取消” 描述文本
|
|
721
|
+
* @default ''
|
|
722
|
+
*/
|
|
723
|
+
cancelText?: string;
|
|
724
|
+
/**
|
|
725
|
+
* 语言配置,过滤功能中,“清空筛选” 描述文本
|
|
726
|
+
* @default ''
|
|
727
|
+
*/
|
|
728
|
+
clearFilterResultButtonText?: string;
|
|
729
|
+
/**
|
|
730
|
+
* 语言配置,列配置功能中,“列配置” 按钮描述文本
|
|
731
|
+
* @default ''
|
|
732
|
+
*/
|
|
733
|
+
columnConfigButtonText?: string;
|
|
734
|
+
/**
|
|
735
|
+
* 语言配置,“请选择需要在表格中显示的数据列” 描述文本,列配置功能中弹框顶部描述
|
|
736
|
+
* @default ''
|
|
737
|
+
*/
|
|
738
|
+
columnConfigDescriptionText?: string;
|
|
739
|
+
/**
|
|
740
|
+
* 语言配置,“表格列配置” 描述文本,列配置功能中弹框的标题
|
|
741
|
+
* @default ''
|
|
742
|
+
*/
|
|
743
|
+
columnConfigTitleText?: string;
|
|
744
|
+
/**
|
|
745
|
+
* 语言配置,“确认” 描述文本
|
|
746
|
+
* @default ''
|
|
747
|
+
*/
|
|
748
|
+
confirmText?: string;
|
|
749
|
+
/**
|
|
750
|
+
* 语言配置,“暂无数据” 描述文本
|
|
751
|
+
*/
|
|
752
|
+
empty?: TNode;
|
|
753
|
+
/**
|
|
754
|
+
* 展开和收起图标(配置传入收起图标即可),如果没有配置,会使用组件内置的默认图标
|
|
755
|
+
*/
|
|
756
|
+
expandIcon?: TElement;
|
|
757
|
+
/**
|
|
758
|
+
* 过滤图标,如果没有配置,会使用组件内置的默认图标
|
|
759
|
+
*/
|
|
760
|
+
filterIcon?: TElement;
|
|
761
|
+
/**
|
|
762
|
+
* 隐藏排序文本提示
|
|
763
|
+
* @default false
|
|
764
|
+
*/
|
|
765
|
+
hideSortTips?: boolean;
|
|
766
|
+
/**
|
|
767
|
+
* 语言配置,“点击加载更多” 描述文本
|
|
768
|
+
* @default ''
|
|
769
|
+
*/
|
|
770
|
+
loadingMoreText?: string;
|
|
771
|
+
/**
|
|
772
|
+
* 语言配置,“正在加载中,请稍后” 描述文本
|
|
773
|
+
* @default ''
|
|
774
|
+
*/
|
|
775
|
+
loadingText?: string;
|
|
776
|
+
/**
|
|
777
|
+
* 语言配置,“重置” 描述文本
|
|
778
|
+
* @default ''
|
|
779
|
+
*/
|
|
780
|
+
resetText?: string;
|
|
781
|
+
/**
|
|
782
|
+
* 语言配置,过滤功能中,过滤条件和结果描述文本,示例:'搜索“{result}”,找到 {count} 条结果'
|
|
783
|
+
* @default ''
|
|
784
|
+
*/
|
|
785
|
+
searchResultText?: string;
|
|
786
|
+
/**
|
|
787
|
+
* 语言配置,'全选' 描述文本
|
|
788
|
+
* @default ''
|
|
789
|
+
*/
|
|
790
|
+
selectAllText?: string;
|
|
791
|
+
/**
|
|
792
|
+
* 全局表格尺寸配置
|
|
793
|
+
* @default medium
|
|
794
|
+
*/
|
|
795
|
+
size?: SizeEnum;
|
|
796
|
+
/**
|
|
797
|
+
* 语言配置,'点击升序' 描述文本
|
|
798
|
+
* @default ''
|
|
799
|
+
*/
|
|
800
|
+
sortAscendingOperationText?: string;
|
|
801
|
+
/**
|
|
802
|
+
* 语言配置,'点击取消排序' 描述文本
|
|
803
|
+
* @default ''
|
|
804
|
+
*/
|
|
805
|
+
sortCancelOperationText?: string;
|
|
806
|
+
/**
|
|
807
|
+
* 语言配置,'点击降序' 描述文本
|
|
808
|
+
* @default ''
|
|
809
|
+
*/
|
|
810
|
+
sortDescendingOperationText?: string;
|
|
811
|
+
/**
|
|
812
|
+
* 排序图标(配置传入降序图标即可),如果没有配置,会使用组件内置的默认图标
|
|
813
|
+
*/
|
|
814
|
+
sortIcon?: TElement;
|
|
815
|
+
/**
|
|
816
|
+
* 树形结构,展开和折叠图标。如果没有配置,会使用组件内置的默认图标
|
|
817
|
+
*/
|
|
818
|
+
treeExpandAndFoldIcon?: TNode<{
|
|
819
|
+
type: "expand" | "fold";
|
|
820
|
+
}>;
|
|
821
|
+
}
|
|
822
|
+
export interface TagConfig {
|
|
823
|
+
/**
|
|
824
|
+
* 关闭图标,【注意】使用渲染函数输出图标组件
|
|
825
|
+
*/
|
|
826
|
+
closeIcon?: TNode;
|
|
827
|
+
}
|
|
828
|
+
export interface TimePickerConfig {
|
|
829
|
+
/**
|
|
830
|
+
* 语言配置,“上午”描述文本
|
|
831
|
+
* @default ''
|
|
832
|
+
*/
|
|
833
|
+
anteMeridiem?: string;
|
|
834
|
+
/**
|
|
835
|
+
* 语言配置,“确定”描述文本
|
|
836
|
+
* @default ''
|
|
837
|
+
*/
|
|
838
|
+
confirm?: string;
|
|
839
|
+
/**
|
|
840
|
+
* 语言配置,“此刻”描述文本
|
|
841
|
+
* @default ''
|
|
842
|
+
*/
|
|
843
|
+
now?: string;
|
|
844
|
+
/**
|
|
845
|
+
* 语言配置,\"请选择时间\"占位符描述文本
|
|
846
|
+
* @default ''
|
|
847
|
+
*/
|
|
848
|
+
placeholder?: string;
|
|
849
|
+
/**
|
|
850
|
+
* 语言配置,“下午”描述文本
|
|
851
|
+
* @default ''
|
|
852
|
+
*/
|
|
853
|
+
postMeridiem?: string;
|
|
854
|
+
}
|
|
855
|
+
export interface TransferConfig {
|
|
856
|
+
/**
|
|
857
|
+
* 语言配置,“暂无数据”空数据描述文本
|
|
858
|
+
* @default ''
|
|
859
|
+
*/
|
|
860
|
+
empty?: string;
|
|
861
|
+
/**
|
|
862
|
+
* 语言配置,“请输入关键词搜索”占位符描述文本
|
|
863
|
+
* @default ''
|
|
864
|
+
*/
|
|
865
|
+
placeholder?: string;
|
|
866
|
+
/**
|
|
867
|
+
* 语言配置,穿梭框标题描述文本,示例:“{checked} / {total} 项”
|
|
868
|
+
* @default ''
|
|
869
|
+
*/
|
|
870
|
+
title?: string;
|
|
871
|
+
}
|
|
872
|
+
export interface TreeConfig {
|
|
873
|
+
/**
|
|
874
|
+
* 语言配置,“暂无数据”描述文本
|
|
875
|
+
* @default ''
|
|
876
|
+
*/
|
|
877
|
+
empty?: string;
|
|
878
|
+
/**
|
|
879
|
+
* 目录层级图标,传入收起状态图标即可。【注意】使用渲染函数输出图标组件
|
|
880
|
+
*/
|
|
881
|
+
folderIcon?: TNode;
|
|
882
|
+
}
|
|
883
|
+
export interface TreeSelectConfig {
|
|
884
|
+
/**
|
|
885
|
+
* 语言配置,“暂无数据”描述文本
|
|
886
|
+
* @default ''
|
|
887
|
+
*/
|
|
888
|
+
empty?: string;
|
|
889
|
+
/**
|
|
890
|
+
* 语言配置,“加载中”描述文本
|
|
891
|
+
* @default ''
|
|
892
|
+
*/
|
|
893
|
+
loadingText?: string;
|
|
894
|
+
/**
|
|
895
|
+
* 语言配置,“请选择”占位符描述文本
|
|
896
|
+
* @default ''
|
|
897
|
+
*/
|
|
898
|
+
placeholder?: string;
|
|
899
|
+
}
|
|
900
|
+
export interface TypographyConfig {
|
|
901
|
+
/**
|
|
902
|
+
* 语言配置,“收起”描述文本
|
|
903
|
+
* @default ''
|
|
904
|
+
*/
|
|
905
|
+
collapseText?: string;
|
|
906
|
+
/**
|
|
907
|
+
* 语言配置,“复制成功”描述文本
|
|
908
|
+
* @default ''
|
|
909
|
+
*/
|
|
910
|
+
copiedText?: string;
|
|
911
|
+
/**
|
|
912
|
+
* 语言配置,“展开”描述文本
|
|
913
|
+
* @default ''
|
|
914
|
+
*/
|
|
915
|
+
expandText?: string;
|
|
916
|
+
}
|
|
917
|
+
export interface UploadConfig {
|
|
918
|
+
/**
|
|
919
|
+
* 语言配置,“取消上传” 描述文本
|
|
920
|
+
* @default ''
|
|
921
|
+
*/
|
|
922
|
+
cancelUploadText?: string;
|
|
923
|
+
/**
|
|
924
|
+
* 语言配置,拖拽相关。示例:{ dragDropText: '释放图标', draggingText: '拖拽到此区域', clickAndDragText: '点击上方“选择文件”或将文件拖到此区域' }
|
|
925
|
+
*/
|
|
926
|
+
dragger?: UploadConfigDragger;
|
|
927
|
+
/**
|
|
928
|
+
* 语言配置,文件信息相关。示例:{ fileNameText: '文件名', fileSizeText: '文件尺寸', fileStatusText: '状态', fileOperationText: '操作', fileOperationDateText: '上传日期' }
|
|
929
|
+
*/
|
|
930
|
+
file?: UploadConfigFileList;
|
|
931
|
+
/**
|
|
932
|
+
* 语言配置,上传进度相关。示例:{ uploadText: '上传中', waitingText: '待上传', 'failText': '上传失败', successText: '上传成功' }
|
|
933
|
+
*/
|
|
934
|
+
progress?: UploadConfigProgress;
|
|
935
|
+
/**
|
|
936
|
+
* 语言配置,文件大小超出限制时提醒文本。示例:`'文件大小不能超过 {sizeLimit}'`
|
|
937
|
+
* @default ''
|
|
938
|
+
*/
|
|
939
|
+
sizeLimitMessage?: string;
|
|
940
|
+
/**
|
|
941
|
+
* 语言配置,上传功能触发文案。示例:{ image: '点击上传图片', normal: '点击上传', fileInput: '选择文件', reupload: '重新上传', delete: '删除', continueUpload?: '继续选择' }
|
|
942
|
+
*/
|
|
943
|
+
triggerUploadText?: UploadTriggerUploadText;
|
|
944
|
+
}
|
|
945
|
+
export interface UploadConfigDragger {
|
|
946
|
+
/**
|
|
947
|
+
* 语言配置,“ 点击上方“选择文件”或将文件拖到此区域 ” 描述文本
|
|
948
|
+
* @default ''
|
|
949
|
+
*/
|
|
950
|
+
clickAndDragText?: string;
|
|
951
|
+
/**
|
|
952
|
+
* 语言配置,“释放图标” 描述文本
|
|
953
|
+
* @default ''
|
|
954
|
+
*/
|
|
955
|
+
dragDropText?: string;
|
|
956
|
+
/**
|
|
957
|
+
* 语言配置,'拖拽到此区域' 描述文本
|
|
958
|
+
* @default ''
|
|
959
|
+
*/
|
|
960
|
+
draggingText?: string;
|
|
961
|
+
}
|
|
962
|
+
export interface UploadConfigFileList {
|
|
963
|
+
/**
|
|
964
|
+
* 语言配置,“文件名” 描述文本
|
|
965
|
+
* @default ''
|
|
966
|
+
*/
|
|
967
|
+
fileNameText?: string;
|
|
968
|
+
/**
|
|
969
|
+
* 语言配置,“上传日期” 描述文本
|
|
970
|
+
* @default ''
|
|
971
|
+
*/
|
|
972
|
+
fileOperationDateText?: string;
|
|
973
|
+
/**
|
|
974
|
+
* 语言配置,“操作” 描述文本
|
|
975
|
+
* @default ''
|
|
976
|
+
*/
|
|
977
|
+
fileOperationText?: string;
|
|
978
|
+
/**
|
|
979
|
+
* 语言配置,“文件尺寸” 描述文本
|
|
980
|
+
* @default ''
|
|
981
|
+
*/
|
|
982
|
+
fileSizeText?: string;
|
|
983
|
+
/**
|
|
984
|
+
* 语言配置,“状态” 描述文本
|
|
985
|
+
* @default ''
|
|
986
|
+
*/
|
|
987
|
+
fileStatusText?: string;
|
|
988
|
+
}
|
|
989
|
+
export interface UploadConfigProgress {
|
|
990
|
+
/**
|
|
991
|
+
* 语言配置,“上传失败”文本描述
|
|
992
|
+
* @default ''
|
|
993
|
+
*/
|
|
994
|
+
failText?: string;
|
|
995
|
+
/**
|
|
996
|
+
* 语言配置,“上传成功”文本描述
|
|
997
|
+
* @default ''
|
|
998
|
+
*/
|
|
999
|
+
successText?: string;
|
|
1000
|
+
/**
|
|
1001
|
+
* 语言配置,“上传中”文本描述
|
|
1002
|
+
* @default ''
|
|
1003
|
+
*/
|
|
1004
|
+
uploadingText?: string;
|
|
1005
|
+
/**
|
|
1006
|
+
* 语言配置,“待上传”文本描述
|
|
1007
|
+
* @default ''
|
|
1008
|
+
*/
|
|
1009
|
+
waitingText?: string;
|
|
1010
|
+
}
|
|
1011
|
+
export type AnimationType = "ripple" | "expand" | "fade";
|
|
1012
|
+
export interface ConfigPresetDate {
|
|
1013
|
+
[name: string]: DateConfigValue | (() => DateConfigValue);
|
|
1014
|
+
}
|
|
1015
|
+
export type DateConfigValue = string | Date | Array<DateConfigValue>;
|
|
1016
|
+
export interface JumperProps {
|
|
1017
|
+
current: number;
|
|
1018
|
+
pageCount: number;
|
|
1019
|
+
onChange: (current: number) => void;
|
|
1020
|
+
}
|
|
1021
|
+
export interface UploadTriggerUploadText {
|
|
1022
|
+
image?: string;
|
|
1023
|
+
normal?: string;
|
|
1024
|
+
fileInput?: string;
|
|
1025
|
+
reupload?: string;
|
|
1026
|
+
continueUpload?: string;
|
|
1027
|
+
delete?: string;
|
|
1028
|
+
}
|
|
1029
|
+
export type IconConfig = Record<string, React.ComponentType<React.SVGProps<SVGSVGElement>>>;
|