UNPKG

@ucloud-pccl/react-components

Version:
20 lines (19 loc) 541 B
import React, { ReactNode } from 'react'; interface Item { value: string; label?: ReactNode; } interface PopupProps { options: Item[]; searchValue: string; onChange: (v: string) => void; handleSearch?: false | ((item: Item) => boolean); loading?: boolean; } export interface ListRef { moveUp: () => void; moveDown: () => void; select: () => void; } declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<ListRef>>>; export default _default;