【文件属性】:
文件名称:missile-box:扁平,响应Swift,轻巧,快速,易于自定义的模态窗口插件
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-23 06:38:04
JavaScript
导弹箱
扁平,响应Swift,轻巧,快速,易于自定义的模态窗口插件。
安装
npm install missile-box
用法
var Box = require ( 'missile-box' ) ;
// Dialog
var box = new Box ( {
title : 'Dialog Title' ,
animate : 'fadeIn' ,
before : function ( ) {
console . log ( 'before' , this ) ;
} ,
done : function ( ) {
console . log ( 'done' , this ) ;
} ,
ok : function ( e ) {
alert ( 'clicked ok button' ) ;
console . log ( this , e
【文件预览】:
missile-box-master
----.gitignore(587B)
----package.json(574B)
----src()
--------box.normal.js(5KB)
--------box.css(2KB)
--------box.js(5KB)
--------box.less(2KB)
----LICENSE(1KB)
----index.js(53B)
----README.md(1KB)