From f46786f11c5c08ead7501a82e5a71430ad69b782 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期日, 27 四月 2025 17:39:24 +0800 Subject: [PATCH] 修复线索问题定位错误问题 --- miniprogram_npm/tdesign-miniprogram/popup/popup.wxs | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/miniprogram_npm/tdesign-miniprogram/popup/popup.wxs b/miniprogram_npm/tdesign-miniprogram/popup/popup.wxs index a2da0d0..2486a86 100644 --- a/miniprogram_npm/tdesign-miniprogram/popup/popup.wxs +++ b/miniprogram_npm/tdesign-miniprogram/popup/popup.wxs @@ -1,8 +1,18 @@ -function getPopupStyles(zIndex) { +function getPopupStyles(zIndex, distanceTop, placement) { var zIndexStyle = zIndex ? 'z-index:' + zIndex + ';' : ''; + if ((placement === 'top' || placement === 'left' || placement === 'right') && distanceTop) { + zIndexStyle = zIndexStyle + 'top:' + distanceTop + 'px;' + } return zIndexStyle; +} + +function onContentTouchMove (e) { + if (e.target.dataset.prevention) { + return false; + }; } module.exports = { getPopupStyles: getPopupStyles, + onContentTouchMove: onContentTouchMove }; -- Gitblit v1.9.3