# Color Picker

> 组合快捷色板与精确编辑器，选择文档颜色并调整透明度。

网页来源：/components/color-picker

版本：@quirekit/ui 0.3.1；源码修订：d79a6b48d00e+worktree。此文档对应当前源码构建，接入方式以开始使用为准。

接入前置：[开始使用](/raw/components/getting-started.md)（Vue、样式、主题与图标 Provider）。

通过快捷色板选择颜色，或进入“更多颜色”调整颜色通道和透明度。

## 基本用法

`v-model` 为 CSS 颜色字符串，`label` 为颜色按钮和颜色面板提供可访问名称。选择快捷色后立即回填并关闭面板，`commit` 可用于保存最终颜色。

### 示例：color-picker/basic

文件：`basic.vue`

```vue
<script setup lang="ts">
import { ref } from "vue";
import { QuireColorPicker } from "@quirekit/ui/vue";
const color = ref("#425BE1");
</script>

<template>
  <div class="flex flex-wrap items-center gap-4 p-qk-surface" data-color-basic>
    <QuireColorPicker v-model="color" label="选择标题颜色" />
    <p class="m-0" :style="{ color }">季度工作计划</p>
    <output class="text-qk-helper text-qk-text-secondary" role="status">{{ color }}</output>
  </div>
</template>
```

## 自定义色板与最近使用

`colors` 接收二维颜色数组；省略时使用默认文档色板。`recentColors` 由应用保存。下面的示例在 `commit` 时更新最近使用列表，保留最多 10 个颜色。

`resetLabel` 按颜色用途说明清除动作（如“自动”“无填充”）；当前颜色、分组与其他动作的文案跟随 [Locale Provider](/raw/components/locale-provider.md)。

颜色只能取自固定集合时（如 Word 荧光笔只允许 15 种命名色），传入对应 `colors` 并设置 `:showMore="false"` 隐藏“更多颜色”，避免产生集合外的颜色。

### 示例：color-picker/playground

文件：`playground.vue`

```vue
<script setup lang="ts">
import { ref } from "vue";
import { quireIconRegistry } from "@quirekit/ui";
import { QuireColorPicker, QuireIconProvider } from "@quirekit/ui/vue";

const textColor = ref("#3E63DD");
const recentColors = ref<readonly string[]>(["#3E63DD", "#E5484D", "#12A594"]);
const colors = [["#3E63DD", "#E5484D", "#12A594"], ["#FFFFFF", "#64748B", "#182033"]];
const lastAction = ref("尚未修改颜色");

/**
 * 记录稳定颜色提交并把它提升为最近使用颜色。
 *
 * @param value - Color Picker 提交的 CSS 颜色值。
 */
function commitColor(value: string): void {
  textColor.value = value;
  recentColors.value = Object.freeze([
    value,
    ...recentColors.value.filter((color) => color !== value)
  ].slice(0, 10));
  lastAction.value = `已应用 ${value}`;
}

/** 清除示例中的文档文字颜色语义。 */
function resetColor(): void {
  lastAction.value = "已恢复自动文字颜色";
}
</script>

<template>
  <div
    class="grid items-start justify-items-start p-qk-surface"
    data-color-picker-playground
  >
    <QuireIconProvider :registry="quireIconRegistry">
      <div class="grid justify-items-center gap-4">
        <QuireColorPicker
          v-model="textColor"
          label="选择文字颜色"
          :recent-colors="recentColors"
          :colors="colors"
          @commit="commitColor"
          @reset="resetColor"
        />
        <p class="m-0 text-qk-compact text-qk-text-secondary" aria-live="polite">
          {{ lastAction }}
        </p>
      </div>
    </QuireIconProvider>
  </div>
</template>
```

## 清除颜色

`allowReset` 默认开启。“无颜色”发出 `reset`，保留上次可编辑颜色；通过 `v-model:reset-active` 表达清除状态。选色会取消该状态。应用从外部换色时，应同步颜色值与清除标记。

### 示例：color-picker/reset

文件：`reset.vue`

```vue
<script setup lang="ts">
import { ref } from "vue";
import { QuireButton, QuireColorPicker } from "@quirekit/ui/vue";
const color = ref("#425BE1");
const resetActive = ref(false);
/** Restores the saved color and its explicit document-color state together. */
function restore(): void { color.value = "#425BE1"; resetActive.value = false; }
</script>

<template>
  <div class="grid justify-items-start gap-4 p-qk-surface" data-color-reset>
    <div class="flex items-center gap-4">
      <QuireColorPicker v-model="color" v-model:reset-active="resetActive" label="选择段落颜色" />
      <span :style="{ color: resetActive ? undefined : color }">让重要内容更容易发现</span>
    </div>
    <QuireButton variant="outline" @click="restore">恢复主题色</QuireButton>
    <output class="text-qk-helper text-qk-text-secondary" role="status">{{ resetActive ? "无颜色，继承正文" : color }}</output>
  </div>
</template>
```

## 精确编辑与透明度

“更多颜色”提供颜色区域、色相轨道和通道输入。`inputFormats` 限定 HEX、RGB、HSL、HSB，`defaultInputFormat` 设置初始格式；切换格式不改变实际颜色。`showAlpha` 控制透明度编辑，`showEyedropper` 控制吸管入口，浏览器不支持吸管时该入口禁用。

### 示例：color-picker/formats

文件：`formats.vue`

```vue
<script setup lang="ts">
import { ref } from "vue";
import { QuireColorPicker } from "@quirekit/ui/vue";
const opaque = ref("#425BE1"), alpha = ref("#425BE180");
</script>

<template>
  <div class="flex flex-wrap gap-qk-group p-qk-surface" data-color-formats>
    <div class="flex items-center gap-4">
      <QuireColorPicker v-model="opaque" label="编辑 HEX 颜色" :input-formats="['hex']" :show-alpha="false" :show-eyedropper="false" />
      <span>仅 HEX</span>
    </div>
    <div class="flex items-center gap-4">
      <QuireColorPicker v-model="alpha" label="编辑透明颜色" :input-formats="['rgb', 'hsl', 'hsb']" default-input-format="rgb" />
      <span>RGB / HSL / HSB 与透明度</span>
    </div>
  </div>
</template>
```

拖动时，`value-change` 连续更新预览；拖动结束通过 `value-change-end` 和 `commit` 提供最终值。RGB/HSL/HSB 数字字段通过 `v-model` 连续更新；需要把这些输入也加入最近颜色时，可在 `update:open` 关闭时记录当前值，不应仅依赖 `commit`。

完整六位或八位 HEX 输入会同步预览值，不依赖关闭面板时的失焦事件；尚未完成、无效或正在组合的输入保持草稿。短 HEX 可通过 Enter 或失焦确认。

桌面精确编辑器使用独立的二级浮层，默认位于快捷色板右侧；空间不足时独立翻转到左侧或沿窗口边缘避让，不移动一级色板。两侧均放不下时允许覆盖部分快捷色板，保证精确编辑字段完整可见。窗口不超过 640px 时切为单面板，并可返回色板。

## 尺寸与禁用

`size` 调整颜色按钮尺寸，不放大整个面板。`disabled` 阻止打开和修改颜色；`:allowReset="false"` 可隐藏“无颜色”动作。

### 示例：color-picker/states

文件：`states.vue`

```vue
<script setup lang="ts">
import { QuireColorPicker } from "@quirekit/ui/vue";
const sizes = ["xs", "sm", "md", "lg", "xl"] as const;
</script>

<template>
  <div class="grid gap-4 p-qk-surface" data-color-states>
    <div class="flex flex-wrap items-end gap-4">
      <div v-for="size in sizes" :key="size" class="grid justify-items-center gap-qk-inline">
        <QuireColorPicker :size="size" :label="size + ' 颜色按钮'" :allow-reset="false" default-value="#425BE1" />
        <code>{{ size }}</code>
      </div>
    </div>
    <div class="flex items-center gap-4">
      <QuireColorPicker label="锁定颜色" default-value="#425BE1" disabled />
      <span class="text-qk-helper text-qk-text-secondary">此文档的主题颜色由管理员设置。</span>
    </div>
  </div>
</template>
```

## 组件组合

`QuireColorPicker` 是常规入口。需要常驻精确编辑器时，使用 `QuireColorPickerRoot inline` 包住 `QuireColorEditor`；颜色值仍由 Root 统一管理。`QuireColorPalette` 可放在同一 Root 内提供快捷色板。

### 示例：color-picker/inline

文件：`inline.vue`

```vue
<script setup lang="ts">
import { ref } from "vue";
import { QuireColorEditor, QuireColorPickerRoot } from "@quirekit/ui/vue";
const color = ref("#425BE1");
</script>

<template>
  <div class="grid justify-items-start gap-4 p-qk-surface" data-color-inline>
    <QuireColorPickerRoot v-model="color" inline>
      <QuireColorEditor label="常驻颜色编辑器" :show-eyedropper="false" />
    </QuireColorPickerRoot>
    <output class="text-qk-helper text-qk-text-secondary" role="status">{{ color }}</output>
  </div>
</template>
```

自定义触发器可使用 `trigger` 插槽。工具栏中使用 `QuireToolbarColorPickerDisclosure` 关联面板与键盘导航；它本身就是按钮，外层不要再嵌套按钮。

`portalTarget` 设置浮层挂载目标，默认是 `body`；`contentAttributes` 可为颜色面板提供 `data-*`、`class`、`lang` 和 `dir`，键盘与焦点关系仍由 Color Picker 管理。

## 在对话框内使用

可放在 Dialog 或 Drawer 中。选色保持父面板打开，Escape 先关闭颜色面板，并返回颜色按钮。

### 示例：popover/within-dialog

文件：`within-dialog.vue`

```vue
<script setup lang="ts">
import { ref } from "vue";
import {
  QuireButton, QuireColorPicker, QuireDialogCloseTrigger, QuireDialogContent,
  QuireDialogRoot, QuireDialogTrigger, QuirePopoverCloseTrigger, QuirePopoverContent,
  QuirePopoverRoot, QuirePopoverTitle, QuirePopoverTrigger, QuireSwitch,
  QuireTooltipContent, QuireTooltipRoot, QuireTooltipTrigger
} from "@quirekit/ui/vue";

const accent = ref("#3E63DD");
const noAccent = ref(false);
const showSubtitle = ref(true);
</script>

<template>
  <div class="grid min-h-[180px] place-items-center p-qk-surface">
    <QuireDialogRoot>
      <QuireDialogTrigger as-child><QuireButton variant="outline">编辑文档外观</QuireButton></QuireDialogTrigger>
      <QuireDialogContent title="文档外观" description="调整当前文档的强调色和显示选项。" size="small" height="auto">
        <div class="grid gap-5">
          <div class="flex flex-wrap items-center justify-between gap-3">
            <span class="text-qk-body text-qk-text-primary">强调色</span>
            <QuireColorPicker v-model="accent" v-model:reset-active="noAccent" label="文档强调色" />
          </div>
          <div class="flex flex-wrap items-center gap-2">
            <QuirePopoverRoot>
              <QuirePopoverTrigger as-child><QuireButton variant="outline">附加显示选项</QuireButton></QuirePopoverTrigger>
              <QuirePopoverContent style="width: min(260px, calc(100vw - 24px))">
                <QuirePopoverTitle>显示选项</QuirePopoverTitle>
                <QuireSwitch v-model:checked="showSubtitle" label="显示副标题" />
                <QuirePopoverCloseTrigger as-child label="完成显示选项"><QuireButton>完成显示选项</QuireButton></QuirePopoverCloseTrigger>
              </QuirePopoverContent>
            </QuirePopoverRoot>
            <QuireTooltipRoot>
              <QuireTooltipTrigger as-child><QuireButton>颜色说明</QuireButton></QuireTooltipTrigger>
              <QuireTooltipContent content="强调色用于标题与重点信息，不改变正文颜色。" />
            </QuireTooltipRoot>
          </div>
          <p class="m-0 text-qk-helper text-qk-text-secondary" role="status">
            当前强调色：{{ noAccent ? "无颜色" : accent }}；{{ showSubtitle ? "显示副标题" : "隐藏副标题" }}
          </p>
        </div>
        <template #footer><QuireDialogCloseTrigger as-child><QuireButton variant="outline">完成外观设置</QuireButton></QuireDialogCloseTrigger></template>
      </QuireDialogContent>
    </QuireDialogRoot>
  </div>
</template>
```

## 键盘操作

| 位置 | 操作 |
| --- | --- |
| 颜色按钮 | Enter / Space 打开面板 |
| 快捷色 | 方向键移动，Enter / Space 选择 |
| 颜色区域与轨道 | 方向键微调颜色或透明度 |
| 精确编辑器 | Escape 返回快捷色板，焦点回到“更多颜色” |
| 快捷色板 | Escape 关闭并返回颜色按钮 |

## API

### QuireColorPicker

#### Props

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| modelValue | 否 | — | 受控 CSS 颜色字符串。 |
| resetActive | 否 | undefined | 当前是否为无颜色；可用 v-model\:reset-active 同步自定义图标，颜色值仍保留上次可编辑颜色。 |
| defaultValue | 否 | "#1677FF" | 非受控模式的初始 CSS 颜色字符串。 |
| open | 否 | undefined as never | 受控浮层状态。 |
| defaultOpen | 否 | false | 非受控模式的初始浮层状态。 |
| label | 否 | — | 触发器与颜色面板的可访问名称，说明本实例选择的是什么颜色；缺省取语言包。 |
| size | 否 | "sm" | 触发器尺寸。 |
| placement | 否 | "bottom-start" | 浮层首选方位。 |
| colors | 否 | — | 文档快捷颜色矩阵。 |
| recentColors | 否 | \[\] | 由宿主受控的最近使用颜色。 |
| resetLabel | 否 | — | 清除颜色动作名称，表达本实例的清除语义（如“自动”“无填充”）；缺省取语言包。 |
| allowReset | 否 | true | 是否提供清除文档颜色动作。 |
| showMore | 否 | true | 是否提供进入精确颜色编辑器的“更多颜色”动作；固定色值空间的文档语义可关闭。 |
| showAlpha | 否 | true | 是否提供透明度编辑。 |
| showEyedropper | 否 | true | 是否在精确颜色编辑器中显示屏幕取色动作。 |
| inputFormats | 否 | \["hex", "rgb", "hsl", "hsb"\] | 精确编辑器开放的颜色输入格式。 |
| defaultInputFormat | 否 | "hex" | 精确编辑器初次打开时使用的输入格式。 |
| portalled | 否 | true | 是否把浮层传送到 portalTarget。 |
| portalTarget | 否 | — | 浮层传送目标；默认为 body。 |
| contentAttributes | 否 | — | 浮层的宿主标记和语言；键盘、焦点与 ARIA 关系仍由组件维护。 |
| disabled | 否 | false | 是否禁用颜色选择。 |
| name | 否 | — | 隐藏表单输入的字段名。 |

**modelValue**

```ts
string | undefined
```

```ts
undefined | string
```

**resetActive**

```ts
boolean | undefined
```

**defaultValue**

```ts
string | undefined
```

```ts
undefined | string
```

**open**

```ts
boolean | undefined
```

**defaultOpen**

```ts
boolean | undefined
```

**label**

```ts
string | undefined
```

```ts
undefined | string
```

**size**

```ts
QuireKitControlSize | undefined
```

```ts
undefined | "xs" | "sm" | "md" | "lg" | "xl"
```

**placement**

```ts
QuireKitColorPickerPlacement | undefined
```

```ts
undefined | "bottom" | "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end"
```

**colors**

```ts
QuireKitColorRows | undefined
```

```ts
undefined | ((string)[])[]
```

**recentColors**

```ts
readonly string[] | undefined
```

```ts
undefined | readonly (string)[]
```

**resetLabel**

```ts
string | undefined
```

```ts
undefined | string
```

**allowReset**

```ts
boolean | undefined
```

**showMore**

```ts
boolean | undefined
```

**showAlpha**

```ts
boolean | undefined
```

**showEyedropper**

```ts
boolean | undefined
```

**inputFormats**

```ts
readonly QuireKitColorInputFormat[] | undefined
```

```ts
undefined | readonly ("hex" | "rgb" | "hsl" | "hsb")[]
```

**defaultInputFormat**

```ts
QuireKitColorInputFormat | undefined
```

```ts
undefined | "hex" | "rgb" | "hsl" | "hsb"
```

**portalled**

```ts
boolean | undefined
```

**portalTarget**

```ts
string | HTMLElement | undefined
```

```ts
undefined | string | HTMLElement
```

**contentAttributes**

```ts
(Readonly<Record<`data-${string}`, string | number | boolean | undefined>> & { readonly class?: string | undefined; readonly lang?: string | undefined; readonly dir?: "ltr" | "rtl" | undefined; }) | undefined
```

```ts
undefined | {
  /** 宿主提供的内容类名。 */
  class?: undefined | string;
  /** 浮层内容语言。 */
  lang?: string | undefined;
  /** 浮层内容书写方向。 */
  dir?: undefined | "ltr" | "rtl";
}
```

**disabled**

```ts
boolean | undefined
```

**name**

```ts
string | undefined
```

```ts
undefined | string
```

#### Events

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| update\:modelValue | 否 | — |  |
| update\:open | 否 | — |  |
| commit | 否 | — |  |
| reset | 否 | — |  |
| valueChange | 否 | — |  |
| valueChangeEnd | 否 | — |  |
| update\:resetActive | 否 | — |  |

**update:modelValue**

```ts
[value: string]
```

**update:open**

```ts
[open: boolean]
```

**commit**

```ts
[value: string]
```

**reset**

```ts
[]
```

**valueChange**

```ts
[value: string]
```

**valueChangeEnd**

```ts
[value: string]
```

**update:resetActive**

```ts
[value: boolean]
```

#### Slots

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| trigger | 否 | — | 替换默认触发器；使用关联当前颜色面板的触发器组件。 |

**trigger**

```ts
{ readonly reset: boolean; readonly value: string; }
```

```ts
{
  reset: boolean;
  value: string;
}
```

#### 公开实例成员

无。

#### 相关类型

```ts
type QuireKitColorRows = ((string)[])[];
```

```ts
type QuireKitColorRow = (string)[];
```

```ts
type QuireKitColorInputFormat = "hex" | "rgb" | "hsl" | "hsb";
```

### QuireColorPickerRoot

#### Props

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| modelValue | 否 | — | 受控 CSS 颜色字符串。 |
| defaultValue | 否 | "#1677FF" | 非受控模式的初始 CSS 颜色字符串。 |
| open | 否 | undefined as never | 受控浮层打开状态。 |
| defaultOpen | 否 | false | 非受控模式的初始打开状态。 |
| format | 否 | — | 用于颜色运算的颜色空间；输入显示格式由 Editor 配置。 |
| defaultFormat | 否 | "hsba" | 初始颜色空间。 |
| closeOnSelect | 否 | false | 选择快捷色后是否关闭浮层。 |
| disabled | 否 | false | 是否禁用所有颜色交互。 |
| readOnly | 否 | false | 是否只读。 |
| inline | 否 | false | 是否使用行内模式呈现。 |
| placement | 否 | "bottom-start" | 浮层相对触发器的首选方位。 |
| name | 否 | — | 隐藏表单输入的字段名。 |

**modelValue**

```ts
string | undefined
```

```ts
undefined | string
```

**defaultValue**

```ts
string | undefined
```

```ts
undefined | string
```

**open**

```ts
boolean | undefined
```

**defaultOpen**

```ts
boolean | undefined
```

**format**

```ts
ColorFormat | undefined
```

```ts
undefined | "hsba" | "rgba" | "hsla"
```

**defaultFormat**

```ts
ColorFormat | undefined
```

```ts
undefined | "hsba" | "rgba" | "hsla"
```

**closeOnSelect**

```ts
boolean | undefined
```

**disabled**

```ts
boolean | undefined
```

**readOnly**

```ts
boolean | undefined
```

**inline**

```ts
boolean | undefined
```

**placement**

```ts
QuireKitColorPickerPlacement | undefined
```

```ts
undefined | "bottom" | "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end"
```

**name**

```ts
string | undefined
```

```ts
undefined | string
```

#### Events

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| update\:modelValue | 否 | — |  |
| update\:open | 否 | — |  |
| openChange | 否 | — |  |
| valueChange | 否 | — |  |
| valueChangeEnd | 否 | — |  |

**update:modelValue**

```ts
[value: string]
```

**update:open**

```ts
[open: boolean]
```

**openChange**

```ts
[open: boolean]
```

**valueChange**

```ts
[value: string]
```

**valueChangeEnd**

```ts
[value: string]
```

#### Slots

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| default | 否 | — | 颜色触发器、快捷色板、精确编辑器或自定义内容。 |

**default**

```ts
any
```

#### 公开实例成员

无。

### QuireColorPalette

#### Props

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| colors | 否 | quireDocumentColorRows.slice(0, 4) | 文档快捷颜色矩阵。 |
| recentColors | 否 | \[\] | 由宿主受控的最近使用颜色。 |
| resetLabel | 否 | — | 清除颜色动作名称，表达本实例的清除语义（如“自动”“无填充”）；缺省取语言包。 |
| allowReset | 否 | true | 是否显示清除颜色动作。 |
| showMore | 否 | true | 是否显示进入精确编辑器的动作。 |
| resetActive | 否 | false | 当前是否处于由宿主表达的无颜色状态。 |
| closeOnCommit | 否 | true | 选择快捷色后是否关闭所属 Root。 |

**colors**

```ts
QuireKitColorRows | undefined
```

```ts
undefined | ((string)[])[]
```

**recentColors**

```ts
readonly string[] | undefined
```

```ts
undefined | readonly (string)[]
```

**resetLabel**

```ts
string | undefined
```

```ts
undefined | string
```

**allowReset**

```ts
boolean | undefined
```

**showMore**

```ts
boolean | undefined
```

**resetActive**

```ts
boolean | undefined
```

**closeOnCommit**

```ts
boolean | undefined
```

#### Events

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| commit | 否 | — |  |
| reset | 否 | — |  |
| more | 否 | — |  |

**commit**

```ts
[value: string]
```

**reset**

```ts
[]
```

**more**

```ts
[]
```

#### Slots

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| more | 否 | — | 替换更多颜色触发器，以接入独立的二级浮层。 |

**more**

```ts
{ readonly disabled: boolean; }
```

```ts
{
  disabled: boolean;
}
```

#### 公开实例成员

无。

#### 相关类型

```ts
type QuireKitColorRows = ((string)[])[];
```

```ts
type QuireKitColorRow = (string)[];
```

### QuireColorEditor

#### Props

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| label | 否 | — | 编辑器区域的可访问名称，说明本实例编辑的是什么颜色；缺省取语言包。 |
| showAlpha | 否 | true | 是否显示透明度轨道与透明度输入。 |
| showEyedropper | 否 | true | 是否显示浏览器原生屏幕取色动作。 |
| showBack | 否 | false | 是否显示返回快捷色板的动作。 |
| inputFormats | 否 | \["hex", "rgb", "hsl", "hsb"\] | 文本输入区开放的格式。 |
| defaultInputFormat | 否 | "hex" | 文本输入区初始格式。 |

**label**

```ts
string | undefined
```

```ts
undefined | string
```

**showAlpha**

```ts
boolean | undefined
```

**showEyedropper**

```ts
boolean | undefined
```

**showBack**

```ts
boolean | undefined
```

**inputFormats**

```ts
readonly QuireKitColorInputFormat[] | undefined
```

```ts
undefined | readonly ("hex" | "rgb" | "hsl" | "hsb")[]
```

**defaultInputFormat**

```ts
QuireKitColorInputFormat | undefined
```

```ts
undefined | "hex" | "rgb" | "hsl" | "hsb"
```

#### Events

| 名称 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- |
| back | 否 | — |  |

**back**

```ts
[]
```

#### Slots

无。

#### 公开实例成员

无。

#### 相关类型

```ts
type QuireKitColorInputFormat = "hex" | "rgb" | "hsl" | "hsb";
```
