From af930887f9972b7dd21c80599e697e44f5e5a579 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 13 十一月 2024 14:05:04 +0800
Subject: [PATCH] 移除视频相关组件
---
miniprogram_npm/tdesign-miniprogram/swipe-cell/swipe-cell.wxs | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/miniprogram_npm/tdesign-miniprogram/swipe-cell/swipe-cell.wxs b/miniprogram_npm/tdesign-miniprogram/swipe-cell/swipe-cell.wxs
index dbb7fec..e166240 100644
--- a/miniprogram_npm/tdesign-miniprogram/swipe-cell/swipe-cell.wxs
+++ b/miniprogram_npm/tdesign-miniprogram/swipe-cell/swipe-cell.wxs
@@ -28,7 +28,7 @@
var initOpen = function (ownerInstance) {
getState(ownerInstance);
if (state.opened.constructor === 'Boolean') {
- // opened涓篵oolen绫诲瀷锛屽垽鏂粯璁ゆ墦寮�
+ // opened涓篵oolean绫诲瀷锛屽垽鏂粯璁ゆ墦寮�
if (state.opened && state.rightWidth > 0) {
swipeMove(-state.rightWidth);
} else if (state.opened && state.leftWidth > 0) {
@@ -131,8 +131,12 @@
if (state.direction !== 'horizontal') {
return;
}
+ if (!state.dragging) {
+ ownerInstance.triggerEvent('dragstart');
+ }
state.dragging = true;
swipeMove(state.startOffset + state.deltaX);
+ return false;
};
var open = function (position) {
@@ -163,6 +167,7 @@
close();
}
}
+ ownerInstance.triggerEvent('dragend');
};
module.exports = {
--
Gitblit v1.9.3