naive-ui/demo/documentation/components/popconfirm/enUS/basic.md
2019-12-23 16:31:26 +08:00

24 lines
472 B
Markdown

# Basic
```html
<n-popconfirm
@positive-click="handlePositiveClick"
@negative-click="handleNegativeClick"
>
<template v-slot:activator>
<n-button>Quote</n-button>
</template>
Things pass us by. Nobody can catch them. That's the way we live our lives.
</n-popconfirm>
```
```js
export default {
methods: {
handlePositiveClick () {
this.$NMessage.success('Yes')
},
handleNegativeClick () {
this.$NMessage.warning('No')
}
}
}
```