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:
@@ -1,43 +1,45 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
ButtonGroup,
|
||||
Button,
|
||||
ButtonGroup,
|
||||
ButtonGroupSeparator,
|
||||
} from "@heroui-vue/components";
|
||||
import { IconWorld, IconPlus, IconTrash } from "@tabler/icons-vue";
|
||||
import { IconSearch, IconPlus, IconTrash } from "@tabler/icons-vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex w-full flex-col gap-6">
|
||||
<div class="flex flex-col gap-2">
|
||||
<p class="text-sm font-medium text-muted">With icons</p>
|
||||
<div class="flex flex-col gap-6">
|
||||
<div class="flex flex-col items-start gap-2">
|
||||
<p class="text-sm text-muted">带图标</p>
|
||||
<ButtonGroup variant="secondary">
|
||||
<Button>
|
||||
<IconWorld aria-hidden="true" />
|
||||
Search
|
||||
<!-- 上游为 Globe;按任务卡保留“搜索”语义,使用搜索字形 -->
|
||||
<IconSearch aria-hidden="true" />
|
||||
搜索
|
||||
</Button>
|
||||
<Button>
|
||||
<ButtonGroupSeparator />
|
||||
<IconPlus aria-hidden="true" />
|
||||
Add
|
||||
添加
|
||||
</Button>
|
||||
<Button>
|
||||
<ButtonGroupSeparator />
|
||||
<IconTrash aria-hidden="true" />
|
||||
Delete
|
||||
删除
|
||||
</Button>
|
||||
</ButtonGroup>
|
||||
</div>
|
||||
<div class="flex flex-col gap-2">
|
||||
<p class="text-sm font-medium text-muted">Icon only buttons</p>
|
||||
<div class="flex flex-col items-start gap-2">
|
||||
<p class="text-sm text-muted">仅图标按钮</p>
|
||||
<ButtonGroup variant="tertiary">
|
||||
<Button is-icon-only aria-label="Search">
|
||||
<IconWorld aria-hidden="true" />
|
||||
<Button is-icon-only aria-label="搜索">
|
||||
<IconSearch aria-hidden="true" />
|
||||
</Button>
|
||||
<Button is-icon-only aria-label="Add">
|
||||
<Button is-icon-only aria-label="添加">
|
||||
<ButtonGroupSeparator />
|
||||
<IconPlus aria-hidden="true" />
|
||||
</Button>
|
||||
<Button is-icon-only aria-label="Delete">
|
||||
<Button is-icon-only aria-label="删除">
|
||||
<ButtonGroupSeparator />
|
||||
<IconTrash aria-hidden="true" />
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user