mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-09 05:16:23 +10:00
chore: allow class and style merging for content (#430)
This commit is contained in:
+3
-2
@@ -10,9 +10,10 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
render (h, { parent, props }) {
|
||||
render (h, { parent, props, data }) {
|
||||
return h(pathToComponentName(parent.$page.path), {
|
||||
class: props.custom ? 'custom' : ''
|
||||
class: [props.custom ? 'custom' : '', data.class, data.staticClass],
|
||||
style: data.style
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user