|
|
@ -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 |
|
|
|