mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-23 08:05:59 +00:00
show sort in perspective deisgner and tree
This commit is contained in:
23
packages/web/src/designer/SortOrderIcon.svelte
Normal file
23
packages/web/src/designer/SortOrderIcon.svelte
Normal file
@@ -0,0 +1,23 @@
|
||||
<script lang="ts">
|
||||
import FontIcon from '../icons/FontIcon.svelte';
|
||||
|
||||
export let order;
|
||||
export let orderIndex;
|
||||
</script>
|
||||
|
||||
{#if order == 'ASC'}
|
||||
<span class="icon">
|
||||
<FontIcon icon="img sort-asc" />
|
||||
{#if orderIndex >= 0}
|
||||
<span class="color-icon-green order-index">{orderIndex + 1}</span>
|
||||
{/if}
|
||||
</span>
|
||||
{/if}
|
||||
{#if order == 'DESC'}
|
||||
<span class="icon">
|
||||
<FontIcon icon="img sort-desc" />
|
||||
{#if orderIndex >= 0}
|
||||
<span class="color-icon-green order-index">{orderIndex + 1}</span>
|
||||
{/if}
|
||||
</span>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user