From fe95d79c9c7449ebf758730182a357cc50806aec Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 10 Dec 2021 21:40:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E7=9A=84vue=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/modules/gen/crud/vueForm.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/core/src/main/resources/templates/modules/gen/crud/vueForm.xml b/modules/core/src/main/resources/templates/modules/gen/crud/vueForm.xml index e4db6d1f..4db073c6 100644 --- a/modules/core/src/main/resources/templates/modules/gen/crud/vueForm.xml +++ b/modules/core/src/main/resources/templates/modules/gen/crud/vueForm.xml @@ -81,6 +81,7 @@ for(c in table.columnList){ field: 'parentCode', fieldLabel: 'parentName', component: 'TreeSelect', + defaultValue: '', componentProps: { allowClear: true, style: 'width: calc(50% - 60px)', @@ -115,6 +116,7 @@ for (c in table.columnList){ defaultValue: '30', <% }else{ %> component: '${c.showType == 'input' ? 'Input' : 'InputTextArea'}', + defaultValue: '', <% } %> <% if (c.dataLength != '0'){ %> componentProps: {