From 5fad1934b84e86491d099ff7e31cfaa836903ee3 Mon Sep 17 00:00:00 2001 From: yanglu19 Date: Wed, 12 Jul 2023 21:03:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20editor=E9=85=8D=E7=BD=AEbuttongroup=20?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=B1=BB=E5=90=8D=E9=A2=84=E8=A7=88=E6=80=81?= =?UTF-8?q?=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis/src/compat.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/amis/src/compat.ts b/packages/amis/src/compat.ts index 997842b87..7a7b7513a 100644 --- a/packages/amis/src/compat.ts +++ b/packages/amis/src/compat.ts @@ -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;