Files
vuepress/lib/app/Content.js
T

20 lines
369 B
JavaScript

import { pathToComponentName } from './util'
export default {
functional: true,
props: {
custom: {
type: Boolean,
default: true
}
},
render (h, { parent, props, data }) {
return h(pathToComponentName(parent.$page.path), {
class: [props.custom ? 'custom' : '', data.class, data.staticClass],
style: data.style
})
}
}