feat(nc-gui): cmd + ; to select the current date(time)

This commit is contained in:
Wing-Kam Wong
2022-11-28 13:48:51 +08:00
parent 8098dc3540
commit ae2271c7b8
2 changed files with 8 additions and 2 deletions

View File

@@ -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>