点击删除按钮,二次提示“你确定要删除吗?”,点击确定调用接口更新数据,点击取消关闭弹窗。
按钮异步操作场景代码
<template> <div> <bst-button type="text" textColor="red" :ajax="{method:'get',url:'/element-ui-best-doc/mock/delete.json',params:{id:123}}" twiceHint>删除</bst-button> </div> </template>
← 增加场景 文本省略 →