广丰卷烟厂数采质量分析系统
zhuguifei
2026-03-02 80ff784bf60637cd348ae665fc907f7b1e527dd8
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
30
31
32
33
34
35
<script setup lang="ts">
import { useAttrs } from 'vue';
import type { DataTableProps } from 'naive-ui';
import type { CreateRowKey } from 'naive-ui/es/data-table/src/interface';
import { useThemeStore } from '@/store/modules/theme';
 
defineOptions({
  name: 'DataTable',
  inheritAttrs: false
});
 
interface Props {
  rowKey?: CreateRowKey<any>;
}
 
defineProps<Props>();
 
const { table } = useThemeStore();
const attrs: DataTableProps = useAttrs();
</script>
 
<template>
  <NDataTable
    :bordered="table.bordered"
    :bottom-bordered="table.bottomBordered"
    :single-column="table.singleColumn"
    :single-line="table.singleLine"
    :size="table.size"
    :striped="table.striped"
    :row-key="rowKey"
    v-bind="attrs"
  />
</template>
 
<style scoped></style>