mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 17:43:49 +08:00

* fix: enforce type imports so that the bundler ignores types * chore: add changeset * fix: export types with export type keyword
18 lines
344 B
Vue
18 lines
344 B
Vue
<script setup lang="ts">
|
|
import { ref, watch } from 'vue'
|
|
|
|
import type { TNote } from './types.js'
|
|
|
|
const props = defineProps<{ note: TNote }>()
|
|
|
|
const modelValueProxy = ref('')
|
|
|
|
watch(props, () => (modelValueProxy.value = props.note?.content), {
|
|
immediate: true,
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<textarea v-model="modelValueProxy" />
|
|
</template>
|