Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -24,13 +24,13 @@ Component({ | @@ -24,13 +24,13 @@ Component({ | ||
| 24 | }, | 24 | }, |
| 25 | ready(){ | 25 | ready(){ |
| 26 | this.editpeoplelist(this.data.count); | 26 | this.editpeoplelist(this.data.count); |
| 27 | - this.triggerEvent('selectpeople',this.data.count); | 27 | + this.triggerEvent('selectpeople',{people:this.data.count,action:'defalut'}); |
| 28 | }, | 28 | }, |
| 29 | methods:{ | 29 | methods:{ |
| 30 | selectpeople(e){ | 30 | selectpeople(e){ |
| 31 | const target=e.currentTarget.dataset; | 31 | const target=e.currentTarget.dataset; |
| 32 | this.editpeoplelist(target.count); | 32 | this.editpeoplelist(target.count); |
| 33 | - this.triggerEvent('selectpeople',target.count); | 33 | + this.triggerEvent('selectpeople',{people:target.count,action:'click'}); |
| 34 | }, | 34 | }, |
| 35 | editpeoplelist(count){ | 35 | editpeoplelist(count){ |
| 36 | let peoplelist=this.data.peoplelist,setdata={}; | 36 | let peoplelist=this.data.peoplelist,setdata={}; |
-
Please register or login to post a comment