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

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')
    }
  }
}