<template>
    <a-popconfirm title="确认是否删除" ok-text="确认" cancel-text="取消" @confirm="onOk" @cancel="onCancel">
        <a>删除</a>
    </a-popconfirm>
</template>

<script>
import { EMPTY_FUN } from '@/utils';

export default {
    props: {
        onOk: Function,
        onCancel: {
            type: Function,
            default: EMPTY_FUN,
        },
    },
};
</script>
