Vant Weapp的Slider组件自定义button

Vant Weapp的Slider组件自定义button_第1张图片

js部分:

  
                                  
                                    
                                        {{ priceMin }}
                                        
                                    
                                  
                                  
                                    
                                        {{ priceMax }}
                                        
                                    
                                  
                            

 css部分:


.custom-button {
    width: 26px;
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    background-color: blue;
    border-radius: 100px;
}

.custom-popover {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0,0.9);
    border: 1px solid rgba(0, 0, 0, 0.9);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    text-align: center;
    z-index: 9999;
    top: -40px;
    left: 50%; 
    transform: translateX(-50%); 
    min-width: 40px; 
    font-size: 14px; 
    color: #fff; 
  }
  .dragActive{
    display: block !important;
 }
  .arrow-down {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid black; 
    position: absolute;
    bottom: -6px; 
    left: 50%;
    transform: translateX(-50%); 
    }
  .custom-button{
    position: relative;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    box-shadow: 0 4px 8px 0 #dddddd, 0 6px 20px 0 #dddddd;
}

你可能感兴趣的:(前端)