支持表单提交

This commit is contained in:
lizhengwei 2025-11-14 17:04:42 +08:00
parent 76694a4f8a
commit 3f774d4d16
3 changed files with 113 additions and 23 deletions

File diff suppressed because one or more lines are too long

View File

@ -273,6 +273,7 @@ public class H5ProjectContent {
private Boolean enableDragToMask;
private Boolean loop;
private Boolean canDownload;
private EffectedResult effectedResult;
public ImageElement() {
this.setType(ElementType.IMAGE);
@ -292,12 +293,12 @@ public class H5ProjectContent {
private Integer fontSize;
private Double lineHeight;
private Integer letterSpacing;
private Object textDecoration;
private String textDecoration;
private String writingMode;
private String textAlign;
private String verticalAlign;
private String content;
private List<Object> contents;
private List<ContentItem> contents;
private Boolean autoScale;
private List<Object> textEffects;
private String listStyle;
@ -305,6 +306,9 @@ public class H5ProjectContent {
private Boolean adjustsFontSize;
private Object textShadow;
private String bindDataKey;
private Double effectScale;
private List<String> aggregatedColors;
private Object mainColor;
public TextElement() {
this.setType(ElementType.TEXT);
@ -359,13 +363,14 @@ public class H5ProjectContent {
private String fontStyle;
private Integer fontWeight;
private Integer fontSize;
private Object textDecoration;
private String textDecoration;
private String content;
private List<Object> contents;
private List<ContentItem> contents;
private Integer minWidth;
private Integer maxWidth;
private Integer minHeight;
private Integer maxHeight;
private String color;
public FormElement() {
this.setType(ElementType.FORM);
@ -379,7 +384,17 @@ public class H5ProjectContent {
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public static class MapElement extends Element {
// Map类型的具体字段可以根据需要添加
private Double longitude;
private Double latitude;
private String address;
private Integer zoom;
private List<Integer> borderWidth;
private Integer fontSize;
private Integer borderRadiusX;
private Integer borderRadiusY;
private String borderColor;
private String color;
private String imageDataUrl;
public MapElement() {
this.setType(ElementType.MAP);
@ -530,6 +545,20 @@ public class H5ProjectContent {
private Verify verify;
}
/**
* 内容项类
*/
@Data
public static class ContentItem {
private String color;
private String fontFamily;
private Integer fontSize;
private String fontStyle;
private Integer fontWeight;
private String textDecoration;
private String content;
}
/**
* 验证类
*/