feat: migrate public TimeField with shared date input parts
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user