mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-16 16:55:53 +10:00
20 lines
369 B
JavaScript
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
|
|
})
|
|
}
|
|
}
|