Skip to content

Commit

Permalink
fix bugs in last PR
Browse files Browse the repository at this point in the history
  • Loading branch information
xaksis committed Nov 18, 2017
1 parent a3fa982 commit 537753b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<tr v-if="hasFilterRow">
<th v-if="lineNumbers"></th>
<th v-for="(column, index) in columns" v-if="!column.hidden">
<div v-if="column.filterable" :class="columnHeaderClasses(column, index)">
<div v-if="column.filterable" :class="getHeaderClasses(column, index)">
<input v-if="!column.filterDropdown"
type="text"
class=""
Expand Down Expand Up @@ -285,7 +285,8 @@
//Get classes for the given column index & element.
getClasses(index, element) {
const { type, [element + 'Class']: custom } = this.columns[index];
const isRight = ['number', 'percentage', 'decimal', 'date', 'text'].includes(type);
let isRight = ['number', 'percentage', 'decimal', 'date'].includes(type);
if (this.rtl) isRight = true;
const classes = {
'right-align': isRight,
'left-align': !isRight,
Expand Down

0 comments on commit 537753b

Please sign in to comment.