fix(docs): restore button, toggle and nav demos to the pinned cn baseline

- button-group: restore all 9 cn demos incl. merge dropdown menu copy,
  custom-styles merge dropdown, sizes variant=secondary, orientation icon
  groups, full-width second group and the disabled child override
- toggle-button / toggle-button-group: restore cn copy, structure, button
  counts, theme custom-styles classes and aria-labels
- accordion-custom-styles: restore the 3-item collectibles scenario with the
  original 3dicons images, surface variant, selectors and hover motion
- disclosure-group-controlled: restore HeroUI Native / Expo copy and image
  semantics (Expo brand icon adapted to Tabler IconBrandReactNative)
- button-basic / button-loading-state: converge to baseline (console report,
  no added status paragraph) keeping the duplicate-trigger guard
- restore per-demo root gap/alignment/wrap classes instead of demo-row
- icon semantics per task card: search glyph kept on 搜索 buttons,
  rotate-back glyph restored (IconRefresh), person-search glyph restored
  (IconUserSearch); accordion item icons sized to the baseline 16px
This commit is contained in:
maoyingjie
2026-10-28 09:42:17 +08:00
parent df954aface
commit 896bac2cd7
41 changed files with 830 additions and 412 deletions
@@ -17,7 +17,8 @@ import {
IconChevronDown,
IconQrcode,
IconBrandAppleFilled,
IconDeviceMobile,
// 上游为 iconify `logos:expo-icon`;Tabler 无 Expo 品牌字形,按品牌图形约定取 React Native 品牌图标
IconBrandReactNative,
} from "@tabler/icons-vue";
const expandedKeys = ref<Array<string | number>>(["preview"]);
@@ -92,7 +93,7 @@ const { isNextDisabled, isPrevDisabled, onNext, onPrevious } =
/>
<p class="text-sm text-muted">设备需已安装 Expo。</p>
<Button class="mt-4" variant="primary">
<IconDeviceMobile aria-hidden="true" />
<IconBrandReactNative aria-hidden="true" />
在 Expo Go 预览
</Button>
</DisclosureBody>
@@ -113,7 +114,7 @@ const { isNextDisabled, isPrevDisabled, onNext, onPrevious } =
>
<div class="flex w-full items-center justify-start gap-2">
<IconBrandAppleFilled aria-hidden="true" />
下载应用
下载 HeroUI Native
</div>
<DisclosureIndicator class="text-muted" />
</Button>
@@ -127,11 +128,11 @@ const { isNextDisabled, isPrevDisabled, onNext, onPrevious } =
使用手机相机扫描此二维码,即可预览 HeroUI Native 组件。
</p>
<img
alt="App Store 二维码"
alt="Expo Go 二维码"
class="aspect-square w-full max-w-54 object-cover"
src="https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/images/qr-code-native.png"
/>
<p class="text-sm text-muted">支持 iOS 和 Android 设备。</p>
<p class="text-sm text-muted">设备需已安装 Expo。</p>
<Button class="mt-4" variant="primary">
<IconBrandAppleFilled aria-hidden="true" />
在 App Store 下载