Fix group by style issue

https://github.com/rancher/rancher/issues/13018
This commit is contained in:
loganhz 2018-04-24 15:47:35 +08:00
parent 5ced1bd093
commit 4e7f618b9c
1 changed files with 9 additions and 0 deletions

View File

@ -14,6 +14,7 @@ export default Component.extend({
afterState: 0,
alignState: 'text-center',
showActions: true,
nameSpan: null,
nodes: null,
nodeId: null,
@ -27,5 +28,13 @@ export default Component.extend({
const targetNode = nodes.find(n => n.id === nodeId && n.clusterId === clusterId);
set(this, 'model', targetNode);
}
const nameSpan = get(this,'fullColspan') -
( get(this, 'afterName') ? 1 : 0 ) -
( get(this, 'showState') ? 1 : 0 ) -
( get(this, 'afterState') ? 1 : 0 ) -
( get(this, 'showActions') ? 1 : 0 );
set(this, 'nameSpan', nameSpan);
},
});