mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-04 14:46:42 +00:00
fix: extension store platform display bug
This commit is contained in:
parent
f05ffdfcfd
commit
646801ac99
@ -1,27 +1,33 @@
|
||||
<script lang="ts">
|
||||
import { IconEnum, type OSPlatformEnum } from "@kksh/api/models"
|
||||
import { IconEnum, OSPlatformEnum } from "@kksh/api/models"
|
||||
import { IconMultiplexer } from "@kksh/ui"
|
||||
|
||||
const { platforms }: { platforms: OSPlatformEnum[] } = $props()
|
||||
</script>
|
||||
|
||||
<div class="flex gap-2">
|
||||
<IconMultiplexer
|
||||
icon={{
|
||||
type: IconEnum.Iconify,
|
||||
value: "logos:linux-tux"
|
||||
}}
|
||||
/>
|
||||
<IconMultiplexer
|
||||
icon={{
|
||||
type: IconEnum.Iconify,
|
||||
value: "basil:apple-solid"
|
||||
}}
|
||||
/>
|
||||
<IconMultiplexer
|
||||
icon={{
|
||||
type: IconEnum.Iconify,
|
||||
value: "devicon:windows8"
|
||||
}}
|
||||
/>
|
||||
{#if platforms.includes(OSPlatformEnum.linux)}
|
||||
<IconMultiplexer
|
||||
icon={{
|
||||
type: IconEnum.Iconify,
|
||||
value: "logos:linux-tux"
|
||||
}}
|
||||
/>
|
||||
{/if}
|
||||
{#if platforms.includes(OSPlatformEnum.macos)}
|
||||
<IconMultiplexer
|
||||
icon={{
|
||||
type: IconEnum.Iconify,
|
||||
value: "basil:apple-solid"
|
||||
}}
|
||||
/>
|
||||
{/if}
|
||||
{#if platforms.includes(OSPlatformEnum.windows)}
|
||||
<IconMultiplexer
|
||||
icon={{
|
||||
type: IconEnum.Iconify,
|
||||
value: "devicon:windows8"
|
||||
}}
|
||||
/>
|
||||
{/if}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user