feat: migrate DateField and shared date input group

This commit is contained in:
maoyingjie
2026-10-23 23:56:18 +08:00
parent 3c878d2582
commit 01f0776805
63 changed files with 3974 additions and 90 deletions
@@ -0,0 +1,23 @@
<script setup lang="ts">
import {
DateField,
DateFieldGroup,
DateFieldInput,
DateFieldSegment,
Label,
} from "@heroui-vue/components";
</script>
<template>
<DateField class="w-[256px]" as="div" data-custom="date-field" name="date">
<Label data-custom="date-field-label">日期</Label>
<DateFieldGroup as="div" data-custom="date-field-group">
<DateFieldInput
as="div"
data-custom="date-field-input"
v-slot="{ segment }"
>
<DateFieldSegment :segment="segment" />
</DateFieldInput>
</DateFieldGroup>
</DateField>
</template>