From 3537a25a0ca3d4e55d0bc6079dce51be946eb986 Mon Sep 17 00:00:00 2001 From: wibetter <365533093@qq.com> Date: Thu, 8 Jun 2023 17:56:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(amis-editor):=20=E5=8F=B3=E4=BE=A7=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E9=85=8D=E7=BD=AE=20collapseGroup=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=8F=AF=E6=8A=98=E5=8F=A0=E6=8E=A7=E5=88=B6=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-core/package.json | 2 +- packages/amis-editor/src/tpl/common.tsx | 3 ++- packages/amis-formula/package.json | 2 +- packages/amis-ui/package.json | 2 +- packages/amis/package.json | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/amis-core/package.json b/packages/amis-core/package.json index 37bb72bd9..6e457ef9e 100644 --- a/packages/amis-core/package.json +++ b/packages/amis-core/package.json @@ -1,6 +1,6 @@ { "name": "amis-core", - "version": "3.1.1", + "version": "3.1.5", "description": "amis-core", "main": "lib/index.js", "module": "esm/index.js", diff --git a/packages/amis-editor/src/tpl/common.tsx b/packages/amis-editor/src/tpl/common.tsx index 635328370..99df47310 100644 --- a/packages/amis-editor/src/tpl/common.tsx +++ b/packages/amis-editor/src/tpl/common.tsx @@ -337,6 +337,7 @@ setSchemaTpl( key: string; visibleOn: string; body: Array; + collapsed?: boolean; }> ) => { const collapseGroupBody = config @@ -345,10 +346,10 @@ setSchemaTpl( ) .map(item => ({ type: 'collapse', - collapsed: false, headingClassName: 'ae-formItemControl-header', bodyClassName: 'ae-formItemControl-body', ...item, + collapsed: item.collapsed ?? false, key: item.title, body: flatten(item.body) })); diff --git a/packages/amis-formula/package.json b/packages/amis-formula/package.json index e06d8a7f6..f536a3817 100644 --- a/packages/amis-formula/package.json +++ b/packages/amis-formula/package.json @@ -1,6 +1,6 @@ { "name": "amis-formula", - "version": "3.1.1", + "version": "3.1.5", "description": "负责 amis 里面的表达式实现,内置公式,编辑器等", "main": "lib/index.js", "module": "esm/index.js", diff --git a/packages/amis-ui/package.json b/packages/amis-ui/package.json index 060832645..73d4d9724 100644 --- a/packages/amis-ui/package.json +++ b/packages/amis-ui/package.json @@ -3,7 +3,7 @@ "main": "lib/index.js", "module": "esm/index.js", "types": "lib/index.d.ts", - "version": "3.1.1", + "version": "3.1.5", "description": "", "scripts": { "build": "npm run clean-dist && NODE_ENV=production rollup -c ", diff --git a/packages/amis/package.json b/packages/amis/package.json index 25dc45a2e..5a6bcc59d 100644 --- a/packages/amis/package.json +++ b/packages/amis/package.json @@ -1,6 +1,6 @@ { "name": "amis", - "version": "3.1.1", + "version": "3.1.5", "description": "一种MIS页面生成工具", "main": "lib/index.js", "module": "esm/index.js",