题目描述
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>