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

.tab {
  width: 21.33%;
  box-sizing: border-box;
  text-align: center;
  background: #F9F7F7;
}
.tab ::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  color: transparent;
}
.view {
  width: 78.67%;
  height: 100%;
  position: relative;
  background: #F9F7F7;
}

.tab-item {
  width: 100%;
  height: 120rpx;
  line-height: 120rpx;
  font-size: 26rpx;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #666666;
  box-sizing: border-box;
  padding: 0 10rpx;
  transition: all .5s;
  background: #F2EFEF;
}

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

.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;
  }
}

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

}