vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
https://antdv.com/
Other
20.32k stars 3.8k forks source link

[modal] I hope that when the mask is set to false, I can interact with the content behind the modal #5442

Closed candy-Tong closed 2 years ago

candy-Tong commented 2 years ago

What problem does this feature solve?

不想要 mask ,一般是希望对弹窗后的内容进行交互,希望组件能在内部处理这个问题

类似 issue:https://github.com/vueComponent/ant-design-vue/issues/1667

What does the proposed API look like?

无新增 API 这里提一个比较简单的方案: 可以通过给 ant-modal-wrap class 的元素(那个占满屏的元素)加 pointer-events: none; 让点击事件穿透到背后的内容,从而实现背后的交互。 如果有 mask,则点击事件会被 mask 挡住,不会传到 modal 背后的内容

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.