18 lines
454 B
Vue
18 lines
454 B
Vue
<script setup lang="ts">
|
|
import { IconLoader2 } from "@tabler/icons-vue";
|
|
import { Button } from "@heroui-vue/components";
|
|
</script>
|
|
<template>
|
|
<Button is-pending v-slot="{ isPending }">
|
|
<span
|
|
v-if="isPending"
|
|
data-slot="spinner"
|
|
class="inline-flex size-4 shrink-0"
|
|
aria-hidden="true"
|
|
>
|
|
<IconLoader2 class="size-full animate-spin motion-reduce:animate-none" />
|
|
</span>
|
|
上传中…
|
|
</Button>
|
|
</template>
|