04-icon-blocks.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>04 图标信息块 · Tab Demo</title>
  7. <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
  8. <link rel="stylesheet" href="_shared.css" />
  9. </head>
  10. <body>
  11. <header class="demo-banner">
  12. <div>
  13. <h1><span class="demo-badge">04 图标信息块</span> 质检物料库 · Tab 样式 Demo</h1>
  14. <p>图标 + 文案块,模块识别度更高</p>
  15. </div>
  16. <div class="demo-banner__actions">
  17. <a href="index.html">← 选型索引</a>
  18. </div>
  19. </header>
  20. <div class="page-wrap">
  21. <section class="panel" id="panel-root">
  22. <div class="panel-top"><h2>质检物料库</h2></div>
  23. <div class="panel-tab-zone">
  24. <nav class="tabs-04" role="tablist">
  25. <button type="button" class="tab-btn is-active" data-tab="list" role="tab">
  26. <span class="tab-icon" aria-hidden="true">
  27. <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/></svg>
  28. </span>
  29. <span>物料列表</span>
  30. </button>
  31. <button type="button" class="tab-btn" data-tab="usage" role="tab">
  32. <span class="tab-icon" aria-hidden="true">
  33. <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/><path d="M16 13H8"/><path d="M16 17H8"/><path d="M10 9H8"/></svg>
  34. </span>
  35. <span>变动记录</span>
  36. </button>
  37. <button type="button" class="tab-btn" data-tab="stockCheck" role="tab">
  38. <span class="tab-icon" aria-hidden="true">
  39. <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 11l3 3L22 4"/><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"/></svg>
  40. </span>
  41. <span>库存盘点</span>
  42. </button>
  43. </nav>
  44. </div>
  45. <div class="tab-panel is-active" data-panel="list" id="content"></div>
  46. </section>
  47. <p class="style-note"><strong>落地提示:</strong>图标可用 Element Plus Icons,与侧栏/按钮图标体系一致;占用略多横向空间。</p>
  48. </div>
  49. <script src="_demo-shell.js"></script>
  50. <script>
  51. document.getElementById('content').innerHTML = mockContent('list')
  52. initPanelTabs('panel-root')
  53. </script>
  54. </body>
  55. </html>