fix: fieldset className 被替换逻辑 (#5209)

This commit is contained in:
Allen 2022-08-23 14:12:59 +08:00 committed by GitHub
parent 03871a1bb3
commit b83833a04d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,33 +233,6 @@ addSchemaFilter(function (scheam: Schema, renderer) {
return scheam; return scheam;
}); });
// FieldSet className 定制样式方式改成 size 来配置
addSchemaFilter(function (scheam: Schema, renderer) {
if (renderer.component !== FieldSetRenderer) {
return scheam;
}
if (
scheam.className &&
!scheam.size &&
/\bfieldset(?:\-(xs|sm|md|lg))?\b/.test(scheam.className)
) {
scheam = {
...scheam,
size: RegExp.$1 || 'base',
className: scheam.className.replace(
/\bfieldset(?:\-(xs|sm|md|lg))?\b/,
''
)
};
delete scheam.btnClassName;
delete scheam.btnActiveClassName;
}
return scheam;
});
// 原 reciever 错别字改为 receiver // 原 reciever 错别字改为 receiver
addSchemaFilter(function (scheam: Schema, renderer) { addSchemaFilter(function (scheam: Schema, renderer) {
if ( if (