:title传入一个遍历数组转成字符串的方法orgTitleFun
<el-table-column
label="组织成员"
align="center"
prop="id"
:min-width="80"
>
<template #default="{ row }">
<span style="color: #409eff">
<span
@click="click_Org(row)"
style="border-bottom: 1px solid #409eff"
:title="orgTitleFun(row.regulatoryOrganizationRelationVos)"
>{{
row.regulatoryOrganizationRelationVos &&
row.regulatoryOrganizationRelationVos.length
? row.regulatoryOrganizationRelationVos.length
: 0
}}
</span>
</span>
</template>
</el-table-column>
写转字符串方法orgTitleFun
const orgTitleFun = (row: any) => {
let res = "" as any;
row.forEach((e: any, index: number) => {
// res += index + 1 + ":" + e.orgName + "\n";
res += e.orgName + "\n";
});
return res;
};
效果 悬浮数字出现