Merge pull request #2069 from QingWei-Li/fix/dropdown

Dropdown: fix placement
pull/2081/head
baiyaaaaa 2016-12-29 21:38:02 +08:00 committed by GitHub
commit ee91c12e7a
1 changed files with 5 additions and 2 deletions

View File

@ -27,8 +27,11 @@
},
watch: {
'$parent.menuAlign'(val) {
this.currentPlacement = `bottom-${val}`;
'$parent.menuAlign': {
immediate: true,
handler(val) {
this.currentPlacement = `bottom-${val}`;
}
}
}
};