<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Kole UI · QuickNav</title>
  <link rel="stylesheet" href="../.design_library/kole-ui/colors_and_type.css" />
  <link rel="stylesheet" href="./QuickNav.css" />
</head>
<body>
  <div class="kole-page">
    <h2 class="kole-h2">QuickNav 快捷导航</h2>
    <p class="kole-desc">常用页面快捷入口，图标网格，点击跳转。</p>

    <div class="kole-demo">
      <div class="kole-demo__title">工作台快捷入口</div>
      <div class="kole-quicknav" role="navigation" id="quick"></div>
      <p class="kole-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 = 'kole-quicknav-item'; el.setAttribute('role','menuitem'); el.setAttribute('tabindex','0');
      el.innerHTML = '<div class="kole-quicknav-icon">' + it.icon + '</div><div class="kole-quicknav-label">' + it.label + '</div>';
      el.onclick = function () { out.textContent = '跳转到：' + it.label; };
      root.appendChild(el);
    });
  </script>
</body>
</html>
