mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
32 lines
1.4 KiB
Plaintext
32 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">
|
|
<table class="debug" wx:if="{{conf.debug == 'true'}}">
|
|
<tr wx:for="{{conf}}" wx:key="index"><th>{{index}}</th><td>{{item}}</td></tr>
|
|
</table>
|
|
</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>
|