TabView.wxss 1.65 KB
/* components/tabView/tabView.wxss */
.tab-box{
  display: flex;
}
.tab {
  width: 21.33%;
  box-sizing: border-box;
  text-align: center;
  background: #F7F8FA ;
}
.tab-upgrade{
  background: #EFF0F2;
}

.view {
  width: 78.67%;
  height: 100%;
  position: relative;
  background: #fff;
}

.tab-item {
  width: 100%;
  height: 120rpx;
  line-height: 120rpx;
  font-size: 26rpx;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #707071;
  box-sizing: border-box;
  padding: 0 10rpx;
  transition: all .5s;
  background-color: #EFF0F2;
}
.tab-item-upgrade{
  height: 96rpx;
  line-height: 96rpx;
  font-weight: 400;
  font-size: 22rpx;
  color: #333333;
}

.active {
  font-weight: 500;
  background: #fff;
  position: sticky;
  top: 0;
  color: #2D2D2E;
}
.active::after{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8rpx;
  background-color: var(--btnColor);
  content: '';
  animation: show-border .5s forwards;
}@keyframes show-border{
  0%{ 
    height: 0;
  }
  100%{
    height: 60rpx;
  }
}
.changeColor{
  font-weight: 500;
  font-size: 22rpx;
  color: #0A0D14;
}
.changeColor::after{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6rpx;
  height: 40rpx;
  background-color: #2B69FF;
  content: '';
  animation: show-border .5s forwards;
  border-radius: 0 4rpx 4rpx 0;

}@keyframes show-border{
  0%{ 
    height: 0;
  }
  100%{
    height: 60rpx;
  }
}
.refresherEnabled {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

.content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

}