+ components support

This commit is contained in:
Max 2021-10-14 10:30:38 +08:00
parent 05773f6b1d
commit fa6d5ee746
2 changed files with 12 additions and 3 deletions

View file

@ -166,12 +166,20 @@
}
}
},
"计费方式C": {
"label": "计费方式",
"view": {
"name": "xxxxx",
"components": ["计费方式", "行业覆盖"]
}
},
"计费方式": {
"label": "计费方式",
"view": {
"name": "tags",
"props": {
"value": ":fields"
"value": ":fields",
"format": [".jpg", "..."]
}
},
"edit": {

View file

@ -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"`
}