Browse Source

feat: 完善AutoComplete组件props定义

pull/13525/head
wangxingkang 6 years ago
parent
commit
6830623ed9
  1. 3
      components/auto-complete/index.tsx

3
components/auto-complete/index.tsx

@ -2,7 +2,7 @@ import * as React from 'react';
import { Option, OptGroup } from 'rc-select';
import classNames from 'classnames';
import Select, { AbstractSelectProps, SelectValue, OptionProps, OptGroupProps } from '../select';
import Input from '../input';
import Input, { InputProps } from '../input';
import InputElement from './InputElement';
export interface DataSourceItemObject {
@ -38,6 +38,7 @@ export interface AutoCompleteProps extends AbstractSelectProps {
onFocus?: () => void;
children?:
| ValidInputElement
| React.ReactElement<InputProps>
| React.ReactElement<OptionProps>
| Array<React.ReactElement<OptionProps>>;
}

Loading…
Cancel
Save