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,62 +1,52 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
ToggleButtonGroup,
|
||||
ToggleButton,
|
||||
ToggleButtonGroup,
|
||||
ToggleButtonGroupSeparator,
|
||||
} from "@heroui-vue/components";
|
||||
import {
|
||||
IconBold,
|
||||
IconItalic,
|
||||
IconUnderline,
|
||||
IconStrikethrough,
|
||||
IconUnderline,
|
||||
} from "@tabler/icons-vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex w-full flex-col gap-6">
|
||||
<div class="flex flex-col gap-6">
|
||||
<div class="flex flex-col gap-2">
|
||||
<p class="text-sm font-medium text-muted">Attached (default)</p>
|
||||
<span class="text-sm text-muted">附着(默认)</span>
|
||||
<ToggleButtonGroup selection-mode="multiple">
|
||||
<ToggleButton id="bold" is-icon-only aria-label="Bold">
|
||||
<ToggleButton id="bold" is-icon-only aria-label="粗体">
|
||||
<IconBold aria-hidden="true" />
|
||||
</ToggleButton>
|
||||
<ToggleButton id="italic" is-icon-only aria-label="Italic">
|
||||
<ToggleButton id="italic" is-icon-only aria-label="斜体">
|
||||
<ToggleButtonGroupSeparator />
|
||||
<IconItalic aria-hidden="true" />
|
||||
</ToggleButton>
|
||||
<ToggleButton id="underline" is-icon-only aria-label="Underline">
|
||||
<ToggleButton id="underline" is-icon-only aria-label="下划线">
|
||||
<ToggleButtonGroupSeparator />
|
||||
<IconUnderline aria-hidden="true" />
|
||||
</ToggleButton>
|
||||
<ToggleButton
|
||||
id="strikethrough"
|
||||
is-icon-only
|
||||
aria-label="Strikethrough"
|
||||
>
|
||||
<ToggleButton id="strikethrough" is-icon-only aria-label="删除线">
|
||||
<ToggleButtonGroupSeparator />
|
||||
<IconStrikethrough aria-hidden="true" />
|
||||
</ToggleButton>
|
||||
</ToggleButtonGroup>
|
||||
</div>
|
||||
<div class="flex flex-col gap-2">
|
||||
<p class="text-sm font-medium text-muted">Detached</p>
|
||||
<span class="text-sm text-muted">分离</span>
|
||||
<ToggleButtonGroup is-detached selection-mode="multiple">
|
||||
<ToggleButton id="bold" is-icon-only aria-label="Bold">
|
||||
<ToggleButton id="bold" is-icon-only aria-label="粗体">
|
||||
<IconBold aria-hidden="true" />
|
||||
</ToggleButton>
|
||||
<ToggleButton id="italic" is-icon-only aria-label="Italic">
|
||||
<ToggleButtonGroupSeparator />
|
||||
<ToggleButton id="italic" is-icon-only aria-label="斜体">
|
||||
<IconItalic aria-hidden="true" />
|
||||
</ToggleButton>
|
||||
<ToggleButton id="underline" is-icon-only aria-label="Underline">
|
||||
<ToggleButtonGroupSeparator />
|
||||
<ToggleButton id="underline" is-icon-only aria-label="下划线">
|
||||
<IconUnderline aria-hidden="true" />
|
||||
</ToggleButton>
|
||||
<ToggleButton
|
||||
id="strikethrough"
|
||||
is-icon-only
|
||||
aria-label="Strikethrough"
|
||||
>
|
||||
<ToggleButtonGroupSeparator />
|
||||
<ToggleButton id="strikethrough" is-icon-only aria-label="删除线">
|
||||
<IconStrikethrough aria-hidden="true" />
|
||||
</ToggleButton>
|
||||
</ToggleButtonGroup>
|
||||
|
||||
Reference in New Issue
Block a user