Skip to content

Commit

Permalink
refactor($core): remove 'custom' prop from 'Content' component
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Oct 21, 2018
1 parent b7302a4 commit cfd0113
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions packages/@vuepress/core/lib/app/components/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ export default {
functional: true,

props: {
custom: {
type: Boolean,
default: true
},
pageKey: String,
slot: String
},
Expand All @@ -24,7 +20,7 @@ export default {
}

return h(pageKey, {
class: [props.custom ? 'custom' : '', data.class, data.staticClass],
class: [data.class, data.staticClass],
style: data.style,
slot: props.slot || 'default'
})
Expand Down
2 changes: 1 addition & 1 deletion packages/@vuepress/theme-default/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</div>
</div>

<Content custom/>
<Content class="custom"/>

<div
class="footer"
Expand Down
2 changes: 1 addition & 1 deletion packages/@vuepress/theme-default/components/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="page">
<slot name="top"/>

<Content :custom="false"/>
<Content/>

<div class="page-edit">
<div
Expand Down

0 comments on commit cfd0113

Please sign in to comment.