mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-04 00:37:57 +08:00
22 lines
339 B
TypeScript
22 lines
339 B
TypeScript
import { defineComponent, h } from 'vue'
|
|
|
|
export const NodeViewContent = defineComponent({
|
|
name: 'NodeViewContent',
|
|
|
|
props: {
|
|
as: {
|
|
type: String,
|
|
default: 'div',
|
|
},
|
|
},
|
|
|
|
render() {
|
|
return h(this.as, {
|
|
style: {
|
|
whiteSpace: 'pre-wrap',
|
|
},
|
|
'data-node-view-content': '',
|
|
})
|
|
},
|
|
})
|