From d5c0a5b70092002345d01a5fd9bcdfeac2e43016 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 10 七月 2022 23:49:28 +0800 Subject: [PATCH] 2022-07-10 --- src/tabviews/zshare/actionList/printbutton/index.jsx | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/tabviews/zshare/actionList/printbutton/index.jsx b/src/tabviews/zshare/actionList/printbutton/index.jsx index 5d35f3c..632200e 100644 --- a/src/tabviews/zshare/actionList/printbutton/index.jsx +++ b/src/tabviews/zshare/actionList/printbutton/index.jsx @@ -931,7 +931,8 @@ if (!configParam) { error = '鎵撳嵃妯℃澘瑙f瀽閿欒锛�' } else { - let control = configParam.elements.map(element => { + let control = [] + configParam.elements.forEach(element => { let _field = element.field if (_field === 'other_field') { @@ -967,11 +968,12 @@ item.Trimming = '' if (!item.Width) { item.Width = item.BorderSize - item.Left = item.Left - item.Width + item.Left = item.Left - item.Width + 0.1 } else if (!item.Height) { item.Height = item.BorderSize - item.Top = item.Top - item.Height + item.Top = item.Top - item.Height + 0.1 } + item.BackColor = element.borderColor item.BorderSize = 0 } else if (item.Type === 'image') { item.ImageWidth = element.imgWidth @@ -1011,7 +1013,7 @@ } } - return item + control.push(item) }) _configparam = { -- Gitblit v1.8.0