element 表头问题

新手上路,请多包涵

题目描述

elment如何使表单 表头隐藏

用show-header感觉还是不行啊,是我用错地方了么?

 <el-table
                        :data="tableData"
                        tooltip-effect="dark"
                        show-header = false
                        style="width: 100%">
                        <el-table-column type="expand">
                        <template slot-scope="props">
                            <el-form label-position="centent" inline class="demo-table-expand">
                            <!-- 内层table -->
                            <el-table
                                    ref="multipleTable"
                                    :data="tableData"
                                    tooltip-effect="dark"
                                    style="width: 100%"
                                   >
                                    <el-table-column
                                    type="selection"
                                    width="55">
                                    </el-table-column>
                                    <el-table-column
                                    prop="name">
                                    </el-table-column>
                                    <el-table-column
                                    width="120">
                                        <template slot-scope="scope">
                                            <el-button @click="handleClick(scope.row)" type="text" size="small">编辑</el-button>
                                            <el-button type="text" size="small" class="removeCss">删除</el-button>
                                        </template>
                                    </el-table-column>
                                </el-table>
                            </el-form>
                        </template>
                        </el-table-column>
                        <el-table-column
                        type="selection"
                        width="55">
                        </el-table-column>
                        <el-table-column
                        label="分类名称"
                        prop="name">
                        </el-table-column>
                        <el-table-column
                        label="操作"
                        width="120">
                        <template slot-scope="scope">
                            <el-button @click="handleClick(scope.row)" type="text" size="small">编辑</el-button>
                            <el-button type="text" size="small" class="removeCss">删除</el-button>
                        </template>
                        </el-table-column>
                    </el-table>
阅读 1.7k
1 个回答
 <el-table
    :data="tableData"
    tooltip-effect="dark"
    :show-header = "isShow"
    style="width: 100%">              
</el-table>
export default {
  data() {
   return {
    isShow: false
   }
  }
}
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题