<el-table-column align="center" :render-header="breakerNotInTest" width="150">
<template slot-scope="scope">
{{ scope.row.breakerNotInTest }}
</template>
</el-table-column>
methods: {
breakerNotInTest(h, { column, $index }, index) {
return h('span', {}, [
h('span', {}, '断路器小车未...'),
h('el-popover', { props: { placement: 'top-start', width: '300', trigger: 'hover', content: '断路器小车未到工作或试验位置时,断路器无法进行合闸操作(0 代表否, 1 代表是)' }}, [
h('i', { slot: 'reference', class: 'el-icon-question' }, '')
])
])
},
}
elemeht 表头超出部分隐藏,并且...表示
最新推荐文章于 2024-06-07 16:46:33 发布