Skip to content

Commit b82eecb

Browse files
committed
1 parent 72c049c commit b82eecb

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

flow-engine-framework/src/main/java/com/codingapi/flow/form/FieldAttribute.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
*/
88
@Data
99
public class FieldAttribute {
10+
// 属性key
11+
private String key;
1012
// 属性名称
1113
private String label;
1214
// 属性值

flow-engine-framework/src/main/java/com/codingapi/flow/form/FlowForm.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public static FlowForm fromMap(Map<String, Object> map) {
7979
List<FieldAttribute> attributeList = new ArrayList<>();
8080
for (Map<String, Object> attribute : attributes){
8181
FieldAttribute fieldAttribute = new FieldAttribute();
82+
fieldAttribute.setKey((String) attribute.get("key"));
8283
fieldAttribute.setLabel((String) attribute.get("label"));
8384
fieldAttribute.setValue((String) attribute.get("value"));
8485
attributeList.add(fieldAttribute);

0 commit comments

Comments
 (0)