Commit b269c22b authored by 任侠's avatar 任侠 Committed by 杨奕

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

parent 5fc7e188
......@@ -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>;
};
},
......
......@@ -40,6 +40,7 @@
.el-tooltip.cell {
white-space: nowrap;
min-width: 50px;
}
@e empty-block {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment