impr:完善okSweetAlert2
parent
68fcb95f08
commit
c2f6c5a2c8
|
|
@ -33,9 +33,7 @@ layui.use(["okSweetAlert2"], function () {
|
|||
okSweetAlert2.fire({
|
||||
type: "info",
|
||||
title: "<strong>HTML <u>example</u></strong>",
|
||||
html: "You can use <b>bold text</b>, " +
|
||||
"<a href='http://git.xlbweb.cn/ok-admin' target='_blank'>links</a> " +
|
||||
"and other HTML tags",
|
||||
html: "You can use <b>bold text</b>, <a href='http://git.xlbweb.cn/ok-admin' target='_blank'>links</a> and other HTML tags",
|
||||
showCloseButton: true,
|
||||
showCancelButton: true,
|
||||
focusConfirm: false,
|
||||
|
|
@ -74,11 +72,14 @@ layui.use(["okSweetAlert2"], function () {
|
|||
<!--js逻辑-->
|
||||
<script src="../../lib/layui/layui.js"></script>
|
||||
<script>
|
||||
layui.use(["code", "okSweetAlert2"], function () {
|
||||
layui.use(["util", "code", "okSweetAlert2"], function () {
|
||||
let util = layui.util;
|
||||
let code = layui.code;
|
||||
let okSweetAlert2 = layui.okSweetAlert2;
|
||||
let $ = layui.jquery;
|
||||
|
||||
util.fixbar({});
|
||||
|
||||
code({
|
||||
elem: "pre",
|
||||
title: "代码示例"
|
||||
|
|
@ -109,9 +110,7 @@ layui.use(["okSweetAlert2"], function () {
|
|||
okSweetAlert2.fire({
|
||||
type: "info",
|
||||
title: "<strong>HTML <u>example</u></strong>",
|
||||
html: "You can use <b>bold text</b>, " +
|
||||
"<a href='http://git.xlbweb.cn/ok-admin' target='_blank'>links</a> " +
|
||||
"and other HTML tags",
|
||||
html: "You can use <b>bold text</b>, <a href='http://git.xlbweb.cn/ok-admin' target='_blank'>links</a> and other HTML tags",
|
||||
showCloseButton: true,
|
||||
showCancelButton: true,
|
||||
focusConfirm: false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue