| | |
| | | |
| | | getModels = () => { |
| | | const { execAction } = this.state |
| | | |
| | | if (!execAction || !this.state.visible) return |
| | | |
| | | let title = '' |
| | | let width = '62vw' |
| | | let container = document.body |
| | | if (execAction && execAction.setting) { |
| | | title = execAction.setting.title |
| | | width = execAction.setting.width + 'vw' |
| | | |
| | | if (execAction.setting.container === 'tab') { |
| | | width = execAction.setting.width + '%' |
| | | container = () => document.getElementById('commontable' + this.props.MenuID) |
| | | } |
| | | } |
| | | |
| | | return ( |
| | | <Modal |
| | | getContainer={container} |
| | | wrapClassName='action-modal' |
| | | title={title} |
| | | visible={this.state.visible} |