Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
bb5520a7
Commit
bb5520a7
authored
May 30, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
当tags-view滚动关闭右键菜单
parent
1e2058bd
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
281 additions
and
287 deletions
+281
-287
ruoyi-ui/src/assets/styles/element-ui.scss
ruoyi-ui/src/assets/styles/element-ui.scss
+1
-1
ruoyi-ui/src/layout/components/TagsView/ScrollPane.vue
ruoyi-ui/src/layout/components/TagsView/ScrollPane.vue
+9
-0
ruoyi-ui/src/layout/components/TagsView/index.vue
ruoyi-ui/src/layout/components/TagsView/index.vue
+271
-286
No files found.
ruoyi-ui/src/assets/styles/element-ui.scss
View file @
bb5520a7
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
.fixed-width
{
.fixed-width
{
.el-button--mini
{
.el-button--mini
{
padding
:
7px
10px
;
padding
:
7px
10px
;
width
:
60px
;
min-
width
:
60px
;
}
}
}
}
...
...
ruoyi-ui/src/layout/components/TagsView/ScrollPane.vue
View file @
bb5520a7
...
@@ -19,12 +19,21 @@ export default {
...
@@ -19,12 +19,21 @@ export default {
return
this
.
$refs
.
scrollContainer
.
$refs
.
wrap
return
this
.
$refs
.
scrollContainer
.
$refs
.
wrap
}
}
},
},
mounted
()
{
this
.
scrollWrapper
.
addEventListener
(
'
scroll
'
,
this
.
emitScroll
,
true
)
},
beforeDestroy
()
{
this
.
scrollWrapper
.
removeEventListener
(
'
scroll
'
,
this
.
emitScroll
)
},
methods
:
{
methods
:
{
handleScroll
(
e
)
{
handleScroll
(
e
)
{
const
eventDelta
=
e
.
wheelDelta
||
-
e
.
deltaY
*
40
const
eventDelta
=
e
.
wheelDelta
||
-
e
.
deltaY
*
40
const
$scrollWrapper
=
this
.
scrollWrapper
const
$scrollWrapper
=
this
.
scrollWrapper
$scrollWrapper
.
scrollLeft
=
$scrollWrapper
.
scrollLeft
+
eventDelta
/
4
$scrollWrapper
.
scrollLeft
=
$scrollWrapper
.
scrollLeft
+
eventDelta
/
4
},
},
emitScroll
()
{
this
.
$emit
(
'
scroll
'
)
},
moveToTarget
(
currentTag
)
{
moveToTarget
(
currentTag
)
{
const
$container
=
this
.
$refs
.
scrollContainer
.
$el
const
$container
=
this
.
$refs
.
scrollContainer
.
$el
const
$containerWidth
=
$container
.
offsetWidth
const
$containerWidth
=
$container
.
offsetWidth
...
...
ruoyi-ui/src/layout/components/TagsView/index.vue
View file @
bb5520a7
This diff is collapsed.
Click to expand it.
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