mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Resolved type name collisions (#8605)
This commit is contained in:
parent
a9797ac4ce
commit
fffde2d836
@ -8,7 +8,7 @@ import InputElement from './InputElement';
|
||||
export interface DataSourceItemObject { value: string; text: string; }
|
||||
export type DataSourceItemType = string | DataSourceItemObject;
|
||||
|
||||
export interface InputProps {
|
||||
export interface AutoCompleteInputProps {
|
||||
onChange?: React.FormEventHandler<any>;
|
||||
value: any;
|
||||
}
|
||||
@ -16,7 +16,7 @@ export interface InputProps {
|
||||
export type ValidInputElement =
|
||||
HTMLInputElement |
|
||||
HTMLTextAreaElement |
|
||||
React.ReactElement<InputProps>;
|
||||
React.ReactElement<AutoCompleteInputProps>;
|
||||
|
||||
export interface AutoCompleteProps extends AbstractSelectProps {
|
||||
value?: SelectValue;
|
||||
|
@ -9,7 +9,7 @@ import defaultLocale from '../locale-provider/default';
|
||||
|
||||
export { TransferListProps } from './list';
|
||||
export { TransferOperationProps } from './operation';
|
||||
export { SearchProps } from './search';
|
||||
export { TransferSearchProps } from './search';
|
||||
|
||||
function noop() {
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ import * as React from 'react';
|
||||
import Icon from '../icon';
|
||||
import Input from '../input';
|
||||
|
||||
export interface SearchProps {
|
||||
export interface TransferSearchProps {
|
||||
prefixCls?: string;
|
||||
placeholder?: string;
|
||||
onChange?: (e: React.FormEvent<any>) => void;
|
||||
@ -10,7 +10,7 @@ export interface SearchProps {
|
||||
value?: any;
|
||||
}
|
||||
|
||||
export default class Search extends React.Component<SearchProps, any> {
|
||||
export default class Search extends React.Component<TransferSearchProps, any> {
|
||||
static defaultProps = {
|
||||
placeholder: '',
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user