fix: editor配置buttongroup 按钮类名预览态失效

This commit is contained in:
yanglu19 2023-07-12 21:03:46 +08:00
parent 882354fb02
commit 5fad1934b8

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;