mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
30 lines
873 B
TypeScript
30 lines
873 B
TypeScript
import type * as React from 'react';
|
|
import Group from './Group';
|
|
import type { InputProps, InputRef } from './Input';
|
|
import InternalInput from './Input';
|
|
import Password from './Password';
|
|
import Search from './Search';
|
|
import TextArea from './TextArea';
|
|
|
|
export { GroupProps } from './Group';
|
|
export { InputProps, InputRef } from './Input';
|
|
export { PasswordProps } from './Password';
|
|
export { SearchProps } from './Search';
|
|
export { TextAreaProps } from './TextArea';
|
|
|
|
interface CompoundedComponent
|
|
extends React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>> {
|
|
Group: typeof Group;
|
|
Search: typeof Search;
|
|
TextArea: typeof TextArea;
|
|
Password: typeof Password;
|
|
}
|
|
|
|
const Input = InternalInput as CompoundedComponent;
|
|
|
|
Input.Group = Group;
|
|
Input.Search = Search;
|
|
Input.TextArea = TextArea;
|
|
Input.Password = Password;
|
|
export default Input;
|