feat:【antd】【ele】统一 infra 和 system 的代码风格

This commit is contained in:
YunaiV
2025-09-23 00:04:41 +08:00
parent b6d7dda0b3
commit af74cf6ad9
34 changed files with 65 additions and 75 deletions

View File

@@ -150,21 +150,8 @@ const [Grid, gridApi] = useVbenVxeGrid({
</template>
<template #file-content="{ row }">
<ElImage v-if="row.type && row.type.includes('image')" :src="row.url" />
<ElButton
v-else-if="row.type && row.type.includes('pdf')"
type="primary"
link
@click="() => openWindow(row.url!)"
>
预览
</ElButton>
<ElButton
v-else
type="primary"
link
@click="() => openWindow(row.url!)"
>
下载
<ElButton type="primary" link @click="() => openWindow(row.url!)">
{{ row.type && row.type.includes('pdf') ? '预览' : '下载' }}
</ElButton>
</template>
<template #actions="{ row }">