Files
Yi.Admin/Yi.Ai.Vue3/src/components/WelecomeText/index.vue
2025-08-31 01:37:36 +08:00

38 lines
918 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!-- 欢迎提示词 -->
<script setup lang="ts">
import { Typewriter } from 'vue-element-plus-x';
import { useTimeGreeting } from '@/hooks/useTimeGreeting';
import { useUserStore } from '@/stores';
const greeting = useTimeGreeting();
const userStore = useUserStore();
const username = computed(() => userStore.userInfo?.username ?? '意心Ai一心只为打造更良心的Ai平台');
</script>
<template>
<div
class="welcome-text w-full flex flex-wrap items-center justify-center text-center text-lg font-semibold mb-32px mt-12px font-size-32px line-height-32px"
>
<!-- :content="`${greeting}好,${username}`"-->
<Typewriter
:content="`${username}`"
:typing="{
step: 2,
interval: 45,
}"
:is-fog="{
bgColor: '#fff',
}"
/>
</div>
</template>
<style scoped lang="scss">
:deep {
.typer-container {
overflow: initial;
}
}
</style>