@whitesev/pops 2.1.4 → 2.1.5
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 +72 -64
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +72 -64
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +72 -64
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +72 -64
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +72 -64
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +72 -64
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/GlobalConfig.d.ts +7 -2
- package/dist/types/src/Pops.d.ts +39 -34
- package/dist/types/src/{Core.d.ts → PopsCore.d.ts} +4 -3
- package/dist/types/src/PopsIcon.d.ts +30 -2
- package/dist/types/src/PopsLayer.d.ts +3 -1
- package/dist/types/src/components/alert/config.d.ts +1 -1
- package/dist/types/src/components/alert/index.d.ts +1 -1
- package/dist/types/src/components/alert/{indexType.d.ts → types/index.d.ts} +2 -2
- package/dist/types/src/components/confirm/config.d.ts +1 -1
- package/dist/types/src/components/confirm/index.d.ts +1 -1
- package/dist/types/src/components/confirm/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/drawer/config.d.ts +1 -1
- package/dist/types/src/components/drawer/index.d.ts +1 -1
- package/dist/types/src/components/drawer/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/folder/config.d.ts +1 -1
- package/dist/types/src/components/folder/index.d.ts +1 -1
- package/dist/types/src/components/folder/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/iframe/config.d.ts +1 -1
- package/dist/types/src/components/iframe/index.d.ts +1 -1
- package/dist/types/src/components/iframe/{indexType.d.ts → types/index.d.ts} +2 -2
- package/dist/types/src/components/loading/config.d.ts +1 -1
- package/dist/types/src/components/loading/index.d.ts +1 -1
- package/dist/types/src/components/loading/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/panel/config.d.ts +1 -1
- package/dist/types/src/components/panel/{PanelHandleContentDetails.d.ts → handlerComponents.d.ts} +16 -13
- package/dist/types/src/components/panel/index.d.ts +1 -1
- package/dist/types/src/components/panel/{buttonType.d.ts → types/components-button.d.ts} +3 -3
- package/dist/types/src/components/panel/{commonType.d.ts → types/components-common.d.ts} +2 -2
- package/dist/types/src/components/panel/{deepMenuType.d.ts → types/components-deepMenu.d.ts} +3 -3
- package/dist/types/src/components/panel/{formsType.d.ts → types/components-forms.d.ts} +2 -2
- package/dist/types/src/components/panel/{inputType.d.ts → types/components-input.d.ts} +1 -1
- package/dist/types/src/components/panel/{ownType.d.ts → types/components-own.d.ts} +1 -1
- package/dist/types/src/components/panel/{selectType.d.ts → types/components-select.d.ts} +3 -3
- package/dist/types/src/components/panel/{selectMultipleType.d.ts → types/components-selectMultiple.d.ts} +2 -2
- package/dist/types/src/components/panel/{sliderType.d.ts → types/components-slider.d.ts} +1 -1
- package/dist/types/src/components/panel/{switchType.d.ts → types/components-switch.d.ts} +1 -1
- package/dist/types/src/components/panel/{textareaType.d.ts → types/components-textarea.d.ts} +1 -1
- package/dist/types/src/components/panel/{indexType.d.ts → types/index.d.ts} +12 -12
- package/dist/types/src/components/prompt/config.d.ts +1 -1
- package/dist/types/src/components/prompt/index.d.ts +1 -1
- package/dist/types/src/components/prompt/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/rightClickMenu/config.d.ts +1 -1
- package/dist/types/src/components/rightClickMenu/index.d.ts +2 -2
- package/dist/types/src/components/rightClickMenu/{indexType.d.ts → types/index.d.ts} +2 -2
- package/dist/types/src/components/searchSuggestion/config.d.ts +1 -1
- package/dist/types/src/components/searchSuggestion/index.d.ts +2 -2
- package/dist/types/src/components/searchSuggestion/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/tooltip/config.d.ts +1 -1
- package/dist/types/src/components/tooltip/index.d.ts +2 -2
- package/dist/types/src/components/tooltip/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/handler/PopsHandler.d.ts +8 -8
- package/dist/types/src/types/event.d.ts +1 -1
- package/dist/types/src/types/main.d.ts +18 -18
- package/dist/types/src/types/mask.d.ts +7 -7
- package/dist/types/src/{Config.d.ts → utils/PopsDOMUtilsEventsConfig.d.ts} +3 -0
- package/dist/types/src/utils/PopsInstanceUtils.d.ts +8 -8
- package/package.json +1 -1
- package/src/GlobalConfig.ts +6 -5
- package/src/Pops.ts +17 -17
- package/src/{Core.ts → PopsCore.ts} +13 -14
- package/src/PopsIcon.ts +34 -32
- package/src/PopsLayer.ts +8 -7
- package/src/components/alert/config.ts +1 -1
- package/src/components/alert/index.ts +1 -1
- package/src/components/alert/{indexType.ts → types/index.ts} +2 -2
- package/src/components/confirm/config.ts +1 -1
- package/src/components/confirm/index.ts +1 -1
- package/src/components/confirm/{indexType.ts → types/index.ts} +1 -1
- package/src/components/drawer/config.ts +1 -1
- package/src/components/drawer/index.ts +1 -1
- package/src/components/drawer/{indexType.ts → types/index.ts} +1 -1
- package/src/components/folder/config.ts +1 -1
- package/src/components/folder/index.ts +1 -1
- package/src/components/folder/{indexType.ts → types/index.ts} +1 -1
- package/src/components/iframe/config.ts +1 -1
- package/src/components/iframe/index.ts +4 -4
- package/src/components/iframe/{indexType.ts → types/index.ts} +2 -2
- package/src/components/loading/config.ts +1 -1
- package/src/components/loading/index.ts +1 -1
- package/src/components/loading/{indexType.ts → types/index.ts} +1 -1
- package/src/components/panel/config.ts +1 -1
- package/src/components/panel/{PanelHandleContentDetails.ts → handlerComponents.ts} +17 -14
- package/src/components/panel/index.ts +4 -4
- package/src/components/panel/{buttonType.ts → types/components-button.ts} +5 -4
- package/src/components/panel/{commonType.ts → types/components-common.ts} +2 -2
- package/src/components/panel/{deepMenuType.ts → types/components-deepMenu.ts} +3 -3
- package/src/components/panel/{formsType.ts → types/components-forms.ts} +2 -2
- package/src/components/panel/{inputType.ts → types/components-input.ts} +1 -1
- package/src/components/panel/{ownType.ts → types/components-own.ts} +1 -1
- package/src/components/panel/{selectType.ts → types/components-select.ts} +3 -3
- package/src/components/panel/{selectMultipleType.ts → types/components-selectMultiple.ts} +2 -2
- package/src/components/panel/{sliderType.ts → types/components-slider.ts} +1 -1
- package/src/components/panel/{switchType.ts → types/components-switch.ts} +1 -1
- package/src/components/panel/{textareaType.ts → types/components-textarea.ts} +1 -1
- package/src/components/panel/{indexType.ts → types/index.ts} +12 -12
- package/src/components/prompt/config.ts +1 -1
- package/src/components/prompt/index.ts +1 -1
- package/src/components/prompt/{indexType.ts → types/index.ts} +1 -1
- package/src/components/rightClickMenu/config.ts +1 -1
- package/src/components/rightClickMenu/index.ts +2 -2
- package/src/components/rightClickMenu/{indexType.ts → types/index.ts} +2 -2
- package/src/components/searchSuggestion/config.ts +1 -1
- package/src/components/searchSuggestion/index.ts +1 -1
- package/src/components/searchSuggestion/{indexType.ts → types/index.ts} +1 -1
- package/src/components/tooltip/config.ts +1 -1
- package/src/components/tooltip/index.ts +1 -1
- package/src/components/tooltip/{indexType.ts → types/index.ts} +1 -1
- package/src/handler/PopsElementHandler.ts +3 -3
- package/src/handler/PopsHandler.ts +26 -26
- package/src/types/event.d.ts +1 -1
- package/src/types/main.d.ts +18 -18
- package/src/types/mask.d.ts +7 -7
- package/src/utils/PopsDOMUtils.ts +2 -2
- package/src/{Config.ts → utils/PopsDOMUtilsEventsConfig.ts} +3 -0
- package/src/utils/PopsInstanceUtils.ts +12 -12
- package/src/utils/PopsUtils.ts +1 -1
package/dist/index.amd.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
define((function () { 'use strict';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* 存储在元素属性上的事件名
|
|
5
|
+
*/
|
|
3
6
|
const SymbolEvents = Symbol("events_" + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1));
|
|
4
7
|
|
|
5
|
-
const
|
|
8
|
+
const PopsCoreDefaultEnv = {
|
|
6
9
|
document: document,
|
|
7
10
|
window: window,
|
|
8
11
|
globalThis: globalThis,
|
|
9
12
|
self: self,
|
|
10
13
|
};
|
|
14
|
+
const PopsCoreEnv = Object.assign({}, PopsCoreDefaultEnv);
|
|
11
15
|
const PopsCore = {
|
|
12
16
|
get document() {
|
|
13
17
|
return PopsCoreEnv.document;
|
|
@@ -2227,17 +2231,18 @@ define((function () { 'use strict';
|
|
|
2227
2231
|
}
|
|
2228
2232
|
const popsDOMUtils = new PopsDOMUtils();
|
|
2229
2233
|
|
|
2230
|
-
const
|
|
2234
|
+
const PopsLayerData = {
|
|
2231
2235
|
alert: [],
|
|
2232
2236
|
confirm: [],
|
|
2233
|
-
prompt: [],
|
|
2234
|
-
loading: [],
|
|
2235
|
-
iframe: [],
|
|
2236
|
-
tooltip: [],
|
|
2237
2237
|
drawer: [],
|
|
2238
2238
|
folder: [],
|
|
2239
|
+
iframe: [],
|
|
2240
|
+
loading: [],
|
|
2239
2241
|
panel: [],
|
|
2242
|
+
prompt: [],
|
|
2240
2243
|
rightClickMenu: [],
|
|
2244
|
+
// 没有 searchSuggestion
|
|
2245
|
+
tooltip: [],
|
|
2241
2246
|
};
|
|
2242
2247
|
|
|
2243
2248
|
var indexCSS = "@charset \"utf-8\";\r\n.pops * {\r\n\t-webkit-box-sizing: border-box;\r\n\tbox-sizing: border-box;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\t-webkit-tap-highlight-color: transparent;\r\n\t/* 代替::-webkit-scrollbar */\r\n\tscrollbar-width: thin;\r\n}\r\n.pops {\r\n\t--pops-bg-opacity: 1;\r\n\t--pops-bd-opacity: 1;\r\n\t--pops-font-size: 16px;\r\n\tinterpolate-size: allow-keywords;\r\n}\r\n.pops-mask {\r\n\t--pops-mask-bg-opacity: 0.4;\r\n}\r\n.pops {\r\n\tbackground-color: rgb(255, 255, 255, var(--pops-bg-opacity));\r\n\tborder-radius: 4px;\r\n\tborder: 1px solid rgb(235, 238, 245, var(--pops-bd-opacity));\r\n\tfont-size: var(--pops-font-size);\r\n\tline-height: normal;\r\n\tbox-shadow: 0 0 12px rgba(0, 0, 0, 0.12);\r\n\tbox-sizing: border-box;\r\n\toverflow: hidden;\r\n\ttransition: all 0.35s;\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n}\r\n.pops-anim {\r\n\tposition: fixed;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n.pops-anim[anim=\"\"] {\r\n\ttop: unset;\r\n\tright: unset;\r\n\tbottom: unset;\r\n\tleft: unset;\r\n\twidth: unset;\r\n\theight: unset;\r\n\ttransition: none;\r\n}\r\n/* 底部图标动画和样式 */\r\n.pops i.pops-bottom-icon[is-loading=\"true\"] {\r\n\tanimation: rotating 2s linear infinite;\r\n}\r\n.pops i.pops-bottom-icon {\r\n\theight: 1em;\r\n\twidth: 1em;\r\n\tline-height: normal;\r\n\tdisplay: inline-flex;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\tposition: relative;\r\n\tfill: currentColor;\r\n\tcolor: inherit;\r\n\tfont-size: inherit;\r\n}\r\n\r\n/* 遮罩层样式 */\r\n.pops-mask {\r\n\tposition: fixed;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tborder: 0;\r\n\tborder-radius: 0;\r\n\tbackground-color: rgba(0, 0, 0, var(--pops-mask-bg-opacity));\r\n\tbox-shadow: none;\r\n\ttransition: none;\r\n}\r\n\r\n.pops-header-controls button.pops-header-control[type][data-header] {\r\n\tfloat: right;\r\n\tmargin: 0 0;\r\n\toutline: 0;\r\n\tborder: 0;\r\n\tborder-color: rgb(136, 136, 136, var(--pops-bd-opacity));\r\n\tbackground-color: transparent;\r\n\tcolor: #888;\r\n\tcursor: pointer;\r\n}\r\n.pops-header-controls button.pops-header-control[type=\"max\"],\r\n.pops-header-controls button.pops-header-control[type=\"mise\"],\r\n.pops-header-controls button.pops-header-control[type=\"min\"] {\r\n\toutline: 0 !important;\r\n\tborder: 0;\r\n\tborder-color: rgb(136, 136, 136, var(--pops-bd-opacity));\r\n\tbackground-color: transparent;\r\n\tcolor: rgb(136, 136, 136);\r\n\tcursor: pointer;\r\n\ttransition: all 0.3s ease-in-out;\r\n}\r\nbutton.pops-header-control i {\r\n\tcolor: rgb(144, 147, 153);\r\n\tfont-size: inherit;\r\n\tdisplay: inline-flex;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\tposition: relative;\r\n\tfill: currentColor;\r\n}\r\nbutton.pops-header-control svg {\r\n\theight: 1.25em;\r\n\twidth: 1.25em;\r\n}\r\nbutton.pops-header-control {\r\n\tright: 15px;\r\n\tpadding: 0;\r\n\tborder: none;\r\n\toutline: 0;\r\n\tbackground: 0 0;\r\n\tcursor: pointer;\r\n\tposition: unset;\r\n\tline-height: normal;\r\n}\r\nbutton.pops-header-control i:hover {\r\n\tcolor: rgb(64, 158, 255);\r\n}\r\n.pops-header-controls[data-margin] button.pops-header-control {\r\n\tmargin: 0 6px;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n}\r\n.pops[type-value] .pops-header-controls {\r\n\tdisplay: flex;\r\n\tgap: 6px;\r\n}\r\n\r\n/* 标题禁止选中文字 */\r\n.pops [class^=\"pops\"][class*=\"-title\"] p[pops] {\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n}\r\n\r\n/* <code> */\r\n.pops code {\r\n\tfont-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\r\n\tfont-size: 0.85em;\r\n\tcolor: #000;\r\n\tbackground-color: #f0f0f0;\r\n\tborder-radius: 3px;\r\n\tborder: 0;\r\n\tpadding: 0.2em 0;\r\n\twhite-space: normal;\r\n\tbackground: #f5f5f5;\r\n\ttext-wrap: wrap;\r\n\ttext-align: left;\r\n\tword-spacing: normal;\r\n\tword-break: normal;\r\n\tword-wrap: normal;\r\n\tline-height: 1.4;\r\n\t-moz-tab-size: 8;\r\n\t-o-tab-size: 8;\r\n\ttab-size: 8;\r\n\t-webkit-hyphens: none;\r\n\t-moz-hyphens: none;\r\n\t-ms-hyphens: none;\r\n\thyphens: none;\r\n\tdirection: ltr;\r\n}\r\n\r\n.pops code::before,\r\n.pops code::after {\r\n\tletter-spacing: -0.2em;\r\n\tcontent: \"\\00a0\";\r\n}\r\n";
|
|
@@ -2432,8 +2437,8 @@ define((function () { 'use strict';
|
|
|
2432
2437
|
function isVisibleNode($css) {
|
|
2433
2438
|
return $css.position !== "static" && $css.display !== "none";
|
|
2434
2439
|
}
|
|
2435
|
-
Object.keys(
|
|
2436
|
-
let layerList =
|
|
2440
|
+
Object.keys(PopsLayerData).forEach((layerName) => {
|
|
2441
|
+
let layerList = PopsLayerData[layerName];
|
|
2437
2442
|
for (let index = 0; index < layerList.length; index++) {
|
|
2438
2443
|
const layer = layerList[index];
|
|
2439
2444
|
let nodeStyle = window.getComputedStyle(layer.animElement);
|
|
@@ -2981,8 +2986,7 @@ define((function () { 'use strict';
|
|
|
2981
2986
|
let style = configValue == null
|
|
2982
2987
|
? ""
|
|
2983
2988
|
: typeof configValue === "function"
|
|
2984
|
-
?
|
|
2985
|
-
configValue()
|
|
2989
|
+
? configValue()
|
|
2986
2990
|
: configValue;
|
|
2987
2991
|
if (typeof style === "string") {
|
|
2988
2992
|
result.style = style;
|
|
@@ -2996,7 +3000,7 @@ define((function () { 'use strict';
|
|
|
2996
3000
|
? configValue()
|
|
2997
3001
|
: configValue;
|
|
2998
3002
|
if (typeof zIndex === "string") {
|
|
2999
|
-
let newIndex = (zIndex =
|
|
3003
|
+
let newIndex = (zIndex = Number(zIndex));
|
|
3000
3004
|
if (!isNaN(newIndex)) {
|
|
3001
3005
|
result.zIndex = newIndex;
|
|
3002
3006
|
}
|
|
@@ -3077,37 +3081,38 @@ define((function () { 'use strict';
|
|
|
3077
3081
|
|
|
3078
3082
|
var SVG_arrowLeft = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 1024\">\r\n\t<path\r\n\t\td=\"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z\"></path>\r\n</svg>\r\n";
|
|
3079
3083
|
|
|
3084
|
+
const PopsIconData = {
|
|
3085
|
+
min: SVG_min,
|
|
3086
|
+
mise: SVG_mise,
|
|
3087
|
+
max: SVG_max,
|
|
3088
|
+
close: SVG_close,
|
|
3089
|
+
edit: SVG_edit,
|
|
3090
|
+
share: SVG_share,
|
|
3091
|
+
delete: SVG_delete,
|
|
3092
|
+
search: SVG_search,
|
|
3093
|
+
upload: SVG_upload,
|
|
3094
|
+
loading: SVG_loading,
|
|
3095
|
+
next: SVG_next,
|
|
3096
|
+
prev: SVG_prev,
|
|
3097
|
+
eleme: SVG_eleme,
|
|
3098
|
+
elemePlus: SVG_elemePlus,
|
|
3099
|
+
chromeFilled: SVG_chromeFilled,
|
|
3100
|
+
cpu: SVG_cpu,
|
|
3101
|
+
videoPlay: SVG_videoPlay,
|
|
3102
|
+
videoPause: SVG_videoPause,
|
|
3103
|
+
headset: SVG_headset,
|
|
3104
|
+
monitor: SVG_monitor,
|
|
3105
|
+
documentCopy: SVG_documentCopy,
|
|
3106
|
+
picture: SVG_picture,
|
|
3107
|
+
circleClose: SVG_circleClose,
|
|
3108
|
+
view: SVG_view,
|
|
3109
|
+
hide: SVG_hide,
|
|
3110
|
+
keyboard: SVG_keyboard,
|
|
3111
|
+
arrowRight: SVG_arrowRight,
|
|
3112
|
+
arrowLeft: SVG_arrowLeft,
|
|
3113
|
+
};
|
|
3080
3114
|
const PopsIcon = {
|
|
3081
|
-
$data:
|
|
3082
|
-
min: SVG_min,
|
|
3083
|
-
mise: SVG_mise,
|
|
3084
|
-
max: SVG_max,
|
|
3085
|
-
close: SVG_close,
|
|
3086
|
-
edit: SVG_edit,
|
|
3087
|
-
share: SVG_share,
|
|
3088
|
-
delete: SVG_delete,
|
|
3089
|
-
search: SVG_search,
|
|
3090
|
-
upload: SVG_upload,
|
|
3091
|
-
loading: SVG_loading,
|
|
3092
|
-
next: SVG_next,
|
|
3093
|
-
prev: SVG_prev,
|
|
3094
|
-
eleme: SVG_eleme,
|
|
3095
|
-
elemePlus: SVG_elemePlus,
|
|
3096
|
-
chromeFilled: SVG_chromeFilled,
|
|
3097
|
-
cpu: SVG_cpu,
|
|
3098
|
-
videoPlay: SVG_videoPlay,
|
|
3099
|
-
videoPause: SVG_videoPause,
|
|
3100
|
-
headset: SVG_headset,
|
|
3101
|
-
monitor: SVG_monitor,
|
|
3102
|
-
documentCopy: SVG_documentCopy,
|
|
3103
|
-
picture: SVG_picture,
|
|
3104
|
-
circleClose: SVG_circleClose,
|
|
3105
|
-
view: SVG_view,
|
|
3106
|
-
hide: SVG_hide,
|
|
3107
|
-
keyboard: SVG_keyboard,
|
|
3108
|
-
arrowRight: SVG_arrowRight,
|
|
3109
|
-
arrowLeft: SVG_arrowLeft,
|
|
3110
|
-
},
|
|
3115
|
+
$data: PopsIconData,
|
|
3111
3116
|
/**
|
|
3112
3117
|
* 判断是否存在某个icon
|
|
3113
3118
|
* @param iconName 图标名
|
|
@@ -3471,7 +3476,7 @@ define((function () { 'use strict';
|
|
|
3471
3476
|
function clickEvent(event) {
|
|
3472
3477
|
popsDOMUtils.preventEvent(event);
|
|
3473
3478
|
// 获取该类型实例存储列表
|
|
3474
|
-
let targetLayer =
|
|
3479
|
+
let targetLayer = PopsLayerData[details.type];
|
|
3475
3480
|
function originalRun() {
|
|
3476
3481
|
if (details.config.mask.clickEvent.toClose) {
|
|
3477
3482
|
/* 关闭 */
|
|
@@ -3658,13 +3663,13 @@ define((function () { 'use strict';
|
|
|
3658
3663
|
mode: mode,
|
|
3659
3664
|
guid: guid,
|
|
3660
3665
|
close() {
|
|
3661
|
-
return PopsInstanceUtils.close(mode,
|
|
3666
|
+
return PopsInstanceUtils.close(mode, PopsLayerData[mode], guid, config, animElement);
|
|
3662
3667
|
},
|
|
3663
3668
|
hide() {
|
|
3664
|
-
return PopsInstanceUtils.hide(mode,
|
|
3669
|
+
return PopsInstanceUtils.hide(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
|
|
3665
3670
|
},
|
|
3666
3671
|
show() {
|
|
3667
|
-
return PopsInstanceUtils.show(mode,
|
|
3672
|
+
return PopsInstanceUtils.show(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
|
|
3668
3673
|
},
|
|
3669
3674
|
};
|
|
3670
3675
|
},
|
|
@@ -3686,13 +3691,13 @@ define((function () { 'use strict';
|
|
|
3686
3691
|
mode: mode,
|
|
3687
3692
|
guid: guid,
|
|
3688
3693
|
close() {
|
|
3689
|
-
return PopsInstanceUtils.close(mode,
|
|
3694
|
+
return PopsInstanceUtils.close(mode, PopsLayerData[mode], guid, config, animElement);
|
|
3690
3695
|
},
|
|
3691
3696
|
hide() {
|
|
3692
|
-
return PopsInstanceUtils.hide(mode,
|
|
3697
|
+
return PopsInstanceUtils.hide(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
|
|
3693
3698
|
},
|
|
3694
3699
|
show() {
|
|
3695
|
-
return PopsInstanceUtils.show(mode,
|
|
3700
|
+
return PopsInstanceUtils.show(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
|
|
3696
3701
|
},
|
|
3697
3702
|
};
|
|
3698
3703
|
},
|
|
@@ -3804,20 +3809,20 @@ define((function () { 'use strict';
|
|
|
3804
3809
|
if (type === "loading" ||
|
|
3805
3810
|
type === "tooltip" ||
|
|
3806
3811
|
type === "rightClickMenu") {
|
|
3807
|
-
let layer =
|
|
3812
|
+
let layer = PopsLayerData[type];
|
|
3808
3813
|
if (layer) {
|
|
3809
3814
|
PopsInstanceUtils.removeInstance([layer], "", true);
|
|
3810
3815
|
}
|
|
3811
3816
|
}
|
|
3812
3817
|
else {
|
|
3813
3818
|
PopsInstanceUtils.removeInstance([
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3819
|
+
PopsLayerData.alert,
|
|
3820
|
+
PopsLayerData.confirm,
|
|
3821
|
+
PopsLayerData.prompt,
|
|
3822
|
+
PopsLayerData.iframe,
|
|
3823
|
+
PopsLayerData.drawer,
|
|
3824
|
+
PopsLayerData.folder,
|
|
3825
|
+
PopsLayerData.panel,
|
|
3821
3826
|
], "", true);
|
|
3822
3827
|
}
|
|
3823
3828
|
}
|
|
@@ -3838,7 +3843,7 @@ define((function () { 'use strict';
|
|
|
3838
3843
|
* @param value
|
|
3839
3844
|
*/
|
|
3840
3845
|
handlePush(type, value) {
|
|
3841
|
-
|
|
3846
|
+
PopsLayerData[type].push(value);
|
|
3842
3847
|
},
|
|
3843
3848
|
};
|
|
3844
3849
|
|
|
@@ -4760,7 +4765,7 @@ define((function () { 'use strict';
|
|
|
4760
4765
|
popsDOMUtils.on(headerCloseBtnElement, "click", (event) => {
|
|
4761
4766
|
event.preventDefault();
|
|
4762
4767
|
event.stopPropagation();
|
|
4763
|
-
PopsInstanceUtils.removeInstance([
|
|
4768
|
+
PopsInstanceUtils.removeInstance([PopsLayerData.iframe], guid, false);
|
|
4764
4769
|
if (typeof config?.btn?.close?.callback === "function") {
|
|
4765
4770
|
config.btn.close.callback(eventDetails, event);
|
|
4766
4771
|
}
|
|
@@ -7058,7 +7063,10 @@ define((function () { 'use strict';
|
|
|
7058
7063
|
},
|
|
7059
7064
|
};
|
|
7060
7065
|
|
|
7061
|
-
|
|
7066
|
+
/**
|
|
7067
|
+
* 处理组件(把组件配置转为组件元素)
|
|
7068
|
+
*/
|
|
7069
|
+
const PanelHandlerComponents = () => {
|
|
7062
7070
|
return {
|
|
7063
7071
|
/**
|
|
7064
7072
|
* 左侧的ul容器
|
|
@@ -9767,11 +9775,11 @@ define((function () { 'use strict';
|
|
|
9767
9775
|
if ($mask != null) {
|
|
9768
9776
|
$anim.after($mask);
|
|
9769
9777
|
}
|
|
9770
|
-
let
|
|
9778
|
+
let panelHandlerComponents = PanelHandlerComponents();
|
|
9771
9779
|
/**
|
|
9772
9780
|
* 处理内部配置
|
|
9773
9781
|
*/
|
|
9774
|
-
|
|
9782
|
+
panelHandlerComponents.init({
|
|
9775
9783
|
config: config,
|
|
9776
9784
|
$el: {
|
|
9777
9785
|
$pops: $pops,
|
|
@@ -11051,14 +11059,14 @@ define((function () { 'use strict';
|
|
|
11051
11059
|
/** 配置 */
|
|
11052
11060
|
config = {
|
|
11053
11061
|
/** 版本号 */
|
|
11054
|
-
version: "2025.
|
|
11062
|
+
version: "2025.7.1",
|
|
11055
11063
|
cssText: PopsCSS,
|
|
11056
11064
|
/** icon图标的svg代码 */
|
|
11057
11065
|
iconSVG: PopsIcon.$data,
|
|
11058
11066
|
/** 当前已配置的动画@keyframes名字映射(初始化时生成) */
|
|
11059
11067
|
animation: PopsAnimation.$data,
|
|
11060
11068
|
/** 存储已创建的元素 */
|
|
11061
|
-
layer:
|
|
11069
|
+
layer: PopsLayerData,
|
|
11062
11070
|
/** 禁止滚动 */
|
|
11063
11071
|
forbiddenScroll: {
|
|
11064
11072
|
event(event) {
|
|
@@ -11074,7 +11082,7 @@ define((function () { 'use strict';
|
|
|
11074
11082
|
/** pops处理float类型使用的工具类 */
|
|
11075
11083
|
MathFloatUtils: PopsMathFloatUtils,
|
|
11076
11084
|
/** pops.panel中用于处理各个类型的工具 */
|
|
11077
|
-
|
|
11085
|
+
PanelHandlerComponents: PanelHandlerComponents,
|
|
11078
11086
|
};
|
|
11079
11087
|
init() { }
|
|
11080
11088
|
/**
|