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