Skip to content
On this page

文件预览

Attributes

属性名说明类型可选值默认值
urls以逗号分隔的文件 URL 列表String
width预览区域宽度,可传数字或带单位的字符串String200px
height预览区域高度String200px
displayType文件显示类型:'image''video''file'String
coverType封面类型:'None'(直接展示所有预览)、'button'(按钮封面)、'file'(文件封面)String'None'(直接展示所有预览)、'button'(按钮封面)、'file'(文件封面)None
buttonText当封面类型为 button 时,按钮显示的文本String预览文件
defaultVideoImage当 displayType 为 video 时,默认的视频缩略图Stringhttps://via.placeholder.com/200?text=Video
defaultFileImage当 displayType 为 file 且封面类型为 file 时,默认的文件封面图Stringhttps://via.placeholder.com/200?text=File