<el-table border
ref="table"
resizable
:data="tableData"
:max-height="524"
highlight-current-row
v-loading="tableLoading"
:render-header="renderheader">
<el-table-column type="index"
label="序号"
width="60"
align="center"
fixed></el-table-column>
<el-table-column v-for="item in tableColumns"
:key="item.label"
:fixed="item.label === '车工号'"
:prop="item.name"
:label="item.label"
show-overflow-tooltip
:min-width="item.width"
align="center">
<template slot="header"
slot-scope="scope">
<pre><span>{{item.label}}</span></pre>
</template>
</el-table-column>
</el-table>
this.tableColumns = [
{ label: '0-100\n100-200', name: '', width: '' }
]
elementui表格表头换行
最新推荐文章于 2024-06-15 12:03:28 发布