|
@@ -131,13 +131,13 @@ export default {
|
|
let title = h('div', {class:"ibox-title"}, [h('div', {class:"ctit"}, [h('h5', comp.name)]), h('div', {class:"ibox-tools"}, tools)]);
|
|
let title = h('div', {class:"ibox-title"}, [h('div', {class:"ctit"}, [h('h5', comp.name)]), h('div', {class:"ibox-tools"}, tools)]);
|
|
let compctx = [];
|
|
let compctx = [];
|
|
if(comp.type === 'box'){
|
|
if(comp.type === 'box'){
|
|
- compctx.push(h('box-view',{ref:'mv_'+comp.id, attrs:{comp:comp, portalParams:this.pageInfo.params, editor:true}}));
|
|
|
|
|
|
+ compctx.push(h('box-view',{ref:'mv_'+comp.id, key:"k_"+comp.id, attrs:{comp:comp, portalParams:this.pageInfo.params, editor:true}}));
|
|
}else if(comp.type ==='chart'){
|
|
}else if(comp.type ==='chart'){
|
|
- compctx.push(h('chart-view',{ref:'mv_'+comp.id, attrs:{comp:comp, portalParams:this.pageInfo.params, editor:true}}));
|
|
|
|
|
|
+ compctx.push(h('chart-view',{ref:'mv_'+comp.id, key:"k_"+comp.id, attrs:{comp:comp, portalParams:this.pageInfo.params, editor:true}}));
|
|
}else if(comp.type === 'grid'){
|
|
}else if(comp.type === 'grid'){
|
|
- compctx.push(h('grid-view',{ref:'mv_'+comp.id, attrs:{comp:comp, portalParams:this.pageInfo.params, editor:true}}));
|
|
|
|
|
|
+ compctx.push(h('grid-view',{ref:'mv_'+comp.id, key:"k_"+comp.id, attrs:{comp:comp, portalParams:this.pageInfo.params, editor:true}}));
|
|
}else if(comp.type === 'table'){
|
|
}else if(comp.type === 'table'){
|
|
- compctx.push(h('table-view',{ref:'mv_'+comp.id, attrs:{comp:comp, portalParams:this.pageInfo.params, editor:true}}));
|
|
|
|
|
|
+ compctx.push(h('table-view',{ref:'mv_'+comp.id, key:"k_"+comp.id, attrs:{comp:comp, portalParams:this.pageInfo.params, editor:true}}));
|
|
}
|
|
}
|
|
let style = {padding:"1px", width:"100%"};
|
|
let style = {padding:"1px", width:"100%"};
|
|
let bgcolor = comp.bgcolor;
|
|
let bgcolor = comp.bgcolor;
|