|
@@ -1,14 +1,18 @@
|
|
<template>
|
|
<template>
|
|
- <view class="labelColor itemBox">
|
|
|
|
|
|
+ <view class="labelColor itemBox" style="height: 45px;">
|
|
<view class="item" v-for="item in filterList" :key="item[props.idValue]">
|
|
<view class="item" v-for="item in filterList" :key="item[props.idValue]">
|
|
<uni-data-picker
|
|
<uni-data-picker
|
|
|
|
+ v-slot:default="{ error }"
|
|
:localdata="item.array"
|
|
:localdata="item.array"
|
|
:clear-icon="true"
|
|
:clear-icon="true"
|
|
:popup-title="'请选择' + item[labelValue]"
|
|
:popup-title="'请选择' + item[labelValue]"
|
|
:map="item.map || { text: 'label', value: 'value' }"
|
|
:map="item.map || { text: 'label', value: 'value' }"
|
|
@change="e => handleClick(e, item)"
|
|
@change="e => handleClick(e, item)"
|
|
>
|
|
>
|
|
- <view>
|
|
|
|
|
|
+ <view v-if="error" class="error">
|
|
|
|
+ <text>{{error}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-else>
|
|
{{ item[labelValue] }}
|
|
{{ item[labelValue] }}
|
|
<uni-icons type="icon-arrow-sortdown-smal" custom-prefix="iconfont" color="#999"/>
|
|
<uni-icons type="icon-arrow-sortdown-smal" custom-prefix="iconfont" color="#999"/>
|
|
</view>
|
|
</view>
|