File tree Expand file tree Collapse file tree 3 files changed +33
-2
lines changed
@vuepress/theme-default/components Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 33 <p class =" inner" >
44 <span v-if =" prev" class =" prev" >
55 ←
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 >
78 </span >
89
910 <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 >
1113 →
1214 </span >
1315 </p >
@@ -98,6 +100,7 @@ function flatten (items, res) {
98100 }
99101}
100102 </script >
103+
101104<style lang="stylus">
102105@require '../styles/wrapper.styl'
103106
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
116116- Default: ` undefined `
117117
118118See: [ 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:
115115- 默认值: ` undefined `
116116
117117参考: [ 默认值 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