mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:10:36 +08:00
38cf5e8a75
* docs: unify component export file as index.tsx * docs: compatible with old anchors * chore: clean * test: update snapshot * fix: window env --------- Co-authored-by: Peach <scdzwyxst@gmail.com>
31 lines
805 B
TypeScript
31 lines
805 B
TypeScript
import Group from './Group';
|
|
import InternalInput from './Input';
|
|
import OTP from './OTP';
|
|
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 = typeof InternalInput & {
|
|
Group: typeof Group;
|
|
Search: typeof Search;
|
|
TextArea: typeof TextArea;
|
|
Password: typeof Password;
|
|
OTP: typeof OTP;
|
|
};
|
|
|
|
const Input = InternalInput as CompoundedComponent;
|
|
|
|
Input.Group = Group;
|
|
Input.Search = Search;
|
|
Input.TextArea = TextArea;
|
|
Input.Password = Password;
|
|
Input.OTP = OTP;
|
|
|
|
export default Input;
|