element 2.13.0 版本组件介绍页面 PopConfirm 用法介绍中没有Events项!!!

bwleehnv  于 2022-10-23  发布在  其他
关注(0)|答案(6)|浏览(153)

PopConfirm;
如果不去看源码的话不会知道该组件对应的事件;

7qhs6swi

7qhs6swi1#

看文档不认真啊
Basic usage
Popconfirm is similar to Popover. So for some duplicated attributes, please refer to the documentation of Popover.

kq0g1dla

kq0g1dla2#

Popconfirm 组件在源码中有自己的两个事件会emit,分别是onCancel和onConfirm,是Popover组件没有的事件,哈哈上面没说清楚,其实我主要指的是这一部分;

// ...
methods: {
  confirm() {
    this.visivle = false;
    this.$emit('onConfirm');
  },
  cancel() {
    this.visivle = false;
    this.$emit('onCancel');
  },
}
// ...

Source Code

33qvvth1

33qvvth14#

+1文档一直没更新,比较奇怪

bprjcwpo

bprjcwpo6#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题