previewfile
v0.0.2
Published
this is a project to preview media files
Downloads
27
Maintainers
Readme
*** 执行npm install previewfile
import Previewfile from 'previewfile';
/**
* 入参file
* @param {array} [file]
* [
* {
* fileName: "新建 DOCX 文档.docx"
fileSize: "4.07MB"
ossFileName: "https://wutong-icp-task.oss-cn-shanghai.aliyuncs.com/1c665232dc7b474180a4e54b48fdc2a2.docx"
ossFileUrl: "https://wutong-icp-task.oss-cn-shanghai.aliyuncs.com/1c665232dc7b474180a4e54b48fdc2a2.docx"
previewUrl: "https://op-icp.sto.cn/static/img/[email protected]"
thumbnailUrl: "https://op-icp.sto.cn/static/img/word.png"
* }
* ]
*/
const Preview = (props) => {
return <Previewfile file={props.file} />
}
export default Preview