Files
aurora-admin/frameworks/LoadingOverlay.html
T

36 lines
1.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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 · LoadingOverlay(普通 H5)</title>
<link rel="stylesheet" href="../.design_library/aurora-admin/colors_and_type.css" />
<link rel="stylesheet" href="LoadingOverlay.css" />
<style>
body { margin: 0; padding: 24px; background: #F5F7FA; font-family: var(--font-family, sans-serif); }
.aa-box { position: relative; height: 200px; background: #fff; border: 1px solid #E8ECF1; border-radius: 8px; padding: 16px; margin-top: 16px; }
</style>
</head>
<body>
<button onclick="toggleFull()">切换全屏遮罩</button>
<div class="aa-box">
局部内容区域
<button style="margin-top:8px" onclick="toggleInline()">切换局部遮罩</button>
<div class="aa-loading-overlay is-inline" id="inline" style="display:none">
<div class="aa-loading-spinner"></div>
<div class="aa-loading-text">加载中…</div>
</div>
</div>
<div class="aa-loading-overlay" id="full" style="display:none">
<div class="aa-loading-spinner"></div>
<div class="aa-loading-text">正在提交,请稍候</div>
</div>
<script>
function toggleFull() { var e = document.getElementById('full'); e.style.display = e.style.display === 'none' ? 'flex' : 'none'; }
function toggleInline() { var e = document.getElementById('inline'); e.style.display = e.style.display === 'none' ? 'flex' : 'none'; }
</script>
</body>
</html>