index.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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>质检物料库 · 面板 Tab 样式选型</title>
  7. <link
  8. href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
  9. rel="stylesheet"
  10. />
  11. <link rel="stylesheet" href="_shared.css" />
  12. <style>
  13. .index-hero {
  14. max-width: 960px;
  15. margin: 0 auto;
  16. padding: 32px 24px 16px;
  17. }
  18. .index-hero h1 {
  19. margin: 0 0 8px;
  20. font-size: 22px;
  21. }
  22. .index-hero p {
  23. margin: 0;
  24. color: var(--text-muted);
  25. max-width: 640px;
  26. }
  27. .index-grid {
  28. max-width: 960px;
  29. margin: 0 auto;
  30. padding: 16px 24px 48px;
  31. display: grid;
  32. grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  33. gap: 16px;
  34. }
  35. .index-card {
  36. background: var(--surface);
  37. border: 1px solid var(--border);
  38. border-radius: 12px;
  39. padding: 18px;
  40. text-decoration: none;
  41. color: inherit;
  42. transition: border-color 0.2s, box-shadow 0.2s;
  43. }
  44. .index-card:hover {
  45. border-color: #a7f3d0;
  46. box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
  47. }
  48. .index-card h2 {
  49. margin: 0 0 6px;
  50. font-size: 15px;
  51. font-weight: 600;
  52. color: var(--primary-dark);
  53. }
  54. .index-card p {
  55. margin: 0;
  56. font-size: 13px;
  57. color: var(--text-muted);
  58. line-height: 1.5;
  59. }
  60. .index-card .tag {
  61. display: inline-block;
  62. margin-top: 12px;
  63. padding: 2px 8px;
  64. border-radius: 6px;
  65. font-size: 11px;
  66. font-weight: 600;
  67. background: #f1f5f9;
  68. color: var(--text-muted);
  69. }
  70. .index-card .tag--rec {
  71. background: var(--primary-bg);
  72. color: var(--primary-dark);
  73. }
  74. .preview-strip {
  75. margin-top: 14px;
  76. padding: 10px;
  77. background: #f8fafc;
  78. border-radius: 8px;
  79. border: 1px solid var(--border);
  80. font-size: 12px;
  81. color: var(--text-muted);
  82. }
  83. </style>
  84. </head>
  85. <body>
  86. <div class="index-hero">
  87. <h1>质检物料库 · 三 Tab 样式 Demo</h1>
  88. <p>
  89. 针对【物料列表】【变动记录】【库存盘点】三个 Tab,提供 7 套可选样式。色值与间距对齐
  90. Fresh Mint(<code>#10b981</code>)。选定样式后可落地到
  91. <code>qc-material/index.vue</code> 的 <code>panel-tabs</code>。
  92. </p>
  93. </div>
  94. <div class="index-grid">
  95. <a class="index-card" href="01-underline-default.html">
  96. <h2>01 · 下划线默认</h2>
  97. <p>与当前 Element Plus 默认 Tab 接近,底边绿线指示激活项。改动最小。</p>
  98. <span class="tag">现状基线</span>
  99. <div class="preview-strip">物料列表 变动记录 库存盘点 ———</div>
  100. </a>
  101. <a class="index-card" href="02-pill-segmented.html">
  102. <h2>02 · 胶囊分段</h2>
  103. <p>灰底轨道 + 白底激活块,类似 Segmented Control,层次清晰、适合 3~5 个 Tab。</p>
  104. <span class="tag tag--rec">推荐</span>
  105. <div class="preview-strip">[ 物料列表 | 变动记录 | 库存盘点 ]</div>
  106. </a>
  107. <a class="index-card" href="03-card-tabs.html">
  108. <h2>03 · 卡片 Tab</h2>
  109. <p>每个 Tab 像小卡片,激活项与内容区顶边融合,适合强调「分区」感。</p>
  110. <span class="tag">分区感强</span>
  111. <div class="preview-strip">┌物料列表┐ 变动记录 库存盘点</div>
  112. </a>
  113. <a class="index-card" href="04-icon-blocks.html">
  114. <h2>04 · 图标信息块</h2>
  115. <p>图标 + 文案横向块,信息量大,适合 Tab 需要快速识别的业务模块。</p>
  116. <span class="tag">信息丰富</span>
  117. <div class="preview-strip">[📦 物料] [📋 变动] [✓ 盘点]</div>
  118. </a>
  119. <a class="index-card" href="05-bar-accent.html">
  120. <h2>05 · 竖条 + 浅绿底</h2>
  121. <p>激活 Tab 左侧主色竖条 + 浅绿渐变底,与列表标题竖条视觉统一。</p>
  122. <span class="tag tag--rec">推荐</span>
  123. <div class="preview-strip">|物料列表 变动记录 库存盘点</div>
  124. </a>
  125. <a class="index-card" href="06-full-track.html">
  126. <h2>06 · 全宽滑轨</h2>
  127. <p>三等分全宽轨道,白色滑块平滑移动,现代感强,移动端也友好。</p>
  128. <span class="tag">现代感</span>
  129. <div class="preview-strip">████░░░░░░░░ (滑块随 Tab 移动)</div>
  130. </a>
  131. <a class="index-card" href="07-minimal-dot.html">
  132. <h2>07 · 极简圆点</h2>
  133. <p>纯文字 Tab,激活项下方绿点指示,最轻量,适合内容区需要更多纵向空间。</p>
  134. <span class="tag">极简</span>
  135. <div class="preview-strip">物料列表· 变动记录 库存盘点·</div>
  136. </a>
  137. </div>
  138. </body>
  139. </html>