ConfirmButton 弹窗按钮

对常见删除按钮使用场景封装,点击后会弹出messageBox弹窗进行二次确认。

基础使用

<dg-confirm-button @confirm="confirm" />

<script setup>
const confirm = () => console.log('confirm')
</script>

Attributes

参数类型说明可选值默认值
msgstring弹窗提示信息——string
btnTextstring按钮文案——OK
sizestring按钮大小default / small / largesmall
typestring按钮类型primary / success / warning / danger / info / textprimary
confirmfunction弹窗确认按钮点击的回调函数————
Last Updated:
Contributors: 陈伟成, 黄嘉铭, 龙旺