data
define a filter
Filter parameter attribute, filter
multiple m attributes
filter: {
a:null,
b:null,
c:null,
c:null,
}
watch
listen for property changes to read data
"filter" :{
handler:"getProduct",
deep:true
}
has a button to modify filter
n attributes,
function(){
this.filter.a=xx
this.filter.b=xx
...
...
}
at this time watch
will trigger multiple times. What if it is triggered only once?