From ce28dac9c20c53d88f8a8f727e8ec3a393ca4654 Mon Sep 17 00:00:00 2001 From: richie Date: Thu, 12 Sep 2019 17:28:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E7=82=B9=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fanruan/api/design/work/form/creator/XFieldCreator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/fanruan/api/design/work/form/creator/XFieldCreator.java b/src/main/java/com/fanruan/api/design/work/form/creator/XFieldCreator.java index 7f48514..783386d 100644 --- a/src/main/java/com/fanruan/api/design/work/form/creator/XFieldCreator.java +++ b/src/main/java/com/fanruan/api/design/work/form/creator/XFieldCreator.java @@ -35,7 +35,8 @@ public abstract class XFieldCreator extends XOpenCreator { .keyValue(XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Report_Advanced"); Widget widget = toData(); - if (widget instanceof Blankable && ((Blankable) widget).isAllowBlank()) { + // 控件类型允许值为空,但是设置了不允许为空,就要设置为空时的提示信息 + if (widget instanceof Blankable && !((Blankable) widget).isAllowBlank()) { return new Attribute[]{ allowBlank, blankErrorMsg, fontSize };