Skip to content

Commit

Permalink
resolve linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
karankoder committed Jan 14, 2025
1 parent 09a2100 commit ea5dd1d
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions lib/KTable/index.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<template>

<div
ref="tableWrapper"
class="k-table-wrapper"
Expand Down Expand Up @@ -62,28 +63,25 @@
v-if="isColumnSortable(index)"
class="sort-icon"
>
<span v-if="isColumnSortActive(index) && sortOrder === SORT_ORDER_ASC"
><KIcon
icon="dropup"
:color="
isColumnSortActive(index)
? $themeBrand.primary.v_600
: $themePalette.grey.v_800
"
<span v-if="isColumnSortActive(index) && sortOrder === SORT_ORDER_ASC"><KIcon
icon="dropup"
:color="
isColumnSortActive(index)
? $themeBrand.primary.v_600
: $themePalette.grey.v_800
"
/></span>
<span v-else-if="isColumnSortActive(index) && sortOrder === SORT_ORDER_DESC"
><KIcon
icon="dropdown"
:color="
isColumnSortActive(index)
? $themeBrand.primary.v_600
: $themePalette.grey.v_800
"
<span v-else-if="isColumnSortActive(index) && sortOrder === SORT_ORDER_DESC"><KIcon
icon="dropdown"
:color="
isColumnSortActive(index)
? $themeBrand.primary.v_600
: $themePalette.grey.v_800
"
/></span>
<span v-else
><KIcon
icon="sortColumn"
:color="$themePalette.grey.v_800"
<span v-else><KIcon
icon="sortColumn"
:color="$themePalette.grey.v_800"
/></span>
</span>
</th>
Expand Down Expand Up @@ -143,9 +141,12 @@
</div>
</template>
</div>

</template>


<script>
import { ref, computed, watch } from 'vue';
import useSorting, {
SORT_ORDER_ASC,
Expand Down Expand Up @@ -621,9 +622,12 @@
},
},
};
</script>


<style scoped>
.k-table-wrapper {
position: relative;
height: auto;
Expand Down Expand Up @@ -667,4 +671,5 @@
margin-top: 16px;
margin-bottom: 16px;
}
</style>

0 comments on commit ea5dd1d

Please sign in to comment.