Vue parent-child components pass values, and the way to write boolean values from parent to child is

From father to son↓

<son :isShow="false"></son >

If it is written as isShow = false, it will report an error and think that the false passed is a string.

Subcomponent↓

    isShow:{
				type:Boolean,
				default:true
			}

Guess you like

Origin blog.csdn.net/lanbaiyans/article/details/130643261