Aurora Admin v1.2.0: 79 components x 5 ends, doc site, contracts batch 1, playground, regression, deploy ready
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Aurora Admin · ConfirmModal(普通 H5)</title>
|
||||
<link rel="stylesheet" href="../.design_library/aurora-admin/colors_and_type.css" />
|
||||
<link rel="stylesheet" href="ConfirmModal.css" />
|
||||
<style>body{margin:0;padding:24px;background:#F5F7FA;}</style>
|
||||
</head>
|
||||
<body>
|
||||
<button id="open">删除确认</button>
|
||||
|
||||
<div class="aa-modal-mask" id="mask" style="display:none">
|
||||
<div class="aa-confirm is-danger">
|
||||
<div class="aa-confirm-head">
|
||||
<span class="aa-confirm-icon">!</span>
|
||||
<div class="aa-confirm-title">删除该成员?</div>
|
||||
</div>
|
||||
<div class="aa-confirm-content">删除后该成员将无法访问系统,且不可恢复。</div>
|
||||
<label class="aa-confirm-extra"><input type="checkbox" id="dont" /> 不再提示</label>
|
||||
<div class="aa-confirm-footer">
|
||||
<button class="aa-confirm-btn" id="cancel">取消</button>
|
||||
<button class="aa-confirm-btn danger" id="ok">删除</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var mask = document.getElementById('mask');
|
||||
document.getElementById('open').onclick = function () { mask.style.display = 'flex'; };
|
||||
document.getElementById('cancel').onclick = function () { mask.style.display = 'none'; };
|
||||
document.getElementById('ok').onclick = function () {
|
||||
alert('已删除' + (document.getElementById('dont').checked ? '(不再提示)' : ''));
|
||||
mask.style.display = 'none';
|
||||
};
|
||||
mask.addEventListener('click', function (e) { if (e.target === mask) mask.style.display = 'none'; });
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user