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

fix(web): 修复 uni.showActionSheet 的参数 popover.width 设置无效的问题 (question/189745) #4849

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

wangjinxin613
Copy link
Contributor

popover 参数仅在 web pc 端有效,此前 popover.width 设置参数无效,并且 popover.left 参数 设置与实际值有偏差(差150px),三角形位置也可能不对,本次提交修复了这三个问题。
主要修改了 usePopupStyle 方法,此方法除了 uni.showActionSheet 用到还有 picker 组件用到,所以 在此方法加了第二个参数判断是否是动态宽度,picker组件依然固定宽度300px,不影响 picker 组件功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant