更新组件配置

This commit is contained in:
Max 2022-01-19 23:21:40 +08:00
parent 6d2cdaaf1b
commit 88c749ae9a

View file

@ -265,31 +265,31 @@ func (imp *Importer) DataSetting() map[string]interface{} {
"list": share.Page{ "list": share.Page{
Primary: "id", Primary: "id",
Layout: map[string]interface{}{"columns": layoutColumns}, Layout: map[string]interface{}{"columns": layoutColumns},
}, Actions: map[string]share.Render{
"actions": map[string]interface{}{ "pagination": {
"pagination": map[string]interface{}{ Props: map[string]interface{}{
"props": map[string]interface{}{ "showTotal": true,
"showTotal": true, },
}, },
}, },
}, Option: map[string]interface{}{
"option": map[string]interface{}{ "operation": map[string]interface{}{
"operation": map[string]interface{}{ "hideView": true,
"hideView": true, "hideEdit": true,
"hideEdit": true, "width": 120,
"width": 120, "unfold": true,
"unfold": true, "checkbox": map[string]interface{}{
"checkbox": map[string]interface{}{ "value": ":__effected",
"value": ":__effected", "visible_label": false,
"visible_label": false, "status": []map[string]interface{}{
"status": []map[string]interface{}{ {
{ "label": "有效",
"label": "有效", "value": true,
"value": true, },
}, {
{ "label": "无效",
"label": "无效", "value": false,
"value": false, },
}, },
}, },
}, },
@ -311,7 +311,7 @@ func (imp *Importer) MappingSetting(src from.Source) map[string]interface{} {
}, },
Edit: share.Render{ Edit: share.Render{
Type: "select", Type: "select",
Props: map[string]interface{}{"option": imp.getFieldOption(), "value": ":field"}, Props: map[string]interface{}{"options": imp.getFieldOption(), "value": ":field"},
}, },
}, },
"数据源": { "数据源": {
@ -322,18 +322,18 @@ func (imp *Importer) MappingSetting(src from.Source) map[string]interface{} {
}, },
Edit: share.Render{ Edit: share.Render{
Type: "select", Type: "select",
Props: map[string]interface{}{"option": imp.getSourceOption(src), "value": ":axis"}, Props: map[string]interface{}{"options": imp.getSourceOption(src), "value": ":axis"},
}, },
}, },
"清洗规则": { "清洗规则": {
Label: "清洗规则", Label: "清洗规则",
View: share.Render{ View: share.Render{
Type: "tag", Type: "tags",
Props: map[string]interface{}{"value": ":rules"}, Props: map[string]interface{}{"value": ":rules"},
}, },
Edit: share.Render{ Edit: share.Render{
Type: "select", Type: "select",
Props: map[string]interface{}{"option": imp.getRulesOption(), "value": ":rules"}, Props: map[string]interface{}{"options": imp.getRulesOption(), "value": ":rules", "mode": "multiple"},
}, },
}, },
"数据示例": { "数据示例": {
@ -357,10 +357,10 @@ func (imp *Importer) MappingSetting(src from.Source) map[string]interface{} {
{"name": "数据示例"}, {"name": "数据示例"},
}, },
}, },
}, Option: map[string]interface{}{
"actions": map[string]interface{}{}, "operation": map[string]interface{}{"hideView": true, "hideEdit": true, "width": 0},
"option": map[string]interface{}{ },
"operation": map[string]interface{}{"hideView": true, "hideEdit": true, "width": 0}, Actions: map[string]share.Render{},
}, },
} }
return setting return setting