@tendaui/react 1.1.2 → 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 -60
- 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
package/es/loading/Loading.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function circleAdapter(circleElem: HTMLElement): void;
|
package/es/loading/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/es/loading/type.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { TNode, AttachNode } from "../common";
|
|
2
|
-
export interface TdLoadingProps {
|
|
3
|
-
/**
|
|
4
|
-
* 挂载元素,默认挂载到组件本身所在的位置。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body
|
|
5
|
-
* @default ''
|
|
6
|
-
*/
|
|
7
|
-
attach?: AttachNode;
|
|
8
|
-
/**
|
|
9
|
-
* 子元素,同 content
|
|
10
|
-
*/
|
|
11
|
-
children?: TNode;
|
|
12
|
-
/**
|
|
13
|
-
* 子元素
|
|
14
|
-
*/
|
|
15
|
-
content?: TNode;
|
|
16
|
-
/**
|
|
17
|
-
* 延迟显示加载效果的时间,用于防止请求速度过快引起的加载闪烁,单位:毫秒
|
|
18
|
-
* @default 0
|
|
19
|
-
*/
|
|
20
|
-
delay?: number;
|
|
21
|
-
/**
|
|
22
|
-
* 是否显示为全屏加载
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
fullscreen?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* 加载指示符,值为 true 显示默认指示符,值为 false 则不显示,也可以自定义指示符
|
|
28
|
-
* @default true
|
|
29
|
-
*/
|
|
30
|
-
indicator?: TNode;
|
|
31
|
-
/**
|
|
32
|
-
* 是否继承父元素颜色
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
inheritColor?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* 是否处于加载状态
|
|
38
|
-
* @default true
|
|
39
|
-
*/
|
|
40
|
-
loading?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* 防止滚动穿透,全屏加载模式有效
|
|
43
|
-
* @default true
|
|
44
|
-
*/
|
|
45
|
-
preventScrollThrough?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* 是否需要遮罩层,遮罩层对包裹元素才有效
|
|
48
|
-
* @default true
|
|
49
|
-
*/
|
|
50
|
-
showOverlay?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* 尺寸,示例:small/medium/large/12px/56px/0.3em
|
|
53
|
-
* @default medium
|
|
54
|
-
*/
|
|
55
|
-
size?: string;
|
|
56
|
-
/**
|
|
57
|
-
* 加载提示文案
|
|
58
|
-
*/
|
|
59
|
-
text?: TNode;
|
|
60
|
-
/**
|
|
61
|
-
* 消息通知层级,样式默认为 3500
|
|
62
|
-
*/
|
|
63
|
-
zIndex?: number;
|
|
64
|
-
}
|
|
65
|
-
export interface LoadingInstance {
|
|
66
|
-
hide: () => void;
|
|
67
|
-
}
|
|
68
|
-
export type LoadingMethod = (options: boolean | TdLoadingProps) => LoadingInstance;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Locale } from "../config-provider";
|
|
2
|
-
export interface Placement {
|
|
3
|
-
[propName: string]: string | number;
|
|
4
|
-
}
|
|
5
|
-
export type TransformPattern = string | Function | Array<string>;
|
|
6
|
-
export declare function useLocaleReceiver<T extends keyof Locale>(componentName: T, defaultLocale?: Locale[T] | Function): [Locale[T], Function];
|
package/es/locale/ar_KW.d.ts
DELETED
package/es/locale/en_US.d.ts
DELETED
package/es/locale/it_IT.d.ts
DELETED
package/es/locale/ja_JP.d.ts
DELETED
package/es/locale/ko_KR.d.ts
DELETED
package/es/locale/ru_RU.d.ts
DELETED
package/es/locale/zh_CN.d.ts
DELETED
package/es/locale/zh_TW.d.ts
DELETED
package/es/myform/index.d.ts
DELETED
|
File without changes
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type NotificationType = "default" | "success" | "error" | "info" | "warning";
|
|
2
|
-
type NotificationMessage = {
|
|
3
|
-
id: string;
|
|
4
|
-
type: NotificationType;
|
|
5
|
-
message: string;
|
|
6
|
-
title: string;
|
|
7
|
-
};
|
|
8
|
-
declare let addNotification: (notification: NotificationMessage) => void;
|
|
9
|
-
export declare function notification(message: string, type: NotificationType, title: string): void;
|
|
10
|
-
export declare function registerNotificationHandler(cb: typeof addNotification): void;
|
|
11
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TdNotificationProps } from "./type";
|
|
3
|
-
export declare const GAP = 14;
|
|
4
|
-
export declare const TOAST_WIDTH = 356;
|
|
5
|
-
declare const NotificationContainer: ({ notifications, onRemove, onHoverStart, onHoverEnd, maxStack, position }: {
|
|
6
|
-
notifications: TdNotificationProps[];
|
|
7
|
-
onRemove: (id: string) => void;
|
|
8
|
-
onHoverStart: () => void;
|
|
9
|
-
onHoverEnd: () => void;
|
|
10
|
-
maxStack: number;
|
|
11
|
-
position: string;
|
|
12
|
-
}) => React.JSX.Element;
|
|
13
|
-
export default NotificationContainer;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type NotificationType = "success" | "error" | "warning" | "info";
|
|
3
|
-
interface NotificationContextType {
|
|
4
|
-
notify: (type: NotificationType, message: Message) => void;
|
|
5
|
-
success: (message: Message) => void;
|
|
6
|
-
error: (message: Message) => void;
|
|
7
|
-
warning: (message: Message) => void;
|
|
8
|
-
info: (message: Message) => void;
|
|
9
|
-
removeNotification: (id: string) => void;
|
|
10
|
-
}
|
|
11
|
-
interface NotificationProviderProps {
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
maxStack?: number;
|
|
14
|
-
displayDuration?: number;
|
|
15
|
-
position?: string;
|
|
16
|
-
}
|
|
17
|
-
type Message = {
|
|
18
|
-
title: string;
|
|
19
|
-
message: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const NotificationProvider: React.FC<NotificationProviderProps>;
|
|
22
|
-
export declare const useNotification: () => NotificationContextType;
|
|
23
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface TdNotificationProps {
|
|
2
|
-
id: string;
|
|
3
|
-
type: string;
|
|
4
|
-
message: string;
|
|
5
|
-
title: string;
|
|
6
|
-
onRemove?: (id: string) => void;
|
|
7
|
-
onHoverStart?: () => void;
|
|
8
|
-
onHoverEnd?: () => void;
|
|
9
|
-
maxStack?: number;
|
|
10
|
-
position?: string;
|
|
11
|
-
heights?: HeightItem[];
|
|
12
|
-
setHeights?: React.Dispatch<React.SetStateAction<HeightItem[]>>;
|
|
13
|
-
gap?: number;
|
|
14
|
-
isExpanded?: boolean;
|
|
15
|
-
isRemoved?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface HeightItem {
|
|
18
|
-
toastId: string;
|
|
19
|
-
height: number;
|
|
20
|
-
message: string;
|
|
21
|
-
type: string;
|
|
22
|
-
}
|
package/es/popup/Popup.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { TdPopupProps } from "./type";
|
|
3
|
-
import usePopper from "../hooks/usePopper";
|
|
4
|
-
export interface PopupProps extends TdPopupProps {
|
|
5
|
-
expandAnimation?: boolean;
|
|
6
|
-
updateScrollTop?: (content: HTMLDivElement) => void;
|
|
7
|
-
}
|
|
8
|
-
export interface PopupRef {
|
|
9
|
-
/** 获取 popper 实例 */
|
|
10
|
-
getPopper: () => ReturnType<typeof usePopper>;
|
|
11
|
-
/** 获取 Popup dom 元素 */
|
|
12
|
-
getPopupElement: () => HTMLDivElement;
|
|
13
|
-
/** 获取 portal dom 元素 */
|
|
14
|
-
getPortalElement: () => HTMLDivElement;
|
|
15
|
-
/** 获取内容区域 dom 元素 */
|
|
16
|
-
getPopupContentElement: () => HTMLDivElement;
|
|
17
|
-
/** 设置 popup 显示隐藏 */
|
|
18
|
-
setVisible: (visible: boolean) => void;
|
|
19
|
-
}
|
|
20
|
-
declare const Popup: React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<PopupRef>>;
|
|
21
|
-
export default Popup;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TNode } from "../../common";
|
|
3
|
-
interface UseTriggerProps {
|
|
4
|
-
content: TNode;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
trigger: "hover" | "click" | "mousedown" | "focus" | "context-menu" | undefined;
|
|
7
|
-
visible: boolean | undefined;
|
|
8
|
-
onVisibleChange: (visible: boolean, context: {
|
|
9
|
-
e?: React.MouseEvent<HTMLElement> | React.TouchEvent<HTMLElement> | React.FocusEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
|
|
10
|
-
trigger: string;
|
|
11
|
-
}) => void;
|
|
12
|
-
triggerRef: React.RefObject<HTMLElement>;
|
|
13
|
-
delay?: number | [number, number] | number[];
|
|
14
|
-
}
|
|
15
|
-
export default function useTrigger({ content, disabled, trigger, visible, onVisibleChange, triggerRef, delay }: UseTriggerProps): {
|
|
16
|
-
getTriggerNode: (children: React.ReactNode) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
17
|
-
getPopupProps: () => React.HTMLAttributes<HTMLElement>;
|
|
18
|
-
getTriggerDom: () => {};
|
|
19
|
-
};
|
|
20
|
-
export {};
|
package/es/popup/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import "./style/index";
|
|
2
|
-
export type { PopupProps, PopupRef } from "./Popup";
|
|
3
|
-
export * from "./type";
|
|
4
|
-
export declare const Popup: import("react").ForwardRefExoticComponent<import("./Popup").PopupProps & import("react").RefAttributes<import("./Popup").PopupRef>>;
|
|
5
|
-
export default Popup;
|
package/es/popup/style/css.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/es/popup/type.d.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { TNode, ClassName, Styles, AttachNode } from "../common";
|
|
2
|
-
import { MouseEvent, KeyboardEvent, FocusEvent, WheelEvent } from "react";
|
|
3
|
-
export interface TdPopupProps {
|
|
4
|
-
/**
|
|
5
|
-
* 制定挂载节点。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body
|
|
6
|
-
* @default 'body'
|
|
7
|
-
*/
|
|
8
|
-
attach?: AttachNode;
|
|
9
|
-
/**
|
|
10
|
-
* 触发元素,同 triggerElement
|
|
11
|
-
*/
|
|
12
|
-
children?: TNode;
|
|
13
|
-
/**
|
|
14
|
-
* 浮层里面的内容
|
|
15
|
-
*/
|
|
16
|
-
content?: TNode;
|
|
17
|
-
/**
|
|
18
|
-
* 延时显示或隐藏浮层,[延迟显示的时间,延迟隐藏的时间],单位:毫秒。如果只有一个时间,则表示显示和隐藏的延迟时间相同。示例 `'300'` 或者 `[200, 200]`。默认为:[250, 150]
|
|
19
|
-
*/
|
|
20
|
-
delay?: number | Array<number>;
|
|
21
|
-
/**
|
|
22
|
-
* 是否在关闭浮层时销毁浮层
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
destroyOnClose?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* 是否禁用组件
|
|
28
|
-
*/
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* 浮层是否隐藏空内容,默认不隐藏
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
hideEmptyPopup?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* 浮层类名,示例:'name1 name2 name3' 或 `['name1', 'name2']` 或 `[{ 'name1': true }]`
|
|
37
|
-
*/
|
|
38
|
-
overlayClassName?: ClassName;
|
|
39
|
-
/**
|
|
40
|
-
* 浮层内容部分类名,示例:'name1 name2 name3' 或 `['name1', 'name2']` 或 `[{ 'name1': true }]`
|
|
41
|
-
*/
|
|
42
|
-
overlayInnerClassName?: ClassName;
|
|
43
|
-
/**
|
|
44
|
-
* 浮层内容部分样式,第一个参数 `triggerElement` 表示触发元素 DOM 节点,第二个参数 `popupElement` 表示浮层元素 DOM 节点
|
|
45
|
-
*/
|
|
46
|
-
overlayInnerStyle?: Styles | ((triggerElement: HTMLElement, popupElement: HTMLElement) => Styles);
|
|
47
|
-
/**
|
|
48
|
-
* 浮层样式,第一个参数 `triggerElement` 表示触发元素 DOM 节点,第二个参数 `popupElement` 表示浮层元素 DOM 节点
|
|
49
|
-
*/
|
|
50
|
-
overlayStyle?: Styles | ((triggerElement: HTMLElement, popupElement: HTMLElement) => Styles);
|
|
51
|
-
/**
|
|
52
|
-
* 浮层出现位置
|
|
53
|
-
* @default top
|
|
54
|
-
*/
|
|
55
|
-
placement?: PopupPlacement;
|
|
56
|
-
/**
|
|
57
|
-
* popper 初始化配置,详情参考 https://popper.js.org/docs/
|
|
58
|
-
*/
|
|
59
|
-
popperOptions?: object;
|
|
60
|
-
/**
|
|
61
|
-
* 是否显示浮层箭头
|
|
62
|
-
* @default false
|
|
63
|
-
*/
|
|
64
|
-
showArrow?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* 触发浮层出现的方式
|
|
67
|
-
* @default hover
|
|
68
|
-
*/
|
|
69
|
-
trigger?: "hover" | "click" | "focus" | "mousedown" | "context-menu";
|
|
70
|
-
/**
|
|
71
|
-
* 触发元素。值类型为字符串表示元素选择器
|
|
72
|
-
*/
|
|
73
|
-
triggerElement?: TNode;
|
|
74
|
-
/**
|
|
75
|
-
* 是否显示浮层
|
|
76
|
-
*/
|
|
77
|
-
visible?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* 是否显示浮层,非受控属性
|
|
80
|
-
*/
|
|
81
|
-
defaultVisible?: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* 组件层级,Web 侧样式默认为 5500,移动端和小程序样式默认为 1500
|
|
84
|
-
*/
|
|
85
|
-
zIndex?: number;
|
|
86
|
-
/**
|
|
87
|
-
* 下拉选项滚动事件
|
|
88
|
-
*/
|
|
89
|
-
onScroll?: (context: {
|
|
90
|
-
e: WheelEvent<HTMLDivElement>;
|
|
91
|
-
}) => void;
|
|
92
|
-
/**
|
|
93
|
-
* 下拉滚动触底事件,常用于滚动到底执行具体业务逻辑
|
|
94
|
-
*/
|
|
95
|
-
onScrollToBottom?: (context: {
|
|
96
|
-
e: WheelEvent<HTMLDivElement>;
|
|
97
|
-
}) => void;
|
|
98
|
-
/**
|
|
99
|
-
* 当浮层隐藏或显示时触发,`trigger=document` 表示点击非浮层元素触发;`trigger=context-menu` 表示右击触发
|
|
100
|
-
*/
|
|
101
|
-
onVisibleChange?: (visible: boolean, context: PopupVisibleChangeContext) => void;
|
|
102
|
-
}
|
|
103
|
-
export type PopupPlacement = "top" | "left" | "right" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom";
|
|
104
|
-
export interface PopupVisibleChangeContext {
|
|
105
|
-
e?: PopupTriggerEvent;
|
|
106
|
-
trigger?: PopupTriggerSource;
|
|
107
|
-
}
|
|
108
|
-
export type PopupTriggerEvent = MouseEvent<HTMLDivElement> | FocusEvent<HTMLDivElement> | KeyboardEvent<HTMLDivElement>;
|
|
109
|
-
export type PopupTriggerSource = "document" | "trigger-element-click" | "trigger-element-hover" | "trigger-element-blur" | "trigger-element-focus" | "trigger-element-mousedown" | "context-menu" | "keydown-esc";
|
package/es/portal/Portal.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AttachNode, AttachNodeReturnValue } from "../common";
|
|
3
|
-
export interface PortalProps {
|
|
4
|
-
/**
|
|
5
|
-
* 指定挂载的 HTML 节点, false 为挂载在 body
|
|
6
|
-
*/
|
|
7
|
-
attach?: React.ReactElement | AttachNode | boolean;
|
|
8
|
-
/**
|
|
9
|
-
* 触发元素
|
|
10
|
-
*/
|
|
11
|
-
triggerNode?: HTMLElement;
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
export declare function getAttach(attach: PortalProps["attach"], triggerNode?: HTMLElement): AttachNodeReturnValue;
|
|
15
|
-
declare const Portal: React.ForwardRefExoticComponent<PortalProps & React.RefAttributes<unknown>>;
|
|
16
|
-
export default Portal;
|
package/es/portal/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Portal";
|
package/es/radio/Radio.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CheckProps } from "../common/Check";
|
|
3
|
-
export type RadioProps = Omit<CheckProps, "type">;
|
|
4
|
-
declare const Radio: React.FunctionComponent<RadioProps & React.RefAttributes<HTMLLabelElement>> & {
|
|
5
|
-
Group: React.FC<import("./RadioGroup").RadioGroupProps>;
|
|
6
|
-
Button: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLLabelElement>>;
|
|
7
|
-
};
|
|
8
|
-
export default Radio;
|
package/es/radio/RadioGroup.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import type { StyledProps } from "../common";
|
|
3
|
-
import type { TdRadioGroupProps } from "./type";
|
|
4
|
-
/**
|
|
5
|
-
* RadioGroup 组件所接收的属性
|
|
6
|
-
*/
|
|
7
|
-
export interface RadioGroupProps extends TdRadioGroupProps, StyledProps {
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 单选选项组,里面可以嵌套 <Radio />
|
|
12
|
-
*/
|
|
13
|
-
declare const RadioGroup: React.FC<RadioGroupProps>;
|
|
14
|
-
export default RadioGroup;
|
package/es/radio/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "./style/index.js";
|
|
2
|
-
export type { RadioProps } from "./Radio";
|
|
3
|
-
export type { RadioGroupProps } from "./RadioGroup";
|
|
4
|
-
export * from "./type";
|
|
5
|
-
export declare const Radio: import("react").FunctionComponent<import("./Radio").RadioProps & import("react").RefAttributes<HTMLLabelElement>> & {
|
|
6
|
-
Group: import("react").FC<import("./RadioGroup").RadioGroupProps>;
|
|
7
|
-
Button: import("react").ForwardRefExoticComponent<import("./Radio").RadioProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
8
|
-
};
|
|
9
|
-
export declare const RadioGroup: import("react").FC<import("./RadioGroup").RadioGroupProps>;
|
|
10
|
-
export default Radio;
|
package/es/radio/style/css.d.ts
DELETED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/es/radio/type.d.ts
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { TNode, SizeEnum } from "../common";
|
|
2
|
-
import { MouseEvent, ChangeEvent } from "react";
|
|
3
|
-
export interface TdRadioProps<T = RadioValue> {
|
|
4
|
-
/**
|
|
5
|
-
* 是否允许取消选中
|
|
6
|
-
* @default false
|
|
7
|
-
*/
|
|
8
|
-
allowUncheck?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* 是否选中
|
|
11
|
-
* @default false
|
|
12
|
-
*/
|
|
13
|
-
checked?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* 是否选中,非受控属性
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
defaultChecked?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* 单选内容,同 label
|
|
21
|
-
*/
|
|
22
|
-
children?: TNode;
|
|
23
|
-
/**
|
|
24
|
-
* 是否为禁用态。如果存在父组件 RadioGroup,默认值由 RadioGroup.disabled 控制。优先级:Radio.disabled > RadioGroup.disabled
|
|
25
|
-
*/
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* 主文案
|
|
29
|
-
*/
|
|
30
|
-
label?: TNode;
|
|
31
|
-
/**
|
|
32
|
-
* HTML 元素原生属性
|
|
33
|
-
* @default ''
|
|
34
|
-
*/
|
|
35
|
-
name?: string;
|
|
36
|
-
/**
|
|
37
|
-
* 只读状态
|
|
38
|
-
*/
|
|
39
|
-
readonly?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* 单选按钮的值
|
|
42
|
-
*/
|
|
43
|
-
value?: T;
|
|
44
|
-
/**
|
|
45
|
-
* 选中状态变化时触发
|
|
46
|
-
*/
|
|
47
|
-
onChange?: (checked: boolean, context: {
|
|
48
|
-
e: ChangeEvent<HTMLDivElement>;
|
|
49
|
-
}) => void;
|
|
50
|
-
/**
|
|
51
|
-
* 点击时触发,一般用于外层阻止冒泡场景
|
|
52
|
-
*/
|
|
53
|
-
onClick?: (context: {
|
|
54
|
-
e: MouseEvent<HTMLLabelElement>;
|
|
55
|
-
}) => void;
|
|
56
|
-
}
|
|
57
|
-
export interface TdRadioGroupProps<T = RadioValue> {
|
|
58
|
-
/**
|
|
59
|
-
* 是否允许取消选中
|
|
60
|
-
* @default false
|
|
61
|
-
*/
|
|
62
|
-
allowUncheck?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* 是否禁用全部子单选框。优先级:Radio.disabled > RadioGroup.disabled
|
|
65
|
-
*/
|
|
66
|
-
disabled?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* HTML 元素原生属性
|
|
69
|
-
* @default ''
|
|
70
|
-
*/
|
|
71
|
-
name?: string;
|
|
72
|
-
/**
|
|
73
|
-
* 单选组件按钮形式。RadioOption 数据类型为 string 或 number 时,表示 label 和 value 值相同
|
|
74
|
-
*/
|
|
75
|
-
options?: Array<RadioOption>;
|
|
76
|
-
/**
|
|
77
|
-
* 只读状态
|
|
78
|
-
*/
|
|
79
|
-
readonly?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* 组件尺寸【讨论中】
|
|
82
|
-
* @default medium
|
|
83
|
-
*/
|
|
84
|
-
size?: SizeEnum;
|
|
85
|
-
/**
|
|
86
|
-
* 组件风格
|
|
87
|
-
* @default radio
|
|
88
|
-
*/
|
|
89
|
-
theme?: "radio" | "button";
|
|
90
|
-
/**
|
|
91
|
-
* 选中的值
|
|
92
|
-
*/
|
|
93
|
-
value?: T;
|
|
94
|
-
/**
|
|
95
|
-
* 选中的值,非受控属性
|
|
96
|
-
*/
|
|
97
|
-
defaultValue?: T;
|
|
98
|
-
/**
|
|
99
|
-
* 单选组件按钮形式
|
|
100
|
-
* @default outline
|
|
101
|
-
*/
|
|
102
|
-
variant?: "outline" | "primary-filled" | "default-filled";
|
|
103
|
-
/**
|
|
104
|
-
* 选中值发生变化时触发, `context.name` 指 RadioGroup 的 name 属性
|
|
105
|
-
*/
|
|
106
|
-
onChange?: (value: T, context: {
|
|
107
|
-
e: ChangeEvent<HTMLDivElement>;
|
|
108
|
-
name?: string;
|
|
109
|
-
}) => void;
|
|
110
|
-
}
|
|
111
|
-
export type RadioOption = string | number | RadioOptionObj;
|
|
112
|
-
export interface RadioOptionObj {
|
|
113
|
-
label?: string | TNode;
|
|
114
|
-
value?: string | number | boolean;
|
|
115
|
-
disabled?: boolean;
|
|
116
|
-
}
|
|
117
|
-
export type RadioValue = string | number | boolean;
|
package/es/select/Option.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyledProps } from "../common";
|
|
3
|
-
import { SelectValue, TdOptionProps, TdSelectProps, SelectKeysType, SelectOption } from "./type";
|
|
4
|
-
export interface SelectOptionProps extends StyledProps, TdOptionProps, Pick<TdSelectProps, "size" | "multiple" | "max"> {
|
|
5
|
-
selectedValue?: SelectValue;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
onSelect?: (value: string | number, context: {
|
|
8
|
-
label?: string;
|
|
9
|
-
selected?: boolean;
|
|
10
|
-
event: React.MouseEvent<HTMLLIElement>;
|
|
11
|
-
restData?: Record<string, unknown>;
|
|
12
|
-
}) => void;
|
|
13
|
-
onCheckAllChange?: (checkAll: boolean, e: React.MouseEvent<HTMLLIElement>) => void;
|
|
14
|
-
restData?: Record<string, unknown>;
|
|
15
|
-
keys?: SelectKeysType;
|
|
16
|
-
optionLength?: number;
|
|
17
|
-
isVirtual?: boolean;
|
|
18
|
-
onRowMounted?: (rowData: {
|
|
19
|
-
ref: HTMLElement;
|
|
20
|
-
data: SelectOption;
|
|
21
|
-
}) => void;
|
|
22
|
-
}
|
|
23
|
-
declare const Option: React.FC<SelectOptionProps>;
|
|
24
|
-
export default Option;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TdOptionGroupProps } from "./type";
|
|
3
|
-
export interface SelectGOptionGroupProps extends TdOptionGroupProps {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
declare const OptionGroup: React.FC<SelectGOptionGroupProps>;
|
|
7
|
-
export default OptionGroup;
|