| | |
| | | UNSAFE_componentWillReceiveProps(nextProps) { |
| | | if (nextProps.triggerBtn && !is(fromJS(this.props.triggerBtn), fromJS(nextProps.triggerBtn)) && nextProps.triggerBtn.parentId === this.props.MenuID) { |
| | | if (!this.state.loadingUuid && !this.state.visible && !this.state.running) { |
| | | this.actionTrigger(nextProps.triggerBtn.button, nextProps.triggerBtn.data) |
| | | let _btn = nextProps.triggerBtn.button |
| | | if (!_btn.OpenType) { |
| | | _btn = this.props.actions.filter(item => item.uuid === _btn.uuid)[0] |
| | | } |
| | | if (_btn) { |
| | | this.actionTrigger(_btn, nextProps.triggerBtn.data) |
| | | } |
| | | } |
| | | } |
| | | } |