feat: 提供组件级别的属性

This commit is contained in:
wangyu 2021-09-07 22:34:18 +08:00
parent 30f85c01d9
commit ab73090d8b
3 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,7 @@ public @interface FormItem {
/**
* @return 组件
*/
String component() default "a-input";
String component() default "";
/**
* 属性key=value

View File

@ -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);
}
}

View File

@ -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);