修改el-popover的最小宽度以及背景色边框色

637 阅读1分钟
<el-popover placement="bottom" width="100" trigger="click" popper-class="sys-setting-popup"></el-popover>
.sys-setting-popup {
  min-width: 0; //默认是150,这样会影响我们设置宽度,所以把他设置成0,然后在el-popover中设置宽度100即可
  padding: 0;
  background-color: #333333;
  border: 1px solid #333333;
}