project init & fix ui
This commit is contained in:
25
miniprogram_npm/tdesign-miniprogram/indexes/indexes.wxml
Normal file
25
miniprogram_npm/tdesign-miniprogram/indexes/indexes.wxml
Normal file
@@ -0,0 +1,25 @@
|
||||
<wxs src="../common/utils.wxs" module="_" />
|
||||
|
||||
<view style="{{ customStyle }}" class="{{classPrefix}} {{prefix}}-class">
|
||||
<view
|
||||
class="{{classPrefix}}__sidebar {{prefix}}-class-sidebar"
|
||||
id="id-{{classPrefix}}__bar"
|
||||
catch:touchmove="onTouchMove"
|
||||
catch:touchcancel="onTouchCancel"
|
||||
catch:touchend="onTouchEnd"
|
||||
>
|
||||
<view
|
||||
class="{{_.cls(classPrefix + '__sidebar-item', [['active', activeAnchor === item]])}} {{prefix}}-class-sidebar-item"
|
||||
wx:for="{{ _indexList }}"
|
||||
wx:key="index"
|
||||
bind:tap="onClick"
|
||||
data-index="{{index}}"
|
||||
>
|
||||
<view aria-role="button" aria-label="{{ activeAnchor === item ? '已选中' + item : ''}}"> {{ item }} </view>
|
||||
<view class="{{classPrefix}}__sidebar-tips" wx:if="{{ showTips && activeAnchor === item }}">
|
||||
{{ activeAnchor }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<slot />
|
||||
</view>
|
||||
Reference in New Issue
Block a user