GithubHelp home page GithubHelp logo

dialog's People

Contributors

microwork avatar

Stargazers

 avatar  avatar

Forkers

ucaime

dialog's Issues

show 方法应和 iframe 方法分开

当用户想 show 的时候,可能是一段 HTML、一句话,或者一个 URL 下的代码片段,特别是第三种情况下,无法判断是否应该使用 iframe。
当有使用 iframe 的需求时,会需要显式的使用 iframe 方式调用。

是否显示标题的参数或配置

如 dialog.tips(),显示标题无意义(“头重脚轻” by 飞哥)。

但带来的问题是,如果正常的 dialog.ok / dialog.confirm 没有表示会无法关闭对话框(取消操作无交互),是取舍还是额外设计交互按钮(将关闭按钮移出标题栏)?

增加 popup 功能

用途为在触发区域周围显示一个不可拖拽、不监听 resize 事件、可关闭的提示 / 展示层。

主要配置为:{
follow: element,
position: left / right / top / bottom, // 出现的位置
left / right / top / bottom: number / +number / -number, // 相对于 follow 的偏移量
}

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.