mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-10 22:06:22 +10:00
19 lines
306 B
JavaScript
19 lines
306 B
JavaScript
import { pathToComponentName } from './util'
|
|
|
|
export default {
|
|
functional: true,
|
|
|
|
props: {
|
|
custom: {
|
|
type: Boolean,
|
|
default: true
|
|
}
|
|
},
|
|
|
|
render (h, { parent, props }) {
|
|
return h(pathToComponentName(parent.$page.path), {
|
|
class: props.custom ? 'custom' : ''
|
|
})
|
|
}
|
|
}
|