You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/popconfirm/demo/basic.md

33 lines
522 B

<cn>
#### 基本
最简单的用法。
</cn>
<us>
#### Basic
The basic example.
</us>
```html
<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>
```