admin-vben5/packages/business/widgets/src/preferences/trigger.vue

22 lines
517 B
Vue
Raw Normal View History

2024-05-19 21:20:42 +08:00
<script setup lang="ts">
import { $t } from '@vben/locales';
2024-06-08 19:49:06 +08:00
import { VbenButton } from '@vben-core/shadcn-ui';
2024-05-19 21:20:42 +08:00
import IconSetting from './icons/setting.vue';
defineOptions({
name: 'PreferenceTrigger',
});
</script>
<template>
<VbenButton
2024-06-23 23:18:55 +08:00
:title="$t('preferences.title')"
2024-06-16 15:45:15 +08:00
class="bg-primary flex-col-center h-12 w-12 cursor-pointer rounded-l-lg rounded-r-none border-none"
2024-05-19 21:20:42 +08:00
>
2024-06-23 19:17:31 +08:00
<IconSetting
class="duration-3000 fill-primary-foreground animate-spin text-2xl"
/>
2024-05-19 21:20:42 +08:00
</VbenButton>
</template>