react-component-export-image:将组件导出为jpeg,png或pdf

时间:2021-04-28 14:10:33
【文件属性】:
文件名称:react-component-export-image:将组件导出为jpeg,png或pdf
文件大小:182KB
文件格式:ZIP
更新时间:2021-04-28 14:10:33
JavaScript react-component-export-image 演示 介绍 将组件导出为jpeg,png或pdf 每个导出都需要一个{React.RefObject}节点,可选的FileName和可选的html2CanvasOptions对象,您希望将其传递给html2Canvas exportComponentAsPDF还接受具有以下可选字段{w,h,x,y,单位,方向,pdfFormat}的可选pdfOptions对象。 w = 100 ( Width in pixels - defaults to the width of the element ) h = 50 ( Height in pixels - defaults to the height of the element ) x = 0 ( X Coordinate in pixels against left edge o
【文件预览】:
react-component-export-image-master
----index.js(3KB)
----package.json(1KB)
----main.d.ts(1017B)
----package-lock.json(181KB)
----.DS_Store(6KB)
----dist()
--------index.js(459KB)
----.gitignore(30B)
----webpack.config.js(697B)
----README.md(4KB)

网友评论