Authored by wangtao

表格组件悬浮内容换行

... ... @@ -30,7 +30,7 @@
</div>
<span v-else>
<el-tooltip placement="top" :disabled="scope.row.isShowTooltip == undefined || scope.row.isShowTooltip == false">
<el-tooltip placement="top-start" :disabled="scope.row.isShowTooltip == undefined || scope.row.isShowTooltip == false">
<template #content >
<div v-html="getTextContent(scope.row[item.prop])">
</div>
... ...
... ... @@ -231,7 +231,7 @@ export default {
if(val && val != '' && val != null){
val = val+''.replace(/[^\x00-\xff]/g,"$&\x01").replace(/.{50}\x01?/g,"$&<br/>").replace(/\x01/g,"");
}
return val;
return `<pre>${val}</pre>`;
}
//设置父节点选中后children也选中
... ...