码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • Vant Weapp的Slider组件自定义button


    js部分:

    1. "value" range @drag="priceChange" @drag-end="sliderDragEnd" use-button-slot max="1000" min="0" step="10">
    2. <view class="custom-button" slot="left-button">
    3. <view :class="dragActiveL?'custom-popover dragActive':'custom-popover'">
    4. {{ priceMin }}
    5. <view class="arrow-down">view>
    6. view>
    7. view>
    8. <view class="custom-button" slot="right-button">
    9. <view :class="dragActiveR?'custom-popover dragActive':'custom-popover'">
    10. {{ priceMax }}
    11. <view class="arrow-down">view>
    12. view>
    13. view>

     css部分:

    1. .custom-button {
    2. width: 26px;
    3. color: #fff;
    4. font-size: 10px;
    5. line-height: 18px;
    6. text-align: center;
    7. background-color: blue;
    8. border-radius: 100px;
    9. }
    10. .custom-popover {
    11. display: none;
    12. position: absolute;
    13. background: rgba(0, 0, 0,0.9);
    14. border: 1px solid rgba(0, 0, 0, 0.9);
    15. padding: 5px;
    16. border-radius: 5px;
    17. box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    18. text-align: center;
    19. z-index: 9999;
    20. top: -40px;
    21. left: 50%;
    22. transform: translateX(-50%);
    23. min-width: 40px;
    24. font-size: 14px;
    25. color: #fff;
    26. }
    27. .dragActive{
    28. display: block !important;
    29. }
    30. .arrow-down {
    31. width: 0;
    32. height: 0;
    33. border-left: 6px solid transparent;
    34. border-right: 6px solid transparent;
    35. border-top: 6px solid black;
    36. position: absolute;
    37. bottom: -6px;
    38. left: 50%;
    39. transform: translateX(-50%);
    40. }
    41. .custom-button{
    42. position: relative;
    43. width: 26px !important;
    44. height: 26px !important;
    45. border-radius: 50% !important;
    46. background-color: #fff !important;
    47. box-shadow: 0 4px 8px 0 #dddddd, 0 6px 20px 0 #dddddd;
    48. }

  • 相关阅读:
    LVS + Keepalived群集
    MySQL如果实现隔离级别-MVCC
    CentOS8安装Geant4笔记(一):Geant4介绍、编译和安装
    基于 Text-CNN 的情感分析(文本分类)----概念与应用
    2171. 拿出最少数目的魔法豆-快速排序+前缀和
    图书管理系统
    20220807 leetcodez周赛
    K - Kingdom‘s Power 贪心,E-奇环_牛客练习赛106 二分图 鸽笼原理,F-座位_概率期望,G-交换_dp​​​​​​
    图解垃圾回收器运作机制
    【二叉树】最大二叉树
  • 原文地址:https://blog.csdn.net/VVVVV16/article/details/133943946
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号