签入版本

This commit is contained in:
2026-10-10 12:24:24 +08:00
parent 49b04a1ec4
commit 3423dea03f
11 changed files with 2372 additions and 43 deletions
@@ -80,8 +80,8 @@ export default {
<template>
<div>
<!-- 基础翻译 -->
<el-button>{{ $t('common.search') }}</el-button>
<el-button>{{ $t('common.reset') }}</el-button>
<a-button>{{ $t('common.search') }}</a-button>
<a-button>{{ $t('common.reset') }}</a-button>
<!-- 带参数翻译 -->
<p>{{ $t('message.welcome', { name: 'Admin' }) }}</p>
@@ -134,15 +134,17 @@ const columns = computed(() => [
```vue
<!-- ui/src/components/LangSwitch/index.vue -->
<template>
<el-dropdown @command="switchLang">
<el-button :icon="Icon" circle />
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item command="zh-CN">中文</el-dropdown-item>
<el-dropdown-item command="en-US">English</el-dropdown-item>
</el-dropdown-menu>
<a-dropdown>
<a-button>
<GlobeOutlined />
</a-button>
<template #overlay>
<a-menu @click="({ key }) => switchLang(key)">
<a-menu-item key="zh-CN">中文</a-menu-item>
<a-menu-item key="en-US">English</a-menu-item>
</a-menu>
</template>
</el-dropdown>
</a-dropdown>
</template>
<script setup lang="ts">