mirror of https://github.com/ElemeFE/element
Tabs: add focus style (#9441)
parent
e56ae9ab5a
commit
f9ad3f117c
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue