UNPKG

chowa

Version:

UI component library based on React

29 lines (28 loc) 1.02 kB
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import * as React from 'react'; import { Options, Option, Mode } from './auto-complete'; export interface AutoCompleteSelectorProps { options: Options; size?: 'small' | 'default' | 'large'; formatter: (option: React.ReactText | Option, value: string) => React.ReactNode; mode: Mode; activeValue: React.ReactText; searchValue: string; updateActiveValue: (value: React.ReactText) => void; onSelectValue: (displayValue: React.ReactText) => void; } declare class AutoCompleteSelector extends React.PureComponent<AutoCompleteSelectorProps, any> { private wrapperEle; componentDidUpdate(preProps: AutoCompleteSelectorProps): void; private renderOption; private renderOptionGroup; render(): JSX.Element; } export default AutoCompleteSelector;