chore: init read-star monorepo
This commit is contained in:
21
apps/user/src/components/common/reload-button.vue
Normal file
21
apps/user/src/components/common/reload-button.vue
Normal file
@ -0,0 +1,21 @@
|
||||
<script setup lang="ts">
|
||||
import { $t } from '@/locales'
|
||||
|
||||
defineOptions({
|
||||
name: 'ReloadButton',
|
||||
})
|
||||
|
||||
defineProps<Props>()
|
||||
|
||||
interface Props {
|
||||
loading?: boolean
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ButtonIcon :tooltip-content="$t('icon.reload')">
|
||||
<icon-ant-design-reload-outlined :class="{ 'animate-spin animate-duration-750': loading }" />
|
||||
</ButtonIcon>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user