diff --git a/src/components/Attachment/AttachmentSelectDrawer.vue b/src/components/Attachment/AttachmentSelectDrawer.vue index 5a35806462..011951a50c 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 dfbd9bebba..fc190934fb 100644 --- a/src/styles/global.less +++ b/src/styles/global.less @@ -814,6 +814,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 e4c51a020b..1b93412ee1 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 322c88fa2c..6cbde412d8 100644 --- a/src/views/attachment/components/AttachmentDrawer.vue +++ b/src/views/attachment/components/AttachmentDrawer.vue @@ -15,18 +15,23 @@ - +
- 当前格式不支持预览 - + {{ item.suffix }} +