feat: 提供组件级别的属性
This commit is contained in:
parent
30f85c01d9
commit
ab73090d8b
@ -15,7 +15,7 @@ public @interface FormItem {
|
||||
/**
|
||||
* @return 组件
|
||||
*/
|
||||
String component() default "a-input";
|
||||
String component() default "";
|
||||
|
||||
/**
|
||||
* 属性key=value
|
||||
|
@ -273,11 +273,13 @@ public class BeanProperty {
|
||||
if (StringUtils.isNotBlank(prop.group())) {
|
||||
property.group = prop.group();
|
||||
}
|
||||
property.readonly = prop.readonly();
|
||||
} else {
|
||||
BeanProperty property = new BeanProperty();
|
||||
property.setType(BeanPropertyType.STRING);
|
||||
property.setName(key);
|
||||
property.setTitle(prop.title());
|
||||
property.setReadonly(prop.readonly());
|
||||
result.add(property);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ import java.util.stream.Collectors;
|
||||
* Created by wangyu on 2017/9/8.
|
||||
* 只允许implement了SafeController的class
|
||||
*/
|
||||
@RestControllerAdvice(basePackageClasses = SafeController.class)
|
||||
@RestControllerAdvice(assignableTypes = SafeController.class)
|
||||
@ResponseBody
|
||||
public class GlobalExceptionHandler {
|
||||
private Logger logger = LoggerFactory.getLogger(GlobalExceptionHandler.class);
|
||||
|
Loading…
Reference in New Issue
Block a user