30 lines
811 B
Vue
30 lines
811 B
Vue
<script setup lang="ts">
|
|
import {
|
|
DateField,
|
|
DateFieldGroup,
|
|
DateFieldInput,
|
|
DateFieldSegment,
|
|
Label,
|
|
} from "@heroui-vue/components";
|
|
</script>
|
|
<template>
|
|
<div class="flex flex-col gap-4">
|
|
<DateField class="w-[256px]" name="primary-date">
|
|
<Label>主要变体</Label>
|
|
<DateFieldGroup variant="primary">
|
|
<DateFieldInput v-slot="{ segment }">
|
|
<DateFieldSegment :segment="segment" />
|
|
</DateFieldInput>
|
|
</DateFieldGroup>
|
|
</DateField>
|
|
<DateField class="w-[256px]" name="secondary-date">
|
|
<Label>次要变体</Label>
|
|
<DateFieldGroup variant="secondary">
|
|
<DateFieldInput v-slot="{ segment }">
|
|
<DateFieldSegment :segment="segment" />
|
|
</DateFieldInput>
|
|
</DateFieldGroup>
|
|
</DateField>
|
|
</div>
|
|
</template>
|