体质测试
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.
tizhiceshi/assets/libs/towxml/renderTemplate.wxml

1 line
85 KiB

2 years ago
<template name="m0"><block wx:if="{{item.node === 'text'}}">{{item.text}}</block><view wx:if="{{item.node === 'element' && item.tag === 'view'}}" data-_el="{{item}}"bind:touchstart='__bind_touchstart'bind:touchmove='__bind_touchmove'bind:touchcancel='__bind_touchcancel'bind:touchend='__bind_touchend'bind:tap='__bind_tap'class="{{item.attr.class}}"width="{{item.attr['width']}}"height="{{item.attr['height']}}"data="{{item.attr['data']}}"id="{{item.attr['id']}}"style="{{item.attr['style']}}" ><block wx:for="{{item.child}}" wx:key="{{item}}"><template is="m1" data="{{item}}"/></block></view><video wx:if="{{item.node === 'element' && item.tag === 'video'}}" data-_el="{{item}}"bind:touchstart='__bind_touchstart'bind:touchmove='__bind_touchmove'bind:touchcancel='__bind_touchcancel'bind:touchend='__bind_touchend'bind:tap='__bind_tap'class="{{item.attr.class}}"width="{{item.attr['width']}}"height="{{item.attr['height']}}"data="{{item.attr['data']}}"id="{{item.attr['id']}}"style="{{item.attr['style']}}"poster="{{item.attr['poster']}}"src="{{item.attr['src']}}" ><block wx:for="{{item.child}}" wx:key="{{item}}"><template is="m1" data="{{item}}"/></block></video><text wx:if="{{item.node === 'element' && item.tag === 'text'}}" data-_el="{{item}}"bind:touchstart='__bind_touchstart'bind:touchmove='__bind_touchmove'bind:touchcancel='__bind_touchcancel'bind:touchend='__bind_touchend'bind:tap='__bind_tap'class="{{item.attr.class}}"width="{{item.attr['width']}}"height="{{item.attr['height']}}"data="{{item.attr['data']}}"id="{{item.attr['id']}}"style="{{item.attr['style']}}" ><block wx:for="{{item.child}}" wx:key="{{item}}"><template is="m1" data="{{item}}"/></block></text><image wx:if="{{item.node === 'element' && item.tag === 'image'}}" data-_el="{{item}}"bind:touchstart='__bind_touchstart'bind:touchmove='__bind_touchmove'bind:touchcancel='__bind_touchcancel'bind:touchend='__bind_touchend'bind:tap='__bind_tap'class="{{item.attr.class}}"width="{{item.attr['width']}}"height="{{item.attr['height']}}"data="{{item.attr['data']}}"id="{{item.attr['id']}}"style="{{item.attr['style']}}"src="{{item.attr['src']}}" mode="{{item.type === 'audio' ? '' : 'widthFix'}}"><block wx:for="{{item.child}}" wx:key="{{item}}"><template is="m1" data="{{item}}"/></block></image><navigator wx:if="{{item.node === 'element' && item.tag === 'navigator'}}" data-_el="{{item}}"bind:touchstart='__bind_touchstart'bind:touchmove='__bind_touchmove'bind:touchcancel='__bind_touchcancel'bind:touchend='__bind_touchend'bind:tap='__bind_tap'class="{{item.attr.class}}"width="{{item.attr['width']}}"height="{{item.attr['height']}}"data="{{item.attr['data']}}"id="{{item.attr['id']}}"style="{{item.attr['style']}}"url="{{item.attr.href}}" ><block wx:for="{{item.child}}" wx:key="{{item}}"><template is="m1" data="{{item}}"/></block></navigator><swiper wx:if="{{item.node === 'element' && item.tag === 'swiper'}}" data-_el="{{item}}"bind:touchstart='__bind_touchstart'bind:touchmove='__bind_touchmove'bind:touchcancel='__bind_touchcancel'bind:touchend='__bind_touchend'bind:tap='__bind_tap'class="{{item.attr.class}}"width="{{item.attr['width']}}"height="{{item.attr['height']}}"data="{{item.attr['data']}}"id="{{item.attr['id']}}"style="{{item.attr['style']}}" ><block wx:for="{{item.child}}" wx:key="{{item}}"><template is="m1" data="{{item}}"/></block></swiper><swiper-item wx:if="{{item.node === 'element' && item.tag === 'swiper-item'}}" data-_el="{{item}}"bind:touchstart='__bind_touchstart'bind:touchmove='__bind_touchmove'bind:touchcancel='__bind_touchcancel'bind:touchend='__bind_touchend'bind:tap='__bind_tap'class="{{item.attr.class}}"width="{{item.attr['width']}}"height="{{item.attr['height']}}"data="{{item.attr['data']}}"id="{{item.attr['id']}}"style="{{item.attr['style']}}" ><block wx:for="{{item.child}}" wx:key="{{item}}"><template is="m1" data="{{item}}"/></block></swiper-item><block wx:if="{{item.node === 'element' && item.tag === 'block'}}" data-_el="{{item}}"bind:touchstart='__bind_touchstart'bind:touchmove='__bind_touchmove'bind:touchcancel='__bind_touchcancel'bind:touchend='__bind_touc