效果预览:
![](https://img-blog.csdnimg.cn/img_convert/b869c9f50dc5bc6991e445bdbf90ff43.png)
上源码:
<template>
<el-tooltip effect="dark" placement="top-start" :disabled="disabled">
<div slot="content" :style="{ 'max-width': maxWidth + 'px' }">
{
{ text }}
</div>
<div :style="style" @mouseenter="showT
效果预览:
上源码:
<template>
<el-tooltip effect="dark" placement="top-start" :disabled="disabled">
<div slot="content" :style="{ 'max-width': maxWidth + 'px' }">
{
{ text }}
</div>
<div :style="style" @mouseenter="showT