新学 element UI  想隐藏表头,查了官方文档:(心想简单啊,直接false就行了)

show-header是否显示表头booleantrue

结果不生效还报错....

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

found in

---> <ElTable> at packages/table/src/table.vue
       <ElTabPane> at packages/tabs/src/tab-pane.vue
         <ElTabs> at packages/tabs/src/tabs.vue
           <ElDialog> at packages/dialog/src/component.vue
             <PersonnelSelector> at src/views/conference/PersonnelSelector/index.vue
               <ElFormItem> at packages/form/src/form-item.vue
                 <ElForm> at packages/form/src/form.vue
                   <New> at src/views/conference/new.vue
                     <ElCard> at packages/card/src/main.vue
                       <ElTabPane> at packages/tabs/src/tab-pane.vue
                         <ElTabs> at packages/tabs/src/tabs.vue
                           <MainContent> at src/views/main-content.vue
                             <Main> at src/views/main.vue
                               <App> at src/App.vue
                                 <Root>

查查查,找找找

写法不对 要写成:

        <el-table :show-header="false" :data="topContacts" >

好用了,暂时不知道什么情况要写成这样的

Logo

前往低代码交流专区

更多推荐