1.添加prop的侦听器

props:['xxx'],
data(){
return{
	yyy
}
}
...
watch:{
	xxx:function(newValue){
		this.yyy=newValue	
	}
}
Logo

前往低代码交流专区

更多推荐