Files
heroui-vue/apps/docs/demos/button-group-custom-styles.vue
T
maoyingjie 896bac2cd7 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
2026-10-28 09:42:17 +08:00

69 lines
2.0 KiB
Vue

<script setup lang="ts">
import {
Button,
ButtonGroup,
ButtonGroupSeparator,
Description,
DropdownItem,
DropdownMenu,
DropdownPopover,
DropdownRoot,
DropdownTrigger,
Label,
} from "@heroui-vue/components";
import { IconChevronDown } from "@tabler/icons-vue";
</script>
<template>
<ButtonGroup>
<Button class="rounded-none bg-[#08872B] data-hovered:bg-[#0FBF3E]">
合并拉取请求
</Button>
<DropdownRoot>
<DropdownTrigger>
<Button
is-icon-only
aria-label="合并选项"
class="rounded-none bg-[#08872B] data-hovered:bg-[#0FBF3E]"
>
<ButtonGroupSeparator />
<IconChevronDown class="size-4" aria-hidden="true" />
</Button>
</DropdownTrigger>
<DropdownPopover
class="max-w-[290px] rounded-none"
placement="bottom end"
>
<DropdownMenu>
<DropdownItem
id="merge"
class="flex flex-col items-start gap-1 rounded-none"
text-value="创建合并提交"
>
<Label>创建合并提交</Label>
<Description>此分支的所有提交将添加到基础分支</Description>
</DropdownItem>
<DropdownItem
id="squash-and-merge"
class="flex flex-col items-start gap-1 rounded-none"
text-value="压缩并合并"
>
<Label>压缩并合并</Label>
<Description>
此分支的 14 个提交将在基础分支中合并为一个提交
</Description>
</DropdownItem>
<DropdownItem
id="rebase-and-merge"
class="flex flex-col items-start gap-1 rounded-none"
text-value="变基并合并"
>
<Label>变基并合并</Label>
<Description>此分支的 14 个提交将变基后添加到基础分支</Description>
</DropdownItem>
</DropdownMenu>
</DropdownPopover>
</DropdownRoot>
</ButtonGroup>
</template>