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.
49 lines
896 B
49 lines
896 B
<template>
|
|
<view class="search web-cell">
|
|
<view class="web-cell-content">
|
|
<uv-search placeholder="请输入搜索内容" shape="square" :clearabled="true" :showAction="false" :animation="false" v-model="keyword"></uv-search>
|
|
</view>
|
|
<view class="search-icon">
|
|
<uni-icons type="plusempty" size="24"></uni-icons>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
/**
|
|
* Search 搜索框组件
|
|
*
|
|
* @author 科技小王子
|
|
* @tutorial https://www.gxwebsoft.com
|
|
* @since 2024-05-16 19:19:55
|
|
*/
|
|
|
|
export default {
|
|
name: 'search',
|
|
emits: ['done'],
|
|
data() {
|
|
return {
|
|
disabled: false
|
|
};
|
|
},
|
|
mounted() {
|
|
},
|
|
methods: {
|
|
open() {
|
|
this.$refs.login.open('bottom');
|
|
},
|
|
onDisabled() {
|
|
this.disabled = !this.disabled;
|
|
},
|
|
closeLogin() {
|
|
this.$refs.login.close();
|
|
},
|
|
openUrl(url) {
|
|
uni.navigateTo({
|
|
url
|
|
});
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped></style>
|