tiptap/packages/vue-3/src/NodeViewContent.ts
Dominik 8c6751f0c6
add precommit hook for linting and automatic eslint fixes + update eslint packages (#2862)
* chore: add precommit hook for eslint fixes, fix linting issues
* chore: add eslint import sort plugin
2022-06-08 14:10:25 +02:00

20 lines
311 B
TypeScript

import { defineComponent, h } from 'vue'
export const NodeViewContent = defineComponent({
props: {
as: {
type: String,
default: 'div',
},
},
render() {
return h(this.as, {
style: {
whiteSpace: 'pre-wrap',
},
'data-node-view-content': '',
})
},
})