?popper-class可以修改其樣式。
文章來源:http://www.zghlxwxcb.cn/news/detail-509398.html
寫法:文章來源地址http://www.zghlxwxcb.cn/news/detail-509398.html
<el-popover v-if="showNav === false" popper-class="el-popover-self"> <template #reference> <el-icon class="recorder_open"> <DArrowLeft style="color: #ffb814"/> </el-icon> </template> <div> <el-button class="text-ver">上傳記錄</el-button> <el-button class="text-ver">安裝記錄</el-button> </div> </el-popover>
<style lang="less"> .el-popover.el-popper.el-popover-self{ min-width: 20px!important; width: 20px!important; padding: 0; } </style>
到了這里,關(guān)于el-popover修改寬度的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!