|
|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<view> |
|
|
|
<u-waterfall v-model="dataList" ref="uWaterfall" v-for="itemFather of listlength" :key="itemFather" v-if="itemFather == tabindex"> |
|
|
|
<u-waterfall v-model="dataList" ref="uWaterfall" :key="count"> |
|
|
|
<template v-slot:left="{leftList}"> |
|
|
|
<view class="list-warter" v-for="(item, index) in leftList" :key="index"> |
|
|
|
<view @click="onClick(item.id)"> |
|
|
|
@ -64,13 +64,13 @@ |
|
|
|
data(){ |
|
|
|
return { |
|
|
|
// dataList: [] |
|
|
|
count: 1 |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
dataList: { |
|
|
|
get() { |
|
|
|
console.log('组件当前数据====',this.list) |
|
|
|
console.log(this.ifsale) |
|
|
|
this.clear(); |
|
|
|
return this.list; |
|
|
|
}, |
|
|
|
set(newValue) { console.log('newvalue',newValue) } |
|
|
|
@ -116,8 +116,10 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
clear() { |
|
|
|
console.log('组件名',this.$refs) |
|
|
|
this.$refs.uWaterfall[0].clear(); |
|
|
|
if(this.$isRight(this.$refs)){ |
|
|
|
this.count++; |
|
|
|
this.$refs.uWaterfall.clear && this.$refs.uWaterfall.clear(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|