1.0.2 • Published 7 years ago

mobile-modal v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

mobileModal

移动端弹框

alert

//alert
mobileModal.alert(
    '提示内容',//必填

    //回调函数(可选)
    function () {
        self.nowVal = '确定按钮';
    }
);

confirm

//confirm
mobileModal.confirm(
    '标题',//必填

    '提示内容',//必填

    //确定按钮回调函数(可选)
    function () {
        self.nowVal = '确定按钮';
    },

    //取消按钮回调函数(可选)
    function () {
        self.nowVal = '取消按钮';
    }
);

toast

//toast
var content = '提示内容';//可选
mobileModal.toast(content);

pageLoader

//页面加载pageLoader

// 显示动画
var content = '提示内容';//可选
mobileModal.showPageLoader(content);

// 关闭动画
mobileModal.hidePageLoader();

preLoader

//预加载preLoader

// 显示动画
var content = '提示内容';//可选
mobileModal.showPreLoader(content);

// 关闭动画
mobileModal.hidePreLoader();
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago