From b1c36a6bb8c57184fde99a7743804d3eb9779bf4 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Tue, 16 Nov 2021 11:18:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=A4=9A?= =?UTF-8?q?=E9=80=89=E5=AD=97=E6=AE=B5=E9=AA=8C=E8=AF=81=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/modules/gen/include/formControl.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/core/src/main/resources/templates/modules/gen/include/formControl.html b/modules/core/src/main/resources/templates/modules/gen/include/formControl.html index da223ca4..5eab44aa 100644 --- a/modules/core/src/main/resources/templates/modules/gen/include/formControl.html +++ b/modules/core/src/main/resources/templates/modules/gen/include/formControl.html @@ -101,11 +101,12 @@ } var fieldValid = c.optionMap['fieldValid']; if (isNotEmpty(fieldValid)){ - if (type.name(fieldValid) == 'String[]'){ + var t = type.name(fieldValid); + if (t == 'String[]' || t == 'ArrayList'){ for (var fv in fieldValid){ cssClass = cssClass + ' ' + fv; } - }else if(isNotBlank(fieldValid)){ + }else if(t == 'String' && isNotBlank(fieldValid)){ cssClass = cssClass + ' ' + fieldValid; } }