UNPKG

fit-select

Version:

选择框

35 lines (34 loc) 1.3 kB
import * as React from 'react'; import * as module from './module'; import './index.scss'; export default class Select extends React.Component<module.PropsInterface, module.StateInterface> { static defaultProps: module.PropsInterface; state: module.StateInterface; private handleDocumentClick; private _isMounted; private dom; /** * 第一级选择显示的值,只有级联全路径时候使用 */ private firstLabelValue; constructor(props: any); componentWillMount(): void; componentWillReceiveProps(nextProps: module.PropsInterface): void; componentDidMount(): void; componentWillUnmount(): void; handleSelectClick(): void; handleClick(value: number | string, label: string, children?: Array<module.Options>, zIndex?: number): void; handleSearchChange(event: any): void; /** * 设置初始化labelValue */ handleSetLabelValue(labelValue: string): void; getOptionChildren(): JSX.Element; getOptionChildrenByOptions(): JSX.Element; /** * 根据一个 Option 元素类型返回对应ReactElement */ getOptionItemByType(item: module.Options, key: number, activeValue: string | number, zIndex?: number): React.ReactElement<any>; dropIconRender(): JSX.Element; render(): JSX.Element; }