We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd2e1c3 commit f22ad6eCopy full SHA for f22ad6e
1 file changed
docs/quickstart.md
@@ -52,13 +52,13 @@ Was blind, but now I see.
52
```
53
54
<script setup>
55
-import { ref, useTemplateRef} from 'vue'
+import { ref, useTemplateRef, watch } from 'vue'
56
57
import { transpose, keys } from "@hrgui/chord-charts";
58
59
60
const count = ref(0)
61
-const originalKey = 'D';
+const previousKey = ref('D')
62
const currentKey = ref('D')
63
64
const text = ref(`
@@ -72,8 +72,10 @@ const text = ref(`
72
Was blind, but now I see.
73
`);
74
75
-function transposeChordChart() {
76
- text.value = transpose(text.value, originalKey, currentKey.value);
+
+function transposeChordChart(e) {
77
+ text.value = transpose(text.value, previousKey.value, e.target.value);
78
+ previousKey.value = e.target.value;
79
}
80
81
</script>
0 commit comments