feat: publish ColorField and shared color input parts

This commit is contained in:
maoyingjie
2026-10-27 11:53:02 +08:00
parent 108a120c81
commit 6a7a89be6b
34 changed files with 1511 additions and 39 deletions
+32
View File
@@ -0,0 +1,32 @@
<script setup lang="ts">
import {
ColorField,
ColorFieldGroup,
ColorFieldInput,
Description,
Label,
} from "@heroui-vue/components";
</script>
<template>
<div class="flex flex-col gap-4">
<ColorField
isDisabled
class="w-[280px]"
default-value="#0485F7"
name="color"
>
<Label>颜色</Label>
<ColorFieldGroup>
<ColorFieldInput />
</ColorFieldGroup>
<Description>该颜色字段已禁用</Description>
</ColorField>
<ColorField isDisabled class="w-[280px]" name="color-empty">
<Label>颜色</Label>
<ColorFieldGroup>
<ColorFieldInput placeholder="#000000" />
</ColorFieldGroup>
<Description>该颜色字段已禁用</Description>
</ColorField>
</div>
</template>