input-text相关测试问题 (#3809)

This commit is contained in:
yangwei9012 2022-03-18 18:27:32 +08:00 committed by GitHub
parent 3361828aa7
commit 28821fdb98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -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;

View File

@ -25,6 +25,7 @@ import {
BaseSchema,
SchemaApi,
SchemaClassName,
SchemaExpression,
SchemaObject,
SchemaType
} from '../../Schema';
@ -87,6 +88,11 @@ export interface FormBaseControl
*/
readOnly?: boolean;
/**
*
*/
readOnlyOn?: SchemaExpression;
/**
*
*

View File

@ -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))
) {