mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
100fa29bef
* chore: basic control * chore: input instad * docs: update demo * chore: adjust operation interactive * chore: lock selection * chore: fix patch logic * chore: merge logic * chore: patch autoFocus * test: update snapshot * test: add test case * test: coverage * chore: update size limit * docs: update docs * test: fix test case * chore: update comment * refactor: change to length * chore: blur all * chore: size limit
35 lines
954 B
TypeScript
35 lines
954 B
TypeScript
import type * as React from 'react';
|
|
|
|
import Group from './Group';
|
|
import type { InputProps, InputRef } from './Input';
|
|
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 = React.ForwardRefExoticComponent<
|
|
InputProps & React.RefAttributes<InputRef>
|
|
> & {
|
|
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;
|