Right now, Vue is trying to find a variable named pictures
to pass as the property value to the child component.
If you want to specify a string value in that inline expression, you can wrap the value in quotes to make it a string:
<list-view :avatar="'pictures'"></list-view>
Alternately, as @Zunnii answered below, if the value being passed is really just a static string, you can simply omit the v-bind
colon shorthand:
<list-view avatar="pictures"></list-view>
This way, the avatar
prop of the child component will be assigned the string value "pictures"
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…