Code Monkey home page Code Monkey logo

hdialog's People

Contributors

hehaibao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hdialog's Issues

如果没有设置带标题的,那么就没有关闭按钮

用了v2.0.1是正常的
用了这一个版本,发现当页面如果没有一个是有标题的,那么就不会有关闭的按钮,您的demo是因为一开始有一个自动弹窗所以给他加了关闭按钮

我测试过如果只用"不显示遮罩",在使用这个方法之前没有其他的,那么就不会有关闭按钮

使用 beforeShow或者 afterHide时添加事件

在系统调用这两个函数中,无法使用 单击事件的 e.target获取源。好像您的data参数传递过来的是null。希望这块可以稍微做些改进。
我这边按照需要修改了如下代码,在元素的单击事件中传递了 e
T.on('click', function (e) { methods.open(_O, T, e); }

open: function (o, T, e) {
...
this.fire.call(this, o.beforeShow, e); // 原 this.fire.call(this, o.beforeShow);
...
}

close事件修改同上。希望能给您带来一些启发。
谢谢您的插件!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.