mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-19 05:37:51 +08:00
22 lines
334 B
TypeScript
22 lines
334 B
TypeScript
import { h, defineComponent } 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': '',
|
|
},
|
|
)
|
|
},
|
|
})
|