From 3282e95db0207ee133d1e98d9771dec9d83b0fc4 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 02 四月 2026 16:24:38 +0800
Subject: [PATCH] 2026.4.2 新增专题管理功能
---
miniprogram_npm/tdesign-miniprogram/swipe-cell/swipe-cell.wxs | 11 ++++++++++-
1 files changed, 10 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..14efbf6 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) {
@@ -121,6 +121,7 @@
};
var startDrag = function (event, ownerInstance) {
+ ownerInstance.callMethod('catchMove');
getState(ownerInstance);
touchStart(event);
};
@@ -128,11 +129,18 @@
var onDrag = function (event, ownerInstance) {
getState(ownerInstance);
touchMove(event);
+ if (state.direction === 'vertical') {
+ ownerInstance.callMethod('skipMove');
+ }
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 +171,7 @@
close();
}
}
+ ownerInstance.triggerEvent('dragend');
};
module.exports = {
--
Gitblit v1.9.3