Closed zhangqiankunai closed 1 year ago
copyStyles 我怀疑是这个属性没有起作用?能不能给点建议 copyStyles I suspect this attribute is not working? Can you give me some advice
Hello. I do not understand your problem. Could you show an example, maybe on Codesandbox?
ReactToPrint copies the link/style in document.head
. Micro-frontend frameworks may put the styles of sub-applications in shadowDOM, which will not be copied. Perhaps the printing logic can be customized through the print
parameter of ReactToPrint?
Work out
正常打开项目是没有问题的,挂在micro-app微前端下,打印pdf 展示的时候就发现没有css了,我要怎么解决呢,能理解我的意思吗? There is no problem to open the project normally, but when I hung it under the micro-app micro-front end, I found that there was no css when I printed the pdf display. How can I solve it? Can you understand my meaning?