摘要:
功能是能够点击导航栏的字母快速对应到相应的标题栏,手指拖动时候也可以去绑定切换对应的导航栏字母 步骤: 1、给导航栏shortcut绑定@touchstart.stop.prevent="onShortcutTouchStart“还有touchmove和touchend,这里加上stop和preve 阅读全文
posted @ 2023-09-13 17:33
Ly021
阅读(15)
评论(0)
推荐(0)
摘要:
1、先在list-index中定义shortcut的dom,通过v-for循环去获取每个组的标题 <div class="shortcut"> <ul> <li v-for="(item, index) in shortcutList" :class="{'current': currentInde 阅读全文
posted @ 2023-09-13 10:29
Ly021
阅读(22)
评论(0)
推荐(0)

浙公网安备 33010602011771号