UNPKG

tdesign-react

Version:
26 lines (25 loc) 1.08 kB
import React from 'react'; import type { SelectValue, SelectValueChangeTrigger, TdSelectProps } from '../type'; interface SelectPopupProps extends Pick<TdSelectProps, 'value' | 'size' | 'multiple' | 'empty' | 'options' | 'max' | 'loadingText' | 'loading' | 'valueType' | 'keys' | 'panelTopContent' | 'panelBottomContent' | 'scroll'> { onChange?: (value: SelectValue, context?: { label?: string | number; value?: SelectValue; restData?: Record<string, any>; e: React.MouseEvent<HTMLLIElement>; trigger: SelectValueChangeTrigger; }) => void; hoverIndex: number; children?: React.ReactNode; /** * 是否展示popup */ showPopup: boolean; /** * 控制popup展示的函数 */ setShowPopup: (show: boolean) => void; onCheckAllChange?: (checkAll: boolean, e: React.MouseEvent<HTMLLIElement>) => void; getPopupInstance?: () => HTMLDivElement; } declare const PopupContent: React.ForwardRefExoticComponent<SelectPopupProps & React.RefAttributes<HTMLDivElement>>; export default PopupContent;