naive-ui/demo/documentation/components/popconfirm/enUS/event.md
2020-01-31 22:36:22 +08:00

545 B

Event

positive-click & negative-click

<n-popconfirm
  @positive-click="handlePositiveClick"
  @negative-click="handleNegativeClick"
>
  <template v-slot:activator>
    <n-button>Quit</n-button>
  </template>
  I heared that players will still be abused after purchasing in some games when I watch Bilibili.
</n-popconfirm>
export default {
  methods: {
    handlePositiveClick () {
      this.$NMessage.info('positive click')
    },
    handleNegativeClick () {
      this.$NMessage.info('negative click')
    }
  }
}