micate / dialog Goto Github PK
View Code? Open in Web Editor NEWa douban.com like jQuery dialog for common usage
Home Page: http://micate.me/projects/dialog
a douban.com like jQuery dialog for common usage
Home Page: http://micate.me/projects/dialog
使用 createTips() 创建的载入提示 div,在 load 完成后没有去除 tips 样式。
在原生 form 中,如果在 form 中的输入框中回车,默认会触发表单提交事件(form 中需要有 type="button" / type="submit" 域)。
现在想在 dialog 中实现这个需求。
当用户想 show 的时候,可能是一段 HTML、一句话,或者一个 URL 下的代码片段,特别是第三种情况下,无法判断是否应该使用 iframe。
当有使用 iframe 的需求时,会需要显式的使用 iframe 方式调用。
如 dialog.tips(),显示标题无意义(“头重脚轻” by 飞哥)。
但带来的问题是,如果正常的 dialog.ok / dialog.confirm 没有表示会无法关闭对话框(取消操作无交互),是取舍还是额外设计交互按钮(将关闭按钮移出标题栏)?
用途为在触发区域周围显示一个不可拖拽、不监听 resize 事件、可关闭的提示 / 展示层。
主要配置为:{
follow: element,
position: left / right / top / bottom, // 出现的位置
left / right / top / bottom: number / +number / -number, // 相对于 follow 的偏移量
}
初步思路和标题是否显示的思路类似,buttons === false 时隐藏按钮区域。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.