我以为这样可以,但是没有:
<template lang="pug">
el-table(:data="myDataSet")
el-table-column
template(slot="label")
el-tooltip(content="Verification of Reference")
| VOR Status
template(slot-scope="props")
| {{ props.row.myData }}
</template>
请帮忙,谢谢。
<el-table-column prop="value"
label="Value"
:render-header="renderPhaseHeader">
</el-table-column>
methods: {
renderPhaseHeader(h, { column }) {
return h('span', {
class: 'class-name-if-you-want'
}, [
column.label + " ",
h('el-tooltip', {
class: 'class-name-if-you-want',
attrs: {
'content': 'message',
'effect': 'light',
'placement': 'top-start'
}
}, [
h('i', {
class: 'far fa-question-circle'
})
])
])
}
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句