html结构
<el-popconfirm title="确认删除?" popper-class="delete-popconfirm" confirm-button-text="确认" cancel-button-text="取消" @confirm="handleDeleteRuleItem(scope.row.ItemId)" @cancel="cancelEvent">
<template #reference>
<app-svg-icon icon-name="report-delete" class="w-18 h-18 cursor-pointer" />
</template>
</el-popconfirm>
样式 需要在非scope区域才会生效 注意添加唯一父节点,以免影响其他页面
<style lang="scss">
.delete-popconfirm{
width: 180px !important;
height: 70px !important;
.el-popper{
font-size: 13px;
height: 60px;
}
.el-popconfirm__main{
height: 25px!important;
margin-bottom:3px
}
.el-popconfirm__action{
margin-bottom:3px;
margin:-4px
}
}
</style>