Browse Source

修改搜索组件

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

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

@ -66,7 +66,7 @@
<view class="d-search" @click="show=false">
<view class="search" @click.stop="" :style="{'--bg':background}">
<u-icon name="search" color="#999999" size="20"/>
<input placeholder="请输入搜索内容" :value="value" auto-blur @focus="show=true" @input="$emit('input',$event.detail.value)" @confirm="show=false;$emit('search')"/>
<input :placeholder="placeholder" :value="value" auto-blur @focus="show=true" @input="$emit('input',$event.detail.value)" @confirm="show=false;$emit('search')"/>
<text class="plant-zengjia" v-if="value" @click="$emit('input','');$emit('search')"/>
<u-button type="primary" shape="circle" v-if="btn" color="#10C176" text="搜索" size="mini" @click="$emit('search')"/>
</view>
@ -91,6 +91,10 @@ export default {
type:String,
default:"#fff"
},
placeholder:{
type:String,
default:"请输入搜索内容",
},
popup:{
type:Boolean,
default:false

Loading…
Cancel
Save