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

h5点击popup遮罩层没退出 #18

Closed
DING9520 opened this issue Nov 17, 2021 · 7 comments
Closed

h5点击popup遮罩层没退出 #18

DING9520 opened this issue Nov 17, 2021 · 7 comments

Comments

@DING9520
Copy link

No description provided.

@DING9520 DING9520 changed the title 点击popup遮罩层没退出 h5点击popup遮罩层没退出 Nov 17, 2021
@1stgg
Copy link

1stgg commented Nov 17, 2021

就是这样设计的,要加@close="show=false"关闭

@DING9520
Copy link
Author

DING9520 commented Nov 17, 2021 via email

@1stgg
Copy link

1stgg commented Nov 17, 2021

这样设计应该是为了自定义是否关闭
但这样反直觉,用起来也很麻烦
我觉得应该改为:show.sync="show"这种模式
1.需要自定义

<u-popup
  :show="show"
  @update:show="customLogic"
/>

2.不需要

<u-popup
  :show.sync="show"
/>

@DING9520
Copy link
Author

DING9520 commented Nov 17, 2021 via email

@lqdahv
Copy link

lqdahv commented Nov 18, 2021

怎么解决弹出没动画 退出有动画

@BeiQiaoT
Copy link
Member

已处理

@anyongjin
Copy link

这个组件我测试支持v-model属性啊,文档里没说明,点击遮罩层可以自动更新值为false

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

No branches or pull requests

5 participants