Problems encountered in the development of vue-print-nb

  1. Style invalidation problem
    Insert image description here

In this case, the nesting method cannot be used in scss, the style set in #export will not take effect, and #export needs to set the style separately

.main-box{
    
    
	#export{
    
    }
}
  1. Using el-image, the attribute cannot be used in a dynamic way, and the dynamic attribute can be used in the form of native img
 <el-image :src="currentData.patient_gender=='1'?'/svg/recipe-check.svg':'/svg/recipe-uncheck.svg'"
           fit="cover" />
  1. Solve the adaptation problem of different types of paper (a4 is normal, a5 appears large)
@page {
    
    
  size: a4;
}

Guess you like

Origin blog.csdn.net/dncsdnf/article/details/127755780