From 758937bd7c89460ba62b59a8f4e8f699193a0d08 Mon Sep 17 00:00:00 2001
From: tanjinzhou <415800467@qq.com>
Date: Mon, 3 Aug 2020 13:03:59 +0800
Subject: [PATCH] perf: remove event warning
---
antdv-demo | 2 +-
.../__tests__/__snapshots__/index.test.js.snap | 12 ++++++++----
components/popconfirm/__tests__/index.test.js | 2 +-
components/popconfirm/index.jsx | 9 ++++++++-
examples/App.vue | 2 +-
5 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/antdv-demo b/antdv-demo
index 14ab398a9..ea1f79e54 160000
--- a/antdv-demo
+++ b/antdv-demo
@@ -1 +1 @@
-Subproject commit 14ab398a9ab7db3507776aa9905afe5b4811be21
+Subproject commit ea1f79e54d2bcd38bfd8fb60cc9d2954c2c3d467
diff --git a/components/popconfirm/__tests__/__snapshots__/index.test.js.snap b/components/popconfirm/__tests__/__snapshots__/index.test.js.snap
index c2e556cd8..16ecc95ba 100644
--- a/components/popconfirm/__tests__/__snapshots__/index.test.js.snap
+++ b/components/popconfirm/__tests__/__snapshots__/index.test.js.snap
@@ -2,13 +2,17 @@
exports[`Popconfirm should show overlay when trigger is clicked 1`] = `
-
-
+
+
+
+
-
+
-
+
diff --git a/components/popconfirm/__tests__/index.test.js b/components/popconfirm/__tests__/index.test.js
index 1ff2cf40b..c2ecbdbe1 100644
--- a/components/popconfirm/__tests__/index.test.js
+++ b/components/popconfirm/__tests__/index.test.js
@@ -33,7 +33,7 @@ describe('Popconfirm', () => {
);
let triggerNode = null;
await asyncExpect(() => {
- triggerNode = wrapper.findAll('span').at(0);
+ triggerNode = wrapper.findAll('span')[0];
triggerNode.trigger('click');
});
await asyncExpect(() => {
diff --git a/components/popconfirm/index.jsx b/components/popconfirm/index.jsx
index 9fbe87878..f6d3186d0 100644
--- a/components/popconfirm/index.jsx
+++ b/components/popconfirm/index.jsx
@@ -33,6 +33,7 @@ const Popconfirm = {
onConfirm: PropTypes.func,
onCancel: PropTypes.func,
onVisibleChange: PropTypes.func,
+ 'onUpdate:visible': PropTypes.func,
},
mixins: [BaseMixin],
watch: {
@@ -123,7 +124,13 @@ const Popconfirm = {
const getPrefixCls = this.configProvider.getPrefixCls;
const prefixCls = getPrefixCls('popover', customizePrefixCls);
- const otherProps = omit(props, ['title', 'content', 'cancelText', 'okText']);
+ const otherProps = omit(props, [
+ 'title',
+ 'content',
+ 'cancelText',
+ 'okText',
+ 'onUpdate:visible',
+ ]);
const overlay = (