Browse Source

add imageselect

dev
wangqing 4 years ago
parent
commit
09abc3da8f
  1. 3
      tduck-project/src/main/java/com/tduck/cloud/project/entity/enums/ProjectItemTypeEnum.java
  2. 31
      tduck-project/src/main/java/com/tduck/cloud/project/entity/struct/ImageSelectExpandStruct.java

3
tduck-project/src/main/java/com/tduck/cloud/project/entity/enums/ProjectItemTypeEnum.java

@ -33,7 +33,8 @@ public enum ProjectItemTypeEnum {
RATE("RATE", "评分", RateExpandStruct.class),
COLOR("COLOR", "颜色", ColorExpandStruct.class),
UPLOAD("UPLOAD", "文件上传组件", UploadExpandStruct.class),
IMAGE("IMAGE", "图片展示", ImageExpandStruct.class);
IMAGE("IMAGE", "图片展示", ImageExpandStruct.class),
IMAGE_SELECT("IMAGE_SELECT","图片选择",ImageSelectExpandStruct.class);
@EnumValue
@JsonValue

31
tduck-project/src/main/java/com/tduck/cloud/project/entity/struct/ImageSelectExpandStruct.java

@ -0,0 +1,31 @@
package com.tduck.cloud.project.entity.struct;
import lombok.Data;
import java.util.List;
/**
* @author : smalljop
* @description : 颜色选择
* @create : 2020-11-19 11:42
**/
@Data
public class ImageSelectExpandStruct {
/**
* 选项
*/
private List<Option> options;
/**
* 是否多选
*/
private Boolean multiple;
public static class Option {
public String image;
public String label;
public Integer value;
}
}
Loading…
Cancel
Save