fix: asc, desc -> icons

This commit is contained in:
opbnq-q
2025-03-15 18:30:33 +07:00
parent 8924c68005
commit 33b0eaca3d
9 changed files with 6 additions and 477 deletions

View File

@@ -19,7 +19,12 @@ defineProps<{
<ul class="flex flex-col gap-2 native-border secondary-background p-3 rounded-md">
<li v-for="optionKey in optionsKeys" class="flex items-center justify-between w-full">
<h1>{{ scheme[optionKey].russian }}</h1>
<Select size="small" class="w-24" :options="['ASC', 'DESC']" v-model="options![optionKey]" @value-change="load"></Select>
<Select size="small" class="w-24" :options="['ASC', 'DESC']" v-model="options![optionKey]" @value-change="load">
<template #value="{ value }">
<span class="pi pi-sort-amount-up-alt" v-if="value == 'ASC'"></span>
<span class="pi pi-sort-amount-down" v-else></span>
</template>
</Select>
</li>
</ul>
</template>