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

fix: 预览pdf样式修改

parent a3b285bf
...@@ -98,7 +98,6 @@ module.exports = { ...@@ -98,7 +98,6 @@ module.exports = {
}, },
], ],
}, },
{ {
test: /\.(eot|otf|ttf|woff|woff2)$/, test: /\.(eot|otf|ttf|woff|woff2)$/,
use: 'file-loader', use: 'file-loader',
......
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.1.3", "version": "5.1.4",
"description": "5.1.3 个性签名修改", "description": "5.1.4 预览pdf样式修改",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
...@@ -131,4 +131,4 @@ ...@@ -131,4 +131,4 @@
"publishConfig": { "publishConfig": {
"registry": "https://g.civnet.cn:4873" "registry": "https://g.civnet.cn:4873"
} }
} }
\ No newline at end of file
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 FileUpload from './FileUpload'
import FilePreview from './FilePreview'
const file = { const file = {
FileUpload, FileUpload,
FilePreview,
} }
export default file export default file
\ No newline at end of file
...@@ -189,4 +189,9 @@ body #app { ...@@ -189,4 +189,9 @@ body #app {
.fr-content .fr-item-wrapper>div { .fr-content .fr-item-wrapper>div {
width: 100%; 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