add:okSweetalert2

master
bobi 2019-11-02 13:15:44 +08:00
parent 4ee74cf96e
commit f4ae28b5a9
4 changed files with 1164 additions and 2 deletions

View File

@ -426,8 +426,8 @@
"href": "pages/tripartite/okNprogress.html"
},
{
"title": "SweetAlert2.js",
"href": "pages/tripartite/countup.html"
"title": "okSweetalert2.js",
"href": "pages/tripartite/okSweetalert2.html"
},
{
"title": "Animate.css",

File diff suppressed because one or more lines are too long

View File

@ -41,6 +41,7 @@ if (!Object.assign) {
"okToastr": "okmodules/okToastr",
"okBarcode": "okmodules/okBarcode",
"okNprogress": "okmodules/okNprogress",
"okSweetalert2": "okmodules/okSweetalert2",
};
var modulePath = Object.assign({
layer: "modules/layer",

View File

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>okNprogress</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../../css/oksub.css">
</head>
<body>
<div class="ok-body">
</div>
<!--js逻辑-->
<script src="../../lib/layui/layui.js"></script>
<script>
layui.use(["okSweetalert2"], function () {
let okSweetalert2 = layui.okSweetalert2;
okSweetalert2("请输入内容!", "操作成功", "success");
// okSweetalert2("请输入内容!", "出错了!", "error");
});
</script>
</body>
</html>