| | |
| | | bind:change="onInputChange" |
| | | /> |
| | | </block> |
| | | <block wx:elif="{{item.inputType == 'textarea'}}"> |
| | | <t-textarea |
| | | label="{{item.label}}" |
| | | model:value="{{item.value}}" |
| | | bordered |
| | | autofocus |
| | | autosize |
| | | confirm-type="next" |
| | | data-index="{{index}}" |
| | | placeholder="{{item.placeholder}}" |
| | | bind:change="onInputChange" |
| | | ></t-textarea> |
| | | </block> |
| | | <block wx:elif="{{item.inputType == 'switch'}}"> |
| | | <t-cell title="{{item.label}}"> |
| | | <t-switch |
| | |
| | | bind:change="onCascaderChange" |
| | | /> |
| | | </block> |
| | | <block wx:if="{{validated && item.required && !item.value}}"> |
| | | <view class="tips">{{item.tips}}</view> |
| | | </block> |
| | | </block> |
| | | </block> |
| | | <slot></slot> |
| | | <view class="btn-group"> |
| | | <view wx:if="editable" class="btn-group"> |
| | | <t-button |
| | | block |
| | | theme="light" |