mirror of https://github.com/ElemeFE/element
table: wrap col in colgroup to make column width work in safari
parent
aeb2d5df19
commit
a3da161339
|
@ -28,6 +28,7 @@ export default {
|
|||
cellspacing="0"
|
||||
cellpadding="0"
|
||||
border="0">
|
||||
<colgroup>
|
||||
{
|
||||
this._l(this.columns, column =>
|
||||
<col
|
||||
|
@ -35,6 +36,7 @@ export default {
|
|||
width={ column.realWidth || column.width }
|
||||
/>)
|
||||
}
|
||||
</colgroup>
|
||||
<tbody>
|
||||
{
|
||||
this._l(this.data, (row, $index) =>
|
||||
|
|
|
@ -78,6 +78,7 @@ export default {
|
|||
cellspacing="0"
|
||||
cellpadding="0"
|
||||
border="0">
|
||||
<colgroup>
|
||||
{
|
||||
this._l(this.columns, column =>
|
||||
<col
|
||||
|
@ -90,6 +91,7 @@ export default {
|
|||
? <col name="gutter" width={ this.layout.scrollY ? this.layout.gutterWidth : '' }></col>
|
||||
: ''
|
||||
}
|
||||
</colgroup>
|
||||
<thead>
|
||||
{
|
||||
this._l(columnRows, (columns, rowIndex) =>
|
||||
|
|
Loading…
Reference in New Issue