king
2022-10-27 83592b5c2dcbfd0a91d36dfa89f1a6cbe95ab1d1
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -27,7 +27,6 @@
    btn: PropTypes.object,            // 按钮
    columns: PropTypes.any,           // 字段列
    setting: PropTypes.any,           // 页面通用设置
    ContainerId: PropTypes.any,       // tab页面ID,用于弹窗控制
    disabled: PropTypes.any,          // 行按钮禁用
  }
@@ -2534,7 +2533,7 @@
   * @description 显示模态框
   */
  getModels = () => {
    const { setting, BID, btn, BData } = this.props
    const { BID, btn, BData } = this.props
    const { btnconfig, visible } = this.state
    if (!btnconfig || !btnconfig.setting) return null
@@ -2583,12 +2582,9 @@
    } else {
      let container = document.body
      if (
        (setting.tabType === 'main' && btnconfig.setting.container === 'tab' && this.props.ContainerId) ||
        (btnconfig.setting.container === 'tab' && btn.ContainerId)
      ) {
      if (btnconfig.setting.container === 'tab' && btn.ContainerId) {
        width = btnconfig.setting.width > 100 ? btnconfig.setting.width : btnconfig.setting.width + '%'
        container = () => document.getElementById(this.props.ContainerId || btn.ContainerId)
        container = () => document.getElementById(btn.ContainerId)
      }
      return (
        <Modal