2026-02-04 17:07:30 +08:00
|
|
|
<t-cell title="{{title || ''}}" arrow hover bind:click="onOpenPicker">
|
|
|
|
|
<view slot="note" style="display: flex;align-items: center;column-gap: 12rpx;">
|
2026-02-06 14:49:13 +08:00
|
|
|
<view style="color: {{value? '#000': ''}}">{{note || ''}}</view>
|
|
|
|
|
<t-icon wx:if="{{value}}" name="close-circle-filled" catch:tap="onClear" />
|
2026-02-04 17:07:30 +08:00
|
|
|
<text wx:else>{{placeholder || title}}</text>
|
2026-01-12 16:29:53 +08:00
|
|
|
</view>
|
2026-02-04 17:07:30 +08:00
|
|
|
</t-cell>
|
|
|
|
|
<t-picker visible="{{show}}" value="{{[value]}}" data-key="value" title="{{title || ''}}"
|
|
|
|
|
cancelBtn="取消" confirmBtn="确认" bind:confirm="onConfirm" bindcancel="onPickerCancel">
|
|
|
|
|
<t-picker-item options="{{options || []}}">
|
2026-02-06 14:49:13 +08:00
|
|
|
<block wx:for="{{options || []}}" wx:key="value">{{item.label}}</block>
|
2026-02-04 17:07:30 +08:00
|
|
|
</t-picker-item>
|
|
|
|
|
</t-picker>
|