Browse Source

一点小修改

remotes/1611766341912730171/master
richie 5 years ago
parent
commit
ce28dac9c2
  1. 3
      src/main/java/com/fanruan/api/design/work/form/creator/XFieldCreator.java

3
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"); .keyValue(XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Report_Advanced");
Widget widget = toData(); Widget widget = toData();
if (widget instanceof Blankable && ((Blankable) widget).isAllowBlank()) { // 控件类型允许值为空,但是设置了不允许为空,就要设置为空时的提示信息
if (widget instanceof Blankable && !((Blankable) widget).isAllowBlank()) {
return new Attribute[]{ return new Attribute[]{
allowBlank, blankErrorMsg, fontSize allowBlank, blankErrorMsg, fontSize
}; };

Loading…
Cancel
Save