|
|
|
@ -213,6 +213,13 @@ const printTemplate = (type: 'haveTem' | 'notHaveTem') => {
|
|
|
|
|
element.style.borderColor = type === 'haveTem' ? '#000' : '#fff'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const lineArr = document.querySelectorAll('.printCode .line'); |
|
|
|
|
|
|
|
|
|
for (let index = 0; index < lineArr.length; index++) { |
|
|
|
|
const element = lineArr[index]; |
|
|
|
|
element.style.borderColor = type === 'haveTem' ? '#000' : '#fff'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
print(printNode); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|