feat:验证框架进一步完善,支持前后端同步动态验证

This commit is contained in:
wangyu 2021-09-30 16:05:53 +08:00
parent 9d96a4af23
commit 818f2e36ac
2 changed files with 5 additions and 0 deletions

View File

@ -360,6 +360,9 @@ public class BeanProperty {
if (StringUtils.isNotBlank(item.component())) {
property.extra.put(BeanProps.COMPONENT, item.component());
}
if (StringUtils.isNotBlank(item.help())) {
property.extra.put(BeanProps.HELP, item.help());
}
property.layout = item.layout();
if (ArrayUtils.isNotEmpty(item.props())) {
for (FormItem.Prop prop : item.props()) {

View File

@ -20,6 +20,8 @@ public interface BeanProps {
String COMPONENT = "component";
String HELP = "help";
String GENERATED = "generated";
String MAPPING = "mapping";