docs: close documentation facts, structure and related-component mapping

HD-04 scope, against heroui ce90ea3 cn sources:

- stale/fictional content: input.md no longer claims TextField is
  unmigrated; color-field.md no longer claims ColorPicker is private;
  header.md drops the fictional Header.Root subcomponent and the stale
  'menus not migrated' wording (MenuSection label registration is now
  documented from HeaderRoot source); radio-group.md drops three copied
  CheckboxGroup wordings (variant override is Radio's, scalar emits,
  native single-value submit); input-otp.md drops the fictional
  data-complete state and lists the real missing upstream props
- toggle-button disabled row now matches the real CSS hooks
  (:disabled / [aria-disabled], with data-disabled as a marker only)
- part API / CSS classes / interactive states restored per pinned
  sources: button (full class lists + real variable-based global CSS),
  accordion (per-part tables + variant/state lists), card (per-part
  tables + variant list), switch (SwitchGroup snippet + Switch/
  SwitchGroup class lists + states), color-field Group (class list +
  states), input-otp (variant notes, global CSS, class/state lists);
  input-group gains the two upstream usage chapters
- RelatedComponents restored from the pinned componentRelationships
  (first-3, filtered against componentsMap): 64 pages rewritten,
  list-box/slider sections added, 7 empty-mapping pages' fabricated
  entries removed; RelatedShowcases left unmigrated with its real data
  inventory recorded (2 cases, showcase-site cards)
- defaults unified on implementation evidence: granularity (inferred
  day/minute) and visibleYears (full min-max span, no "or 20" fallback);
  HD-03 hand-offs resolved (trigger focus-visible noted for HD-06,
  width guards kept)
- new demos: header-collection-grouping (MenuSection/ListBoxSection
  label wiring), empty-state-collection (collection empty slot);
  empty-state page deduplicated with a boundary compatibility note
- ComponentPreview minHeight/isBgSolid restored per the 30 upstream
  marks; tabs-overflow max-w-full kept after measuring internal scroll
- tests: +3 header registration/demo cases, +1 empty-state collection
  case; full suite 110 files / 1630 tests, typecheck and build:docs
  pass
This commit is contained in:
maoyingjie
2026-10-28 22:32:10 +08:00
parent 2c6d871354
commit 145a208687
76 changed files with 912 additions and 352 deletions
+17 -9
View File
@@ -13,7 +13,8 @@ group: 组件
import { Tabs } from "@heroui-vue/components";
```
<ComponentPreview name="tabs-basic" />
<ComponentPreview
isBgSolid name="tabs-basic" />
## 组件结构
@@ -54,37 +55,44 @@ import {
### 垂直布局
<ComponentPreview name="tabs-vertical" />
<ComponentPreview
isBgSolid name="tabs-vertical" />
### 溢出
当标签列表超出可用空间时,`TabsListContainer` 会自动渲染滚动箭头与渐隐边缘,使用户可以导航到被隐藏的标签。水平与垂直方向均支持此行为。
<ComponentPreview name="tabs-overflow" />
<ComponentPreview
isBgSolid name="tabs-overflow" />
### 禁用 Tab
<ComponentPreview name="tabs-disabled" />
<ComponentPreview
isBgSolid name="tabs-disabled" />
### 带分隔线
在每个 `<TabsTab>` 内(第一项除外)添加 `<TabsSeparator />`,用于在标签之间显示分隔线。
<ComponentPreview name="tabs-with-separator" />
<ComponentPreview
isBgSolid name="tabs-with-separator" />
### 次要类型
<ComponentPreview name="tabs-secondary" />
<ComponentPreview
isBgSolid name="tabs-secondary" />
### 次要类型(垂直)
<ComponentPreview name="tabs-secondary-vertical" />
<ComponentPreview
isBgSolid name="tabs-secondary-vertical" />
### 对齐方式
标签内容默认居中。使用 `align` 可将其对齐到 `start` 或 `end`,这在垂直的侧边栏式导航中尤其有用。单个标签仍可通过 `TabsTab` 上的 `class` 覆盖。
<ComponentPreview name="tabs-vertical-alignment" />
<ComponentPreview
isBgSolid name="tabs-vertical-alignment" />
### 渲染函数
@@ -237,4 +245,4 @@ RAC 的集合 render-prop API 不作逐字复制,列表用 v-for,DOM render
## 相关组件
[ScrollShadow 滚动阴影](./scroll-shadow) · [Tabs 标签页](./tabs)
[Breadcrumbs 面包屑](./breadcrumbs)