elk/components/common/RichContent.ts

12 lines
185 B
TypeScript
Raw Normal View History

2022-11-20 21:21:53 +00:00
export default defineComponent({
props: {
content: {
type: String,
required: true,
},
},
setup(props) {
return () => contentToVNode(props.content)
},
})