Skip to content

Commit

Permalink
+ components support
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Oct 14, 2021
1 parent 05773f6 commit fa6d5ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 9 additions & 1 deletion app/tables/service.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,20 @@
}
}
},
"计费方式C": {
"label": "计费方式",
"view": {
"name": "xxxxx",
"components": ["计费方式", "行业覆盖"]
}
},
"计费方式": {
"label": "计费方式",
"view": {
"name": "tags",
"props": {
"value": ":fields"
"value": ":fields",
"format": [".jpg", "..."]
}
},
"edit": {
Expand Down
5 changes: 3 additions & 2 deletions table/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ type Page struct {

// Render 组件渲染方式
type Render struct {
Type string `json:"type,omitempty"`
Props map[string]interface{} `json:"props,omitempty"`
Type string `json:"type,omitempty"`
Props map[string]interface{} `json:"props,omitempty"`
Components []interface{} `json:"components,omitempty"`
}

0 comments on commit fa6d5ee

Please sign in to comment.