完善 Text

This commit is contained in:
2betop 2020-09-10 12:34:53 +08:00
parent 2cc0aaf2c6
commit 5babebffa1
2 changed files with 28 additions and 0 deletions

View File

@ -18,6 +18,10 @@ import {ActionSchema} from '../Action';
// declare function matchSorter(items:Array<any>, input:any, options:any): Array<any>;
/**
* Text
* https://baidu.gitee.io/amis/docs/components/form/text
*/
export interface TextControlSchema extends FormBaseControl {
type: 'text' | 'email' | 'url' | 'password';
@ -27,6 +31,23 @@ export interface TextControlSchema extends FormBaseControl {
icon?: string;
className?: string;
} & ActionSchema;
/**
*
*/
trimContents?: boolean;
/**
*
*/
clearable?: boolean;
/**
*
*
* @default ''
*/
resetValue?: string;
}
export interface TextProps extends OptionsControlProps {

View File

@ -51,7 +51,14 @@ export interface TabSchema extends Omit<BaseSchema, 'type'> {
*/
reload?: boolean;
/**
*
*/
mountOnEnter?: boolean;
/**
*
*/
unmountOnExit?: boolean;
}