perf: dict add i18n

This commit is contained in:
王中奇
2025-05-17 23:05:49 +08:00
parent c76b183108
commit 49c8eb53b1
8 changed files with 140 additions and 59 deletions

View File

@ -1,4 +1,6 @@
<script setup lang="ts">
import { $t } from '@/locales';
defineOptions({
name: 'TableRowCheckAlert'
});
@ -9,10 +11,12 @@ const checkedRowKeys = defineModel<CommonType.IdType[]>('checkedRowKeys', { requ
<template>
<NAlert type="info">
<span v-if="checkedRowKeys.length">
已选择{{ checkedRowKeys.length }}条记录
<NButton class="pl-6px" text type="primary" @click="() => (checkedRowKeys = [])">清空</NButton>
{{ $t('common.selected') }} {{ checkedRowKeys.length }} {{ $t('common.anyRecords') }}
<NButton class="pl-6px" text type="primary" @click="() => (checkedRowKeys = [])">
{{ $t('common.clear') }}
</NButton>
</span>
<span v-else>未选中任何记录</span>
<span v-else>{{ $t('common.noSelectRecord') }}</span>
</NAlert>
</template>