@whitesev/pops 1.7.6 → 1.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.amd.js +12 -1
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +12 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +12 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +12 -1
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +12 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/iframe/index.ts +14 -0
- package/src/utils/PopsInstanceUtils.ts +2 -1
package/dist/index.esm.js
CHANGED
|
@@ -2039,7 +2039,8 @@ const PopsInstanceUtils = {
|
|
|
2039
2039
|
return options.preventEvent(event);
|
|
2040
2040
|
}
|
|
2041
2041
|
else {
|
|
2042
|
-
|
|
2042
|
+
// 返回true阻止滑动
|
|
2043
|
+
return true;
|
|
2043
2044
|
}
|
|
2044
2045
|
},
|
|
2045
2046
|
});
|
|
@@ -3984,6 +3985,8 @@ class PopsIframe {
|
|
|
3984
3985
|
if (typeof config?.btn?.min?.callback === "function") {
|
|
3985
3986
|
config.btn.min.callback(eventDetails, event);
|
|
3986
3987
|
}
|
|
3988
|
+
}, {
|
|
3989
|
+
capture: true,
|
|
3987
3990
|
});
|
|
3988
3991
|
/* 最大化按钮点击事件 */
|
|
3989
3992
|
popsDOMUtils.on(headerMaxBtnElement, "click", (event) => {
|
|
@@ -4011,6 +4014,8 @@ class PopsIframe {
|
|
|
4011
4014
|
if (typeof config?.btn?.max?.callback === "function") {
|
|
4012
4015
|
config.btn.max.callback(eventDetails, event);
|
|
4013
4016
|
}
|
|
4017
|
+
}, {
|
|
4018
|
+
capture: true,
|
|
4014
4019
|
});
|
|
4015
4020
|
/* 先隐藏窗口化按钮 */
|
|
4016
4021
|
headerMiseBtnElement?.style?.setProperty("display", "none");
|
|
@@ -4046,13 +4051,19 @@ class PopsIframe {
|
|
|
4046
4051
|
if (typeof config?.btn?.mise?.callback === "function") {
|
|
4047
4052
|
config.btn.mise.callback(eventDetails, event);
|
|
4048
4053
|
}
|
|
4054
|
+
}, {
|
|
4055
|
+
capture: true,
|
|
4049
4056
|
});
|
|
4050
4057
|
/* 关闭按钮点击事件 */
|
|
4051
4058
|
popsDOMUtils.on(headerCloseBtnElement, "click", (event) => {
|
|
4059
|
+
event.preventDefault();
|
|
4060
|
+
event.stopPropagation();
|
|
4052
4061
|
PopsInstanceUtils.removeInstance([pops.config.layer.iframe], guid, false);
|
|
4053
4062
|
if (typeof config?.btn?.close?.callback === "function") {
|
|
4054
4063
|
config.btn.close.callback(eventDetails, event);
|
|
4055
4064
|
}
|
|
4065
|
+
}, {
|
|
4066
|
+
capture: true,
|
|
4056
4067
|
});
|
|
4057
4068
|
PopsHandler.handlePush(PopsType, {
|
|
4058
4069
|
guid: guid,
|