mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 21:18:14 +08:00
522 B
522 B
#### 基本
最简单的用法。
#### Basic
The basic example.
<template>
<a-popconfirm title="Are you sure delete this task?" @confirm="confirm" @cancel="cancel" okText="Yes" cancelText="No">
<a href="#">Delete</a>
</a-popconfirm>
</template>
<script>
export default {
methods: {
confirm (e) {
console.log(e)
this.$message.success('Click on Yes')
},
cancel (e) {
console.log(e)
this.$message.error('Click on No')
},
},
}
</script>