Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menu菜单组件几个问题 #196

Closed
madehua opened this issue Feb 23, 2024 · 4 comments · Fixed by #205
Closed

menu菜单组件几个问题 #196

madehua opened this issue Feb 23, 2024 · 4 comments · Fixed by #205
Labels
bug Something isn't working

Comments

@madehua
Copy link

madehua commented Feb 23, 2024

nutui-uniapp 版本号

1.7.0

平台

h5, weapp

重现链接

https://github.com/madehua/nutui-datepicker-demo

重现步骤

1、运行项目首页,点击Menu菜单示例
image
2、代码片段为官方示例
image

期望的结果是什么?

1、h5端有uniapp有标题时跟随菜单下显示。
image

2、app端打开页面后,有一个整屏透明遮罩层,期望默认去遮罩层。
注:在nut-menu-item 设置custom-style="display:none" 可正常使用。

3、close事件可以正常触发,且只触发一次。

实际的结果是什么?

1、h5端有uniapp标题时显示位置不对,点击下拉按钮,覆盖了菜单本身。
image
image

2、app端打开页面后,有一个整屏透明遮罩层,导致无法点击假死状态
700a4b87d3cbd3c6e2c998319e3b43f
注:在nut-menu-item 设置custom-style="display:none" 可正常使用。

3、close事件在微信端不触发,在h5及app端触发两次。
app端表现
image
h5端表现
image
微信端表现
image

环境信息

System:
OS: Windows 11 10.0.22621
CPU: (16) x64 12th Gen Intel(R) Core(TM) i5-12500H
Memory: 1.35 GB / 15.73 GB
Binaries:
Node: 18.15.0 - C:\Program Files\nodejs\node.EXE
npm: 9.5.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (113.0.1774.42)
Internet Explorer: 11.0.22621.1

其他补充信息

昨天反馈了2个问题,感谢处理问题的速度。点赞!

@xiaohe0601 xiaohe0601 added the bug Something isn't working label Feb 23, 2024
@xiaohe0601
Copy link
Member

问题2是app端 v-show 优先级不足导致的,跟 #149 一样的问题,要完全兼容app端,看是不是需要把所有 v-show 都换掉? @yang1206

@yang1206
Copy link
Member

问题2是app端 v-show 优先级不足导致的,跟 #149 一样的问题,要完全兼容app端,看是不是需要把所有 v-show 都换掉? @yang1206

可以,问题 1 似乎是因为 h5获取的节点坐标不包含导航栏高度

@yang1206
Copy link
Member

我会提一个 pr 解决这些问题

@yang1206
Copy link
Member

第三个问题涉及多个组件,后续我会再开一个 pr 单独修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants