mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: editor配置buttongroup 按钮类名预览态失效
This commit is contained in:
parent
882354fb02
commit
5fad1934b8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user