mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-23 17:07:49 +08:00
8c6751f0c6
* chore: add precommit hook for eslint fixes, fix linting issues * chore: add eslint import sort plugin
20 lines
311 B
TypeScript
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': '',
|
|
})
|
|
},
|
|
})
|