Files
smart_storage_app/components/new-search/index.vue

85 lines
1.7 KiB
Vue
Raw Permalink Normal View History

2025-06-30 10:21:25 +08:00
<template>
<view class="search" >
<image src="/static/aidex/images/search.png" class="filterImg"></image>
2025-06-30 10:21:25 +08:00
<u-input v-model="dec" style="width:100%;" type="text" :placeholder="$t('homePage.device.inputNameQuery')" :clearable='false'/>
2025-06-30 10:21:25 +08:00
<view class="shaixuan" id="search">
<u-button @click="search" size="mini" shape="circle" :custom-style="{backgroundColor:'#009458',color:'#FFFFFF'}">{{$t('homePage.device.query')}}</u-button>
2025-06-30 10:21:25 +08:00
</view>
<!-- <input type="text" :value="dec" :input-align="right" placeholder="请输入告警内容筛选"/> -->
<!-- <view class="proper" v-if="show_" id="popup">
123123
</view> -->
</view>
</template>
<script>
export default {
data() {
return {
dec: '',
value1: 1,
value2: 2,
show_: false,
}
},
methods: {
open() {
this.show_ = true
this.$emit('custom')
},
search(){
this.$emit('search',this.dec)
}
}
}
</script>
<style lang="scss" scoped>
2025-07-01 16:59:10 +08:00
.filterImg {
width: 40rpx;
height: 40rpx;
margin-right: 10rpx;
margin-bottom: 5rpx;
}
2025-06-30 10:21:25 +08:00
.search {
background-color: #ffffff;
width: 100%;
height: 80rpx;
border-radius: 57rpx;
// box-shadow: 0px 4rpx 16rpx rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: space-between;
padding-left: 20rpx;
padding-right: 20rpx;
margin-bottom: 20rpx;
position: relative;
.shaixuan {
height: 60rpx;
display: flex;
padding-top: 10rpx;
padding-bottom: 10rpx;
align-items: center;
2025-07-01 16:59:10 +08:00
color: #009458
2025-06-30 10:21:25 +08:00
}
.proper {
position: absolute;
left: 0;
right: 0;
top: 80rpx;
height: 500rpx;
background-color: red;
}
}
::v-deep .u-dropdown__content {
position: fixed;
}
</style>