naive-ui/demo/documentation/components/popconfirm/enUS/event.demo.md
2020-10-22 20:35:12 +08:00

569 B

Event

positive-click & negative-click

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