UNPKG

tdesign-react

Version:
17 lines (16 loc) 611 B
import React, { MouseEvent } from 'react'; import { SelectInputCommonProperties } from './interface'; import { InputRef } from '../input'; import { TdSelectInputProps } from './type'; export interface RenderSelectSingleInputParams { tPlaceholder: string; } export default function useSingle(props: TdSelectInputProps): { inputRef: React.MutableRefObject<InputRef>; commonInputProps: SelectInputCommonProperties; singleInputValue: string; onInnerClear: (context: { e: MouseEvent<SVGSVGElement>; }) => void; renderSelectSingle: (popupVisible: boolean) => React.JSX.Element; };