From 7e36c9c235ef783c7ef4aa12f2af7d08e9280931 Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Wed, 8 May 2024 16:31:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/WaybillPrintTemplate/WaybillPrintTemplate.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/WaybillPrintTemplate/WaybillPrintTemplate.vue b/src/components/WaybillPrintTemplate/WaybillPrintTemplate.vue index 66d36e33..a06eb323 100644 --- a/src/components/WaybillPrintTemplate/WaybillPrintTemplate.vue +++ b/src/components/WaybillPrintTemplate/WaybillPrintTemplate.vue @@ -162,12 +162,13 @@ const printTemplate = (type: 'haveTem' | 'notHaveTem') => { for (let i = 0; i < cloneNodeList.length; i++) { const element = cloneNodeList[i]; + for (let j = 0; j < element.childNodes.length; j++) { const child = element.childNodes[j]; if (child.className !== 'image-container') continue; // child.style.setProperty('--isShow', type === 'haveTem' ? 'flex' : 'none'); - child.style.height = '0px'; - child.style.setProperty('--aa', type === 'haveTem' ? '#000' : '#fff'); + child.style.setProperty('--aa', type === 'haveTem' ? '#000 !important' : '#fff !important'); + child.style.setProperty('--height', type === 'haveTem' ? 'auto !important' : '0px !important'); break; } }