Merge pull request #7464 from Dora-boots/fix-clear-value

fix: editor配置buttongroup 按钮类名预览态失效
This commit is contained in:
hsm-lv 2023-07-15 08:53:25 +08:00 committed by GitHub
commit 512c86c7ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,6 +213,7 @@ addSchemaFilter(function (schema: Schema, renderer) {
});
// button group 的 btnClassName 和 btnActiveClassName 改成 btnLevel 和 btnActiveLevel 了
// 2023/7/20 fix配置面板配置按钮类名预览后失效
addSchemaFilter(function (scheam: Schema, renderer) {
if (renderer.component !== ButtonGroupControlRenderer) {
return scheam;
@ -224,9 +225,6 @@ addSchemaFilter(function (scheam: Schema, renderer) {
btnLevel: getLevelFromClassName(scheam.btnClassName),
btnActiveLevel: getLevelFromClassName(scheam.btnActiveClassName)
};
delete scheam.btnClassName;
delete scheam.btnActiveClassName;
}
return scheam;