feat(grid): add TemporalCellEditor component for enhanced date/time editing

This commit is contained in:
t8y2 committed 2026-05-19 17:47:21 +08:00
1 parent 43c38bc5bc
commit 13246aa5b9
3 files changed
+350 -42

No files matched your search

@@ -10,18 +10,22 @@ defineOptions({
inheritAttrs: false,
});
const props = withDefaults(defineProps<SelectContentProps & { class?: HTMLAttributes["class"] }>(), {
position: "popper",
});
const props = withDefaults(
defineProps<SelectContentProps & { class?: HTMLAttributes["class"]; disablePortal?: boolean }>(),
{
position: "popper",
disablePortal: false,
},
);
const emits = defineEmits<SelectContentEmits>();
const delegatedProps = reactiveOmit(props, "class");
const delegatedProps = reactiveOmit(props, "class", "disablePortal");
const forwarded = useForwardPropsEmits(delegatedProps, emits);
</script>
<template>
<SelectPortal>
<SelectPortal :disabled="disablePortal">
<SelectContent
data-slot="select-content"
:data-align-trigger="position === 'item-aligned'"