From ae9cad991ba1d4285516602871f9a5a54271f39e Mon Sep 17 00:00:00 2001 From: lxf <623337308@qq.com> Date: Tue, 9 Nov 2021 15:43:50 +0800 Subject: [PATCH] #pref attachments --- .../Attachment/AttachmentSelectDrawer.vue | 13 +++++++++---- src/styles/global.less | 19 +++++++++++++++++++ src/views/attachment/AttachmentList.vue | 12 +++++++++--- .../components/AttachmentDrawer.vue | 13 +++++++++---- 4 files changed, 46 insertions(+), 11 deletions(-) diff --git a/src/components/Attachment/AttachmentSelectDrawer.vue b/src/components/Attachment/AttachmentSelectDrawer.vue index 5a3580646..011951a50 100644 --- a/src/components/Attachment/AttachmentSelectDrawer.vue +++ b/src/components/Attachment/AttachmentSelectDrawer.vue @@ -15,17 +15,22 @@ - +
- 当前格式不支持预览 - + {{ item.suffix }} +
diff --git a/src/styles/global.less b/src/styles/global.less index 4508294fc..ca3de0838 100644 --- a/src/styles/global.less +++ b/src/styles/global.less @@ -862,6 +862,25 @@ body { top: 0; } +// 附件图片样式 +.attachments-group { + &-item { + padding: 0; + height: 140px; + &-img { + display: block; + height: 100%; + background-repeat: no-repeat; + background-size: 100%; + background-position: center; + } + .attachments-group &-type { + font-size: 38px; + text-transform: capitalize; + } + } +} + .ant-affix { z-index: 1000 !important; } diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue index e4c51a020..1b93412ee 100644 --- a/src/views/attachment/AttachmentList.vue +++ b/src/views/attachment/AttachmentList.vue @@ -71,6 +71,7 @@ -
- 当前格式不支持预览 - +
+ {{ item.suffix }} +
{{ item.name }} diff --git a/src/views/attachment/components/AttachmentDrawer.vue b/src/views/attachment/components/AttachmentDrawer.vue index 322c88fa2..6cbde412d 100644 --- a/src/views/attachment/components/AttachmentDrawer.vue +++ b/src/views/attachment/components/AttachmentDrawer.vue @@ -15,18 +15,23 @@ - +
- 当前格式不支持预览 - + {{ item.suffix }} +