tables refactoring

This commit is contained in:
Čarodej
2021-11-23 16:26:38 +01:00
parent 946dfa7d99
commit f711ec7d89
5 changed files with 154 additions and 84 deletions
@@ -8,17 +8,17 @@
v-for="(column, index) in columns"
@click="sort(column.field, column.sortable)"
:key="index"
:class="{ 'sortable': column.sortable }"
:class="{ 'sortable': column.sortable, 'text-right': (Object.values(columns).length - 1) === index }"
v-if="! column.hidden"
>
<span class="text-theme dark-text-theme text-xs">
<span class="text-gray-400 dark-text-theme text-xs">
{{ column.label }}
</span>
<chevron-up-icon
v-if="column.sortable"
:class="{ 'arrow-down': filter.sort === 'ASC' }"
class="inline-block vue-feather text-gray-500"
class="inline-block vue-feather text-gray-300"
size="12"
/>
</th>