[Vue warn]: Invalid prop: type check failed for prop "filterable". Expected Boolean, got String with

在vue中运行这段代码时,


  
    
    
  


发现报了一个vue警告,如下:

vue.runtime.esm.js:619 [Vue warn]: Invalid prop: type check failed for prop "filterable". Expected Boolean, got String with value "true".

found in

--->  at packages/select/src/select.vue
        at packages/form/src/form-item.vue
          at packages/form/src/form.vue
            at src/views/report/index.vue
              at src/layout/components/AppMain.vue
                at src/layout/index.vue
                  at src/App.vue
                   

遇见这种问题,建议去看官方文档或者百度。
[Vue warn]: Invalid prop: type check failed for prop
filterable默认为false,如果我们设置此filterable属性的话,不用设置为true,只需要设置上就代表它为true了。
参考文章

  • [Vue warn]: Invalid prop: type check failed for prop “clearable”. Expected Boolean, got String 的错误

你可能感兴趣的:(Element,UI)