filesbox/miniprogram/FilesBox/components/file/files-preview/files-preview.wxml

5 lines
458 B
Plaintext
Raw Permalink Normal View History

2023-09-21 02:23:31 +00:00
<!--packageB/pages/files/files-preview/files-preview.wxml-->
<web-view src="{{previewUrl}}" wx:if="{{fileType == 1}}"></web-view>
<video class="preview-video" autoplay show-center-play-btn="{{false}}" src="{{previewUrl}}" wx:if="{{fileType == 2}}"></video>
<!-- <audio id="audio" class="audio" src="{{previewUrl}}" controls wx:if="{{fileType == 3}}"></audio> -->
<music-play src="{{audioPlayUrl}}" fileName="{{name}}" wx:if="{{fileType == 3}}"></music-play>