|
|
@ -19,6 +19,11 @@ |
|
|
|
input{ |
|
|
|
flex-grow: 1; |
|
|
|
} |
|
|
|
.plant-zengjia{ |
|
|
|
transform: rotate(45deg); |
|
|
|
color:#999; |
|
|
|
padding:6rpx; |
|
|
|
} |
|
|
|
.u-button{ |
|
|
|
flex-shrink: 0; |
|
|
|
width:max-content; |
|
|
@ -88,6 +93,7 @@ |
|
|
|
<view class="search" @click.stop=""> |
|
|
|
<u-icon name="search" color="#999999" size="20"/> |
|
|
|
<input placeholder="请输入搜索内容" :value="(list.find(v=>v.value==value)||{label:''}).label||value" auto-blur @focus="isShow=true" @input="$emit('input',$event.detail.value)" @confirm="isShow=false;$emit('search')"/> |
|
|
|
<text class="plant-zengjia" v-if="value" @click="$emit('input','');$emit('search')"/> |
|
|
|
<u-button type="primary" shape="circle" v-if="list.length<=0" color="#10C176" text="搜索" size="mini" @click="$emit('search')"/> |
|
|
|
</view> |
|
|
|
<view v-if="list.length>0" @click.stop="" class="want_search card" :class="{show:isShow}"> |
|
|
|