Skip to content

Commit cfd0113

Browse files
committed
refactor($core): remove 'custom' prop from 'Content' component
1 parent b7302a4 commit cfd0113

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

packages/@vuepress/core/lib/app/components/Content.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ export default {
55
functional: true,
66

77
props: {
8-
custom: {
9-
type: Boolean,
10-
default: true
11-
},
128
pageKey: String,
139
slot: String
1410
},
@@ -24,7 +20,7 @@ export default {
2420
}
2521

2622
return h(pageKey, {
27-
class: [props.custom ? 'custom' : '', data.class, data.staticClass],
23+
class: [data.class, data.staticClass],
2824
style: data.style,
2925
slot: props.slot || 'default'
3026
})

packages/@vuepress/theme-default/components/Home.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</div>
3939
</div>
4040

41-
<Content custom/>
41+
<Content class="custom"/>
4242

4343
<div
4444
class="footer"

packages/@vuepress/theme-default/components/Page.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="page">
33
<slot name="top"/>
44

5-
<Content :custom="false"/>
5+
<Content/>
66

77
<div class="page-edit">
88
<div

0 commit comments

Comments
 (0)