Feature action (#149)
* ci: 👷 整合github action配置文件 * docs: 📝 贡献文档修改 * style: 💄 更新版本 * style: 💄 cargo.lock版本更新 * feat(husky): 增强Git标签版本校验脚本 添加了对Git标签指向提交与release分支一致性的校验功能。 脚本现在会检查tag指向的提交是否与当前或任何release分支的最新提交一致, 确保发布流程的准确性。如果当前在release分支上,直接比较分支HEAD与tag指向的提交; 如果不在release分支上,则遍历所有release分支查找匹配的提交。 * feat: ✨ 国际化
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
<script setup lang='ts'>
|
||||
import type { LoadingOptions } from './loading-context'
|
||||
import { inject } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { loadingKey } from './loading-context'
|
||||
|
||||
// 注入全局状态
|
||||
const loading = inject(loadingKey) as LoadingOptions
|
||||
|
||||
const { t } = useI18n()
|
||||
// 解构状态(响应式)
|
||||
const { visible, text } = loading
|
||||
</script>
|
||||
@@ -13,7 +15,7 @@ const { visible, text } = loading
|
||||
<template>
|
||||
<div v-if="visible" class="fixed top-0 left-0 w-screen h-screen bg-[rgba(0,0,0,0.5)] flex flex-col gap-6 justify-center items-center z-50">
|
||||
<span v-if="visible" class="loading loading-spinner loading-xl" />
|
||||
<span>{{ text ? text : '加载中' }}</span>
|
||||
<span>{{ text ? text : t('button.loading') }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user