增加回到顶部

This commit is contained in:
reco_luan 2019-04-10 15:23:11 +08:00
parent 202bf1b84e
commit 443e4ce90f
3 changed files with 5 additions and 3 deletions

View File

@ -26,6 +26,7 @@
</Sidebar>
<slot></slot>
<Valine :isComment="isComment"></Valine>
<BackToTop></BackToTop>
</div>
</div>
</template>
@ -36,9 +37,10 @@ import Sidebar from '@theme/components/Sidebar.vue'
import { resolveSidebarItems } from '../util'
import Password from '@theme/components/Password'
import Valine from '@theme/components/Valine/'
import BackToTop from "@theme/components/BackToTop"
export default {
components: { Sidebar, Navbar, Password, Valine },
components: { Sidebar, Navbar, Password, Valine, BackToTop },
props: ['sidebar', 'isComment'],

View File

@ -36,7 +36,7 @@ import Background from '@theme/components/Background'
export default {
components: {Background},
name: 'BackToTop',
name: 'Password',
data() {
return {
warningText: 'Konck! Knock!',

View File

@ -1,6 +1,6 @@
{
"name": "vuepress-theme-reco",
"version": "1.0.0-alpha.9",
"version": "1.0.0-alpha.10",
"description": "this is a vuepress theme",
"main": "index.js",
"scripts": {