|
@@ -851,8 +851,17 @@ export default {
|
|
|
+ '</style>';
|
|
|
win.document.write(style+html);
|
|
|
win.focus();
|
|
|
- win.print();
|
|
|
- win.close();
|
|
|
+ setTimeout(function(){
|
|
|
+ let textArea = win.document.getElementsByTagName('textarea')
|
|
|
+ for (let i = 0; i < textArea.length; i++) {
|
|
|
+ textArea[i].style.height = 'auto' // 先设置成auto,再设置高度,删除文字的时候高度才会改变
|
|
|
+ textArea[i].style.height = textArea[i].scrollHeight+100 + 'px'
|
|
|
+ }
|
|
|
+ win.print();
|
|
|
+ win.close();
|
|
|
+ },500)
|
|
|
+ // win.print();
|
|
|
+ // win.close();
|
|
|
this.showSelect = 0
|
|
|
})
|
|
|
|