defineEmits

This commit is contained in:
Evan You 2022-01-24 16:41:57 +08:00
parent eecd5043f6
commit e1c6ad5658

View File

@ -5,6 +5,10 @@ defineProps<{
letterStates: Record<string, LetterState> letterStates: Record<string, LetterState>
}>() }>()
defineEmits<{
(e: 'key', key: string): void
}>()
const rows = [ const rows = [
'qwertyuiop'.split(''), 'qwertyuiop'.split(''),
'asdfghjkl'.split(''), 'asdfghjkl'.split(''),
@ -72,7 +76,7 @@ button {
align-items: center; align-items: center;
text-transform: uppercase; text-transform: uppercase;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0.3); -webkit-tap-highlight-color: rgba(0, 0, 0, 0.3);
transition: all .2s 1.5s; transition: all 0.2s 1.5s;
} }
button:last-of-type { button:last-of-type {
margin: 0; margin: 0;