mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] DropdowmMenu: optimize rect calc (#3488)
This commit is contained in:
parent
153fb9d69f
commit
156ac95382
@ -44,7 +44,7 @@ export default sfc({
|
||||
toggleItem(active) {
|
||||
const { menu } = this.$refs;
|
||||
const rect = menu.getBoundingClientRect();
|
||||
this.top = rect.top + rect.height;
|
||||
this.top = rect.bottom;
|
||||
|
||||
this.children.forEach((item, index) => {
|
||||
if (index === active) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user