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>
) : ( ) : (
<div className={cx(`${ns}TextControl-addOn`, addOn.className)}> <div className={cx(`${ns}TextControl-addOn`, addOn.className)}>
{addOn.label ? filter(addOn.label, data) : null}
{iconElement} {iconElement}
{addOn.label ? filter(addOn.label, data) : null}
</div> </div>
) )
) : null; ) : null;

View File

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

View File

@ -539,8 +539,8 @@ export function wrapControl<
if ( if (
// 如果配置了 minLength 或者 maxLength 就切成及时验证 // 如果配置了 minLength 或者 maxLength 就切成及时验证
this.model.rules.minLength || // this.model.rules.minLength ||
this.model.rules.maxLength || // this.model.rules.maxLength ||
validateOnChange === true || validateOnChange === true ||
(validateOnChange !== false && (formSubmited || validated)) (validateOnChange !== false && (formSubmited || validated))
) { ) {