queryDatav-model
sourceData
is based on the input keyword Filter array
watch: {
queryData(val){
if(val){
return this.sourceData.filter((el,index,self)=>{
return el.name.indexOf(val) >-1;
})
}
}
}
the data source should not be changed, but the rendering should change. There is still no change on the page.