53 lines
2.4 KiB
HTML
53 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>07 竖条强调 · 我的物料领用记录 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">07 竖条强调</span> 我的物料领用记录 · Tab 样式 Demo</h1>
|
|
<p>激活 Tab 左侧主色竖条 + 浅绿渐变底 · 与标题竖条视觉统一</p>
|
|
</div>
|
|
<div class="demo-banner__actions">
|
|
<a href="index.html">← 选型索引</a>
|
|
<a href="04-left-underline.html">04 下划线</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-07" role="tablist">
|
|
<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>
|
|
</nav>
|
|
</div>
|
|
<div class="tab-panel is-active" data-panel="usage" id="content"></div>
|
|
</section>
|
|
<p class="style-note">
|
|
<strong>推荐:</strong>与 Fresh Mint「标题前竖条」同一视觉语言,品牌感连贯;左对齐 + 浅绿底让激活态更醒目。
|
|
<div class="pros-cons">
|
|
<div class="pro">✓ 与全站标题竖条统一、左对齐辨识度高、适合作为 panel-tabs 升级方向</div>
|
|
<div class="con">✗ 需新增 CSS class,与现有 panel-pill-tabs 结构不同</div>
|
|
</div>
|
|
</p>
|
|
</div>
|
|
|
|
<script src="_demo-shell.js"></script>
|
|
<script>
|
|
document.getElementById('content').innerHTML = mockContent('usage')
|
|
initPanelTabs('panel-root')
|
|
</script>
|
|
</body>
|
|
</html>
|