From 137fb8ea6af2789b3238b22bac31d80bced41dfe Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 28 七月 2021 11:39:39 +0800 Subject: [PATCH] 2021-07-28 --- src/tabviews/zshare/actionList/asyncButtonComponent.jsx | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/src/tabviews/zshare/actionList/asyncButtonComponent.jsx b/src/tabviews/zshare/actionList/asyncButtonComponent.jsx index 1d48bf6..30d70ed 100644 --- a/src/tabviews/zshare/actionList/asyncButtonComponent.jsx +++ b/src/tabviews/zshare/actionList/asyncButtonComponent.jsx @@ -27,19 +27,11 @@ const btn = this.props.btn || {} let style = {} - if (!C && btn.btnstyle) { - if (btn.btnstyle.marginRight) { - style.marginRight = btn.btnstyle.marginRight - } - if (btn.btnstyle.marginLeft) { - style.marginLeft = btn.btnstyle.marginLeft - } - if (btn.btnstyle.marginTop) { - style.marginTop = btn.btnstyle.marginTop - } - if (btn.btnstyle.marginBottom) { - style.marginBottom = btn.btnstyle.marginBottom - } + if (!C && btn.style) { + style.marginRight = btn.style.marginRight || '' + style.marginLeft = btn.style.marginLeft || '' + style.marginTop = btn.style.marginTop || '' + style.marginBottom = btn.style.marginBottom || '' } return C ? -- Gitblit v1.8.0