const buildCableTitleUser = (h, params) => (
<span>
{params.column.title + '量'}
<Tooltip content={'短视频的' + params.column.title + '总量'} placement="top" transfer={true} max-width="350">
<Icon type="md-help-circle" size="16" color="#c8c8c8"/>
</Tooltip>
</span>
);
export default {
data() {
return {
columns: [{
title: '播放',
key: 'play_count',
width: 120,
sortable: true,
renderHeader(h, params) {
return buildCableTitleUser(h, params)
}
}, ]
}
}
}
iview自定义 table表头
于 2023-05-24 14:56:19 首次发布