1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
2023-11-20 22:33:20 +08:00

33 lines
1.4 KiB
Plaintext

<template name="action">
<view class="action">
<view class="item button" wx:for="{{action}}" wx:key="index">
<button size="mini" bindtap="onaction" data-name="{{item}}">{{item}}</button>
</view>
</view>
</template>
<template name="debug">
<view class="debug" wx:if="{{conf.debug == 'true'}}">
<view wx:for="{{conf}}" wx:key="index">{{index}}: {{item}}</view>
</view>
</template>
<template name="table">
<table class="{{msg._style}}" wx:if="{{msg}}">
<tr><th wx:for="{{msg._head}}" wx:key="index">{{item}}</th></tr>
<tr wx:for="{{msg._index}}" wx:key="index">
<td wx:for="{{msg.append}}" wx:for-index="i" wx:key="i">
<view class="which" wx:for="{{msg._view[item][index]}}" wx:for-item="input" wx:for-index="i" wx:key="i">
<view wx:if="{{input._type == 'text'}}"
bindtap="onDetail" data-input="{{input}}" data-value="{{input._text}}" data-name="{{item}}" data-index="{{index}}" data-order="{{order}}">{{input._text}}</view>
<rich-text wx:if="{{input._type == 'div'}}" nodes="{{input._text}}"></rich-text>
<image wx:if="{{input._type == 'img'}}" mode="aspectFit" src="{{input.src}}"></image>
<button wx:if="{{input._type == 'input' && input.type == 'button'}}" size="mini"
bindtap="onDetail" data-input="{{input}}" data-value="{{input._text}}" data-name="{{item}}" data-index="{{index}}" data-order="{{order}}">{{input.value||input.name}}</button>
</view>
</td>
</tr>
</table>
</template>