表单字段类型

This commit is contained in:
jinqiming 2021-11-23 19:43:32 +08:00
parent df656f3df8
commit b59aec891b
9 changed files with 148 additions and 4 deletions

View File

@ -0,0 +1,61 @@
package com.snow.from.domain.Field;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @author qimingjin
* @Title:
* @Description:
* @date 2021/11/23 19:39
*/
@Data
public class CarouselField extends BaseField implements Serializable {
private static final long serialVersionUID = -3039577252797632165L;
private String width;
private String height;
/**
* 是否全屏
*/
private boolean full;
/**
* 轮播切换动画方式
*/
private String anim;
/**
* 切换时间 毫秒
*/
private long interval;
/**
* 初始索引
*/
private int startIndex;
/**
* 切换箭头默认显示状态
*/
private String arrow;
/**
* 是否自动切换
*/
private boolean autoplay;
/**
* 帮助文档
*/
private String document;
private String datasourceType;
private String remoteUrl;
private String remoteMethod;
private String remoteOptionText;
private String remoteOptionValue;
private List<Options> options;
}

View File

@ -58,5 +58,5 @@ public class CheckboxField extends BaseField implements Serializable {
/**
* 下拉框选项
*/
private List<OptionsField> options;
private List<Options> options;
}

View File

@ -0,0 +1,21 @@
package com.snow.from.domain.Field;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @author qimingjin
* @Title:
* @Description:
* @date 2021/11/23 19:33
*/
@Data
public class Columns implements Serializable {
private static final long serialVersionUID = -9043104136356462576L;
private int span;
private List list;
}

View File

@ -21,4 +21,9 @@ public class FileField extends BaseField implements Serializable {
private boolean disabled;
private boolean required;
private String document;
/**
* 上传url
*/
private String uploadUrl;
}

View File

@ -0,0 +1,23 @@
package com.snow.from.domain.Field;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @author qimingjin
* @Title:
* @Description:
* @date 2021/11/23 19:32
*/
@Data
public class GridField implements Serializable {
private static final long serialVersionUID = 3967652788696005612L;
private String id;
private String index;
private String tag;
private int span;
private List<Columns> columns;
}

View File

@ -0,0 +1,34 @@
package com.snow.from.domain.Field;
import lombok.Data;
import java.io.Serializable;
/**
* @author qimingjin
* @Title:
* @Description:
* @date 2021/11/23 19:36
*/
@Data
public class ImageField extends BaseField implements Serializable {
private static final long serialVersionUID = -8971557693208690368L;
private String placeholder;
private String defaultValue;
private String width;
private boolean readonly;
private boolean disabled;
private boolean required;
private String document;
/**
* 上传url
*/
private String uploadUrl;
}

View File

@ -11,7 +11,7 @@ import java.io.Serializable;
* @date 2021/11/23 16:48
*/
@Data
public class OptionsField implements Serializable {
public class Options implements Serializable {
private static final long serialVersionUID = 975771972944583123L;
/**

View File

@ -53,6 +53,6 @@ public class RadioField extends BaseField implements Serializable {
/**
* 下拉框选项
*/
private List<OptionsField> options;
private List<Options> options;
}

View File

@ -64,6 +64,6 @@ public class SelectField extends BaseField implements Serializable {
/**
* 下拉框选项
*/
private List<OptionsField> options;
private List<Options> options;
}