mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 19:37:18 +08:00
feat: 提交部分前端翻译
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
<script lang="ts" setup>
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
interface Props {
|
||||
showFooter?: boolean
|
||||
showHeader?: boolean
|
||||
@@ -26,7 +22,7 @@ const route = useRoute()
|
||||
<div flex items-center>
|
||||
<slot v-if="$slots['title-prefix']" name="title-prefix" />
|
||||
<div mr-12 h-16 w-4 rounded-l-2 bg-primary></div>
|
||||
<h2 font-normal>{{ t(title || String(route.meta.title)) }}</h2>
|
||||
<h2 font-normal>{{ title ? title : route.meta.title ? route.meta.title : '' }}</h2>
|
||||
<slot name="title-suffix" />
|
||||
</div>
|
||||
<slot name="action" />
|
||||
|
||||
Reference in New Issue
Block a user