From ebeab9658f35a11ecbd246fed0c37ad8e059c965 Mon Sep 17 00:00:00 2001 From: wangyu <727842003@qq.com> Date: Tue, 28 Sep 2021 10:07:56 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=A2=9E=E5=8A=A0=E9=87=91?= =?UTF-8?q?=E9=92=B1=E9=AA=8C=E8=AF=81=E7=B1=BB=E5=9E=8B=E5=92=8C=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/flyfish/framework/beans/meta/BeanProperty.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java b/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java index 8cca4d1..4b2e8fb 100644 --- a/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java +++ b/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java @@ -9,6 +9,7 @@ import com.flyfish.framework.domain.base.Qo; import com.flyfish.framework.domain.base.Vo; import com.flyfish.framework.utils.ReflectionUtils; import com.flyfish.framework.utils.StringFormats; +import com.flyfish.framework.validation.annotations.Money; import lombok.Data; import lombok.val; import org.apache.commons.collections4.CollectionUtils; @@ -182,6 +183,13 @@ public class BeanProperty { } } break; + case NUMBER: + if (null != field) { + if (annotations.isPresent(Money.class) && !property.extra.containsKey("component")) { + property.extra.put("component", "money-input"); + } + } + break; case LIST: if (null != field) { // 是附件,展现附件列表