feat:增加更丰富的布局

This commit is contained in:
wangyu 2021-10-08 23:35:32 +08:00
parent 726a59627f
commit fc707c6baa
2 changed files with 7 additions and 1 deletions

View File

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

View File

@ -20,6 +20,10 @@ public interface BeanProps {
String LAYOUT_SINGLE = "single";
String LAYOUT_HALF_2 = "half2";
String LAYOUT_FULL_2 = "full2";
String COMPONENT = "component";
String HELP = "help";