mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
input-text相关测试问题 (#3809)
This commit is contained in:
parent
3361828aa7
commit
28821fdb98
@ -844,8 +844,8 @@ export default class TextControl extends React.PureComponent<
|
||||
</div>
|
||||
) : (
|
||||
<div className={cx(`${ns}TextControl-addOn`, addOn.className)}>
|
||||
{addOn.label ? filter(addOn.label, data) : null}
|
||||
{iconElement}
|
||||
{addOn.label ? filter(addOn.label, data) : null}
|
||||
</div>
|
||||
)
|
||||
) : null;
|
||||
|
@ -25,6 +25,7 @@ import {
|
||||
BaseSchema,
|
||||
SchemaApi,
|
||||
SchemaClassName,
|
||||
SchemaExpression,
|
||||
SchemaObject,
|
||||
SchemaType
|
||||
} from '../../Schema';
|
||||
@ -87,6 +88,11 @@ export interface FormBaseControl
|
||||
*/
|
||||
readOnly?: boolean;
|
||||
|
||||
/**
|
||||
* 只读条件
|
||||
*/
|
||||
readOnlyOn?: SchemaExpression;
|
||||
|
||||
/**
|
||||
* 不设置时,当表单提交过后表单项每次修改都会触发重新验证,
|
||||
* 如果设置了,则由此配置项来决定要不要每次修改都触发验证。
|
||||
|
@ -539,8 +539,8 @@ export function wrapControl<
|
||||
|
||||
if (
|
||||
// 如果配置了 minLength 或者 maxLength 就切成及时验证
|
||||
this.model.rules.minLength ||
|
||||
this.model.rules.maxLength ||
|
||||
// this.model.rules.minLength ||
|
||||
// this.model.rules.maxLength ||
|
||||
validateOnChange === true ||
|
||||
(validateOnChange !== false && (formSubmited || validated))
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user