<!--module/user/components/field-picker/field-picker.wxml-->
<view class="field-picker" bind:tap="onShow">
  <view class="field-picker__inner">
    <scroll-view wx:if="{{selected.length}}" class="scrollbar" scroll-x type="list" enable-flex reverse>
      <t-tag style="margin: 0 4px;" wx:for="{{selected}}" wx:key="{{item.value}}" variant="outline">{{item.label}}</t-tag>
    </scroll-view>
    <view wx:else class="placeholder">请选择</view>
  </view>
</view>

<form-picker visible="{{visible}}" title="{{title}}" value="{{selected}}" multiple="{{multiple}}" options="{{options}}" options-columns="{{optionsColumns}}" bind:confirm="onPickerConfirm" bind:close="onPickerClose"></form-picker>