feat: use v-html for node labels

* add span tag as wrapper for node labels

feat(examples):

* Add overview example
This commit is contained in:
Braks
2021-10-21 15:29:17 +02:00
parent a9f187697a
commit 636eeff9fe
8 changed files with 231 additions and 11 deletions
+1
View File
@@ -2,6 +2,7 @@ import { Ref } from 'vue'
import { onKeyDown, onKeyPressed, onKeyUp } from '@vueuse/core'
import { KeyCode } from '~/types'
// todo cancel keypress for input dom nodes
export default (keyCode: KeyCode, onChange?: (keyPressed: boolean) => void): Ref<boolean> => {
const isPressed = controlledRef<boolean>(false, {
onBeforeChange(val, oldVal) {