Files
zkxw/docs/my-material-usage-tab-demos/01-current-baseline.html
T
2026-06-15 18:19:57 +08:00

55 lines
2.4 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>01 现状基线 · 我的物料领用记录 Tab Demo</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="_shared.css" />
<style>
.btn { height: 36px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 500; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: default; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
</style>
</head>
<body>
<header class="demo-banner">
<div>
<h1><span class="demo-badge">01 现状基线</span> 我的物料领用记录 · Tab 样式 Demo</h1>
<p>居中胶囊 Tab,与当前 <code>panel-pill-tabs</code> 线上一致 · 点击下方 Tab 可切换</p>
</div>
<div class="demo-banner__actions">
<a href="index.html">← 选型索引</a>
<a href="02-full-width-track.html">02 全宽滑轨 →</a>
</div>
</header>
<div class="page-wrap">
<section class="panel" id="panel-root">
<div class="panel-top"><h2>我的物料领用记录</h2></div>
<div class="panel-tab-zone">
<nav class="tabs-01" role="tablist">
<div class="tabs-01__track">
<button type="button" class="tab-btn is-active" data-tab="usage" role="tab">领用记录</button>
<button type="button" class="tab-btn" data-tab="consumption" role="tab">消耗明细</button>
</div>
</nav>
</div>
<div class="tab-panel is-active" data-panel="usage" id="content"></div>
</section>
<p class="style-note">
<strong>问题:</strong>居中放置、字号偏小、灰底与白底对比弱,首次进入容易被忽略。
<div class="pros-cons">
<div class="pro">✓ 与全站 panel-pill-tabs 风格统一</div>
<div class="con">✗ 双 Tab 场景下辨识度不足,用户不易发现可点击</div>
</div>
</p>
</div>
<script src="_demo-shell.js"></script>
<script>
document.getElementById('content').innerHTML = mockContent('usage')
initPanelTabs('panel-root')
</script>
</body>
</html>