table: set width for each td>div.cell.el-tooltip element(#2198,#3128)

pull/4670/head
任侠 2017-04-12 19:04:12 +08:00 committed by 杨奕
parent 5fc7e18891
commit b269c22bba
2 changed files with 2 additions and 1 deletions

View File

@ -290,7 +290,7 @@ export default {
}
return _self.showOverflowTooltip || _self.showTooltipWhenOverflow
? <div class="cell el-tooltip">{ renderCell(h, data) }</div>
? <div class="cell el-tooltip" style={'width:' + (data.column.realWidth || data.column.width) + 'px'}>{ renderCell(h, data) }</div>
: <div class="cell">{ renderCell(h, data) }</div>;
};
},

View File

@ -40,6 +40,7 @@
.el-tooltip.cell {
white-space: nowrap;
min-width: 50px;
}
@e empty-block {