feat:【antd】【ele】统一 infra 和 system 的代码风格
This commit is contained in:
@@ -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 }">
|
||||
|
||||
Reference in New Issue
Block a user