mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
9aec72c395
* chore: remove useless tsx support * add * add * style * fix lint * fix lint * fix lint * update locale entry * update locale entry * update locale entry * delete useless style
31 lines
892 B
TypeScript
31 lines
892 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 type { GroupProps } from './Group';
|
|
export type { InputProps, InputRef } from './Input';
|
|
export type { PasswordProps } from './Password';
|
|
export type { SearchProps } from './Search';
|
|
export type { TextAreaProps } from './TextArea';
|
|
|
|
type CompoundedComponent = 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;
|