PopConfirm;如果不去看源码的话不会知道该组件对应的事件;
7qhs6swi1#
看文档不认真啊Basic usagePopconfirm is similar to Popover. So for some duplicated attributes, please refer to the documentation of Popover.
kq0g1dla2#
Popconfirm 组件在源码中有自己的两个事件会emit,分别是onCancel和onConfirm,是Popover组件没有的事件,哈哈上面没说清楚,其实我主要指的是这一部分;
// ... methods: { confirm() { this.visivle = false; this.$emit('onConfirm'); }, cancel() { this.visivle = false; this.$emit('onCancel'); }, } // ...
Source Code
qncylg1j3#
@Link-Fight
33qvvth14#
+1文档一直没更新,比较奇怪
yqhsw0fo5#
在jsx下不触发
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.
6条答案
按热度按时间7qhs6swi1#
看文档不认真啊
Basic usage
Popconfirm is similar to Popover. So for some duplicated attributes, please refer to the documentation of Popover.
kq0g1dla2#
Popconfirm 组件在源码中有自己的两个事件会emit,分别是onCancel和onConfirm,是Popover组件没有的事件,哈哈上面没说清楚,其实我主要指的是这一部分;
Source Code
qncylg1j3#
@Link-Fight
33qvvth14#
+1文档一直没更新,比较奇怪
yqhsw0fo5#
在jsx下不触发
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.