- vue中使用element-ui 报错如下,defaultExpandAll 关键词页面也搜不到
[Vue warn]: Invalid prop: type check failed for prop "defaultExpandAll". Expected Boolean, got String with value "true".
found in
---> <ElTable> at packages/table/src/table.vue
是转译后报错了的。defaultExpandAll 对应到 default-expand-all
来排查
<el-table :data="tableData" :default-expand-all="true">
<!--表格列定义-->
</el-table>
在 default-expand-all 前面加上":" ,否则true当作字符串来解译了!
标签:String,Invalid,prop,defaultExpandAll,Expected,true,check From: https://www.cnblogs.com/pansidong/p/17340930.html