Files
HuajisheTools/HuajisheCheckChaoXing/miniprogram_npm/tdesign-miniprogram/popup/popup.wxs
2025-10-01 10:01:52 +08:00

19 lines
510 B
XML

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 && e.target.dataset.prevention) {
return false;
}
}
module.exports = {
getPopupStyles: getPopupStyles,
onContentTouchMove: onContentTouchMove,
};