crm_second_opening_mini/components/tki-tree/tki-tree.wxml

1 line
2.3 KiB
Plaintext

<view class="tki-tree data-v-0ae35b7f"><view data-event-opts="{{[['tap',[['_cancel',['$event']]]]]}}" class="{{['tki-tree-mask','data-v-0ae35b7f',(showTree)?'show':'']}}" bindtap="__e"></view><view class="{{['tki-tree-cnt','data-v-0ae35b7f',(showTree)?'show':'']}}"><view class="tki-tree-bar data-v-0ae35b7f" style="height:100rpx;line-height:100rpx;"><view class="tki-tree-bar-cancel data-v-0ae35b7f" style="{{'color:'+(cancelColor)+';'}}" hover-class="hover-c" data-event-opts="{{[['tap',[['_cancel',['$event']]]]]}}" bindtap="__e">取消</view><view class="tki-tree-bar-title data-v-0ae35b7f" style="{{'color:'+(titleColor)+';'}}">{{title}}</view><view class="tki-tree-bar-confirm data-v-0ae35b7f" style="{{'color:'+(confirmColor)+';'}}" hover-class="hover-c" data-event-opts="{{[['tap',[['_confirm',['$event']]]]]}}" bindtap="__e">确定</view></view><view class="tki-tree-view data-v-0ae35b7f"><scroll-view class="tki-tree-view-sc data-v-0ae35b7f" scroll-y="{{true}}"><block wx:for="{{treeList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-0ae35b7f"><view class="{{['tki-tree-item','data-v-0ae35b7f',(border===true)?'border':'',(item.show)?'show':'',(item.lastRank)?'last':'',(item.showChild)?'showchild':'',(item.open)?'open':'']}}" style="{{'padding-left:'+(item.rank*15+'px')+';'+('z-index:'+(item.rank*-1+50)+';')}}"><view data-event-opts="{{[['tap',[['_treeItemTap',['$0',index],[[['treeList','',index]]]]]]]}}" class="tki-tree-label data-v-0ae35b7f" catchtap="__e"><image class="tki-tree-icon data-v-0ae35b7f" src="{{item.lastRank?lastIcon:item.showChild?currentIcon:defaultIcon}}" mode="scaleToFill"></image>{{''+item.name+''}}</view><block wx:if="{{selectParent?true:item.lastRank}}"><view data-event-opts="{{[['tap',[['_treeItemSelect',['$0',index],[[['treeList','',index]]]]]]]}}" class="tki-tree-check data-v-0ae35b7f" catchtap="__e"><block wx:if="{{item.checked}}"><view class="{{['tki-tree-check-yes','data-v-0ae35b7f',(!multiple)?'radio':'']}}" style="{{'border-color:'+(confirmColor)+';'}}"><view class="tki-tree-check-yes-b data-v-0ae35b7f" style="{{'background-color:'+(confirmColor)+';'}}"></view></view></block><block wx:else><view class="{{['tki-tree-check-no','data-v-0ae35b7f',(!multiple)?'radio':'']}}" style="{{'border-color:'+(confirmColor)+';'}}"></view></block></view></block></view></block></block></scroll-view></view></view></view>