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
+31
View File
@@ -0,0 +1,31 @@
<script setup lang="ts">
import {
TimeField,
TimeFieldGroup,
TimeFieldInput,
TimeFieldSegment,
Label,
Description,
} from "@heroui-vue/components";
</script>
<template>
<div class="flex flex-col gap-4">
<TimeField is-required class="w-[256px]" name="time">
<Label>时间</Label>
<TimeFieldGroup>
<TimeFieldInput v-slot="{ segment }">
<TimeFieldSegment :segment="segment" />
</TimeFieldInput>
</TimeFieldGroup>
</TimeField>
<TimeField is-required class="w-[256px]" name="appointment-time">
<Label>预约时间</Label>
<TimeFieldGroup>
<TimeFieldInput v-slot="{ segment }">
<TimeFieldSegment :segment="segment" />
</TimeFieldInput>
</TimeFieldGroup>
<Description>必填项</Description>
</TimeField>
</div>
</template>