From 87d7592b292c26f07b48e9b36a27dcd7264e7d01 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 17 Feb 2023 15:50:13 +0800 Subject: [PATCH] feat: add supports for preview audio and video file in attachment detail (#841) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind feature #### What this PR does / why we need it: 支持在附件库的附件详情弹框中预览音视频文件。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/1923 #### Screenshots: image image #### Special notes for your reviewer: 测试方式: 1. 上传若干视频和音频文件,检查是否可以正常播放即可。 可供测试的文件:[音视频测试.zip](https://github.com/halo-dev/console/files/10694553/default.zip) #### Does this PR introduce a user-facing change? ```release-note Console 端的附件详情支持预览音视频文件。 ``` --- .../components/AttachmentDetailModal.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/modules/contents/attachments/components/AttachmentDetailModal.vue b/src/modules/contents/attachments/components/AttachmentDetailModal.vue index 72a17967..eb0b168b 100644 --- a/src/modules/contents/attachments/components/AttachmentDetailModal.vue +++ b/src/modules/contents/attachments/components/AttachmentDetailModal.vue @@ -118,6 +118,20 @@ const onVisibleChange = (visible: boolean) => { +
+ +
+
+ +
此文件不支持预览