mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
24 lines
472 B
Markdown
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')
|
|
}
|
|
}
|
|
}
|
|
``` |