Browse Source
* refactor: adjust layout refresh button and watermark; allow static i18n on language switch * chore: typopull/4582/head
committed by
GitHub
25 changed files with 142 additions and 125 deletions
@ -1,3 +1,2 @@ |
|||
export { default as TabsToolMore } from './tool-more.vue'; |
|||
export { default as TabsToolRefresh } from './tool-refresh.vue'; |
|||
export { default as TabsToolScreen } from './tool-screen.vue'; |
|||
|
|||
@ -1,31 +0,0 @@ |
|||
<script lang="ts" setup> |
|||
import { ref } from 'vue'; |
|||
|
|||
import { RotateCw } from '@vben-core/icons'; |
|||
|
|||
const emit = defineEmits<{ refresh: [] }>(); |
|||
|
|||
const loading = ref(false); |
|||
function handleClick() { |
|||
loading.value = true; |
|||
|
|||
setTimeout(() => { |
|||
loading.value = false; |
|||
}, 1000); |
|||
emit('refresh'); |
|||
} |
|||
</script> |
|||
|
|||
<template> |
|||
<div |
|||
class="flex-center hover:bg-muted hover:text-foreground text-muted-foreground border-border h-full cursor-pointer border-l px-[9px] text-lg font-semibold" |
|||
@click="handleClick" |
|||
> |
|||
<RotateCw |
|||
:class="{ |
|||
'animate-spin duration-1000': loading, |
|||
}" |
|||
class="size-4" |
|||
/> |
|||
</div> |
|||
</template> |
|||
Loading…
Reference in new issue