0.0.3 • Published 4 years ago
ylz_components v0.0.3
Preview 预览组件
例子
import { Report } from 'ylz_components';
const reportRef = useRef(null)
<Report ref={reportRef} />
reportRef.current.open(data)//预览
reportRef.current.print(data)//打印
import { Report } from 'ylz_components';
const reportRef = useRef(null)
<Report ref={reportRef} />
reportRef.current.open(data)//预览
reportRef.current.print(data)//打印