From 5232d34f026f72eb90a5ba6fff33d30cf9d961aa Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 25 十二月 2020 19:11:07 +0800
Subject: [PATCH] 2020-12-25

---
 src/tabviews/zshare/actionList/normalbutton/index.jsx |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx
index 35ea599..58248f3 100644
--- a/src/tabviews/zshare/actionList/normalbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -1100,7 +1100,7 @@
    * @description 鏄剧ず妯℃�佹
    */
   getModels = () => {
-    const { setting, BID } = this.props
+    const { setting, BID, btn } = this.props
     const { btnconfig } = this.state
 
     if (!this.state.visible || !btnconfig || !btnconfig.setting) return null
@@ -1110,9 +1110,12 @@
     let clickouter = false
     let container = document.body
 
-    if (setting.tabType === 'main' && btnconfig.setting.container === 'tab' && this.props.ContainerId) {
+    if (
+      (setting.tabType === 'main' && btnconfig.setting.container === 'tab' && this.props.ContainerId) ||
+      (btnconfig.setting.container === 'tab' && btn.ContainerId)
+    ) {
       width = btnconfig.setting.width + '%'
-      container = () => document.getElementById(this.props.ContainerId)
+      container = () => document.getElementById(this.props.ContainerId || btn.ContainerId)
     }
 
     if (btnconfig.setting.clickouter === 'close') {

--
Gitblit v1.8.0