Dropdown: fix placement

pull/2069/head
qingwei.li 2016-12-29 16:37:46 +08:00
parent cf028a42f4
commit 03a01b8dfd
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}`;
}
}
}
};