The value passed from vue parent to child cannot be updated.


loading


isLoading dom



js

isEnd isLoading loading



Mar.07,2021

can you be more detailed and what the trigger looks like. I have no problem writing as you do


it is recommended that a variable isloading be defined in the component

props:{
    isLoading :{
          type:Boolean,
        required:true
    }
},
watch : {
    isLoading:{
          handler(curVal,oldVal){
              this.isloading = curVal
          }
}
}

Menu