mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
perf: dict add i18n
This commit is contained in:
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user