mirror of https://github.com/ElemeFE/element
table: set width for each td>div.cell.el-tooltip element(#2198,#3128)
parent
5fc7e18891
commit
b269c22bba
|
@ -290,7 +290,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
return _self.showOverflowTooltip || _self.showTooltipWhenOverflow
|
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>;
|
: <div class="cell">{ renderCell(h, data) }</div>;
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
|
|
||||||
.el-tooltip.cell {
|
.el-tooltip.cell {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
min-width: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@e empty-block {
|
@e empty-block {
|
||||||
|
|
Loading…
Reference in New Issue