Browse Source

修改组件样式

master
邓宏 2 years ago
parent
commit
57b82e46a2
  1. 6
      uni_modules/d-search/components/d-search/d-search.vue

6
uni_modules/d-search/components/d-search/d-search.vue

@ -94,7 +94,7 @@
<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')"/>
<u-button type="primary" shape="circle" v-if="btn" color="#10C176" text="搜索" size="mini" @click="$emit('search')"/>
</view>
<view v-if="list.length>0" @click.stop="" class="want_search card" :class="{show:isShow}">
<text class="title">猜你想搜</text>
@ -120,6 +120,10 @@ export default {
type:[String,Number],
default:''
},
btn:{
type:Boolean,
default:true
},
background:{
type:String,
default:"#fff"

Loading…
Cancel
Save