diff options
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-02-03 10:37:00 +0100 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-02-03 10:37:00 +0100 |
commit | 795c66f4c9b1c9140df1afaba5d62e136b19740a (patch) | |
tree | 9159625e02276e619b84e164b3d8088013f794e6 | |
parent | d337857d951c9bba6a19fb3fe5f3a7cf5cd9da67 (diff) | |
download | wordle-frontend-795c66f4c9b1c9140df1afaba5d62e136b19740a.tar.xz |
fetch @click
-rw-r--r-- | src/components/KeyboardKey.vue | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/KeyboardKey.vue b/src/components/KeyboardKey.vue index 213db96..1deb0ca 100644 --- a/src/components/KeyboardKey.vue +++ b/src/components/KeyboardKey.vue @@ -1,7 +1,13 @@ -<template>{{ letter }}</template> +<template> + <button @click="pressButton()">{{ letter }}</button> +</template> <script setup lang="ts"> -defineProps<{ +function pressButton() { + console.log("button " + props.letter + " pressed"); +} + +let props = defineProps<{ letter: string; }>(); </script> |