当前位置:   article > 正文

[Vue warn]: Invalid prop: type check failed for prop “multipleLimit“. Expected Number with value 1,_invalid prop: type check failed for prop "multiple

invalid prop: type check failed for prop "multiplelimit". expected number wi

原本是这样写的,控制台就会报标题的错误

  1. <el-select class="select" v-model="ruleForm.defaultlanguageid" multiple multiple-limit=1 placeholder="">
  2. <el-option
  3. v-for="item in deflanguageoptions"
  4. :key="item.id"
  5. :label="item.languagename"
  6. :value="item.id">
  7. </el-option>
  8. </el-select>

改成这样,就加冒号:并为字符串才行

  1. <el-select class="select" v-model="ruleForm.defaultlanguageid" multiple :multiple-limit="1" placeholder="">
  2. <el-option
  3. v-for="item in deflanguageoptions"
  4. :key="item.id"
  5. :label="item.languagename"
  6. :value="item.id">
  7. </el-option>
  8. </el-select>

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/69822
推荐阅读
相关标签