Skip to content

Commit edcaabd

Browse files
meteorlxyulivz
authored andcommitted
chore: allow class and style merging for content (#430)
1 parent 4f8370b commit edcaabd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/app/Content.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ export default {
1010
}
1111
},
1212

13-
render (h, { parent, props }) {
13+
render (h, { parent, props, data }) {
1414
return h(pathToComponentName(parent.$page.path), {
15-
class: props.custom ? 'custom' : ''
15+
class: [props.custom ? 'custom' : '', data.class, data.staticClass],
16+
style: data.style
1617
})
1718
}
1819
}

0 commit comments

Comments
 (0)