在goods.vue中:
在shopcart.vue中
在外层的app.vue中
我已经在app。vue加入了 :seller="serller"属性了,为什么还是没有定义minPrice??
有以下的错误:
在goods.vue中:
在shopcart.vue中
在外层的app.vue中
我已经在app。vue加入了 :seller="serller"属性了,为什么还是没有定义minPrice??
有以下的错误:
deliveryPrice还有minPrice是你为shopcart定义的属性,需要接收
<shopcart :deliveryPrice="seller.deliveryPrice" :minPrice="seller.minPrice"></shopcart>
shopcart 里接收
export default {
props:{
deliveryPrice:{
type:String,
default:'100'
},
minPrice:{
type:String,
default:'100'
}
},
}
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答4.8k 阅读✓ 已解决
4 回答4.3k 阅读✓ 已解决
4 回答1.9k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
2 回答2.5k 阅读✓ 已解决
app.vue 传递,good.vue 接收:
good.vue 传递,shopcart.vue 接收