File tree 6 files changed +10
-10
lines changed
6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 4
4
- [ Custom navbar] ( /custom-navbar )
5
5
- [ Cover page] ( /cover )
6
6
7
- - Configuration
7
+ - Customization
8
8
- [ Configuration] ( /configuration )
9
9
- [ Themes] ( /themes )
10
10
- [ Using plugins] ( /plugins )
Original file line number Diff line number Diff line change 1
1
# Cover
2
2
3
- Activate the cover feature by setting ` coverpage ` . The detail in [ Configuration#coverpage] ( zh-cn/ configuration#coverpage) .
3
+ Activate the cover feature by setting ` coverpage ` . The detail in [ Configuration#coverpage] ( configuration#coverpage ) .
4
4
5
5
## Basic usage
6
6
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Load the Vue in `index.html`.
13
13
```
14
14
15
15
Then you can immediately write Vue code at Markdown file.
16
- ` new Vue({ el: 'main' }) ` script is executed by default to create instance.
16
+ ` new Vue({ el: '# main' }) ` script is executed by default to create instance.
17
17
18
18
* README.md*
19
19
@@ -44,7 +44,7 @@ You can manually initialize a Vue instance.
44
44
45
45
<script>
46
46
new Vue({
47
- el: 'main',
47
+ el: '# main',
48
48
data: { msg: 'Vue' }
49
49
})
50
50
</script>
Original file line number Diff line number Diff line change 4
4
- [ 定制导航栏] ( zh-cn/custom-navbar )
5
5
- [ 封面] ( zh-cn/cover )
6
6
7
- - 配置
7
+ - 定制化
8
8
- [ 配置项] ( zh-cn/configuration )
9
9
- [ 主题] ( zh-cn/themes )
10
10
- [ 使用插件] ( zh-cn/plugins )
Original file line number Diff line number Diff line change 12
12
<script src =" //unpkg.com/docsify" ></script >
13
13
```
14
14
15
- 接着就可以愉快地在 Markdown 里写 Vue 了。默认会执行 ` new Vue({ el: 'main' }) ` 创建示例。
15
+ 接着就可以愉快地在 Markdown 里写 Vue 了。默认会执行 ` new Vue({ el: '# main' }) ` 创建示例。
16
16
17
17
* README.md*
18
18
43
43
44
44
<script>
45
45
new Vue({
46
- el: 'main',
46
+ el: '# main',
47
47
data: { msg: 'Vue' }
48
48
})
49
49
</script>
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ function renderMain (html) {
28
28
// execute script
29
29
this . config . executeScript && executeScript ( )
30
30
31
- if ( ! this . config . executeScript
32
- && typeof window . Vue !== 'undefined'
33
- && ! executeScript ( ) ) {
31
+ if ( ! this . config . executeScript &&
32
+ typeof window . Vue !== 'undefined' &&
33
+ ! executeScript ( ) ) {
34
34
window . __EXECUTE_RESULT__ = new window . Vue ( ) . $mount ( '#main' )
35
35
}
36
36
You can’t perform that action at this time.
0 commit comments