提交初始版本,使用vant ui库
This commit is contained in:
22
miniprogram_npm/@vant/weapp/index-bar/index.wxml
Normal file
22
miniprogram_npm/@vant/weapp/index-bar/index.wxml
Normal file
@@ -0,0 +1,22 @@
|
||||
<view class="van-index-bar">
|
||||
<slot />
|
||||
|
||||
<view
|
||||
wx:if="{{ showSidebar }}"
|
||||
class="van-index-bar__sidebar"
|
||||
catch:tap="onClick"
|
||||
catch:touchmove="onTouchMove"
|
||||
catch:touchend="onTouchStop"
|
||||
catch:touchcancel="onTouchStop"
|
||||
>
|
||||
<view
|
||||
wx:for="{{ indexList }}"
|
||||
wx:key="index"
|
||||
class="van-index-bar__index"
|
||||
style="z-index: {{ zIndex + 1 }}; color: {{ activeAnchorIndex === index ? highlightColor : '' }}"
|
||||
data-index="{{ index }}"
|
||||
>
|
||||
{{ item }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
Reference in New Issue
Block a user