广丰卷烟厂数采质量分析系统
zhuguifei
2026-03-04 64c2870483568cdeb0206661249a19c5b06de8fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<script setup lang="ts">
import { $t } from '@/locales';
 
defineOptions({
  name: 'TableRowCheckAlert'
});
 
const checkedRowKeys = defineModel<CommonType.IdType[]>('checkedRowKeys', { required: true });
</script>
 
<template>
  <NAlert type="info">
    <span v-if="checkedRowKeys.length">
      {{ $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>{{ $t('common.noSelectRecord') }}</span>
  </NAlert>
</template>
 
<style scoped lang="scss">
.n-alert {
  --n-padding: 5px 13px !important;
  --n-icon-margin: 6px 8px 0 12px !important;
  --n-icon-size: 20px !important;
}
</style>