mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
472 B
472 B
Basic
<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>
export default {
methods: {
handlePositiveClick () {
this.$NMessage.success('Yes')
},
handleNegativeClick () {
this.$NMessage.warning('No')
}
}
}