feat: 处理只读状态
This commit is contained in:
parent
ab73090d8b
commit
3ee6de5bcd
@ -273,14 +273,18 @@ public class BeanProperty {
|
||||
if (StringUtils.isNotBlank(prop.group())) {
|
||||
property.group = prop.group();
|
||||
}
|
||||
property.readonly = prop.readonly();
|
||||
// 只读状态不显示
|
||||
if (prop.readonly()) {
|
||||
origin.remove(property);
|
||||
}
|
||||
} else {
|
||||
BeanProperty property = new BeanProperty();
|
||||
property.setType(BeanPropertyType.STRING);
|
||||
property.setName(key);
|
||||
property.setTitle(prop.title());
|
||||
property.setReadonly(prop.readonly());
|
||||
result.add(property);
|
||||
if (!prop.readonly()) {
|
||||
result.add(property);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user