add:okSweetalert2
parent
4ee74cf96e
commit
f4ae28b5a9
|
|
@ -426,8 +426,8 @@
|
||||||
"href": "pages/tripartite/okNprogress.html"
|
"href": "pages/tripartite/okNprogress.html"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "SweetAlert2.js",
|
"title": "okSweetalert2.js",
|
||||||
"href": "pages/tripartite/countup.html"
|
"href": "pages/tripartite/okSweetalert2.html"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Animate.css",
|
"title": "Animate.css",
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -41,6 +41,7 @@ if (!Object.assign) {
|
||||||
"okToastr": "okmodules/okToastr",
|
"okToastr": "okmodules/okToastr",
|
||||||
"okBarcode": "okmodules/okBarcode",
|
"okBarcode": "okmodules/okBarcode",
|
||||||
"okNprogress": "okmodules/okNprogress",
|
"okNprogress": "okmodules/okNprogress",
|
||||||
|
"okSweetalert2": "okmodules/okSweetalert2",
|
||||||
};
|
};
|
||||||
var modulePath = Object.assign({
|
var modulePath = Object.assign({
|
||||||
layer: "modules/layer",
|
layer: "modules/layer",
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
Loading…
Reference in New Issue