Vue.js警告无效道具:类型检查失败,对于道具“xxxx”预期对象,得到了字符串

时间:2018-02-11 13:49:57

标签: vue.js

即使这个道具得到了警告,它仍然正常运行......但为什么在道具上发出此警告?

  [Vue warn]: Invalid prop: type check failed for prop "locale". Expected Object, got String.

  <PayPal v-show="displayPaypalButtons" :buttonStyle="bStyle" locale="fr_FR" :client="credentials" amount="50.00" currency="EUR" env="sandbox" :invoice-number="invoiceNumber"></PayPal>

1 个答案:

答案 0 :(得分:0)

请使用:locale="fr_FR" OR v-bind:locale="fr_FR"