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

弹层新增被销毁前的回调函数 #1798

Open
4 tasks done
aveyuan opened this issue Apr 17, 2024 · 0 comments
Open
4 tasks done

弹层新增被销毁前的回调函数 #1798

aveyuan opened this issue Apr 17, 2024 · 0 comments
Labels
feature 功能请求 Feature Request

Comments

@aveyuan
Copy link

aveyuan commented Apr 17, 2024

议题条件

  • 我确认已查看官方使用文档:https://layui.dev ,但没有找到相关解决方案。
  • 我确认已在 Issues 中搜索过类似的问题,但没有找到相关解决方案。
  • 我已仔细阅读: 🍀 Layui Issue 贡献指南

议题类型

功能请求

使用版本

v2.9.8

问题描述

现状:
当前,我们打开弹层(iframe)后可能点击空白的地方,导致弹层被销毁,end回调并不能捕获被销毁的弹层的状态,其他回调方法都需要在弹层中操作实现。
为什么需要这个功能:
在打开的弹层中,可能改变了某项数据。点击空白处后就销毁了弹层。此时我们想在销毁前增加捕获函数判断用户是否在弹层中进行了数据操作。这样无论用户是否正常关闭还是点击空白处销毁,都能捕获到弹层操作的数据状态。从而进行刷新操作(增加体验)

业务代码

截图补充

No response

浏览器

edge

演示地址

No response

友好承诺

  • 我承诺将本着相互尊重、理解和友善的态度进行交流,共同维护 Layui 良好的社区氛围。
@Sight-wcg Sight-wcg added the feature 功能请求 Feature Request label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 功能请求 Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants