From 38a5230a32afc7eda6c8f813aad49d7446d584ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=82=E4=BD=B3=E4=BF=8A?= Date: Mon, 19 Feb 2024 10:05:04 +0800 Subject: [PATCH] =?UTF-8?q?[Feature]:=20=E5=AD=97=E6=AE=B5=E5=88=86?= =?UTF-8?q?=E7=BB=84=E6=94=AF=E6=8C=81=E9=85=8D=E7=BD=AE=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=8A=98=E5=8F=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/steedos/steedos-platform/issues/6140 --- .../amis-lib/src/lib/converter/amis/fields/sections.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/sections.js b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/sections.js index b0aa15133..f2a8e0c68 100644 --- a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/sections.js +++ b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/sections.js @@ -137,6 +137,11 @@ const getSection = async (formFields, permissionFields, fieldSchemaArray, sectio section.visibleOn = groupVisibleOn; } } + + let groupCollapsed = group && group.collapsed; + if(groupCollapsed === true) { + section.collapsed = true; + } return section }