You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.3 KiB
1 lines
2.3 KiB
<view class="tki-tree data-v-a8274bb8"><view data-event-opts="{{[['tap',[['_cancel',['$event']]]]]}}" class="{{['tki-tree-mask data-v-a8274bb8',(showTree)?'show':'']}}" bindtap="__e"></view><view class="{{['tki-tree-cnt data-v-a8274bb8',(showTree)?'show':'']}}"><view class="tki-tree-bar data-v-a8274bb8"><view class="tki-tree-bar-cancel data-v-a8274bb8" style="{{'color:'+(cancelColor)+';'}}" hover-class="hover-c" data-event-opts="{{[['tap',[['_cancel',['$event']]]]]}}" bindtap="__e">取消</view><view class="tki-tree-bar-title data-v-a8274bb8" style="{{'color:'+(titleColor)+';'}}">{{title}}</view><view class="tki-tree-bar-confirm data-v-a8274bb8" style="{{'color:'+(confirmColor)+';'}}" hover-class="hover-c" data-event-opts="{{[['tap',[['_confirm',['$event']]]]]}}" bindtap="__e">确定</view></view><view class="tki-tree-view data-v-a8274bb8"><scroll-view class="tki-tree-view-sc data-v-a8274bb8" scroll-y="{{true}}"><block wx:for="{{treeList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-a8274bb8"><view class="{{['tki-tree-item data-v-a8274bb8',(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-a8274bb8" catchtap="__e"><image class="tki-tree-icon data-v-a8274bb8" src="{{item.lastRank?lastIcon:item.showChild?currentIcon:defaultIcon}}"></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-a8274bb8" catchtap="__e"><block wx:if="{{item.checked}}"><view class="{{['tki-tree-check-yes data-v-a8274bb8',(!multiple)?'radio':'']}}" style="{{'border-color:'+(confirmColor)+';'}}"><view class="tki-tree-check-yes-b data-v-a8274bb8" style="{{'background-color:'+(confirmColor)+';'}}"></view></view></block><block wx:else><view class="{{['tki-tree-check-no data-v-a8274bb8',(!multiple)?'radio':'']}}" style="{{'border-color:'+(confirmColor)+';'}}"></view></block></view></block></view></block></block></scroll-view></view></view></view> |