Commit a0f489478b9804a28ccd4ce30731e1127ed728fd
1 parent
9ea47cb3
Optimize Table checkbox style
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
src/components/table/table-head.vue
... | ... | @@ -17,7 +17,7 @@ |
17 | 17 | </template> |
18 | 18 | <template v-else-if="column.type === 'selection'"><Checkbox :value="isSelectAll" :disabled="!data.length" @on-change="selectAll"></Checkbox></template> |
19 | 19 | <template v-else> |
20 | - <span v-if="!column.renderHeader" @click="handleSortByHead(getColumn(rowIndex, index)._index)">{{ column.title || '#' }}</span> | |
20 | + <span v-if="!column.renderHeader" :class="{[prefixCls + '-cell-sort']: column.sortable}" @click="handleSortByHead(getColumn(rowIndex, index)._index)">{{ column.title || '#' }}</span> | |
21 | 21 | <render-header v-else :render="column.renderHeader" :column="column" :index="index"></render-header> |
22 | 22 | <span :class="[prefixCls + '-sort']" v-if="column.sortable"> |
23 | 23 | <i class="ivu-icon ivu-icon-arrow-up-b" :class="{on: getColumn(rowIndex, index)._sortType === 'asc'}" @click="handleSort(getColumn(rowIndex, index)._index, 'asc')"></i> | ... | ... |