import React from 'react'; import { Theme } from '../styles'; export interface SelectProps { children?: React.ReactNode; disabled?: boolean; value?: number | string | string[]; readOnly?: boolean; selectProps?: { [x: string]: any; }; onBlur?: (event: React.FocusEvent) => void; onFocus?: (event: React.FocusEvent) => void; onChange?: (event: React.ChangeEvent | React.MouseEvent, value?: string | number | string[]) => void; onOpen?: () => void; onClose?: () => void; selectRef?: (node: Element) => void; error?: boolean; native?: boolean; open?: boolean; multiple?: boolean; name?: string; autoWidth?: boolean; displayEmpty?: boolean; MenuProps?: { [x: string]: any; }; renderValue?: (value: string | number | string[]) => void; style?: React.CSSProperties; className?: string; wrapperStyle?: React.CSSProperties; wrapperClassName?: string; /** * dom元素的id */ id?: string; minWidth?: number; dense?: boolean; borderless?: boolean; syncIconColor?: boolean; color?: string; textStyle?: React.CSSProperties; /** * 在没有选项时显示的内容 * */ content?: any; icon?: React.ReactElement; /** * 是否隐藏图标 * */ iconHidden?: boolean; onClick?: (event: React.MouseEvent) => void; } export interface SelectState { open: boolean; } declare const StyleMenuSelect: import("styled-components").StyledComponentClass & React.HTMLAttributes & SelectProps, Theme, React.ClassAttributes & React.HTMLAttributes & SelectProps>; declare class Select extends React.PureComponent { private menuPaper; static displayName: 'Select'; state: { open: boolean; }; ignoreNextBlur: boolean; ignoreNextFocus: boolean; isControlled: boolean; anchorEl: HTMLElement; componentDidMount(): void; handleElement: ({ event, open, anchorEl, }: { event?: React.KeyboardEvent | React.MouseEvent; open: boolean; anchorEl: HTMLElement; }) => void; update: ({ event, open, anchorEl, }: { event?: React.KeyboardEvent | React.MouseEvent; open: boolean; anchorEl: HTMLElement; }) => void; handleClick: (event: React.MouseEvent) => void; handleClose: () => void; focusSelect: () => void; handleItemClick: (child: any) => (event: React.MouseEvent) => void; private syncMenuWidth; handleKeyDown: (event: React.KeyboardEvent) => void; handleBlur: (event: any) => void; handleOnFocus: (event: any) => void; render(): JSX.Element; } export default Select; export { StyleMenuSelect };