mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 00:36:54 +00:00
feat(nc-gui): cmd + ; to select the current date(time)
This commit is contained in:
@@ -23,7 +23,7 @@ let isDateInvalid = $ref(false)
|
||||
|
||||
const dateFormat = isMysql ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm:ssZ'
|
||||
|
||||
const localState = $computed({
|
||||
let localState = $computed({
|
||||
get() {
|
||||
if (!modelValue) {
|
||||
return undefined
|
||||
@@ -73,6 +73,9 @@ useSelectedCellKeyupListener(active, (e: KeyboardEvent) => {
|
||||
open.value = false
|
||||
}
|
||||
break
|
||||
case ';':
|
||||
localState = dayjs(new Date())
|
||||
break
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user