1. Add a class using the popper-class property.
<el-tooltip content="Top center" placement="top" popper-class="atooltip">
<el-button>Dark</el-button> </el-tooltip>
Copy the code
2, reset the style to create a style file in the current group value can also be created, but cannot add scope, otherwise invalid
.atooltip.el-tooltip__popper[x-placement^="top"] .popper__arrow { border-top-color: pink; } .atooltip.el-tooltip__popper[x-placement^="top"] .popper__arrow:after { border-top-color: pink; } .atooltip { background: pink ! important; }Copy the code
Placement =”top”; border-top-color: pink; The directional values are one to one from: blog.csdn.net/qq_31126175… The demo address: xiaolannuoyi. Making. IO/vue – running…