Skip to content

Commit 3a73e6d

Browse files
author
sqrtthree
committed
fix: Fix typos
enhanceMode => enhancedMode
1 parent 0a51ff5 commit 3a73e6d

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

components/Section/index.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,17 @@ export default {
2727
type: Boolean,
2828
default: true,
2929
},
30+
enhancedMode: {
31+
type: Boolean,
32+
default: true,
33+
},
3034
},
3135
computed: {
3236
isHomepage() {
3337
return this.$page.frontmatter.home
3438
},
3539
classes() {
36-
const { theme, center, enhanceMode } = this
40+
const { theme, center } = this
3741
3842
return [
3943
'section',
@@ -45,7 +49,7 @@ export default {
4549
},
4650
},
4751
mounted() {
48-
if (this.enhanceMode) {
52+
if (this.enhanceMode || this.enhancedMode) {
4953
this.enhance()
5054
}
5155
},

docs/1-configurations/1-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ The `Section` component is a special layout form, mainly used in [Homepage Layou
209209
| :---------: | :-----: | :------------------------------------------: | :------: |
210210
| theme | String | Set the theme `dark \| light` | `"dark"` |
211211
| center | Boolean | The specify which way that content is aligned | `true` |
212-
| enhanceMode | Boolean | Whether to enable enhanced mode | `true` |
212+
| enhancedMode | Boolean | Whether to enable enhanced mode | `true` |
213213

214214
::: tip Enhanced mode
215215
Enhanced mode means that the `Section` component breaks through the limit of the parent element width and achieves the same effect as the width of the browser window.

docs/zh/1-configurations/1-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ curl -X GET https://api.github.com/users/sqrthree
208208
| :---------: | :-----: | :--------------------------------: | :------: |
209209
| theme | String | 主题颜色,可选值有 `dark | light` | `"dark"` |
210210
| center | Boolean | 内容是否居中 | `true` |
211-
| enhanceMode | Boolean | 是否启用增强模式 | `true` |
211+
| enhancedMode | Boolean | 是否启用增强模式 | `true` |
212212

213213
::: tip 增强模式
214214
增强模式是指该 `Section` 组件突破父级元素宽度限制,达到和浏览器窗口宽度一致的效果。

0 commit comments

Comments
 (0)