赞
踩
el-button
上配置属性 slot
;<el-popconfirm title="确定删除吗?请谨慎操作!" @confirm="delete">
<el-button slot="reference" size="small" type="danger">删除</el-button>
</el-popconfirm>
<template #reference>
实现插槽机制;<el-popconfirm title="确定删除吗?请谨慎操作!" @confirm="delete">
<template #reference>
<el-button slot="reference" size="small" type="danger">删除</el-button>
</template>
</el-popconfirm>
效果
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。