@tendaui/react 1.1.5 → 1.1.6
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/LICENSE +21 -0
- package/README.md +1 -1
- package/es/_chunks/dep-5U9UjDaf.js.map +1 -1
- package/es/_chunks/dep-CD_4-1Xb.js.map +1 -1
- package/es/_chunks/{dep-CRURwzDj.js → dep-CsSvR9wN.js} +9 -3
- package/es/_chunks/dep-CsSvR9wN.js.map +1 -0
- package/es/_chunks/dep-DJmE940f.js.map +1 -1
- package/es/_chunks/dep-DbVHGoUC.js.map +1 -1
- package/es/_chunks/{dep-D8jki30S.js → dep-aX8qrQpB.js} +2 -2
- package/es/_chunks/{dep-D8jki30S.js.map → dep-aX8qrQpB.js.map} +1 -1
- package/es/alert/Alert.js +9 -2
- package/es/alert/Alert.js.map +1 -1
- package/es/alert/index.js +4 -1
- package/es/alert/index.js.map +1 -1
- package/es/alert/style/index.css +7 -30
- package/es/badge/style/index.css +5 -10
- package/es/button/_example/base.js +1 -158
- package/es/button/_example/base.js.map +1 -1
- package/es/button/_example/icon.js +1 -157
- package/es/button/_example/icon.js.map +1 -1
- package/es/button/style/index.css +4 -19
- package/es/checkbox/style/index.css +9 -26
- package/es/color-picker/ColorPicker.js +3 -3
- package/es/color-picker/components/panel/format/index.js +4 -1
- package/es/color-picker/components/panel/format/index.js.map +1 -1
- package/es/color-picker/components/panel/format/inputs.js +3 -0
- package/es/color-picker/components/panel/format/inputs.js.map +1 -1
- package/es/color-picker/components/trigger.js +3 -0
- package/es/color-picker/components/trigger.js.map +1 -1
- package/es/color-picker/style/index.css +43 -138
- package/es/color-picker/utils/color-picker/index.js.map +1 -1
- package/es/dialog/Dialog.js +4 -1
- package/es/dialog/Dialog.js.map +1 -1
- package/es/dialog/DialogCard.js +5 -2
- package/es/dialog/DialogCard.js.map +1 -1
- package/es/dialog/index.js +4 -3
- package/es/dialog/index.js.map +1 -1
- package/es/dialog/plugin.js +3 -2
- package/es/dialog/plugin.js.map +1 -1
- package/es/dialog/style/index.css +51 -188
- package/es/drawer/Drawer.js +15 -8
- package/es/drawer/Drawer.js.map +1 -1
- package/es/drawer/index.js +5 -2
- package/es/drawer/index.js.map +1 -1
- package/es/drawer/style/index.css +12 -41
- package/es/form/Form.js +3 -0
- package/es/form/Form.js.map +1 -1
- package/es/form/FormItem.js +3 -0
- package/es/form/FormItem.js.map +1 -1
- package/es/form/index.js +3 -0
- package/es/form/index.js.map +1 -1
- package/es/form/style/index.css +13 -33
- package/es/index.js +3 -3
- package/es/input/Input.js +10 -2
- package/es/input/Input.js.map +1 -1
- package/es/input/index.js +4 -1
- package/es/input/index.js.map +1 -1
- package/es/input/style/index.css +17 -63
- package/es/input-number/InputNumber.js +4 -1
- package/es/input-number/InputNumber.js.map +1 -1
- package/es/input-number/index.js +4 -1
- package/es/input-number/index.js.map +1 -1
- package/es/input-number/style/css.js +1 -1
- package/es/input-number/style/index.css +7 -39
- package/es/input-number/useInputNumber.js.map +1 -1
- package/es/ip-input/style/index.css +21 -87
- package/es/layout/style/index.css +5 -19
- package/es/list/List.js.map +1 -1
- package/es/list/ListItem.js.map +1 -1
- package/es/list/ListItemMeta.js.map +1 -1
- package/es/list/style/css.js +1 -1
- package/es/list/style/index.css +11 -39
- package/es/loading/style/index.css +10 -65
- package/es/notification/style/index.css +6 -24
- package/es/popup/style/index.css +9 -20
- package/es/radio/style/index.css +11 -36
- package/es/select/Select.js +4 -1
- package/es/select/Select.js.map +1 -1
- package/es/select/index.js +4 -1
- package/es/select/index.js.map +1 -1
- package/es/select/style/index.css +17 -52
- package/es/select-input/SelectInput.js +3 -0
- package/es/select-input/SelectInput.js.map +1 -1
- package/es/select-input/hook/useMultiple.js +3 -0
- package/es/select-input/hook/useMultiple.js.map +1 -1
- package/es/select-input/hook/useSingle.js +3 -0
- package/es/select-input/hook/useSingle.js.map +1 -1
- package/es/select-input/index.js +3 -0
- package/es/select-input/index.js.map +1 -1
- package/es/slider/Slider.js +3 -0
- package/es/slider/Slider.js.map +1 -1
- package/es/slider/SliderHandleButton.js.map +1 -1
- package/es/slider/index.js +3 -0
- package/es/slider/index.js.map +1 -1
- package/es/slider/style/css.js +1 -1
- package/es/slider/style/index.css +18 -59
- package/es/style/index.css +0 -2
- package/es/switch/Switch.js +1 -1
- package/es/switch/index.js +1 -1
- package/es/switch/style/index.css +10 -37
- package/es/tab/style/index.css +6 -31
- package/es/table/TBody.js +10 -1
- package/es/table/TBody.js.map +1 -1
- package/es/table/Table.js +4 -0
- package/es/table/Table.js.map +1 -1
- package/es/table/index.js +4 -0
- package/es/table/index.js.map +1 -1
- package/es/table/style/index.css +5 -15
- package/es/tag/style/index.css +4 -16
- package/es/tag-input/TagInput.js +3 -0
- package/es/tag-input/TagInput.js.map +1 -1
- package/es/tag-input/index.js +3 -0
- package/es/tag-input/index.js.map +1 -1
- package/es/tag-input/style/index.css +7 -53
- package/es/utils/log/index.js.map +1 -1
- package/package.json +3 -3
- package/es/_chunks/dep-CRURwzDj.js.map +0 -1
- package/es/alert/Alert.d.ts +0 -7
- package/es/alert/defaultProps.d.ts +0 -2
- package/es/alert/index.d.ts +0 -5
- package/es/alert/style/css.d.ts +0 -1
- package/es/alert/style/index.d.ts +0 -1
- package/es/alert/type.d.ts +0 -45
- package/es/badge/Badge.d.ts +0 -7
- package/es/badge/defaultProps.d.ts +0 -2
- package/es/badge/index.d.ts +0 -5
- package/es/badge/style/css.d.ts +0 -1
- package/es/badge/style/index.d.ts +0 -1
- package/es/badge/type.d.ts +0 -50
- package/es/button/Button.d.ts +0 -6
- package/es/button/defaultProps.d.ts +0 -2
- package/es/button/index.d.ts +0 -5
- package/es/button/style/css.d.ts +0 -1
- package/es/button/style/index.d.ts +0 -1
- package/es/button/type.d.ts +0 -81
- package/es/checkbox/Checkbox.d.ts +0 -10
- package/es/checkbox/CheckboxGroup.d.ts +0 -14
- package/es/checkbox/defaultProps.d.ts +0 -3
- package/es/checkbox/index.d.ts +0 -11
- package/es/checkbox/style/css.d.ts +0 -1
- package/es/checkbox/style/index.d.ts +0 -1
- package/es/checkbox/type.d.ts +0 -115
- package/es/color-picker/ColorPickPanel.d.ts +0 -4
- package/es/color-picker/ColorPicker.d.ts +0 -4
- package/es/color-picker/components/panel/alpha.d.ts +0 -4
- package/es/color-picker/components/panel/format/index.d.ts +0 -10
- package/es/color-picker/components/panel/format/inputs.d.ts +0 -4
- package/es/color-picker/components/panel/header.d.ts +0 -13
- package/es/color-picker/components/panel/hue.d.ts +0 -4
- package/es/color-picker/components/panel/index.d.ts +0 -4
- package/es/color-picker/components/panel/saturation.d.ts +0 -4
- package/es/color-picker/components/panel/slider.d.ts +0 -11
- package/es/color-picker/components/panel/swatches.d.ts +0 -11
- package/es/color-picker/components/trigger.d.ts +0 -9
- package/es/color-picker/defaultProps.d.ts +0 -2
- package/es/color-picker/helpers.d.ts +0 -5
- package/es/color-picker/hooks/useClassNames.d.ts +0 -2
- package/es/color-picker/hooks/useStyles.d.ts +0 -14
- package/es/color-picker/index.d.ts +0 -6
- package/es/color-picker/style/css.d.ts +0 -1
- package/es/color-picker/style/index.d.ts +0 -1
- package/es/color-picker/type.d.ts +0 -135
- package/es/color-picker/utils/color-picker/cmyk.d.ts +0 -27
- package/es/color-picker/utils/color-picker/color.d.ts +0 -144
- package/es/color-picker/utils/color-picker/constants.d.ts +0 -30
- package/es/color-picker/utils/color-picker/draggable.d.ts +0 -23
- package/es/color-picker/utils/color-picker/format.d.ts +0 -64
- package/es/color-picker/utils/color-picker/gradient.d.ts +0 -22
- package/es/color-picker/utils/color-picker/index.d.ts +0 -7
- package/es/color-picker/utils/color-picker/types.d.ts +0 -28
- package/es/common/Check.d.ts +0 -22
- package/es/common/FakeArrow.d.ts +0 -9
- package/es/common/PluginContainer.d.ts +0 -9
- package/es/common/Portal.d.ts +0 -16
- package/es/common/observe.d.ts +0 -1
- package/es/common.d.ts +0 -81
- package/es/config-provider/ConfigContext.d.ts +0 -13
- package/es/config-provider/ConfigProvider.d.ts +0 -25
- package/es/config-provider/index.d.ts +0 -7
- package/es/config-provider/type.d.ts +0 -1029
- package/es/dialog/Dialog.d.ts +0 -8
- package/es/dialog/DialogCard.d.ts +0 -8
- package/es/dialog/defaultProps.d.ts +0 -6
- package/es/dialog/hooks/useDialogDrag.d.ts +0 -7
- package/es/dialog/hooks/useDialogEsc.d.ts +0 -3
- package/es/dialog/hooks/useDialogPosition.d.ts +0 -2
- package/es/dialog/hooks/useLockStyle.d.ts +0 -2
- package/es/dialog/index.d.ts +0 -8
- package/es/dialog/plugin.d.ts +0 -6
- package/es/dialog/style/css.d.ts +0 -1
- package/es/dialog/style/index.d.ts +0 -1
- package/es/dialog/type.d.ts +0 -227
- package/es/dialog/utils.d.ts +0 -1
- package/es/drawer/Drawer.d.ts +0 -11
- package/es/drawer/defaultProps.d.ts +0 -2
- package/es/drawer/hooks/useDrag.d.ts +0 -8
- package/es/drawer/hooks/useLockStyle.d.ts +0 -1
- package/es/drawer/index.d.ts +0 -4
- package/es/drawer/style/css.d.ts +0 -1
- package/es/drawer/style/index.d.ts +0 -1
- package/es/drawer/type.d.ts +0 -199
- package/es/drawer/utils/index.d.ts +0 -23
- package/es/fireworks/Fireworks.d.ts +0 -7
- package/es/fireworks/index.d.ts +0 -5
- package/es/fireworks/style/css.d.ts +0 -0
- package/es/fireworks/style/index.d.ts +0 -0
- package/es/fireworks/type.d.ts +0 -69
- package/es/form/Form.d.ts +0 -8
- package/es/form/FormContext.d.ts +0 -59
- package/es/form/FormItem.d.ts +0 -23
- package/es/form/FormList.d.ts +0 -4
- package/es/form/const.d.ts +0 -6
- package/es/form/defaultProps.d.ts +0 -3
- package/es/form/easing.d.ts +0 -2
- package/es/form/formModel.d.ts +0 -37
- package/es/form/hooks/interface.d.ts +0 -16
- package/es/form/hooks/useForm.d.ts +0 -3
- package/es/form/hooks/useFormItemInitialData.d.ts +0 -9
- package/es/form/hooks/useFormItemStyle.d.ts +0 -10
- package/es/form/hooks/useInstance.d.ts +0 -16
- package/es/form/hooks/useWatch.d.ts +0 -3
- package/es/form/index.d.ts +0 -7
- package/es/form/scroll.d.ts +0 -39
- package/es/form/style/css.d.ts +0 -1
- package/es/form/style/index.d.ts +0 -1
- package/es/form/type.d.ts +0 -486
- package/es/form/utils/index.d.ts +0 -5
- package/es/global-config/default-config.d.ts +0 -84
- package/es/global-config/locale/ar_KW.d.ts +0 -239
- package/es/global-config/locale/en_US.d.ts +0 -263
- package/es/global-config/locale/it_IT.d.ts +0 -263
- package/es/global-config/locale/ja_JP.d.ts +0 -263
- package/es/global-config/locale/ko_KR.d.ts +0 -263
- package/es/global-config/locale/ru_RU.d.ts +0 -263
- package/es/global-config/locale/zh_CN.d.ts +0 -263
- package/es/global-config/locale/zh_TW.d.ts +0 -263
- package/es/global-config/mobile/default-config.d.ts +0 -7
- package/es/global-config/mobile/locale/ar_KW.d.ts +0 -98
- package/es/global-config/mobile/locale/en_US.d.ts +0 -99
- package/es/global-config/mobile/locale/it_IT.d.ts +0 -99
- package/es/global-config/mobile/locale/ja_JP.d.ts +0 -99
- package/es/global-config/mobile/locale/ko_KR.d.ts +0 -99
- package/es/global-config/mobile/locale/ru_RU.d.ts +0 -99
- package/es/global-config/mobile/locale/zh_CN.d.ts +0 -99
- package/es/global-config/mobile/locale/zh_TW.d.ts +0 -99
- package/es/global-config/t.d.ts +0 -25
- package/es/hooks/useAttach.d.ts +0 -10
- package/es/hooks/useCommonClassName.d.ts +0 -54
- package/es/hooks/useConfig.d.ts +0 -2
- package/es/hooks/useControlled.d.ts +0 -9
- package/es/hooks/useDeepEffect.d.ts +0 -7
- package/es/hooks/useDefaultProps.d.ts +0 -1
- package/es/hooks/useDomCallback.d.ts +0 -1
- package/es/hooks/useDomRefCallback.d.ts +0 -1
- package/es/hooks/useDragSorter.d.ts +0 -28
- package/es/hooks/useEventCallback.d.ts +0 -9
- package/es/hooks/useGlobalConfig.d.ts +0 -1
- package/es/hooks/useGlobalIcon.d.ts +0 -5
- package/es/hooks/useLastest.d.ts +0 -2
- package/es/hooks/useLayoutEffect.d.ts +0 -3
- package/es/hooks/useMouseEvent.d.ts +0 -25
- package/es/hooks/useMutationObserver.d.ts +0 -4
- package/es/hooks/usePopper.d.ts +0 -19
- package/es/hooks/useResizeObserve.d.ts +0 -1
- package/es/hooks/useRipple.d.ts +0 -0
- package/es/hooks/useSetState.d.ts +0 -7
- package/es/hooks/useVirtualScroll.d.ts +0 -30
- package/es/hooks/useWindowSize.d.ts +0 -6
- package/es/index.d.ts +0 -25
- package/es/input/Input.d.ts +0 -16
- package/es/input/InputGroup.d.ts +0 -10
- package/es/input/defaultProps.d.ts +0 -17
- package/es/input/index.d.ts +0 -6
- package/es/input/style/css.d.ts +0 -1
- package/es/input/style/index.d.ts +0 -1
- package/es/input/type.d.ts +0 -237
- package/es/input-number/InputNumber.d.ts +0 -17
- package/es/input-number/defaultProps.d.ts +0 -2
- package/es/input-number/index.d.ts +0 -5
- package/es/input-number/style/css.d.ts +0 -1
- package/es/input-number/style/index.d.ts +0 -1
- package/es/input-number/type.d.ts +0 -156
- package/es/input-number/useInputNumber.d.ts +0 -51
- package/es/ip-input/IPInput.d.ts +0 -5
- package/es/ip-input/defaultProps.d.ts +0 -2
- package/es/ip-input/index.d.ts +0 -3
- package/es/ip-input/style/css.d.ts +0 -1
- package/es/ip-input/style/index.d.ts +0 -1
- package/es/ip-input/type.d.ts +0 -113
- package/es/ip-input/utils.d.ts +0 -35
- package/es/layout/Aside.d.ts +0 -11
- package/es/layout/Layout.d.ts +0 -26
- package/es/layout/defaultProps.d.ts +0 -5
- package/es/layout/index.d.ts +0 -10
- package/es/layout/style/css.d.ts +0 -1
- package/es/layout/style/index.d.ts +0 -1
- package/es/layout/type.d.ts +0 -38
- package/es/list/List.d.ts +0 -17
- package/es/list/ListItem.d.ts +0 -15
- package/es/list/ListItemMeta.d.ts +0 -10
- package/es/list/defaultProps.d.ts +0 -7
- package/es/list/hooks/useListVirtualScroll.d.ts +0 -24
- package/es/list/index.d.ts +0 -10
- package/es/list/style/css.d.ts +0 -1
- package/es/list/style/index.d.ts +0 -1
- package/es/list/type.d.ts +0 -92
- package/es/loading/Gradient.d.ts +0 -6
- package/es/loading/Loading.d.ts +0 -7
- package/es/loading/circleAdapter.d.ts +0 -1
- package/es/loading/defaultProps.d.ts +0 -2
- package/es/loading/index.d.ts +0 -5
- package/es/loading/style/css.d.ts +0 -1
- package/es/loading/style/index.d.ts +0 -1
- package/es/loading/type.d.ts +0 -68
- package/es/loading/utils/setStyle.d.ts +0 -7
- package/es/locale/LocalReceiver.d.ts +0 -6
- package/es/locale/ar_KW.d.ts +0 -3
- package/es/locale/en_US.d.ts +0 -3
- package/es/locale/it_IT.d.ts +0 -3
- package/es/locale/ja_JP.d.ts +0 -3
- package/es/locale/ko_KR.d.ts +0 -3
- package/es/locale/ru_RU.d.ts +0 -3
- package/es/locale/zh_CN.d.ts +0 -3
- package/es/locale/zh_TW.d.ts +0 -3
- package/es/myform/index.d.ts +0 -0
- package/es/notification/Notify.d.ts +0 -11
- package/es/notification/NotifyContainer.d.ts +0 -13
- package/es/notification/NotifyContext.d.ts +0 -23
- package/es/notification/NotifyItem.d.ts +0 -4
- package/es/notification/index.d.ts +0 -3
- package/es/notification/style/css.d.ts +0 -1
- package/es/notification/style/index.d.ts +0 -1
- package/es/notification/type.d.ts +0 -22
- package/es/popup/Popup.d.ts +0 -21
- package/es/popup/defaultProps.d.ts +0 -5
- package/es/popup/hooks/useTrigger.d.ts +0 -20
- package/es/popup/index.d.ts +0 -5
- package/es/popup/style/css.d.ts +0 -1
- package/es/popup/style/index.d.ts +0 -1
- package/es/popup/type.d.ts +0 -109
- package/es/portal/Portal.d.ts +0 -16
- package/es/portal/index.d.ts +0 -1
- package/es/radio/Radio.d.ts +0 -8
- package/es/radio/RadioGroup.d.ts +0 -14
- package/es/radio/defaultProps.d.ts +0 -3
- package/es/radio/index.d.ts +0 -10
- package/es/radio/style/css.d.ts +0 -0
- package/es/radio/style/index.d.ts +0 -1
- package/es/radio/type.d.ts +0 -117
- package/es/radio/useKeyboard.d.ts +0 -4
- package/es/select/Option.d.ts +0 -24
- package/es/select/OptionGroup.d.ts +0 -7
- package/es/select/PopupContent.d.ts +0 -24
- package/es/select/Select.d.ts +0 -13
- package/es/select/defaultProps.d.ts +0 -4
- package/es/select/hooks/useOptions.d.ts +0 -16
- package/es/select/hooks/usePanelVirtualScroll.d.ts +0 -24
- package/es/select/index.d.ts +0 -8
- package/es/select/style/css.d.ts +0 -1
- package/es/select/style/index.d.ts +0 -1
- package/es/select/type.d.ts +0 -344
- package/es/select/utils/helper.d.ts +0 -18
- package/es/select-input/SelectInput.d.ts +0 -11
- package/es/select-input/defaultProps.d.ts +0 -2
- package/es/select-input/hook/useMultiple.d.ts +0 -23
- package/es/select-input/hook/useOverlayInnerStyle.d.ts +0 -11
- package/es/select-input/hook/useSingle.d.ts +0 -16
- package/es/select-input/index.d.ts +0 -5
- package/es/select-input/interface.d.ts +0 -17
- package/es/select-input/style/css.d.ts +0 -1
- package/es/select-input/style/index.d.ts +0 -1
- package/es/select-input/type.d.ts +0 -243
- package/es/slider/Slider.d.ts +0 -7
- package/es/slider/SliderHandleButton.d.ts +0 -11
- package/es/slider/defaultProps.d.ts +0 -5
- package/es/slider/index.d.ts +0 -5
- package/es/slider/style/css.d.ts +0 -1
- package/es/slider/style/index.d.ts +0 -1
- package/es/slider/type.d.ts +0 -78
- 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.d.ts +0 -1
- package/es/switch/Switch.d.ts +0 -9
- package/es/switch/defaultProps.d.ts +0 -2
- package/es/switch/index.d.ts +0 -4
- package/es/switch/style/css.d.ts +0 -1
- package/es/switch/style/index.d.ts +0 -1
- package/es/switch/type.d.ts +0 -48
- package/es/tab/TabBar.d.ts +0 -9
- package/es/tab/TabNav.d.ts +0 -10
- package/es/tab/TabNavItem.d.ts +0 -15
- package/es/tab/TabPanel.d.ts +0 -9
- package/es/tab/Tabs.d.ts +0 -10
- package/es/tab/defaultProps.d.ts +0 -3
- package/es/tab/index.d.ts +0 -8
- package/es/tab/style/index.d.ts +0 -1
- package/es/tab/type.d.ts +0 -130
- package/es/tab/useTabClass.d.ts +0 -8
- package/es/table/Cell.d.ts +0 -18
- package/es/table/TBody.d.ts +0 -28
- package/es/table/THead.d.ts +0 -10
- package/es/table/TR.d.ts +0 -28
- package/es/table/Table.d.ts +0 -6
- package/es/table/defaultProps.d.ts +0 -2
- package/es/table/hooks/index.d.ts +0 -4
- package/es/table/hooks/useTableClassName.d.ts +0 -26
- package/es/table/hooks/useTableStyle.d.ts +0 -11
- package/es/table/index.d.ts +0 -5
- package/es/table/style/css.d.ts +0 -1
- package/es/table/style/index.d.ts +0 -1
- package/es/table/type.d.ts +0 -195
- package/es/tag/Tag.d.ts +0 -14
- package/es/tag/defaultProps.d.ts +0 -7
- package/es/tag/index.d.ts +0 -4
- package/es/tag/style/css.d.ts +0 -1
- package/es/tag/style/index.d.ts +0 -1
- package/es/tag/type.d.ts +0 -169
- package/es/tag-input/TagInput.d.ts +0 -9
- package/es/tag-input/defaultProps.d.ts +0 -2
- package/es/tag-input/hooks/useHover.d.ts +0 -17
- package/es/tag-input/hooks/useTagList.d.ts +0 -30
- package/es/tag-input/hooks/useTagScroll.d.ts +0 -25
- package/es/tag-input/index.d.ts +0 -5
- package/es/tag-input/style/css.d.ts +0 -1
- package/es/tag-input/style/index.d.ts +0 -1
- package/es/tag-input/type.d.ts +0 -235
- package/es/tag-input/useTagList.d.ts +0 -30
- package/es/utils/composeRefs.d.ts +0 -2
- package/es/utils/dom.d.ts +0 -7
- package/es/utils/forwardRefWithStatics.d.ts +0 -2
- package/es/utils/getScrollbarWidth.d.ts +0 -6
- package/es/utils/helper.d.ts +0 -46
- package/es/utils/input-number/large-number.d.ts +0 -85
- package/es/utils/input-number/number.d.ts +0 -81
- package/es/utils/isFragment.d.ts +0 -4
- package/es/utils/listener.d.ts +0 -4
- package/es/utils/log/index.d.ts +0 -2
- package/es/utils/log/log.d.ts +0 -3
- package/es/utils/log/types.d.ts +0 -8
- package/es/utils/noop.d.ts +0 -2
- package/es/utils/number.d.ts +0 -7
- package/es/utils/parentTNode.d.ts +0 -10
- package/es/utils/parseTNode.d.ts +0 -10
- package/es/utils/react-render.d.ts +0 -16
- package/es/utils/ref.d.ts +0 -1
- package/es/utils/refs.d.ts +0 -13
- package/es/utils/scroll.d.ts +0 -3
- package/es/utils/style.d.ts +0 -4
- package/es/utils/transition.d.ts +0 -20
|
@@ -1,1029 +0,0 @@
|
|
|
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>>>;
|