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.
 
 
 

2 lines
4.0 KiB

<wxs src="./handler.wxs" module="handler"></wxs>
<view style="display:inherit;white-space:inherit;word-break:normal;"><block wx:for="{{nodes}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><block wx:if="{{handler.notContinue(item)}}"><block><block wx:if="{{item.name=='img'}}"><rich-text class="img" style="{{('text-indent:0;'+handler.getStyle(item.attrs.style,'inline-block'))}}" id="{{item.attrs.id}}" nodes="{{handler.setImgStyle(item,imgMode,imgLoad)}}" data-attrs="{{item.attrs}}" data-event-opts="{{[['tap',[['previewEvent',['$event']]]]]}}" bindtap="__e"></rich-text></block><block wx:else><block wx:if="{{item.type=='text'}}"><block><block wx:if="{{!item.decode}}"><text decode="{{true}}">{{item.text}}</text></block><block wx:else><rich-text style="display:inline-block;word-break:normal;" nodes="{{[item]}}"></rich-text></block></block></block><block wx:else><block wx:if="{{item.name=='br'}}"><text>\n</text></block><block wx:else><block wx:if="{{item.name=='video'}}"><block><block wx:if="{{item.lazyLoad&&!controls[item.attrs.id].play}}"><view class="{{['_video '+(item.attrs.class||'')]}}" style="{{(item.attrs.style||'')}}" id="{{item.attrs.id}}" data-event-opts="{{[['tap',[['_loadVideo',['$event']]]]]}}" bindtap="__e"></view></block><block wx:else><video class="{{[item.attrs.class]}}" style="{{(item.attrs.style||'')}}" src="{{controls[item.attrs.id]?item.attrs.source[controls[item.attrs.id].index]:item.attrs.src}}" id="{{item.attrs.id}}" loop="{{item.attrs.loop}}" controls="{{item.attrs.controls}}" autoplay="{{item.attrs.autoplay||controls[item.attrs.id]&&controls[item.attrs.id].play}}" unit-id="{{item.attrs['unit-id']}}" data-source="{{item.attrs.source}}" data-event-opts="{{[['play',[['playEvent',['$event']]]],['error',[['videoError',['$event']]]]]}}" muted="{{item.attrs.muted}}" bindplay="__e" binderror="__e"></video></block></block></block><block wx:else><block wx:if="{{item.name=='iframe'}}"><block><block wx:if="{{item.attrs.lbType=='vid'||item.attrs.lbtype=='vid'}}"><txv-video vue-id="{{'26db2430-1-'+index}}" vid="{{item.attrs.src}}" playerid="{{item.attrs.src}}" width="100%" height="100%" controls="{{true}}" autoplay="{{false}}" isHiddenStop="{{true}}" bind:__l="__l"></txv-video></block></block></block><block wx:else><block wx:if="{{item.name=='audio'}}"><audio class="{{[item.attrs.class]}}" style="{{(item.attrs.style||'')}}" src="{{controls[item.attrs.id]?item.attrs.source[controls[item.attrs.id].index]:item.attrs.src}}" id="{{item.attrs.id}}" loop="{{item.attrs.loop}}" controls="{{item.attrs.controls}}" poster="{{item.attrs.poster}}" name="{{item.attrs.name}}" author="{{item.attrs.author}}" data-source="{{item.attrs.source}}" data-event-opts="{{[['error',[['audioError',['$event']]]]]}}" binderror="__e"></audio></block><block wx:else><block wx:if="{{item.name=='a'}}"><view class="{{['_a '+(item.attrs.class||'')]}}" style="{{(item.attrs.style||'')}}" data-attrs="{{item.attrs}}" hover-class="navigator-hover" hover-start-time="{{25}}" hover-stay-time="{{300}}" data-event-opts="{{[['tap',[['tapEvent',['$event']]]]]}}" bindtap="__e"><trees vue-id="{{'26db2430-2-'+index}}" nodes="{{item.children}}" imgMode="{{imgMode}}" bind:__l="__l"></trees></view></block><block wx:else><block wx:if="{{item.name=='ad'}}"><ad class="{{[item.attrs.class||'']}}" style="{{(item.attrs.style||'')}}" unit-id="{{item.attrs['unit-id']}}" data-event-opts="{{[['error',[['adError',['$event']]]]]}}" binderror="__e"></ad></block><block wx:else><rich-text class="{{['__'+item.name]}}" style="{{('word-break:normal;'+handler.getStyle(item.attrs.style,'block'))}}" id="{{item.attrs.id}}" nodes="{{handler.setStyle(item)}}"></rich-text></block></block></block></block></block></block></block></block></block></block><block wx:else><trees class="{{[item.attrs.id+' _'+item.name+' '+(item.attrs.class||'')]}}" style="{{(item.attrs.style||'')}}" vue-id="{{'26db2430-3-'+index}}" nodes="{{item.children}}" imgMode="{{imgMode}}" loadVideo="{{loadVideo}}" bind:__l="__l"></trees></block></block></block></view>