@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.iife.js
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
var pops = (function () {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* 存储在元素属性上的事件名
|
|
6
|
+
*/
|
|
4
7
|
const SymbolEvents = Symbol("events_" + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1));
|
|
5
8
|
|
|
6
|
-
const
|
|
9
|
+
const PopsCoreDefaultEnv = {
|
|
7
10
|
document: document,
|
|
8
11
|
window: window,
|
|
9
12
|
globalThis: globalThis,
|
|
10
13
|
self: self,
|
|
11
14
|
};
|
|
15
|
+
const PopsCoreEnv = Object.assign({}, PopsCoreDefaultEnv);
|
|
12
16
|
const PopsCore = {
|
|
13
17
|
get document() {
|
|
14
18
|
return PopsCoreEnv.document;
|
|
@@ -2228,17 +2232,18 @@ var pops = (function () {
|
|
|
2228
2232
|
}
|
|
2229
2233
|
const popsDOMUtils = new PopsDOMUtils();
|
|
2230
2234
|
|
|
2231
|
-
const
|
|
2235
|
+
const PopsLayerData = {
|
|
2232
2236
|
alert: [],
|
|
2233
2237
|
confirm: [],
|
|
2234
|
-
prompt: [],
|
|
2235
|
-
loading: [],
|
|
2236
|
-
iframe: [],
|
|
2237
|
-
tooltip: [],
|
|
2238
2238
|
drawer: [],
|
|
2239
2239
|
folder: [],
|
|
2240
|
+
iframe: [],
|
|
2241
|
+
loading: [],
|
|
2240
2242
|
panel: [],
|
|
2243
|
+
prompt: [],
|
|
2241
2244
|
rightClickMenu: [],
|
|
2245
|
+
// 没有 searchSuggestion
|
|
2246
|
+
tooltip: [],
|
|
2242
2247
|
};
|
|
2243
2248
|
|
|
2244
2249
|
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";
|
|
@@ -2433,8 +2438,8 @@ var pops = (function () {
|
|
|
2433
2438
|
function isVisibleNode($css) {
|
|
2434
2439
|
return $css.position !== "static" && $css.display !== "none";
|
|
2435
2440
|
}
|
|
2436
|
-
Object.keys(
|
|
2437
|
-
let layerList =
|
|
2441
|
+
Object.keys(PopsLayerData).forEach((layerName) => {
|
|
2442
|
+
let layerList = PopsLayerData[layerName];
|
|
2438
2443
|
for (let index = 0; index < layerList.length; index++) {
|
|
2439
2444
|
const layer = layerList[index];
|
|
2440
2445
|
let nodeStyle = window.getComputedStyle(layer.animElement);
|
|
@@ -2982,8 +2987,7 @@ var pops = (function () {
|
|
|
2982
2987
|
let style = configValue == null
|
|
2983
2988
|
? ""
|
|
2984
2989
|
: typeof configValue === "function"
|
|
2985
|
-
?
|
|
2986
|
-
configValue()
|
|
2990
|
+
? configValue()
|
|
2987
2991
|
: configValue;
|
|
2988
2992
|
if (typeof style === "string") {
|
|
2989
2993
|
result.style = style;
|
|
@@ -2997,7 +3001,7 @@ var pops = (function () {
|
|
|
2997
3001
|
? configValue()
|
|
2998
3002
|
: configValue;
|
|
2999
3003
|
if (typeof zIndex === "string") {
|
|
3000
|
-
let newIndex = (zIndex =
|
|
3004
|
+
let newIndex = (zIndex = Number(zIndex));
|
|
3001
3005
|
if (!isNaN(newIndex)) {
|
|
3002
3006
|
result.zIndex = newIndex;
|
|
3003
3007
|
}
|
|
@@ -3078,37 +3082,38 @@ var pops = (function () {
|
|
|
3078
3082
|
|
|
3079
3083
|
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";
|
|
3080
3084
|
|
|
3085
|
+
const PopsIconData = {
|
|
3086
|
+
min: SVG_min,
|
|
3087
|
+
mise: SVG_mise,
|
|
3088
|
+
max: SVG_max,
|
|
3089
|
+
close: SVG_close,
|
|
3090
|
+
edit: SVG_edit,
|
|
3091
|
+
share: SVG_share,
|
|
3092
|
+
delete: SVG_delete,
|
|
3093
|
+
search: SVG_search,
|
|
3094
|
+
upload: SVG_upload,
|
|
3095
|
+
loading: SVG_loading,
|
|
3096
|
+
next: SVG_next,
|
|
3097
|
+
prev: SVG_prev,
|
|
3098
|
+
eleme: SVG_eleme,
|
|
3099
|
+
elemePlus: SVG_elemePlus,
|
|
3100
|
+
chromeFilled: SVG_chromeFilled,
|
|
3101
|
+
cpu: SVG_cpu,
|
|
3102
|
+
videoPlay: SVG_videoPlay,
|
|
3103
|
+
videoPause: SVG_videoPause,
|
|
3104
|
+
headset: SVG_headset,
|
|
3105
|
+
monitor: SVG_monitor,
|
|
3106
|
+
documentCopy: SVG_documentCopy,
|
|
3107
|
+
picture: SVG_picture,
|
|
3108
|
+
circleClose: SVG_circleClose,
|
|
3109
|
+
view: SVG_view,
|
|
3110
|
+
hide: SVG_hide,
|
|
3111
|
+
keyboard: SVG_keyboard,
|
|
3112
|
+
arrowRight: SVG_arrowRight,
|
|
3113
|
+
arrowLeft: SVG_arrowLeft,
|
|
3114
|
+
};
|
|
3081
3115
|
const PopsIcon = {
|
|
3082
|
-
$data:
|
|
3083
|
-
min: SVG_min,
|
|
3084
|
-
mise: SVG_mise,
|
|
3085
|
-
max: SVG_max,
|
|
3086
|
-
close: SVG_close,
|
|
3087
|
-
edit: SVG_edit,
|
|
3088
|
-
share: SVG_share,
|
|
3089
|
-
delete: SVG_delete,
|
|
3090
|
-
search: SVG_search,
|
|
3091
|
-
upload: SVG_upload,
|
|
3092
|
-
loading: SVG_loading,
|
|
3093
|
-
next: SVG_next,
|
|
3094
|
-
prev: SVG_prev,
|
|
3095
|
-
eleme: SVG_eleme,
|
|
3096
|
-
elemePlus: SVG_elemePlus,
|
|
3097
|
-
chromeFilled: SVG_chromeFilled,
|
|
3098
|
-
cpu: SVG_cpu,
|
|
3099
|
-
videoPlay: SVG_videoPlay,
|
|
3100
|
-
videoPause: SVG_videoPause,
|
|
3101
|
-
headset: SVG_headset,
|
|
3102
|
-
monitor: SVG_monitor,
|
|
3103
|
-
documentCopy: SVG_documentCopy,
|
|
3104
|
-
picture: SVG_picture,
|
|
3105
|
-
circleClose: SVG_circleClose,
|
|
3106
|
-
view: SVG_view,
|
|
3107
|
-
hide: SVG_hide,
|
|
3108
|
-
keyboard: SVG_keyboard,
|
|
3109
|
-
arrowRight: SVG_arrowRight,
|
|
3110
|
-
arrowLeft: SVG_arrowLeft,
|
|
3111
|
-
},
|
|
3116
|
+
$data: PopsIconData,
|
|
3112
3117
|
/**
|
|
3113
3118
|
* 判断是否存在某个icon
|
|
3114
3119
|
* @param iconName 图标名
|
|
@@ -3472,7 +3477,7 @@ var pops = (function () {
|
|
|
3472
3477
|
function clickEvent(event) {
|
|
3473
3478
|
popsDOMUtils.preventEvent(event);
|
|
3474
3479
|
// 获取该类型实例存储列表
|
|
3475
|
-
let targetLayer =
|
|
3480
|
+
let targetLayer = PopsLayerData[details.type];
|
|
3476
3481
|
function originalRun() {
|
|
3477
3482
|
if (details.config.mask.clickEvent.toClose) {
|
|
3478
3483
|
/* 关闭 */
|
|
@@ -3659,13 +3664,13 @@ var pops = (function () {
|
|
|
3659
3664
|
mode: mode,
|
|
3660
3665
|
guid: guid,
|
|
3661
3666
|
close() {
|
|
3662
|
-
return PopsInstanceUtils.close(mode,
|
|
3667
|
+
return PopsInstanceUtils.close(mode, PopsLayerData[mode], guid, config, animElement);
|
|
3663
3668
|
},
|
|
3664
3669
|
hide() {
|
|
3665
|
-
return PopsInstanceUtils.hide(mode,
|
|
3670
|
+
return PopsInstanceUtils.hide(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
|
|
3666
3671
|
},
|
|
3667
3672
|
show() {
|
|
3668
|
-
return PopsInstanceUtils.show(mode,
|
|
3673
|
+
return PopsInstanceUtils.show(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
|
|
3669
3674
|
},
|
|
3670
3675
|
};
|
|
3671
3676
|
},
|
|
@@ -3687,13 +3692,13 @@ var pops = (function () {
|
|
|
3687
3692
|
mode: mode,
|
|
3688
3693
|
guid: guid,
|
|
3689
3694
|
close() {
|
|
3690
|
-
return PopsInstanceUtils.close(mode,
|
|
3695
|
+
return PopsInstanceUtils.close(mode, PopsLayerData[mode], guid, config, animElement);
|
|
3691
3696
|
},
|
|
3692
3697
|
hide() {
|
|
3693
|
-
return PopsInstanceUtils.hide(mode,
|
|
3698
|
+
return PopsInstanceUtils.hide(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
|
|
3694
3699
|
},
|
|
3695
3700
|
show() {
|
|
3696
|
-
return PopsInstanceUtils.show(mode,
|
|
3701
|
+
return PopsInstanceUtils.show(mode, PopsLayerData[mode], guid, config, animElement, maskElement);
|
|
3697
3702
|
},
|
|
3698
3703
|
};
|
|
3699
3704
|
},
|
|
@@ -3805,20 +3810,20 @@ var pops = (function () {
|
|
|
3805
3810
|
if (type === "loading" ||
|
|
3806
3811
|
type === "tooltip" ||
|
|
3807
3812
|
type === "rightClickMenu") {
|
|
3808
|
-
let layer =
|
|
3813
|
+
let layer = PopsLayerData[type];
|
|
3809
3814
|
if (layer) {
|
|
3810
3815
|
PopsInstanceUtils.removeInstance([layer], "", true);
|
|
3811
3816
|
}
|
|
3812
3817
|
}
|
|
3813
3818
|
else {
|
|
3814
3819
|
PopsInstanceUtils.removeInstance([
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3820
|
+
PopsLayerData.alert,
|
|
3821
|
+
PopsLayerData.confirm,
|
|
3822
|
+
PopsLayerData.prompt,
|
|
3823
|
+
PopsLayerData.iframe,
|
|
3824
|
+
PopsLayerData.drawer,
|
|
3825
|
+
PopsLayerData.folder,
|
|
3826
|
+
PopsLayerData.panel,
|
|
3822
3827
|
], "", true);
|
|
3823
3828
|
}
|
|
3824
3829
|
}
|
|
@@ -3839,7 +3844,7 @@ var pops = (function () {
|
|
|
3839
3844
|
* @param value
|
|
3840
3845
|
*/
|
|
3841
3846
|
handlePush(type, value) {
|
|
3842
|
-
|
|
3847
|
+
PopsLayerData[type].push(value);
|
|
3843
3848
|
},
|
|
3844
3849
|
};
|
|
3845
3850
|
|
|
@@ -4761,7 +4766,7 @@ var pops = (function () {
|
|
|
4761
4766
|
popsDOMUtils.on(headerCloseBtnElement, "click", (event) => {
|
|
4762
4767
|
event.preventDefault();
|
|
4763
4768
|
event.stopPropagation();
|
|
4764
|
-
PopsInstanceUtils.removeInstance([
|
|
4769
|
+
PopsInstanceUtils.removeInstance([PopsLayerData.iframe], guid, false);
|
|
4765
4770
|
if (typeof config?.btn?.close?.callback === "function") {
|
|
4766
4771
|
config.btn.close.callback(eventDetails, event);
|
|
4767
4772
|
}
|
|
@@ -7059,7 +7064,10 @@ var pops = (function () {
|
|
|
7059
7064
|
},
|
|
7060
7065
|
};
|
|
7061
7066
|
|
|
7062
|
-
|
|
7067
|
+
/**
|
|
7068
|
+
* 处理组件(把组件配置转为组件元素)
|
|
7069
|
+
*/
|
|
7070
|
+
const PanelHandlerComponents = () => {
|
|
7063
7071
|
return {
|
|
7064
7072
|
/**
|
|
7065
7073
|
* 左侧的ul容器
|
|
@@ -9768,11 +9776,11 @@ var pops = (function () {
|
|
|
9768
9776
|
if ($mask != null) {
|
|
9769
9777
|
$anim.after($mask);
|
|
9770
9778
|
}
|
|
9771
|
-
let
|
|
9779
|
+
let panelHandlerComponents = PanelHandlerComponents();
|
|
9772
9780
|
/**
|
|
9773
9781
|
* 处理内部配置
|
|
9774
9782
|
*/
|
|
9775
|
-
|
|
9783
|
+
panelHandlerComponents.init({
|
|
9776
9784
|
config: config,
|
|
9777
9785
|
$el: {
|
|
9778
9786
|
$pops: $pops,
|
|
@@ -11052,14 +11060,14 @@ var pops = (function () {
|
|
|
11052
11060
|
/** 配置 */
|
|
11053
11061
|
config = {
|
|
11054
11062
|
/** 版本号 */
|
|
11055
|
-
version: "2025.
|
|
11063
|
+
version: "2025.7.1",
|
|
11056
11064
|
cssText: PopsCSS,
|
|
11057
11065
|
/** icon图标的svg代码 */
|
|
11058
11066
|
iconSVG: PopsIcon.$data,
|
|
11059
11067
|
/** 当前已配置的动画@keyframes名字映射(初始化时生成) */
|
|
11060
11068
|
animation: PopsAnimation.$data,
|
|
11061
11069
|
/** 存储已创建的元素 */
|
|
11062
|
-
layer:
|
|
11070
|
+
layer: PopsLayerData,
|
|
11063
11071
|
/** 禁止滚动 */
|
|
11064
11072
|
forbiddenScroll: {
|
|
11065
11073
|
event(event) {
|
|
@@ -11075,7 +11083,7 @@ var pops = (function () {
|
|
|
11075
11083
|
/** pops处理float类型使用的工具类 */
|
|
11076
11084
|
MathFloatUtils: PopsMathFloatUtils,
|
|
11077
11085
|
/** pops.panel中用于处理各个类型的工具 */
|
|
11078
|
-
|
|
11086
|
+
PanelHandlerComponents: PanelHandlerComponents,
|
|
11079
11087
|
};
|
|
11080
11088
|
init() { }
|
|
11081
11089
|
/**
|