修复 tab 组件边框溢出问题
parent
b76424ba9b
commit
ecf9dce758
|
@ -8,6 +8,7 @@
|
||||||
- 修复Linux版开启托盘无法退出的问题
|
- 修复Linux版开启托盘无法退出的问题
|
||||||
- 修复某些情况下可能导致的音源输出问题
|
- 修复某些情况下可能导致的音源输出问题
|
||||||
- 修复某些情况下无法开始下载任务的问题
|
- 修复某些情况下无法开始下载任务的问题
|
||||||
|
- 修复 tab 组件边框溢出问题
|
||||||
|
|
||||||
### 更变
|
### 更变
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
div.scroll(:class="$style.tab")
|
div.scroll(:class="$style.tab")
|
||||||
//- div(:class="$style.content")
|
//- div(:class="$style.content")
|
||||||
ul
|
ul
|
||||||
li(v-for="item in list" :key="itemKey ? item[itemKey] : item" :class="value === (itemKey ? item[itemKey] : item) ? $style.active : ''")
|
li.ignore-to-rem(v-for="item in list" :key="itemKey ? item[itemKey] : item" :class="value === (itemKey ? item[itemKey] : item) ? $style.active : ''")
|
||||||
button(type="button"
|
button(type="button"
|
||||||
@click="handleClick(itemKey ? item[itemKey] : item)") {{ itemName ? item[itemName] : item }}
|
@click="handleClick(itemKey ? item[itemKey] : item)") {{ itemName ? item[itemName] : item }}
|
||||||
//- div(:class="$style.control")
|
//- div(:class="$style.control")
|
||||||
|
@ -60,30 +60,33 @@ export default {
|
||||||
li {
|
li {
|
||||||
position: relative;
|
position: relative;
|
||||||
flex: none;
|
flex: none;
|
||||||
margin-bottom: -2px;
|
|
||||||
border-top: 2px solid @color-tab-border-top;
|
border-top: 2px solid @color-tab-border-top;
|
||||||
border-left: 2px solid @color-tab-btn-background;
|
border-left: 2px solid @color-tab-btn-background;
|
||||||
border-right: 2px solid @color-tab-btn-background;
|
border-right: 2px solid @color-tab-btn-background;
|
||||||
// box-sizing: border-box;
|
// box-sizing: border-box;
|
||||||
transition: border-color @transition-theme;
|
transition: border-color @transition-theme;
|
||||||
margin-left: -2px;
|
|
||||||
|
|
||||||
&::after {
|
&:global(.ignore-to-rem) {
|
||||||
|
margin-left: -2px;
|
||||||
|
margin-bottom: -2px;
|
||||||
|
&:after, &:before {
|
||||||
|
height: 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
content: ' ';
|
content: ' ';
|
||||||
display: block;
|
display: block;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 2px;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
background-color: @color-tab-border-bottom;
|
background-color: @color-tab-border-bottom;
|
||||||
transition: width @transition-theme;
|
transition: width @transition-theme;
|
||||||
}
|
}
|
||||||
&::before {
|
&:before {
|
||||||
content: ' ';
|
content: ' ';
|
||||||
display: block;
|
display: block;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 2px;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|
Loading…
Reference in New Issue