We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let acceptTypes = ["doc", "docx", "xls", "xlsx", "ppt", "pptx"]; const canPreview = acceptTypes.includes(item.fileType);
对于 Office 类型的文档,可以用 Office 官方提供的在线预览 Viewer 即可;
https://view.officeapps.live.com/op/embed.aspx?src= + this.fileUrl
https://docs.google.com/viewer?url=this.fileUrl
pdf 也可以使用一些开源库。
The text was updated successfully, but these errors were encountered:
pdf 预览不了
Sorry, something went wrong.
No branches or pull requests
1.Office 文档预览
对于 Office 类型的文档,可以用 Office 官方提供的在线预览 Viewer 即可;
https://view.officeapps.live.com/op/embed.aspx?src= + this.fileUrl
2.PDF 预览
https://docs.google.com/viewer?url=this.fileUrl
pdf 也可以使用一些开源库。
The text was updated successfully, but these errors were encountered: