File tree 3 files changed +33
-2
lines changed
@vuepress/theme-default/components
3 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 3
3
<p class =" inner" >
4
4
<span v-if =" prev" class =" prev" >
5
5
←
6
- <router-link v-if =" prev" class =" prev" :to =" prev.path" >{{ prev.title || prev.path }}</router-link >
6
+ <a v-if =" prev.type === 'external'" class =" prev" :href =" prev.path" target =" _blank" rel =' noopener noreferrer' >{{ prev.title || prev.path }}<OutboundLink /></a >
7
+ <router-link v-else class =" prev" :to =" prev.path" >{{ prev.title || prev.path }}</router-link >
7
8
</span >
8
9
9
10
<span v-if =" next" class =" next" >
10
- <router-link v-if =" next" :to =" next.path" >{{ next.title || next.path }}</router-link >
11
+ <a v-if =" next.type === 'external'" :href =" next.path" target =" _blank" rel =' noopener noreferrer' >{{ next.title || next.path }}<OutboundLink /></a >
12
+ <router-link v-else :to =" next.path" >{{ next.title || next.path }}</router-link >
11
13
→
12
14
</span >
13
15
</p >
@@ -98,6 +100,7 @@ function flatten (items, res) {
98
100
}
99
101
}
100
102
</script >
103
+
101
104
<style lang="stylus">
102
105
@require '../styles/wrapper.styl'
103
106
Original file line number Diff line number Diff line change @@ -116,3 +116,17 @@ See: [Default Theme Config > Disable the Navbar](../theme/default-theme-config.m
116
116
- Default: ` undefined `
117
117
118
118
See: [ Default Theme Config > Sidebar] ( ../theme/default-theme-config.md#sidebar ) .
119
+
120
+ ### prev
121
+
122
+ - Type: ` boolean|string `
123
+ - Default: ` undefined `
124
+
125
+ See: [ Default Theme Config > Prev / Next Links] ( ../theme/default-theme-config.md#prev-next-links ) .
126
+
127
+ ### next
128
+
129
+ - Type: ` boolean|string `
130
+ - Default: ` undefined `
131
+
132
+ See: [ Default Theme Config > Prev / Next Links] ( ../theme/default-theme-config.md#prev-next-links ) .
Original file line number Diff line number Diff line change @@ -115,3 +115,17 @@ meta:
115
115
- 默认值: ` undefined `
116
116
117
117
参考: [ 默认值 Theme Config > Sidebar] ( ../theme/default-theme-config.md#侧边栏 ) .
118
+
119
+ ### prev
120
+
121
+ - 类型: ` boolean|string `
122
+ - 默认值: ` undefined `
123
+
124
+ 参考: [ 默认值 Theme Config > Prev / Next Links] ( ../theme/default-theme-config.md#上-下一篇链接 ) .
125
+
126
+ ### next
127
+
128
+ - 类型: ` boolean|string `
129
+ - 默认值: ` undefined `
130
+
131
+ 参考: [ 默认值 Theme Config > Prev / Next Links] ( ../theme/default-theme-config.md#上-下一篇链接 ) .
You can’t perform that action at this time.
0 commit comments