render: (h, params) => {
let requesParamsTest = String(params.row.requesParams)
let texts = ''; //表格列显示文
if (requesParamsTest != null) {
if (requesParamsTest.length > 80) { //进行截取列显示字数
texts = requesParamsTest.substring(0, 80) + "...";
} else {
texts = requesParamsTest;
}
}
return h('Tooltip', {
props: {
placement: 'top', //显示位置
delay: 500, //延时显示(毫秒)
theme: 'light',//主题
}
}, [
texts,
h('span', {
slot: 'content',
style: {
whiteSpace: 'normal',
wordBreak: 'break-all'
}
}, requesParamsTest)
])
}