UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

22 lines (21 loc) 757 B
import React from 'react'; import type { LocaleProps, ThemeProps } from 'jamis-core'; export interface InputBoxWithSuggestionProps extends ThemeProps, LocaleProps { options: Array<any>; value: any; onChange: (value: any) => void; disabled?: boolean; searchable?: boolean; popOverContainer?: any; hasError?: boolean; placeholder?: string; clearable?: boolean; } export declare class InputBoxWithSuggestion extends React.Component<InputBoxWithSuggestionProps> { constructor(props: InputBoxWithSuggestionProps); onSearch(text: string): void; filterOptions(options: any[]): any[]; onPopClose(e: React.MouseEvent, onClose: () => void): void; render(): JSX.Element; } export default InputBoxWithSuggestion;