47 lines
2.3 KiB
HTML
47 lines
2.3 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>P01 · 空状态 + 引导</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
|
|
<link rel="stylesheet" href="ui-richness-shared.css" />
|
|
</head>
|
|
<body>
|
|
<div class="demo-banner">
|
|
<div><span class="level-tag level-PAT">模式 P01</span> <strong>空状态 + 引导</strong> — 无数据时不显示空白表格</div>
|
|
<a href="ui-richness-index.html">← 返回对比入口</a>
|
|
</div>
|
|
<div class="page-wrap">
|
|
<header class="page-head">
|
|
<h1>质检工单</h1>
|
|
<p class="page-desc">列表为空时展示引导空态,而非 0 行的 el-table。</p>
|
|
</header>
|
|
<div class="compare-row">
|
|
<div class="compare-col plain">
|
|
<h3>❌ 素:空白表格</h3>
|
|
<section class="panel">
|
|
<div class="panel-top"><h2>工单列表</h2></div>
|
|
<table class="data-table"><thead><tr><th>工单号</th><th>状态</th></tr></thead><tbody><tr><td colspan="2" style="padding:32px;color:var(--text-muted)">暂无数据</td></tr></tbody></table>
|
|
</section>
|
|
</div>
|
|
<div class="compare-col rich">
|
|
<h3>✓ 丰:引导空态</h3>
|
|
<section class="panel">
|
|
<div class="panel-top"><h2 class="title-bar-heading">工单列表</h2></div>
|
|
<div class="empty-state">
|
|
<div class="empty-ic">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M9 11l3 3L22 4"/><path d="M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"/></svg>
|
|
</div>
|
|
<h3>暂无质检工单</h3>
|
|
<p>样本接收完成后可在此创建质检工单。您也可以从样本列表批量发起。</p>
|
|
<button class="btn btn-main" type="button"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"/></svg>新建工单</button>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<p class="dim-note"><strong>适用:</strong>任意 CRUD 列表首次进入、筛选无结果。Vue 侧用 <code>el-empty</code> + 自定义插槽,或 v-if 切换整块空态。</p>
|
|
</div>
|
|
</body>
|
|
</html>
|