Commit 8d69570e authored by 田翔's avatar 田翔

fix: 预览pdf样式修改

parent a3b285bf
......@@ -98,7 +98,6 @@ module.exports = {
},
],
},
{
test: /\.(eot|otf|ttf|woff|woff2)$/,
use: 'file-loader',
......
{
"name": "panda-xform",
"version": "5.1.3",
"description": "5.1.3 个性签名修改",
"version": "5.1.4",
"description": "5.1.4 预览pdf样式修改",
"keywords": [
"panda-xform"
],
......
import React from 'react'
// import { Document, pdfjs } from '@react-pdf/renderer'
const FilePreview = (props) => {
// return (
// <Document
// options={{
// cMapUrl: `https://unpkg.com/pdfjs-dist@${pdfjs.version}/cmaps/`,
// cMapPacked: true,
// }}
// />
// )
return null
}
export default FilePreview
\ No newline at end of file
import FileUpload from './FileUpload'
import FilePreview from './FilePreview'
const file = {
FileUpload,
FilePreview,
}
export default file
\ No newline at end of file
......@@ -189,4 +189,9 @@ body #app {
.fr-content .fr-item-wrapper>div {
width: 100%;
}
.pdf-canvas {
width: 100%;
display: flex;
justify-content: center;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment