fix: trigger forceAlign cannot call

pull/77/merge
tjz 7 years ago
parent 3250302d9e
commit 8254f783a3

@ -465,8 +465,8 @@ export default {
return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1 return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1
}, },
forcePopupAlign () { forcePopupAlign () {
if (this.$data.sPopupVisible && this._component && this._component.alignInstance) { if (this.$data.sPopupVisible && this._component && this._component.$refs.alignInstance) {
this._component.alignInstance.forceAlign() this._component.$refs.alignInstance.forceAlign()
} }
}, },
fireEvents (type, e) { fireEvents (type, e) {

Loading…
Cancel
Save