feat: migrate public TimeField with shared date input parts

This commit is contained in:
maoyingjie
2026-10-26 17:56:41 +08:00
parent d74ad1b711
commit 97263d82e1
45 changed files with 2415 additions and 61 deletions
@@ -0,0 +1,23 @@
<script setup lang="ts">
import {
TimeField,
TimeFieldGroup,
TimeFieldInput,
TimeFieldSegment,
Label,
Description,
} from "@heroui-vue/components";
</script>
<template>
<TimeField class="w-full max-w-48 gap-1.5" name="reminder">
<Label class="font-medium text-foreground">提醒时间</Label>
<Description>每日签到通知。</Description>
<TimeFieldGroup
class="rounded-xl border border-border/80 bg-surface px-2 py-1 shadow-sm ring-1 ring-accent/5 focus-within:border-accent/25 focus-within:ring-2 focus-within:ring-accent/15"
>
<TimeFieldInput v-slot="{ segment }">
<TimeFieldSegment class="text-foreground" :segment="segment" />
</TimeFieldInput>
</TimeFieldGroup>
</TimeField>
</template>