diff --git a/components/align/Align.jsx b/components/align/Align.jsx index 7a053285f..8c435c50c 100644 --- a/components/align/Align.jsx +++ b/components/align/Align.jsx @@ -27,7 +27,6 @@ export default { monitorBufferTime: PropTypes.number.def(50), monitorWindowResize: PropTypes.bool.def(false), disabled: PropTypes.bool.def(false), - visible: PropTypes.bool.def(false), }, data () { this.aligned = false @@ -50,7 +49,7 @@ export default { const prevProps = this.prevProps const props = this.$props let reAlign = false - if (!props.disabled && props.visible) { + if (!props.disabled) { const source = this.$el const sourceRect = source ? source.getBoundingClientRect() : null diff --git a/components/trigger/Popup.jsx b/components/trigger/Popup.jsx index 394fcfbec..f23608da3 100644 --- a/components/trigger/Popup.jsx +++ b/components/trigger/Popup.jsx @@ -256,9 +256,9 @@ export default { key='popup' ref='alignInstance' monitorWindowResize + disabled={!visible} align={align} onAlign={this.onAlign} - visible={visible} >