| | |
| | | <block wx:for="{{formArray}}" wx:key="index"> |
| | | <block wx:if="{{!item.hide}}"> |
| | | <block wx:if="{{item.inputType == 'text'}}"> |
| | | <t-input |
| | | label="{{item.label}}" |
| | |
| | | <block wx:elif="{{item.inputType == 'switch'}}"> |
| | | <t-cell title="{{item.label}}"> |
| | | <t-switch |
| | | defaultValue="{{item.value}}" |
| | | label="{{['是', '否']}}" |
| | | slot="note" |
| | | data-index="{{index}}" |
| | |
| | | title="{{item.label}}" |
| | | arrow |
| | | hover |
| | | note="{{item.value.label || item.placeholder}}" |
| | | note="{{item._label || item.placeholder}}" |
| | | data-index="{{index}}" |
| | | bind:click="showPicker" |
| | | ></t-cell> |
| | |
| | | /> |
| | | </block> |
| | | </block> |
| | | |
| | | </block> |
| | | <slot></slot> |
| | | <view class="btn-group"> |
| | | <t-button block theme="light" content="取消" size="small" bind:tap="onCancel"></t-button> |
| | | <t-button block theme="primary" content="保存" size="small" bind:tap="onSubmit"></t-button> |
| | | <t-button |
| | | block |
| | | theme="light" |
| | | content="{{cancelText}}" |
| | | size="small" |
| | | bind:tap="onCancel" |
| | | ></t-button> |
| | | <t-button |
| | | block |
| | | theme="primary" |
| | | content="{{submitText}}" |
| | | size="small" |
| | | bind:tap="onSubmit" |
| | | ></t-button> |
| | | </view> |