mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
完善 Text
This commit is contained in:
parent
2cc0aaf2c6
commit
5babebffa1
@ -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 {
|
||||
|
@ -51,7 +51,14 @@ export interface TabSchema extends Omit<BaseSchema, 'type'> {
|
||||
*/
|
||||
reload?: boolean;
|
||||
|
||||
/**
|
||||
* 点开时才加载卡片内容
|
||||
*/
|
||||
mountOnEnter?: boolean;
|
||||
|
||||
/**
|
||||
* 卡片隐藏就销毁卡片节点。
|
||||
*/
|
||||
unmountOnExit?: boolean;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user