update Table compoent

update Table compoent
This commit is contained in:
梁灏 2016-11-23 18:38:39 +08:00
parent 2cb8a6d93e
commit 744eb0af93
5 changed files with 81 additions and 8 deletions

View file

@ -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}` : '';
}
}
}