| 123456789101112131415161718192021222324252627282930313233343536 |
- <template>
- <div class="p-4">
- <BasicTable @register="registerTable" :scroll="{ x: 'max-content' }" />
- </div>
- </template>
- <script lang="ts">
- import { defineComponent } from 'vue';
- import { BasicTable, useTable } from '/@/components/Table';
- import { getAccessStatisticsColumns } from './access.data';
- import { getGoafAccessCount } from '../basicInfo.api';
- export default defineComponent({
- components: { BasicTable },
- setup() {
- const [registerTable] = useTable({
- api: getGoafAccessCount,
- columns: getAccessStatisticsColumns(),
- pagination: true,
- showIndexColumn: true,
- });
- return {
- registerTable,
- };
- },
- });
- </script>
- <style scoped>
- /* 合计行样式优化 */
- .bg-gray-50 {
- background-color: #f9fafb;
- }
- .font-medium {
- font-weight: 500;
- }
- </style>
|