Skip to content

Commit 52d16e1

Browse files
committed
style: pkg cmpt(BackToTop/Pagation/Screenfull)
1 parent b1d4154 commit 52d16e1

File tree

9 files changed

+14
-336
lines changed

9 files changed

+14
-336
lines changed

ā€Žcomponents/BackToTop.vueā€Ž

Lines changed: 0 additions & 110 deletions
This file was deleted.

ā€Žcomponents/Common.vueā€Ž

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
<slot></slot>
3333
<Valine :isComment="isComment"></Valine>
3434
</div>
35-
36-
<BackToTop></BackToTop>
3735
</div>
3836
</transition>
3937
</div>
@@ -46,11 +44,10 @@ import { resolveSidebarItems } from '../util'
4644
import Password from '@theme/components/Password'
4745
import Loading from '@theme/components/Loading'
4846
import Valine from '@theme/components/Valine/'
49-
import BackToTop from '@theme/components/BackToTop'
5047
import { setTimeout } from 'timers'
5148
5249
export default {
53-
components: { Sidebar, Navbar, Password, Valine, BackToTop, Loading },
50+
components: { Sidebar, Navbar, Password, Valine, Loading },
5451
5552
props: ['sidebar', 'isComment'],
5653

ā€Žcomponents/Navbar.vueā€Ž

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
} : {}">
2424

2525
<Theme v-if="hasThemes" />
26-
<ScreenFull />
26+
<Screenfull class="screenfull" />
2727
<AlgoliaSearchBox
2828
v-if="isAlgoliaSearch"
2929
:options="algolia"/>
@@ -39,10 +39,9 @@ import SearchBox from '@SearchBox'
3939
import SidebarButton from '@theme/components/SidebarButton.vue'
4040
import NavLinks from '@theme/components/NavLinks.vue'
4141
import Theme from '@theme/components/Theme'
42-
import ScreenFull from '@theme/components/ScreenFull'
4342
4443
export default {
45-
components: { SidebarButton, NavLinks, SearchBox, AlgoliaSearchBox, Theme, ScreenFull },
44+
components: { SidebarButton, NavLinks, SearchBox, AlgoliaSearchBox, Theme },
4645
4746
data () {
4847
return {
@@ -120,6 +119,8 @@ $navbar-horizontal-padding = 1.5rem
120119
.search-box
121120
flex: 0 0 auto
122121
vertical-align top
122+
.screenfull
123+
margin-right 1rem
123124
124125
@media (max-width: $MQMobile)
125126
.navbar

ā€Žcomponents/Pagation.vueā€Ž

Lines changed: 0 additions & 155 deletions
This file was deleted.

ā€Žcomponents/ScreenFull.vueā€Ž

Lines changed: 0 additions & 58 deletions
This file was deleted.

ā€Žindex.jsā€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ module.exports = (options, ctx) => ({
1818
},
1919

2020
plugins: [
21+
'@vuepress-reco/vuepress-plugin-back-to-top',
22+
'@vuepress-reco/vuepress-plugin-pagation',
23+
'@vuepress-reco/vuepress-plugin-screenfull',
2124
'@vuepress/active-header-links',
2225
['@vuepress/plugin-blog', {
2326
permalink: '/:regular'

0 commit comments

Comments
Ā (0)
⚔