From eb5b7f5101a11dbfc57941979ff18f7f172a9bb0 Mon Sep 17 00:00:00 2001 From: lizc Date: Wed, 18 Oct 2023 10:48:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dbasicform=E8=A1=A8?= =?UTF-8?q?=E5=8D=95showAdvancedButton=E4=B8=BAfalse=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=9A=90=E8=97=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/Form/src/BasicForm.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/web/src/components/Form/src/BasicForm.vue b/web/src/components/Form/src/BasicForm.vue index 1b2aada..098cf3b 100644 --- a/web/src/components/Form/src/BasicForm.vue +++ b/web/src/components/Form/src/BasicForm.vue @@ -8,7 +8,7 @@ {{ schema.label }} @@ -263,6 +263,17 @@ submit: handleSubmit, }; + // 当showAdvancedButton为false时所有列表项应为全部显示 + watch( + () => getProps.value.showAdvancedButton, + (show) => { + if (!show) gridCollapsed.value = false; + }, + { + immediate: true, + } + ); + watch( () => getSchema.value, (schema) => {