Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
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
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
f9ad3f11
Commit
f9ad3f11
authored
Jan 26, 2018
by
Hi-Linlin
Committed by
杨奕
Jan 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tabs: add focus style (#9441)
parent
e56ae9ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
packages/tabs/src/tab-nav.vue
packages/tabs/src/tab-nav.vue
+1
-0
packages/theme-chalk/src/tabs.scss
packages/theme-chalk/src/tabs.scss
+5
-0
No files found.
packages/tabs/src/tab-nav.vue
View file @
f9ad3f11
...
@@ -146,6 +146,7 @@
...
@@ -146,6 +146,7 @@
}
}
tabList
[
nextIndex
].
focus
();
// 改变焦点元素
tabList
[
nextIndex
].
focus
();
// 改变焦点元素
tabList
[
nextIndex
].
click
();
// 选中下一个tab
tabList
[
nextIndex
].
click
();
// 选中下一个tab
this
.
setFocus
();
},
},
setFocus
()
{
setFocus
()
{
this
.
isFocus
=
true
;
this
.
isFocus
=
true
;
...
...
packages/theme-chalk/src/tabs.scss
View file @
f9ad3f11
...
@@ -99,6 +99,11 @@
...
@@ -99,6 +99,11 @@
outline
:
none
;
outline
:
none
;
}
}
&
:focus
.is-active.is-focus
:not
(
:active
)
{
box-shadow
:
0
0
2px
2px
#409eff
inset
;
border-radius
:
3px
;
}
&
.el-icon-close
{
&
.el-icon-close
{
border-radius
:
50%
;
border-radius
:
50%
;
text-align
:
center
;
text-align
:
center
;
...
...
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