From d212287171da7091fb5c9826506a257200efea1c Mon Sep 17 00:00:00 2001 From: homi <1572801584@qq.com> Date: Fri, 13 Sep 2024 14:14:06 +0800 Subject: [PATCH] fix: onSwipeStart is not undefined (#1275) --- compiled/alipay/src/SwipeAction/props.ts | 3 +++ compiled/wechat/src/SwipeAction/props.js | 3 +++ src/SwipeAction/props.ts | 3 +++ 3 files changed, 9 insertions(+) diff --git a/compiled/alipay/src/SwipeAction/props.ts b/compiled/alipay/src/SwipeAction/props.ts index d080f214a..ca48efcbc 100644 --- a/compiled/alipay/src/SwipeAction/props.ts +++ b/compiled/alipay/src/SwipeAction/props.ts @@ -72,4 +72,7 @@ export const SwipeActionDefaultProps: Partial = { defaultSwiped: '', damping: 70, disabled: false, + onSwipeEnd() {}, + onSwipeStart() {}, + onButtonTap() {}, }; diff --git a/compiled/wechat/src/SwipeAction/props.js b/compiled/wechat/src/SwipeAction/props.js index 4c4b04228..1b9bff07c 100644 --- a/compiled/wechat/src/SwipeAction/props.js +++ b/compiled/wechat/src/SwipeAction/props.js @@ -6,4 +6,7 @@ export var SwipeActionDefaultProps = { defaultSwiped: '', damping: 70, disabled: false, + onSwipeEnd: function () { }, + onSwipeStart: function () { }, + onButtonTap: function () { }, }; diff --git a/src/SwipeAction/props.ts b/src/SwipeAction/props.ts index d080f214a..ca48efcbc 100644 --- a/src/SwipeAction/props.ts +++ b/src/SwipeAction/props.ts @@ -72,4 +72,7 @@ export const SwipeActionDefaultProps: Partial = { defaultSwiped: '', damping: 70, disabled: false, + onSwipeEnd() {}, + onSwipeStart() {}, + onButtonTap() {}, };