0
点赞
收藏
分享

微信扫一扫

CSS3 新特性 box-shadow 阴影效果、圆角border-radius

斗米 2024-04-21 阅读 15

ElementUI

  • 直接在 el-button 上配置属性 slot
<el-popconfirm title="确定删除吗?请谨慎操作!" @confirm="delete">
	<el-button slot="reference" size="small" type="danger">删除</el-button>
</el-popconfirm>

elementPlus

  • 内嵌 <template #reference> 实现插槽机制;
<el-popconfirm title="确定删除吗?请谨慎操作!" @confirm="delete">
	<template #reference>
		<el-button slot="reference" size="small" type="danger">删除</el-button>
	</template>
</el-popconfirm>

效果
在这里插入图片描述

举报

相关推荐

0 条评论