@tendaui/react 1.1.3 → 1.1.4
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-COy5g3FT.js → dep-D68MD94M.js} +2 -2
- package/es/_chunks/{dep-COy5g3FT.js.map → dep-D68MD94M.js.map} +1 -1
- package/es/button/_example/base.js +4 -2
- package/es/button/_example/base.js.map +1 -1
- package/es/button/_example/icon.js +4 -2
- package/es/button/_example/icon.js.map +1 -1
- package/es/index.js +4 -2
- package/es/index.js.map +1 -1
- package/es/ip-input/IPInput.js +2 -2
- package/es/ip-input/index.js +2 -2
- package/es/ip-input/style/css.js +1 -0
- package/es/layout/index.js +1 -1
- package/es/layout/style/css.js +1 -0
- package/package.json +59 -59
- 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/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 -1
- package/es/fireworks/style/index.d.ts +0 -1
- 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/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/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,243 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
|
|
3
|
-
* */
|
|
4
|
-
import { InputProps } from '../input';
|
|
5
|
-
import { PopupProps } from '../popup';
|
|
6
|
-
import { TagInputProps, TagInputValue, TagInputChangeContext } from '../tag-input';
|
|
7
|
-
import { TagProps } from '../tag';
|
|
8
|
-
import { PopupVisibleChangeContext } from '../popup';
|
|
9
|
-
import { TNode, TElement, SizeEnum } from '../common';
|
|
10
|
-
import { MouseEvent, KeyboardEvent, ClipboardEvent, FocusEvent, FormEvent, CompositionEvent } from 'react';
|
|
11
|
-
export interface TdSelectInputProps {
|
|
12
|
-
/**
|
|
13
|
-
* 是否允许输入
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
allowInput?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* 宽度随内容自适应
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
autoWidth?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* 自动聚焦
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
autofocus?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* 无边框模式
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
borderless?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* 是否可清空
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
clearable?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* 标签过多的情况下,折叠项内容,默认为 `+N`。如果需要悬浮就显示其他内容,可以使用 `collapsedItems` 自定义。`value` 表示所有标签值,`collapsedSelectedItems` 表示折叠标签值,`count` 表示折叠的数量,`onClose` 表示移除标签的事件回调
|
|
39
|
-
*/
|
|
40
|
-
collapsedItems?: TNode<{
|
|
41
|
-
value: SelectInputValue;
|
|
42
|
-
collapsedSelectedItems: SelectInputValue;
|
|
43
|
-
count: number;
|
|
44
|
-
onClose: (context: {
|
|
45
|
-
index: number;
|
|
46
|
-
e?: MouseEvent;
|
|
47
|
-
}) => void;
|
|
48
|
-
}>;
|
|
49
|
-
/**
|
|
50
|
-
* 是否禁用
|
|
51
|
-
*/
|
|
52
|
-
disabled?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* 透传 Input 输入框组件全部属性
|
|
55
|
-
*/
|
|
56
|
-
inputProps?: InputProps;
|
|
57
|
-
/**
|
|
58
|
-
* 输入框的值
|
|
59
|
-
*/
|
|
60
|
-
inputValue?: string;
|
|
61
|
-
/**
|
|
62
|
-
* 输入框的值,非受控属性
|
|
63
|
-
*/
|
|
64
|
-
defaultInputValue?: string;
|
|
65
|
-
/**
|
|
66
|
-
* 定义字段别名,示例:`{ label: 'text', value: 'id', children: 'list' }`
|
|
67
|
-
*/
|
|
68
|
-
keys?: SelectInputKeys;
|
|
69
|
-
/**
|
|
70
|
-
* 左侧文本
|
|
71
|
-
*/
|
|
72
|
-
label?: TNode;
|
|
73
|
-
/**
|
|
74
|
-
* 是否处于加载状态
|
|
75
|
-
* @default false
|
|
76
|
-
*/
|
|
77
|
-
loading?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* 最小折叠数量,用于标签数量过多的情况下折叠选中项,超出该数值的选中项折叠。值为 0 则表示不折叠
|
|
80
|
-
* @default 0
|
|
81
|
-
*/
|
|
82
|
-
minCollapsedNum?: number;
|
|
83
|
-
/**
|
|
84
|
-
* 是否为多选模式,默认为单选
|
|
85
|
-
* @default false
|
|
86
|
-
*/
|
|
87
|
-
multiple?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* 下拉框内容,可完全自定义
|
|
90
|
-
*/
|
|
91
|
-
panel?: TNode;
|
|
92
|
-
/**
|
|
93
|
-
* 占位符
|
|
94
|
-
* @default ''
|
|
95
|
-
*/
|
|
96
|
-
placeholder?: string;
|
|
97
|
-
/**
|
|
98
|
-
* 透传 Popup 浮层组件全部属性
|
|
99
|
-
*/
|
|
100
|
-
popupProps?: PopupProps;
|
|
101
|
-
/**
|
|
102
|
-
* 是否显示下拉框
|
|
103
|
-
*/
|
|
104
|
-
popupVisible?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* 是否显示下拉框,非受控属性
|
|
107
|
-
*/
|
|
108
|
-
defaultPopupVisible?: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* 组件前置图标
|
|
111
|
-
*/
|
|
112
|
-
prefixIcon?: TElement;
|
|
113
|
-
/**
|
|
114
|
-
* 只读状态,值为真会隐藏输入框,且无法打开下拉框
|
|
115
|
-
* @default false
|
|
116
|
-
*/
|
|
117
|
-
readonly?: boolean;
|
|
118
|
-
/**
|
|
119
|
-
* 多选且可搜索时,是否在选中一个选项后保留当前的搜索关键词
|
|
120
|
-
* @default false
|
|
121
|
-
*/
|
|
122
|
-
reserveKeyword?: boolean;
|
|
123
|
-
/**
|
|
124
|
-
* 组件尺寸
|
|
125
|
-
* @default medium
|
|
126
|
-
*/
|
|
127
|
-
size?: SizeEnum;
|
|
128
|
-
/**
|
|
129
|
-
* 输入框状态
|
|
130
|
-
* @default default
|
|
131
|
-
*/
|
|
132
|
-
status?: 'default' | 'success' | 'warning' | 'error';
|
|
133
|
-
/**
|
|
134
|
-
* 后置图标前的后置内容
|
|
135
|
-
*/
|
|
136
|
-
suffix?: TNode;
|
|
137
|
-
/**
|
|
138
|
-
* 组件后置图标
|
|
139
|
-
*/
|
|
140
|
-
suffixIcon?: TElement;
|
|
141
|
-
/**
|
|
142
|
-
* 多选场景下,自定义选中标签的内部内容。注意和 `valueDisplay` 区分,`valueDisplay` 是用来定义全部标签内容,而非某一个标签
|
|
143
|
-
*/
|
|
144
|
-
tag?: string | TNode<{
|
|
145
|
-
value: string | number;
|
|
146
|
-
}>;
|
|
147
|
-
/**
|
|
148
|
-
* 透传 TagInput 组件全部属性
|
|
149
|
-
*/
|
|
150
|
-
tagInputProps?: TagInputProps;
|
|
151
|
-
/**
|
|
152
|
-
* 透传 Tag 标签组件全部属性
|
|
153
|
-
*/
|
|
154
|
-
tagProps?: TagProps;
|
|
155
|
-
/**
|
|
156
|
-
* 输入框下方提示文本,会根据不同的 `status` 呈现不同的样式
|
|
157
|
-
*/
|
|
158
|
-
tips?: TNode;
|
|
159
|
-
/**
|
|
160
|
-
* 全部标签值。值为数组表示多个标签,值为非数组表示单个数值
|
|
161
|
-
*/
|
|
162
|
-
value?: SelectInputValue;
|
|
163
|
-
/**
|
|
164
|
-
* 自定义值呈现的全部内容,参数为所有标签的值
|
|
165
|
-
*/
|
|
166
|
-
valueDisplay?: string | TNode<{
|
|
167
|
-
value: TagInputValue;
|
|
168
|
-
onClose: (index: number, item?: any) => void;
|
|
169
|
-
}>;
|
|
170
|
-
/**
|
|
171
|
-
* 失去焦点时触发,`context.inputValue` 表示输入框的值;`context.tagInputValue` 表示标签输入框的值
|
|
172
|
-
*/
|
|
173
|
-
onBlur?: (value: SelectInputValue, context: SelectInputBlurContext) => void;
|
|
174
|
-
/**
|
|
175
|
-
* 清空按钮点击时触发
|
|
176
|
-
*/
|
|
177
|
-
onClear?: (context: {
|
|
178
|
-
e: MouseEvent<SVGSVGElement>;
|
|
179
|
-
}) => void;
|
|
180
|
-
/**
|
|
181
|
-
* 按键按下 Enter 时触发
|
|
182
|
-
*/
|
|
183
|
-
onEnter?: (value: SelectInputValue, context: {
|
|
184
|
-
e: KeyboardEvent<HTMLDivElement>;
|
|
185
|
-
inputValue: string;
|
|
186
|
-
tagInputValue?: TagInputValue;
|
|
187
|
-
}) => void;
|
|
188
|
-
/**
|
|
189
|
-
* 聚焦时触发
|
|
190
|
-
*/
|
|
191
|
-
onFocus?: (value: SelectInputValue, context: SelectInputFocusContext) => void;
|
|
192
|
-
/**
|
|
193
|
-
* 输入框值发生变化时触发,`context.trigger` 表示触发输入框值变化的来源:文本输入触发、清除按钮触发等
|
|
194
|
-
*/
|
|
195
|
-
onInputChange?: (value: string, context?: SelectInputValueChangeContext) => void;
|
|
196
|
-
/**
|
|
197
|
-
* 进入输入框时触发
|
|
198
|
-
*/
|
|
199
|
-
onMouseenter?: (context: {
|
|
200
|
-
e: MouseEvent<HTMLDivElement>;
|
|
201
|
-
}) => void;
|
|
202
|
-
/**
|
|
203
|
-
* 离开输入框时触发
|
|
204
|
-
*/
|
|
205
|
-
onMouseleave?: (context: {
|
|
206
|
-
e: MouseEvent<HTMLDivElement>;
|
|
207
|
-
}) => void;
|
|
208
|
-
/**
|
|
209
|
-
* 粘贴事件,`pasteValue` 表示粘贴板的内容
|
|
210
|
-
*/
|
|
211
|
-
onPaste?: (context: {
|
|
212
|
-
e: ClipboardEvent<HTMLDivElement>;
|
|
213
|
-
pasteValue: string;
|
|
214
|
-
}) => void;
|
|
215
|
-
/**
|
|
216
|
-
* 下拉框显示或隐藏时触发
|
|
217
|
-
*/
|
|
218
|
-
onPopupVisibleChange?: (visible: boolean, context: PopupVisibleChangeContext) => void;
|
|
219
|
-
/**
|
|
220
|
-
* 值变化时触发,参数 `context.trigger` 表示数据变化的触发来源;`context.index` 指当前变化项的下标;`context.item` 指当前变化项;`context.e` 表示事件参数
|
|
221
|
-
*/
|
|
222
|
-
onTagChange?: (value: TagInputValue, context: SelectInputChangeContext) => void;
|
|
223
|
-
}
|
|
224
|
-
export interface SelectInputKeys {
|
|
225
|
-
label?: string;
|
|
226
|
-
value?: string;
|
|
227
|
-
children?: string;
|
|
228
|
-
}
|
|
229
|
-
export type SelectInputValue = string | number | boolean | Date | Object | Array<any> | Array<SelectInputValue>;
|
|
230
|
-
export type SelectInputBlurContext = PopupVisibleChangeContext & {
|
|
231
|
-
inputValue: string;
|
|
232
|
-
tagInputValue?: TagInputValue;
|
|
233
|
-
};
|
|
234
|
-
export interface SelectInputFocusContext {
|
|
235
|
-
inputValue: string;
|
|
236
|
-
tagInputValue?: TagInputValue;
|
|
237
|
-
e: FocusEvent<HTMLInputElement>;
|
|
238
|
-
}
|
|
239
|
-
export interface SelectInputValueChangeContext {
|
|
240
|
-
e?: Event | FormEvent<HTMLInputElement> | MouseEvent<HTMLElement | SVGElement> | FocusEvent<HTMLInputElement> | KeyboardEvent<HTMLInputElement> | CompositionEvent<HTMLDivElement>;
|
|
241
|
-
trigger: 'input' | 'clear' | 'blur' | 'focus' | 'initial' | 'change';
|
|
242
|
-
}
|
|
243
|
-
export type SelectInputChangeContext = TagInputChangeContext;
|
package/es/slider/Slider.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { StyledProps } from "../common";
|
|
3
|
-
import type { SliderValue, TdSliderProps } from "./type";
|
|
4
|
-
export interface SliderProps<T extends SliderValue = SliderValue> extends TdSliderProps<T>, StyledProps {
|
|
5
|
-
}
|
|
6
|
-
declare const _default: <T extends SliderValue = SliderValue>(props: SliderProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
|
|
7
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { type MouseCallback } from "../hooks/useMouseEvent";
|
|
3
|
-
interface SliderHandleButtonProps {
|
|
4
|
-
onChange: (event: MouseCallback) => void;
|
|
5
|
-
classPrefix: string;
|
|
6
|
-
style: React.CSSProperties;
|
|
7
|
-
hideTips: boolean;
|
|
8
|
-
toolTipProps?: any;
|
|
9
|
-
}
|
|
10
|
-
declare const SliderHandleButton: React.FC<SliderHandleButtonProps>;
|
|
11
|
-
export default SliderHandleButton;
|
package/es/slider/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import "./style/index.js";
|
|
2
|
-
export type { SliderProps } from "./Slider";
|
|
3
|
-
export * from "./type";
|
|
4
|
-
export declare const Slider: <T extends import("./type").SliderValue = import("./type").SliderValue>(props: import("./Slider").SliderProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
|
|
5
|
-
export default Slider;
|
package/es/slider/style/css.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/es/slider/type.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { InputNumberProps } from "../input-number";
|
|
2
|
-
import { TNode } from "../common";
|
|
3
|
-
import React from "react";
|
|
4
|
-
export interface TooltipProps {
|
|
5
|
-
content?: string | React.ReactNode;
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}
|
|
8
|
-
export interface TdSliderProps<T = SliderValue> {
|
|
9
|
-
/**
|
|
10
|
-
* 是否禁用组件
|
|
11
|
-
* @default false
|
|
12
|
-
*/
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* 用于控制数字输入框组件,值为 false 表示不显示数字输入框;值为 true 表示呈现默认数字输入框;值类型为 Object 表示透传属性到数字输入框组件
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
inputNumberProps?: boolean | InputNumberProps<number>;
|
|
19
|
-
/**
|
|
20
|
-
* 滑块当前值文本。<br />值为 true 显示默认文案;值为 false 不显示滑块当前值文本;<br />值为 `${value}%` 则表示组件会根据占位符渲染文案;<br />值类型为函数时,参数 `value` 标识滑块值,参数 `position=start` 表示范围滑块的起始值,参数 `position=end` 表示范围滑块的终点值
|
|
21
|
-
* @default true
|
|
22
|
-
*/
|
|
23
|
-
label?: string | boolean | TNode<{
|
|
24
|
-
value: SliderValue;
|
|
25
|
-
position?: "start" | "end";
|
|
26
|
-
}>;
|
|
27
|
-
/**
|
|
28
|
-
* 滑块布局方向
|
|
29
|
-
* @default horizontal
|
|
30
|
-
*/
|
|
31
|
-
layout?: "vertical" | "horizontal";
|
|
32
|
-
/**
|
|
33
|
-
* 刻度标记,示例:[0, 10, 40, 200] 或者 `{ 10: (val) => val + '%', 50: (h) => <button>50</button> }`
|
|
34
|
-
*/
|
|
35
|
-
marks?: Array<number> | SliderMarks;
|
|
36
|
-
/**
|
|
37
|
-
* 滑块范围最大值
|
|
38
|
-
* @default 100
|
|
39
|
-
*/
|
|
40
|
-
max?: number;
|
|
41
|
-
/**
|
|
42
|
-
* 滑块范围最小值
|
|
43
|
-
* @default 0
|
|
44
|
-
*/
|
|
45
|
-
min?: number;
|
|
46
|
-
/**
|
|
47
|
-
* 双游标滑块
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
range?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* 步长
|
|
53
|
-
* @default 1
|
|
54
|
-
*/
|
|
55
|
-
step?: number;
|
|
56
|
-
/**
|
|
57
|
-
* 透传提示组件属性
|
|
58
|
-
*/
|
|
59
|
-
tooltipProps?: TooltipProps;
|
|
60
|
-
/**
|
|
61
|
-
* 滑块值
|
|
62
|
-
*/
|
|
63
|
-
value?: SliderValue;
|
|
64
|
-
/**
|
|
65
|
-
* 滑块值,非受控属性
|
|
66
|
-
*/
|
|
67
|
-
defaultValue?: SliderValue;
|
|
68
|
-
/**
|
|
69
|
-
* 滑块值变化时触发
|
|
70
|
-
*/
|
|
71
|
-
onChange?: (value: T) => void;
|
|
72
|
-
}
|
|
73
|
-
export interface SliderMarks {
|
|
74
|
-
[mark: number]: string | TNode<{
|
|
75
|
-
value: number;
|
|
76
|
-
}>;
|
|
77
|
-
}
|
|
78
|
-
export type SliderValue = number | Array<number>;
|
|
File without changes
|
package/es/space/index.d.ts
DELETED
|
File without changes
|
package/es/space/type.d.ts
DELETED
|
File without changes
|
package/es/style/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/es/switch/Switch.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyledProps } from "../common";
|
|
3
|
-
import { SwitchValue, TdSwitchProps } from "./type";
|
|
4
|
-
export type SwitchChangeEventHandler = (value: boolean, event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
-
export type SwitchClickEventHandler = SwitchChangeEventHandler;
|
|
6
|
-
export interface SwitchProps<T extends SwitchValue = SwitchValue> extends TdSwitchProps<T>, StyledProps {
|
|
7
|
-
}
|
|
8
|
-
declare const _default: <T extends SwitchValue = SwitchValue>(props: SwitchProps<T> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement;
|
|
9
|
-
export default _default;
|
package/es/switch/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "./style/index";
|
|
2
|
-
export * from "./type";
|
|
3
|
-
export declare const Switch: <T extends import("./type").SwitchValue = import("./type").SwitchValue>(props: import("./Switch").SwitchProps<T> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement;
|
|
4
|
-
export default Switch;
|
package/es/switch/style/css.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/es/switch/type.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { TNode } from "../common";
|
|
2
|
-
import { MouseEvent } from "react";
|
|
3
|
-
export interface TdSwitchProps<T = SwitchValue> {
|
|
4
|
-
/**
|
|
5
|
-
* Switch 切换状态前的回调方法,常用于需要发起异步请求的场景,返回值支持布尔和 Promise 类型,返回`false`或 Promise reject不继续执行change,否则则继续执行。
|
|
6
|
-
*/
|
|
7
|
-
beforeChange?: () => boolean | Promise<boolean>;
|
|
8
|
-
/**
|
|
9
|
-
* 用于自定义开关的值,[打开时的值,关闭时的值]。默认为 [true, false]。示例:[1, 0]、['open', 'close']
|
|
10
|
-
*/
|
|
11
|
-
customValue?: Array<SwitchValue>;
|
|
12
|
-
/**
|
|
13
|
-
* 是否禁用组件,默认为 false
|
|
14
|
-
*/
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* 开关内容,[开启时内容,关闭时内容]。示例:['开', '关'] 或 (value) => value ? '开' : '关'
|
|
18
|
-
* @default []
|
|
19
|
-
*/
|
|
20
|
-
label?: Array<string | TNode> | TNode<{
|
|
21
|
-
value: SwitchValue;
|
|
22
|
-
}>;
|
|
23
|
-
/**
|
|
24
|
-
* 是否处于加载中状态
|
|
25
|
-
* @default false
|
|
26
|
-
*/
|
|
27
|
-
loading?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* 开关尺寸
|
|
30
|
-
* @default medium
|
|
31
|
-
*/
|
|
32
|
-
size?: "small" | "medium" | "large";
|
|
33
|
-
/**
|
|
34
|
-
* 开关值
|
|
35
|
-
*/
|
|
36
|
-
value?: T;
|
|
37
|
-
/**
|
|
38
|
-
* 开关值,非受控属性
|
|
39
|
-
*/
|
|
40
|
-
defaultValue?: T;
|
|
41
|
-
/**
|
|
42
|
-
* 数据发生变化时触发
|
|
43
|
-
*/
|
|
44
|
-
onChange?: (value: T, context: {
|
|
45
|
-
e: MouseEvent;
|
|
46
|
-
}) => void;
|
|
47
|
-
}
|
|
48
|
-
export type SwitchValue = string | number | boolean;
|
package/es/tab/TabBar.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface TabBarProps {
|
|
3
|
-
tabPosition: string;
|
|
4
|
-
activeId: string | number;
|
|
5
|
-
containerRef: React.MutableRefObject<HTMLDivElement>;
|
|
6
|
-
navsWrapRef: React.MutableRefObject<HTMLDivElement>;
|
|
7
|
-
}
|
|
8
|
-
declare const TabBar: React.FC<TabBarProps>;
|
|
9
|
-
export default TabBar;
|
package/es/tab/TabNav.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TdTabsProps, TdTabPanelProps, TabValue } from "./type";
|
|
3
|
-
export interface TabNavProps extends TdTabsProps {
|
|
4
|
-
itemList: TdTabPanelProps[];
|
|
5
|
-
activeValue: TabValue;
|
|
6
|
-
size?: "medium" | "large";
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
declare const TabNav: React.FC<TabNavProps>;
|
|
10
|
-
export default TabNav;
|
package/es/tab/TabNavItem.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { MouseEvent } from "react";
|
|
2
|
-
import type { StyledProps } from "../common";
|
|
3
|
-
import type { TdTabPanelProps, TdTabsProps } from "./type";
|
|
4
|
-
export interface TabNavItemProps extends TdTabPanelProps, StyledProps {
|
|
5
|
-
isActive: boolean;
|
|
6
|
-
onClick: (e: MouseEvent) => void;
|
|
7
|
-
theme: "normal" | "card";
|
|
8
|
-
placement: string;
|
|
9
|
-
size?: "medium" | "large";
|
|
10
|
-
index: number;
|
|
11
|
-
innerRef(ref: HTMLElement): void;
|
|
12
|
-
onTabRemove: TdTabsProps["onRemove"];
|
|
13
|
-
}
|
|
14
|
-
declare const TabNavItem: React.FC<TabNavItemProps>;
|
|
15
|
-
export default TabNavItem;
|
package/es/tab/TabPanel.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { TdTabPanelProps } from "./type";
|
|
3
|
-
import { StyledProps } from "../common";
|
|
4
|
-
export interface TabPanelProps extends TdTabPanelProps, StyledProps {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
isActive?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const TabPanel: React.FC<TabPanelProps>;
|
|
9
|
-
export default TabPanel;
|
package/es/tab/Tabs.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TdTabsProps } from "./type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { StyledProps } from "../common";
|
|
4
|
-
export interface TabsProps extends TdTabsProps, StyledProps {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
declare const Tabs: React.FunctionComponent<TabsProps & React.RefAttributes<HTMLDivElement>> & {
|
|
8
|
-
TabPanel: React.FC<import("./TabPanel").TabPanelProps>;
|
|
9
|
-
};
|
|
10
|
-
export default Tabs;
|
package/es/tab/defaultProps.d.ts
DELETED
package/es/tab/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import TabPanel from "./TabPanel";
|
|
2
|
-
import "./style/index";
|
|
3
|
-
export * from "./type";
|
|
4
|
-
export declare const Tabs: import("react").FunctionComponent<import("./Tabs").TabsProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
|
-
TabPanel: import("react").FC<import("./TabPanel").TabPanelProps>;
|
|
6
|
-
};
|
|
7
|
-
export { TabPanel };
|
|
8
|
-
export default Tabs;
|
package/es/tab/style/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/es/tab/type.d.ts
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { TNode } from "../common";
|
|
2
|
-
import { MouseEvent } from "react";
|
|
3
|
-
export interface TdTabsProps {
|
|
4
|
-
/**
|
|
5
|
-
* 选项卡右侧的操作区域
|
|
6
|
-
*/
|
|
7
|
-
action?: TNode;
|
|
8
|
-
/**
|
|
9
|
-
* 选项卡是否可增加
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
addable?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* 是否禁用选项卡
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* 是否开启拖拽调整顺序
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
dragSort?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* 选项卡列表
|
|
25
|
-
*/
|
|
26
|
-
list?: Array<TdTabPanelProps>;
|
|
27
|
-
/**
|
|
28
|
-
* 选项卡位置
|
|
29
|
-
* @default top
|
|
30
|
-
*/
|
|
31
|
-
placement?: "left" | "top" | "bottom" | "right";
|
|
32
|
-
/**
|
|
33
|
-
* Tab较多的时候,选中滑块滚动最终停留的位置
|
|
34
|
-
* @default auto
|
|
35
|
-
*/
|
|
36
|
-
scrollPosition?: "auto" | "start" | "center" | "end";
|
|
37
|
-
/**
|
|
38
|
-
* 组件尺寸
|
|
39
|
-
* @default medium
|
|
40
|
-
*/
|
|
41
|
-
size?: "medium" | "large";
|
|
42
|
-
/**
|
|
43
|
-
* 选项卡风格,包含 默认风格 和 卡片风格两种
|
|
44
|
-
* @default normal
|
|
45
|
-
*/
|
|
46
|
-
theme?: "normal" | "card";
|
|
47
|
-
/**
|
|
48
|
-
* 激活的选项卡值
|
|
49
|
-
*/
|
|
50
|
-
value?: TabValue;
|
|
51
|
-
/**
|
|
52
|
-
* 激活的选项卡值,非受控属性
|
|
53
|
-
*/
|
|
54
|
-
defaultValue?: TabValue;
|
|
55
|
-
/**
|
|
56
|
-
* 添加选项卡时触发
|
|
57
|
-
*/
|
|
58
|
-
onAdd?: (context: {
|
|
59
|
-
e: MouseEvent<HTMLDivElement>;
|
|
60
|
-
}) => void;
|
|
61
|
-
/**
|
|
62
|
-
* 激活的选项卡发生变化时触发
|
|
63
|
-
*/
|
|
64
|
-
onChange?: (value: TabValue) => void;
|
|
65
|
-
/**
|
|
66
|
-
* 拖拽排序时触发
|
|
67
|
-
*/
|
|
68
|
-
onDragSort?: (context: TabsDragSortContext) => void;
|
|
69
|
-
/**
|
|
70
|
-
* 删除选项卡时触发
|
|
71
|
-
*/
|
|
72
|
-
onRemove?: (options: {
|
|
73
|
-
value: TabValue;
|
|
74
|
-
index: number;
|
|
75
|
-
e: MouseEvent<HTMLSpanElement>;
|
|
76
|
-
}) => void;
|
|
77
|
-
}
|
|
78
|
-
export interface TdTabPanelProps {
|
|
79
|
-
/**
|
|
80
|
-
* 选项卡内容隐藏时是否销毁
|
|
81
|
-
* @default true
|
|
82
|
-
*/
|
|
83
|
-
destroyOnHide?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* 是否禁用当前选项卡
|
|
86
|
-
* @default false
|
|
87
|
-
*/
|
|
88
|
-
disabled?: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* 选项卡组件开启允许拖动排序时,当前选项卡是否允许拖动
|
|
91
|
-
* @default true
|
|
92
|
-
*/
|
|
93
|
-
draggable?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* 选项卡名称,可自定义选项卡导航内容
|
|
96
|
-
*/
|
|
97
|
-
label?: TNode;
|
|
98
|
-
/**
|
|
99
|
-
* 是否启用选项卡懒加载
|
|
100
|
-
* @default false
|
|
101
|
-
*/
|
|
102
|
-
lazy?: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* 用于自定义选项卡面板内容
|
|
105
|
-
*/
|
|
106
|
-
panel?: TNode;
|
|
107
|
-
/**
|
|
108
|
-
* 当前选项卡是否允许移除
|
|
109
|
-
* @default false
|
|
110
|
-
*/
|
|
111
|
-
removable?: boolean;
|
|
112
|
-
/**
|
|
113
|
-
* 选项卡的值,唯一标识
|
|
114
|
-
*/
|
|
115
|
-
value?: TabValue;
|
|
116
|
-
/**
|
|
117
|
-
* 点击删除按钮时触发
|
|
118
|
-
*/
|
|
119
|
-
onRemove?: (options: {
|
|
120
|
-
value: TabValue;
|
|
121
|
-
e: MouseEvent<HTMLSpanElement>;
|
|
122
|
-
}) => void;
|
|
123
|
-
}
|
|
124
|
-
export type TabValue = string | number;
|
|
125
|
-
export interface TabsDragSortContext {
|
|
126
|
-
currentIndex: number;
|
|
127
|
-
current: TabValue;
|
|
128
|
-
targetIndex: number;
|
|
129
|
-
target: TabValue;
|
|
130
|
-
}
|
package/es/tab/useTabClass.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const useTabClass: () => {
|
|
2
|
-
tdTabsClassPrefix: string;
|
|
3
|
-
tdTabPanelClassPrefix: string;
|
|
4
|
-
tdClassGenerator: (append: string) => string;
|
|
5
|
-
tdTabsClassGenerator: (append: string) => string;
|
|
6
|
-
tdTabPanelClassGenerator: (append: string) => string;
|
|
7
|
-
tdSizeClassGenerator: (size: "medium" | "large") => string;
|
|
8
|
-
};
|