|
|
@ -33,7 +33,7 @@ let isDateInvalid = $ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const dateFormat = $computed(() => columnMeta?.value?.meta?.date_format ?? 'YYYY-MM-DD') |
|
|
|
const dateFormat = $computed(() => columnMeta?.value?.meta?.date_format ?? 'YYYY-MM-DD') |
|
|
|
|
|
|
|
|
|
|
|
const localState = $computed({ |
|
|
|
let localState = $computed({ |
|
|
|
get() { |
|
|
|
get() { |
|
|
|
if (!modelValue) { |
|
|
|
if (!modelValue) { |
|
|
|
return undefined |
|
|
|
return undefined |
|
|
@ -152,6 +152,9 @@ useSelectedCellKeyupListener(active, (e: KeyboardEvent) => { |
|
|
|
case 'ArrowDown': |
|
|
|
case 'ArrowDown': |
|
|
|
if (!localState) (document.querySelector('.ant-picker-header-super-next-btn') as HTMLButtonElement)?.click() |
|
|
|
if (!localState) (document.querySelector('.ant-picker-header-super-next-btn') as HTMLButtonElement)?.click() |
|
|
|
break |
|
|
|
break |
|
|
|
|
|
|
|
case ';': |
|
|
|
|
|
|
|
localState = dayjs(new Date()) |
|
|
|
|
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|