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,20 @@
import { computed, defineComponent, provide, type PropType } from "vue";
import type { DateFieldInputProps } from "reka-ui";
import { dateSegmentsKey } from "./context";
export default defineComponent({
props: {
segments: {
type: Array as PropType<
{ part: DateFieldInputProps["part"]; value: string }[]
>,
required: true,
},
},
setup(props, { slots }) {
provide(
dateSegmentsKey,
computed(() => props.segments),
);
return () => slots.default?.();
},
});