Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
c2010740
Commit
c2010740
authored
Oct 13, 2019
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: page selector scroll
parent
73c89dfe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
5 deletions
+29
-5
page-selector.vue
client/components/common/page-selector.vue
+29
-5
No files found.
client/components/common/page-selector.vue
View file @
c2010740
...
...
@@ -18,13 +18,15 @@
:width='2'
v-show='searchLoading'
)
.d-flex
(style='min-height:400px;')
.d-flex
v-flex.grey(xs5, :class='darkMode ? `darken-4` : `lighten-3`')
v-toolbar(color='grey darken-3', dark, dense, flat)
.body-2 Virtual Folders
v-spacer
v-btn(icon, tile, href='https://docs.requarks.io/guide/pages#folders', target='_blank')
v-icon mdi-help-box
div(style='height:400px;')
vue-scroll(:ops='scrollStyle')
v-treeview(
:active.sync='currentNode'
:open.sync='openNodes'
...
...
@@ -45,7 +47,9 @@
v-spacer
v-btn(icon, tile, disabled): v-icon mdi-content-save-move-outline
v-btn(icon, tile, disabled): v-icon mdi-trash-can-outline
v-list.py-0(dense, v-if='currentPages.length > 0')
div(v-if='currentPages.length > 0', style='height:400px;')
vue-scroll(:ops='scrollStyle')
v-list.py-0(dense)
v-list-item-group(
v-model='currentPage'
color='primary'
...
...
@@ -134,14 +138,34 @@ export default {
currentPage
:
null
,
currentNode
:
[
0
],
openNodes
:
[
0
],
tree
:
[{
tree
:
[
{
id
:
0
,
title
:
'/ (root'
,
children
:
[]
}],
}
],
pages
:
[],
all
:
[],
namespaces
:
siteLangs
.
length
?
siteLangs
.
map
(
ns
=>
ns
.
code
)
:
[
siteConfig
.
lang
]
namespaces
:
siteLangs
.
length
?
siteLangs
.
map
(
ns
=>
ns
.
code
)
:
[
siteConfig
.
lang
],
scrollStyle
:
{
vuescroll
:
{},
scrollPanel
:
{
initialScrollX
:
0.01
,
// fix scrollbar not disappearing on load
scrollingX
:
false
,
speed
:
50
},
rail
:
{
gutterOfEnds
:
'2px'
},
bar
:
{
onlyShowBarOnScroll
:
false
,
background
:
'#999'
,
hoverStyle
:
{
background
:
'#64B5F6'
}
}
}
}
},
computed
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment