From a9dfaf943fcd7d041f4dd91aa659d011a69e673a Mon Sep 17 00:00:00 2001 From: rayhomie <1572801584@qq.com> Date: Fri, 13 Sep 2024 14:07:19 +0800 Subject: [PATCH] fix: onSwipeStart is not undefined --- 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() {}, };