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/popup/popup.wxs | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/miniprogram_npm/tdesign-miniprogram/popup/popup.wxs b/miniprogram_npm/tdesign-miniprogram/popup/popup.wxs
index 2486a86..2f4a01f 100644
--- a/miniprogram_npm/tdesign-miniprogram/popup/popup.wxs
+++ b/miniprogram_npm/tdesign-miniprogram/popup/popup.wxs
@@ -1,18 +1,18 @@
function getPopupStyles(zIndex, distanceTop, placement) {
var zIndexStyle = zIndex ? 'z-index:' + zIndex + ';' : '';
if ((placement === 'top' || placement === 'left' || placement === 'right') && distanceTop) {
- zIndexStyle = zIndexStyle + 'top:' + distanceTop + 'px;'
+ zIndexStyle = zIndexStyle + 'top:' + distanceTop + 'px;' + '--td-popup-distance-top:' + distanceTop + 'px;';
}
return zIndexStyle;
}
-function onContentTouchMove (e) {
- if (e.target.dataset.prevention) {
+function onContentTouchMove(e) {
+ if (e.target && e.target.dataset.prevention) {
return false;
- };
+ }
}
module.exports = {
getPopupStyles: getPopupStyles,
- onContentTouchMove: onContentTouchMove
+ onContentTouchMove: onContentTouchMove,
};
--
Gitblit v1.9.3