<table>
<template slot-scope="{row}" slot="cuslevel"> slot对应的是表格列的key,此时key用slot代替
<Tooltip :content="这里放想要提示的内容" placement="top-start" max-width="200" transfer="true"> <img :src="" height="30" width="30" alt=""> 内部放上图片的话,鼠标放到该图片上就会有文字提示 </Tooltip>
</template>
</table>
<table>
<template slot-scope="{row}" slot="cuslevel">
<div v-else style="display: flex; justify-content: center; align-items:center"> <Tooltip :content="放想要提示的内容" placement="top-start" max-width="200" transfer="true"> <strong>{{}}</strong> <strong>{{}}</strong> 也可以直接用strong,在里面写入想要被提示的内容 </Tooltip> 如:这里放入123456 在上面的:content中放入想要提示的信 </div> 息,当鼠标放放到123456上时就会显示:content里面的内容
</template>
</table>
个人用法