Skip to content

Commit bb6d154

Browse files
chore(docs): fix components examples not rendering
1 parent 9155d00 commit bb6d154

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

docs/components/main-docs.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import QuickLinks from '~/components/quick-links'
33
import Reload from '~/components/reload'
44
import Section from '~/components/section'
55
import { mergeData } from 'vue-functional-data-merge'
6-
import { bootstrapVersion, vueVersion } from '~/content'
76

87
// @vue/component
98
export default {
@@ -59,15 +58,8 @@ export default {
5958
const $quickLinks = h(QuickLinks)
6059

6160
// Body section
62-
const $bodySectionContent = h({
63-
delimiters: ['[[', ']]'], // change the delimiters to avoid conflicts with code examples
64-
data() {
65-
return {
66-
bootstrapVersion,
67-
vueVersion
68-
}
69-
},
70-
template: `<div>${body}</div>`
61+
const $bodySectionContent = h('div', {
62+
domProps: { innerHTML: body }
7163
})
7264

7365
const $bodySection = h(

0 commit comments

Comments
 (0)