45 lines
1.6 KiB
HTML
45 lines
1.6 KiB
HTML
<!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 · QuickNav</title>
|
|
<link rel="stylesheet" href="../.design_library/aurora-admin/colors_and_type.css" />
|
|
<link rel="stylesheet" href="./QuickNav.css" />
|
|
</head>
|
|
<body>
|
|
<div class="aa-page">
|
|
<h2 class="aa-h2">QuickNav 快捷导航</h2>
|
|
<p class="aa-desc">常用页面快捷入口,图标网格,点击跳转。</p>
|
|
|
|
<div class="aa-demo">
|
|
<div class="aa-demo__title">工作台快捷入口</div>
|
|
<div class="aa-quicknav" id="quick"></div>
|
|
<p class="aa-code-tip" id="out">点击任意入口试试</p>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
var items = [
|
|
{ icon: '📊', label: '数据看板' },
|
|
{ icon: '👥', label: '用户管理' },
|
|
{ icon: '📦', label: '订单管理' },
|
|
{ icon: '⚙️', label: '系统设置' },
|
|
{ icon: '📝', label: '审批中心' },
|
|
{ icon: '🔔', label: '消息通知' },
|
|
{ icon: '📁', label: '文件中心' },
|
|
{ icon: '🛡️', label: '权限管理' }
|
|
];
|
|
var root = document.getElementById('quick');
|
|
var out = document.getElementById('out');
|
|
items.forEach(function (it) {
|
|
var el = document.createElement('div');
|
|
el.className = 'aa-quicknav-item';
|
|
el.innerHTML = '<div class="aa-quicknav-icon">' + it.icon + '</div><div class="aa-quicknav-label">' + it.label + '</div>';
|
|
el.onclick = function () { out.textContent = '跳转到:' + it.label; };
|
|
root.appendChild(el);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|