fix(docs): use native header control composition and default sizing

This commit is contained in:
maoyingjie
2026-10-24 07:39:22 +08:00
parent 2ce80b17da
commit 77acdb276e
7 changed files with 73 additions and 36 deletions
@@ -28,6 +28,7 @@ function setTheme(value: unknown) {
<template>
<ToggleButtonGroup
class="docs-theme-wide"
is-detached
:model-value="mode"
selection-mode="single"
disallow-empty-selection
@@ -40,6 +41,7 @@ function setTheme(value: unknown) {
:id="choice.id"
:key="choice.id"
is-icon-only
variant="ghost"
:aria-label="choice.label"
>
<component :is="choice.icon" aria-hidden="true" :size="15" />
@@ -63,6 +65,7 @@ function setTheme(value: unknown) {
<PopoverDialog>
<PopoverHeading class="sr-only">外观</PopoverHeading>
<ToggleButtonGroup
is-detached
:model-value="mode"
selection-mode="single"
disallow-empty-selection
@@ -75,6 +78,7 @@ function setTheme(value: unknown) {
:id="choice.id"
:key="choice.id"
is-icon-only
variant="ghost"
:aria-label="choice.label"
>
<component :is="choice.icon" aria-hidden="true" :size="16" />