@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.iife.js
CHANGED
|
@@ -2042,7 +2042,8 @@ var pops = (function () {
|
|
|
2042
2042
|
return options.preventEvent(event);
|
|
2043
2043
|
}
|
|
2044
2044
|
else {
|
|
2045
|
-
|
|
2045
|
+
// 返回true阻止滑动
|
|
2046
|
+
return true;
|
|
2046
2047
|
}
|
|
2047
2048
|
},
|
|
2048
2049
|
});
|
|
@@ -3987,6 +3988,8 @@ var pops = (function () {
|
|
|
3987
3988
|
if (typeof config?.btn?.min?.callback === "function") {
|
|
3988
3989
|
config.btn.min.callback(eventDetails, event);
|
|
3989
3990
|
}
|
|
3991
|
+
}, {
|
|
3992
|
+
capture: true,
|
|
3990
3993
|
});
|
|
3991
3994
|
/* 最大化按钮点击事件 */
|
|
3992
3995
|
popsDOMUtils.on(headerMaxBtnElement, "click", (event) => {
|
|
@@ -4014,6 +4017,8 @@ var pops = (function () {
|
|
|
4014
4017
|
if (typeof config?.btn?.max?.callback === "function") {
|
|
4015
4018
|
config.btn.max.callback(eventDetails, event);
|
|
4016
4019
|
}
|
|
4020
|
+
}, {
|
|
4021
|
+
capture: true,
|
|
4017
4022
|
});
|
|
4018
4023
|
/* 先隐藏窗口化按钮 */
|
|
4019
4024
|
headerMiseBtnElement?.style?.setProperty("display", "none");
|
|
@@ -4049,13 +4054,19 @@ var pops = (function () {
|
|
|
4049
4054
|
if (typeof config?.btn?.mise?.callback === "function") {
|
|
4050
4055
|
config.btn.mise.callback(eventDetails, event);
|
|
4051
4056
|
}
|
|
4057
|
+
}, {
|
|
4058
|
+
capture: true,
|
|
4052
4059
|
});
|
|
4053
4060
|
/* 关闭按钮点击事件 */
|
|
4054
4061
|
popsDOMUtils.on(headerCloseBtnElement, "click", (event) => {
|
|
4062
|
+
event.preventDefault();
|
|
4063
|
+
event.stopPropagation();
|
|
4055
4064
|
PopsInstanceUtils.removeInstance([pops.config.layer.iframe], guid, false);
|
|
4056
4065
|
if (typeof config?.btn?.close?.callback === "function") {
|
|
4057
4066
|
config.btn.close.callback(eventDetails, event);
|
|
4058
4067
|
}
|
|
4068
|
+
}, {
|
|
4069
|
+
capture: true,
|
|
4059
4070
|
});
|
|
4060
4071
|
PopsHandler.handlePush(PopsType, {
|
|
4061
4072
|
guid: guid,
|