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
8a61b9fe
Commit
8a61b9fe
authored
May 30, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slidebar eslint报错优化
parent
bb5520a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
ruoyi-ui/src/assets/styles/element-ui.scss
ruoyi-ui/src/assets/styles/element-ui.scss
+1
-1
ruoyi-ui/src/layout/components/Sidebar/Link.vue
ruoyi-ui/src/layout/components/Sidebar/Link.vue
+16
-9
No files found.
ruoyi-ui/src/assets/styles/element-ui.scss
View file @
8a61b9fe
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
.fixed-width
{
.fixed-width
{
.el-button--mini
{
.el-button--mini
{
padding
:
7px
10px
;
padding
:
7px
10px
;
min-
width
:
60px
;
width
:
60px
;
}
}
}
}
...
...
ruoyi-ui/src/layout/components/Sidebar/Link.vue
View file @
8a61b9fe
<
template
>
<
template
>
<!-- eslint-disable vue/require-component-is -->
<component
:is=
"type"
v-bind=
"linkProps(to)"
>
<component
v-bind=
"linkProps(to)"
>
<slot
/>
<slot
/>
</component>
</component>
</
template
>
</
template
>
...
@@ -16,19 +14,28 @@ export default {
...
@@ -16,19 +14,28 @@ export default {
required
:
true
required
:
true
}
}
},
},
computed
:
{
isExternal
()
{
return
isExternal
(
this
.
to
)
},
type
()
{
if
(
this
.
isExternal
)
{
return
'
a
'
}
return
'
router-link
'
}
},
methods
:
{
methods
:
{
linkProps
(
url
)
{
linkProps
(
to
)
{
if
(
isExternal
(
url
)
)
{
if
(
this
.
isExternal
)
{
return
{
return
{
is
:
'
a
'
,
href
:
to
,
href
:
url
,
target
:
'
_blank
'
,
target
:
'
_blank
'
,
rel
:
'
noopener
'
rel
:
'
noopener
'
}
}
}
}
return
{
return
{
is
:
'
router-link
'
,
to
:
to
to
:
url
}
}
}
}
}
}
...
...
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