@@ -275,12 +275,19 @@ export default {
}
return statusObj[status]
},
+ computedPd(list) {
+ if (this.sourceTab == 'group') return '60px'
+ if (list.length == 1) return '330px'
+ else if (list.length == 2) return '240px'
+ else return '60px'
+ },
handleTabs (type) {
if (type === 'group') this.tempList = [...this.singleList]
else if (type === 'event') this.tempList = [...this.moreList]
this.sourceTab = type
const _dom = document.getElementById('scroll-wr')
_dom.scrollTop = 0
+ this.computedPd(this.tempList)
},
handleProject (item) {
this.$emit('project', item)