个人/中介房源 求房源页面
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
<img src="../../assets/homeImage/topTitleIcon.svg"
|
||||
v-show="!checkList.list || (checkList.list && !checkList.list.length)" class="img" alt="">
|
||||
<div class="none-btn" v-show="(checkList.list && checkList.list.length)"></div>
|
||||
<span :class="[(checkList.list && checkList.list.length) ? 'none-title' : 'title']">不限</span>
|
||||
<span :class="[(checkList.list && checkList.list.length) ? 'none-title' : 'title']">不限
|
||||
</span>
|
||||
</div>
|
||||
<div style="padding-top:10px;">
|
||||
<el-checkbox-group v-model="checkList.list">
|
||||
@@ -47,6 +48,10 @@ const props = defineProps({
|
||||
default:()=>{
|
||||
return ()=>{}
|
||||
}
|
||||
},
|
||||
clearList:{
|
||||
type:Boolean,
|
||||
default:true
|
||||
}
|
||||
})
|
||||
let list =reactive([])
|
||||
@@ -64,7 +69,7 @@ watchEffect(() => {
|
||||
list.splice(0,list.length)
|
||||
list.push(...props.list)
|
||||
// console.log(show)
|
||||
if(show){
|
||||
if(show&&props.clearList){
|
||||
checkList.list=[]
|
||||
}
|
||||
})
|
||||
@@ -75,7 +80,7 @@ watch(()=>checkList.list,(nval,avl)=>{
|
||||
|
||||
//取消
|
||||
let closeBtn=()=>{
|
||||
checkList.list.splice(0,checkList.list.length)
|
||||
// checkList.list.splice(0,checkList.list.length)
|
||||
closeSeach()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user