20 lines
544 B
Plaintext
20 lines
544 B
Plaintext
<!--components/select/index.wxml-->
|
|
<view class="content">
|
|
<van-field
|
|
value="{{ value }}"
|
|
placeholder="{{'请选择' + label}}"
|
|
border="{{ true }}"
|
|
label="{{label}}"
|
|
custom-style="height:100rpx"
|
|
bind:input="onInput"
|
|
required="{{required}}"
|
|
/>
|
|
<view class="modal" wx:if="{{visible}}">
|
|
<view class="options">
|
|
<view wx:for="{{list}}" class="option" bind:tap="onChoose" data-data="{{item}}" wx:key="id">{{item.name}}</view>
|
|
</view>
|
|
<view class="other" bind:tap="close"></view>
|
|
</view>
|
|
</view>
|
|
|