fix: some
All checks were successful
构建并部署前端到测试环境 / deploy (push) Successful in 54s

This commit is contained in:
luo
2026-10-28 15:18:44 +08:00
parent 06684e1fc0
commit f2614d8efb
99 changed files with 11511 additions and 132 deletions

View File

@@ -0,0 +1,43 @@
<template>
<ArtTableHeader v-model:columns="columnChecks" @refresh="$emit('refresh')"
><template #left><slot name="toolbar" /></template
></ArtTableHeader>
<ArtTable
:data="rows"
:loading="loading"
:row-key="rowKey || 'id'"
:pagination="total != null"
:current-page="page || 1"
:page-size="size || 20"
:total="total || 0"
:margin-top="10"
@current-change="(value) => $emit('page', value)"
@size-change="(value) => $emit('size', value)"
>
<ElTableColumn
v-for="column in columns"
:key="column.prop"
:prop="column.prop"
:label="column.label"
:min-width="column.width || 170"
show-overflow-tooltip
><template #default="{ row }">{{ silenceDisplay(row, column.prop) }}</template></ElTableColumn
>
<slot />
</ArtTable>
</template>
<script setup lang="ts">
import { useGatewayColumns } from '@/composables/useGateway'
import { silenceDisplay } from '@/utils/business/silenceExtension'
const props = defineProps<{
rows: object[]
rowKey?: string
definitions: { prop: string; label: string; width?: number }[]
loading?: boolean
page?: number
size?: number
total?: number
}>()
defineEmits<{ refresh: []; page: [number]; size: [number] }>()
const { columns, columnChecks } = useGatewayColumns(props.definitions)
</script>