add:okLayx demo

master
bobi 2019-11-24 14:23:48 +08:00
parent 78e7b0093c
commit f4f5962c37
3 changed files with 51 additions and 0 deletions

1
pages/tripartite/layx.min.css vendored Normal file

File diff suppressed because one or more lines are too long

5
pages/tripartite/layx.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>okLayx</title>
<link href="layx.min.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<button id="notice">Info</button>
<button id="notice2">Success</button>
<button id="notice3">Warning</button>
<button id="notice4">Error</button>
<script src="layx.min.js"></script>
<script>
document.getElementById("notice").onclick = function () {
layx.notice({
title: '消息提示',
message: '我是消息提示消息提示消息提示消息提示'
});
}
document.getElementById("notice2").onclick = function () {
layx.notice({
title: '成功提示',
type: 'success',
message: '我是消息提示消息提示消息提示消息提示'
});
}
document.getElementById("notice3").onclick = function () {
layx.notice({
title: '警告提示',
type: 'warning',
message: '我是消息提示消息提示消息提示消息提示'
});
}
document.getElementById("notice4").onclick = function () {
layx.notice({
title: '错误提示',
type: 'error',
message: '我是消息提示消息提示消息提示消息提示'
});
}
</script>
</body>
</html>