邓宏
2 years ago
17 changed files with 401 additions and 68 deletions
@ -0,0 +1,45 @@ |
|||
<style lang="scss" scoped> |
|||
.d-search{ |
|||
flex-shrink: 0; |
|||
display:flex; |
|||
align-items: center; |
|||
background:#fff; |
|||
margin:30rpx; |
|||
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"/> |
|||
<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')"/> |
|||
</view> |
|||
</template> |
|||
<script> |
|||
export default { |
|||
props:{ |
|||
value:{ |
|||
type:String, |
|||
default:"" |
|||
} |
|||
}, |
|||
data(){ |
|||
return{ |
|||
|
|||
} |
|||
} |
|||
} |
|||
</script> |
@ -0,0 +1,81 @@ |
|||
{ |
|||
"id": "d-search", |
|||
"displayName": "d-search", |
|||
"version": "1.0.0", |
|||
"description": "d-search", |
|||
"keywords": [ |
|||
"d-search" |
|||
], |
|||
"repository": "", |
|||
"engines": { |
|||
"HBuilderX": "^3.1.0" |
|||
}, |
|||
"dcloudext": { |
|||
"type": "component-vue", |
|||
"sale": { |
|||
"regular": { |
|||
"price": "0.00" |
|||
}, |
|||
"sourcecode": { |
|||
"price": "0.00" |
|||
} |
|||
}, |
|||
"contact": { |
|||
"qq": "" |
|||
}, |
|||
"declaration": { |
|||
"ads": "", |
|||
"data": "", |
|||
"permissions": "" |
|||
}, |
|||
"npmurl": "" |
|||
}, |
|||
"uni_modules": { |
|||
"dependencies": [], |
|||
"encrypt": [], |
|||
"platforms": { |
|||
"cloud": { |
|||
"tcb": "u", |
|||
"aliyun": "u" |
|||
}, |
|||
"client": { |
|||
"Vue": { |
|||
"vue2": "u", |
|||
"vue3": "u" |
|||
}, |
|||
"App": { |
|||
"app-vue": "u", |
|||
"app-nvue": "u" |
|||
}, |
|||
"H5-mobile": { |
|||
"Safari": "u", |
|||
"Android Browser": "u", |
|||
"微信浏览器(Android)": "u", |
|||
"QQ浏览器(Android)": "u" |
|||
}, |
|||
"H5-pc": { |
|||
"Chrome": "u", |
|||
"IE": "u", |
|||
"Edge": "u", |
|||
"Firefox": "u", |
|||
"Safari": "u" |
|||
}, |
|||
"小程序": { |
|||
"微信": "u", |
|||
"阿里": "u", |
|||
"百度": "u", |
|||
"字节跳动": "u", |
|||
"QQ": "u", |
|||
"钉钉": "u", |
|||
"快手": "u", |
|||
"飞书": "u", |
|||
"京东": "u" |
|||
}, |
|||
"快应用": { |
|||
"华为": "u", |
|||
"联盟": "u" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1 @@ |
|||
# d-search |
Loading…
Reference in new issue