TabView.wxss 1.29 KB
/* components/tabView/tabView.wxss */
.tab-box {
  display: flex;
}

.tab {
  width: 24%;
  box-sizing: border-box;
  text-align: center;
  background: #f7f8fa;
  position: relative;
  z-index: 3;
}

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

.tab-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 116rpx;
  font-size: 24rpx;
  color: #707071;
  box-sizing: border-box;
  padding: 0 14rpx;
  transition: all .5s;
  background-color:  #f7f8fa;
  position: relative;
}



.tab-item .text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active {
  font-weight: 500;
  background: #fff;
  position: sticky;
  top: 0;
  color: #2D2D2E;
}

.active::after {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 6rpx;
  height: 40rpx;
  border-radius: 0 596rpx 596rpx 0;
  background: #2C66F7;
  content: '';
}

@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%;

}