update Table compoent
update Table compoent
This commit is contained in:
parent
2cb8a6d93e
commit
744eb0af93
5 changed files with 81 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<thead>
|
||||
<tr>
|
||||
<th v-for="column in columns">{{{ renderHeader(column, $index) }}}</th>
|
||||
<th v-for="column in columns" :class="fixedCls(column)">{{{ renderHeader(column, $index) }}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</template>
|
||||
|
@ -26,6 +26,9 @@
|
|||
} else {
|
||||
return column.title || '#';
|
||||
}
|
||||
},
|
||||
fixedCls (column) {
|
||||
return column.fixed ? `${this.prefixCls}-${column.fixed}` : '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue