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.1 KiB

<view hidden="{{!(node.visible)}}" class="{{['ly-tree-node vue-ref',(expanded)?'is-expanded':'',(!node.visible)?'is-hidden':'',(!node.disabled&&node.checked)?'is-checked':'']}}" name="LyTreeNode" role="treeitem" data-ref="node" data-event-opts="{{[['tap',[['handleClick',['$event']]]]]}}" catchtap="__e"><view class="{{['ly-tree-node__content',(node.isCurrent&&highlightCurrent)?'is-current':'']}}" style="{{'padding-left:'+((node.level-1)*indent+'px')+';'}}"><text data-event-opts="{{[['tap',[['handleExpandIconClick',['$event']]]]]}}" class="{{[[(node.isLeaf)?'is-leaf':'',(!node.isLeaf&&node.expanded)?'expanded':''],'ly-tree-node__expand-icon',iconClass?iconClass:'ly-iconfont ly-icon-caret-right']}}" catchtap="__e"></text><block wx:if="{{checkboxVisible||radioVisible}}"><ly-checkbox vue-id="333e40c9-1" type="{{checkboxVisible?'checkbox':'radio'}}" checked="{{node.checked}}" indeterminate="{{node.indeterminate}}" disabled="{{!!node.disabled}}" data-event-opts="{{[['^check',[['handleCheckChange',[!node.checked]]]]]}}" bind:check="__e" bind:__l="__l"></ly-checkbox></block><block wx:if="{{node.loading}}"><text class="ly-tree-node__loading-icon ly-iconfont ly-icon-loading"></text></block><block wx:if="{{node.icon&&node.icon.length>0}}"><block wx:if="{{$root.g0!==-1}}"><image class="ly-tree-node__icon" mode="widthFix" src="{{node.icon}}" data-event-opts="{{[['error',[['handleImageError',['$event']]]]]}}" binderror="__e"></image></block><block wx:else><text class="{{['ly-tree-node__icon',node.icon]}}"></text></block></block><view class="ly-tree-node__label df">{{''+node.label+''}}</view></view><block wx:if="{{!renderAfterExpand||childNodeRendered}}"><view hidden="{{!(expanded)}}" class="ly-tree-node__children" role="group"><block wx:for="{{$root.l0}}" wx:for-item="cNodeId" wx:for-index="__i0__" wx:key="m0"><ly-tree-node vue-id="{{'333e40c9-2-'+__i0__}}" nodeId="{{cNodeId.$orig}}" render-after-expand="{{renderAfterExpand}}" show-checkbox="{{showCheckbox}}" show-radio="{{showRadio}}" check-only-leaf="{{checkOnlyLeaf}}" indent="{{indent}}" icon-class="{{iconClass}}" data-com-type="wx" bind:__l="__l"></ly-tree-node></block></view></block></view>