From f5026dd49aaad20e0125d2d88aa48fbd4070c55b Mon Sep 17 00:00:00 2001 From: zkwolf Date: Mon, 28 Dec 2020 12:25:58 +0800 Subject: [PATCH] fix: switch event trigger #3453 (#3454) --- components/switch/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/switch/index.tsx b/components/switch/index.tsx index fbae675a3..ece5c92b1 100644 --- a/components/switch/index.tsx +++ b/components/switch/index.tsx @@ -24,8 +24,8 @@ const Switch = defineComponent({ defaultChecked: PropTypes.looseBool, autofocus: PropTypes.looseBool, loading: PropTypes.looseBool, - change: PropTypes.func, - click: PropTypes.func, + onChange: PropTypes.func, + onClick: PropTypes.func, 'onUpdate:checked': PropTypes.func, }, emits: ['change', 'click', 'update:checked'],