You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
814 B

2 years ago
<style lang="scss" scoped>
.d-search{
2 years ago
flex-shrink: 0;
2 years ago
display:flex;
align-items: center;
background:#fff;
2 years ago
margin:30rpx;
2 years ago
border-radius: 40rpx;
padding:6rpx;
height:60rpx;
.u-icon{
margin:0 14rpx;
flex-shrink: 0;
}
input{
flex-grow: 1;
}
.u-button{
flex-shrink: 0;
width:max-content;
}
}
</style>
<template>
<view class="d-search">
<u-icon name="search" color="#999999" size="20"/>
2 years ago
<input placeholder="请输入搜索内容" :value="value" @input="$emit('input',$event.detail.value)" @confirm="$emit('search')"/>
<u-button type="primary" shape="circle" color="#10C176" text="搜索" size="mini" @click="$emit('search')"/>
2 years ago
</view>
</template>
<script>
export default {
2 years ago
props:{
value:{
type:String,
default:""
}
},
data(){
return{
}
}
2 years ago
}
</script>