@whitesev/pops 1.5.3 → 1.5.4
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 +111 -50
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +111 -50
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +111 -50
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +111 -50
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +111 -50
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +111 -50
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/components/rightClickMenu/indexType.d.ts +1 -1
- package/dist/types/src/components/searchSuggestion/indexType.d.ts +1 -1
- package/dist/types/src/components/tooltip/indexType.d.ts +1 -1
- package/dist/types/src/handler/PopsElementHandler.d.ts +2 -1
- package/dist/types/src/handler/PopsHandler.d.ts +5 -0
- package/dist/types/src/types/components.d.ts +1 -1
- package/package.json +3 -2
- package/src/Pops.ts +1 -1
- package/src/components/alert/index.ts +6 -3
- package/src/components/confirm/index.ts +6 -3
- package/src/components/drawer/index.ts +6 -3
- package/src/components/folder/index.ts +6 -2
- package/src/components/iframe/index.ts +12 -8
- package/src/components/loading/index.ts +8 -3
- package/src/components/panel/index.ts +8 -3
- package/src/components/prompt/index.ts +7 -4
- package/src/components/rightClickMenu/index.ts +15 -3
- package/src/components/rightClickMenu/indexType.ts +1 -1
- package/src/components/searchSuggestion/index.ts +1 -1
- package/src/components/searchSuggestion/indexType.ts +1 -1
- package/src/components/tooltip/index.ts +3 -1
- package/src/components/tooltip/indexType.ts +1 -1
- package/src/handler/PopsElementHandler.ts +24 -18
- package/src/handler/PopsHandler.ts +27 -4
- package/src/types/components.d.ts +1 -1
- package/src/utils/PopsUtils.ts +8 -4
package/dist/index.amd.js
CHANGED
|
@@ -1524,17 +1524,21 @@ define((function () { 'use strict';
|
|
|
1524
1524
|
else {
|
|
1525
1525
|
for (const targetKeyName in target) {
|
|
1526
1526
|
if (targetKeyName in source) {
|
|
1527
|
+
// @ts-ignore
|
|
1527
1528
|
let targetValue = target[targetKeyName];
|
|
1529
|
+
// @ts-ignore
|
|
1528
1530
|
let sourceValue = source[targetKeyName];
|
|
1529
1531
|
if (typeof sourceValue === "object" &&
|
|
1530
1532
|
sourceValue != null &&
|
|
1531
1533
|
!UtilsContext.isDOM(sourceValue) &&
|
|
1532
1534
|
Object.keys(sourceValue).length) {
|
|
1533
1535
|
/* 源端的值是object类型,且不是元素节点 */
|
|
1536
|
+
// @ts-ignore
|
|
1534
1537
|
target[targetKeyName] = UtilsContext.assign(targetValue, sourceValue, isAdd);
|
|
1535
1538
|
continue;
|
|
1536
1539
|
}
|
|
1537
1540
|
/* 直接赋值 */
|
|
1541
|
+
// @ts-ignore
|
|
1538
1542
|
target[targetKeyName] = sourceValue;
|
|
1539
1543
|
}
|
|
1540
1544
|
}
|
|
@@ -3552,6 +3556,9 @@ define((function () { 'use strict';
|
|
|
3552
3556
|
*/
|
|
3553
3557
|
getMaskHTML(guid, zIndex = 101, style = "") {
|
|
3554
3558
|
zIndex = zIndex - 100;
|
|
3559
|
+
if (style.startsWith(";")) {
|
|
3560
|
+
style = style.replace(";", "");
|
|
3561
|
+
}
|
|
3555
3562
|
return `<div class="pops-mask" data-guid="${guid}" style="z-index:${zIndex};${style}"></div>`;
|
|
3556
3563
|
},
|
|
3557
3564
|
/**
|
|
@@ -3561,15 +3568,16 @@ define((function () { 'use strict';
|
|
|
3561
3568
|
* @param config
|
|
3562
3569
|
* @param html
|
|
3563
3570
|
* @param bottomBtnHTML
|
|
3571
|
+
* @param zIndex
|
|
3564
3572
|
*/
|
|
3565
|
-
getAnimHTML(guid, type, config, html = "", bottomBtnHTML = "") {
|
|
3573
|
+
getAnimHTML(guid, type, config, html = "", bottomBtnHTML = "", zIndex) {
|
|
3566
3574
|
let __config = config;
|
|
3567
3575
|
let popsAnimStyle = "";
|
|
3568
3576
|
let popsStyle = "";
|
|
3569
3577
|
let popsPosition = __config.position || "";
|
|
3570
3578
|
if (config.zIndex != null) {
|
|
3571
|
-
popsAnimStyle += `z-index: ${
|
|
3572
|
-
popsStyle += `z-index: ${
|
|
3579
|
+
popsAnimStyle += `z-index: ${zIndex};`;
|
|
3580
|
+
popsStyle += `z-index: ${zIndex};`;
|
|
3573
3581
|
}
|
|
3574
3582
|
if (__config.width != null) {
|
|
3575
3583
|
popsStyle += `width: ${__config.width};`;
|
|
@@ -3578,24 +3586,25 @@ define((function () { 'use strict';
|
|
|
3578
3586
|
popsStyle += `height: ${__config.height};`;
|
|
3579
3587
|
}
|
|
3580
3588
|
let hasBottomBtn = bottomBtnHTML.trim() === "" ? false : true;
|
|
3581
|
-
return
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3589
|
+
return /*html*/ `
|
|
3590
|
+
<div
|
|
3591
|
+
class="pops-anim"
|
|
3592
|
+
anim="${__config.animation || ""}"
|
|
3593
|
+
style="${popsAnimStyle};"
|
|
3594
|
+
data-guid="${guid}">
|
|
3586
3595
|
${config.style != null
|
|
3587
3596
|
? `<style tyle="text/css">${config.style}</style>`
|
|
3588
3597
|
: ""}
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3598
|
+
<div
|
|
3599
|
+
class="pops ${config.class || ""}"
|
|
3600
|
+
data-bottom-btn="${hasBottomBtn}"
|
|
3601
|
+
type-value="${type}"
|
|
3602
|
+
style="${popsStyle}"
|
|
3603
|
+
position="${popsPosition}"
|
|
3604
|
+
data-guid="${guid}">
|
|
3605
|
+
${html}
|
|
3606
|
+
</div>
|
|
3607
|
+
</div>`;
|
|
3599
3608
|
},
|
|
3600
3609
|
/**
|
|
3601
3610
|
* 获取顶部按钮层HTML
|
|
@@ -4205,6 +4214,18 @@ define((function () { 'use strict';
|
|
|
4205
4214
|
capture: true,
|
|
4206
4215
|
});
|
|
4207
4216
|
},
|
|
4217
|
+
/**
|
|
4218
|
+
* 把配置的z-index配置转为数字
|
|
4219
|
+
* @param zIndex
|
|
4220
|
+
*/
|
|
4221
|
+
handleZIndex(zIndex) {
|
|
4222
|
+
if (typeof zIndex === "function") {
|
|
4223
|
+
return zIndex();
|
|
4224
|
+
}
|
|
4225
|
+
else {
|
|
4226
|
+
return zIndex;
|
|
4227
|
+
}
|
|
4228
|
+
},
|
|
4208
4229
|
/**
|
|
4209
4230
|
* 处理config.only
|
|
4210
4231
|
* @param type 当前弹窗类型
|
|
@@ -4230,8 +4251,19 @@ define((function () { 'use strict';
|
|
|
4230
4251
|
}
|
|
4231
4252
|
}
|
|
4232
4253
|
else {
|
|
4233
|
-
|
|
4234
|
-
|
|
4254
|
+
// 对配置进行处理
|
|
4255
|
+
// 选择配置的z-index和已有的pops实例的最大z-index值
|
|
4256
|
+
if (typeof config.zIndex === "function") {
|
|
4257
|
+
let originZIndexFn = config.zIndex;
|
|
4258
|
+
config.zIndex = () => {
|
|
4259
|
+
const { zIndex: maxZIndex } = PopsInstanceUtils.getPopsMaxZIndex(PopsHandler.handleZIndex(originZIndexFn) + 100);
|
|
4260
|
+
return maxZIndex;
|
|
4261
|
+
};
|
|
4262
|
+
}
|
|
4263
|
+
else {
|
|
4264
|
+
const { zIndex: maxZIndex } = PopsInstanceUtils.getPopsMaxZIndex(PopsHandler.handleZIndex(config.zIndex) + 100);
|
|
4265
|
+
config.zIndex = maxZIndex;
|
|
4266
|
+
}
|
|
4235
4267
|
}
|
|
4236
4268
|
return config;
|
|
4237
4269
|
},
|
|
@@ -4319,12 +4351,15 @@ define((function () { 'use strict';
|
|
|
4319
4351
|
// 设置当前类型
|
|
4320
4352
|
const PopsType = "alert";
|
|
4321
4353
|
config = PopsHandler.handleOnly(PopsType, config);
|
|
4322
|
-
|
|
4354
|
+
// 先把z-index提取出来
|
|
4355
|
+
let zIndex = PopsHandler.handleZIndex(config.zIndex);
|
|
4356
|
+
let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex);
|
|
4323
4357
|
let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
|
|
4324
4358
|
let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
|
|
4325
4359
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
4326
4360
|
let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
|
|
4327
|
-
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4361
|
+
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4362
|
+
/*html*/ `
|
|
4328
4363
|
<div
|
|
4329
4364
|
class="pops-alert-title"
|
|
4330
4365
|
style="text-align: ${config.title.position};
|
|
@@ -4339,7 +4374,7 @@ define((function () { 'use strict';
|
|
|
4339
4374
|
? config.content.text
|
|
4340
4375
|
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}
|
|
4341
4376
|
</div>
|
|
4342
|
-
${bottomBtnHTML}`, bottomBtnHTML);
|
|
4377
|
+
${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
4343
4378
|
/**
|
|
4344
4379
|
* 弹窗的主元素,包括动画层
|
|
4345
4380
|
*/
|
|
@@ -4501,12 +4536,15 @@ define((function () { 'use strict';
|
|
|
4501
4536
|
// 设置当前类型
|
|
4502
4537
|
const PopsType = "confirm";
|
|
4503
4538
|
config = PopsHandler.handleOnly(PopsType, config);
|
|
4504
|
-
|
|
4539
|
+
// 先把z-index提取出来
|
|
4540
|
+
let zIndex = PopsHandler.handleZIndex(config.zIndex);
|
|
4541
|
+
let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex);
|
|
4505
4542
|
let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
|
|
4506
4543
|
let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
|
|
4507
4544
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
4508
4545
|
let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
|
|
4509
|
-
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4546
|
+
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4547
|
+
/*html*/ `
|
|
4510
4548
|
<div class="pops-confirm-title" style="text-align: ${config.title.position};${headerStyle}">
|
|
4511
4549
|
${config.title.html
|
|
4512
4550
|
? config.title.text
|
|
@@ -4520,7 +4558,7 @@ define((function () { 'use strict';
|
|
|
4520
4558
|
|
|
4521
4559
|
</div>
|
|
4522
4560
|
${bottomBtnHTML}
|
|
4523
|
-
`, bottomBtnHTML);
|
|
4561
|
+
`, bottomBtnHTML, zIndex);
|
|
4524
4562
|
/**
|
|
4525
4563
|
* 弹窗的主元素,包括动画层
|
|
4526
4564
|
*/
|
|
@@ -4689,12 +4727,15 @@ define((function () { 'use strict';
|
|
|
4689
4727
|
let guid = popsUtils.getRandomGUID();
|
|
4690
4728
|
const PopsType = "prompt";
|
|
4691
4729
|
config = PopsHandler.handleOnly(PopsType, config);
|
|
4692
|
-
|
|
4730
|
+
// 先把z-index提取出来
|
|
4731
|
+
let zIndex = PopsHandler.handleZIndex(config.zIndex);
|
|
4732
|
+
let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex);
|
|
4693
4733
|
let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
|
|
4694
4734
|
let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
|
|
4695
4735
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
4696
4736
|
let { contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
|
|
4697
|
-
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4737
|
+
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4738
|
+
/*html*/ `
|
|
4698
4739
|
<div class="pops-prompt-title" style="text-align: ${config.title.position};${headerStyle}">
|
|
4699
4740
|
${config.title.html
|
|
4700
4741
|
? config.title.text
|
|
@@ -4712,8 +4753,8 @@ define((function () { 'use strict';
|
|
|
4712
4753
|
(config.content.password ? "password" : "text") +
|
|
4713
4754
|
'">'}
|
|
4714
4755
|
</div>
|
|
4715
|
-
|
|
4716
|
-
`, bottomBtnHTML);
|
|
4756
|
+
${bottomBtnHTML}
|
|
4757
|
+
`, bottomBtnHTML, zIndex);
|
|
4717
4758
|
/**
|
|
4718
4759
|
* 弹窗的主元素,包括动画层
|
|
4719
4760
|
*/
|
|
@@ -4810,9 +4851,12 @@ define((function () { 'use strict';
|
|
|
4810
4851
|
let guid = popsUtils.getRandomGUID();
|
|
4811
4852
|
const PopsType = "loading";
|
|
4812
4853
|
config = PopsHandler.handleOnly(PopsType, config);
|
|
4813
|
-
|
|
4854
|
+
// 先把z-index提取出来
|
|
4855
|
+
let zIndex = PopsHandler.handleZIndex(config.zIndex);
|
|
4856
|
+
let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex);
|
|
4814
4857
|
let { contentPStyle } = PopsElementHandler.getContentStyle("loading", config);
|
|
4815
|
-
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4858
|
+
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4859
|
+
/*html*/ `
|
|
4816
4860
|
<div class="pops-loading-content">
|
|
4817
4861
|
${config.addIndexCSS
|
|
4818
4862
|
? `
|
|
@@ -4827,7 +4871,7 @@ define((function () { 'use strict';
|
|
|
4827
4871
|
${config.style != null ? `<style>${config.style}</style>` : ""}
|
|
4828
4872
|
<p pops style="${contentPStyle}">${config.content.text}</p>
|
|
4829
4873
|
</div>
|
|
4830
|
-
`, "");
|
|
4874
|
+
`, "", zIndex);
|
|
4831
4875
|
/**
|
|
4832
4876
|
* 弹窗的主元素,包括动画层
|
|
4833
4877
|
*/
|
|
@@ -4943,12 +4987,15 @@ define((function () { 'use strict';
|
|
|
4943
4987
|
let maskExtraStyle = config.animation != null && config.animation != ""
|
|
4944
4988
|
? "position:absolute;"
|
|
4945
4989
|
: "";
|
|
4946
|
-
|
|
4990
|
+
// 先把z-index提取出来
|
|
4991
|
+
let zIndex = PopsHandler.handleZIndex(config.zIndex);
|
|
4992
|
+
let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex, maskExtraStyle);
|
|
4947
4993
|
let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
|
|
4948
4994
|
let iframeLoadingHTML = '<div class="pops-loading"></div>';
|
|
4949
4995
|
let titleText = config.title.text.trim() !== "" ? config.title.text : config.url;
|
|
4950
4996
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
4951
|
-
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4997
|
+
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4998
|
+
/*html*/ `
|
|
4952
4999
|
<div
|
|
4953
5000
|
class="pops-iframe-title"
|
|
4954
5001
|
style="text-align: ${config.title.position};${headerStyle}"
|
|
@@ -4969,7 +5016,7 @@ define((function () { 'use strict';
|
|
|
4969
5016
|
</iframe>
|
|
4970
5017
|
</div>
|
|
4971
5018
|
${config.loading.enable ? iframeLoadingHTML : ""}
|
|
4972
|
-
`, "");
|
|
5019
|
+
`, "", zIndex);
|
|
4973
5020
|
/**
|
|
4974
5021
|
* 弹窗的主元素,包括动画层
|
|
4975
5022
|
*/
|
|
@@ -5201,7 +5248,7 @@ define((function () { 'use strict';
|
|
|
5201
5248
|
popsDOMUtils.addClassName(_toolTipElement_, config.className);
|
|
5202
5249
|
}
|
|
5203
5250
|
_toolTipElement_.setAttribute("data-guid", guid);
|
|
5204
|
-
_toolTipElement_.style.zIndex = config.zIndex.toString();
|
|
5251
|
+
_toolTipElement_.style.zIndex = PopsHandler.handleZIndex(config.zIndex).toString();
|
|
5205
5252
|
_toolTipElement_.innerHTML = `<div style="text-align: center;">${getContent()}</div>`;
|
|
5206
5253
|
/* 箭头元素 */
|
|
5207
5254
|
let _toolTipArrowHTML_ = '<div class="pops-tip-arrow"></div>';
|
|
@@ -5518,12 +5565,15 @@ define((function () { 'use strict';
|
|
|
5518
5565
|
let guid = popsUtils.getRandomGUID();
|
|
5519
5566
|
const PopsType = "drawer";
|
|
5520
5567
|
config = PopsHandler.handleOnly(PopsType, config);
|
|
5521
|
-
|
|
5568
|
+
// 先把z-index提取出来
|
|
5569
|
+
let zIndex = PopsHandler.handleZIndex(config.zIndex);
|
|
5570
|
+
let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex);
|
|
5522
5571
|
let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
|
|
5523
5572
|
let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
|
|
5524
5573
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
5525
5574
|
let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
|
|
5526
|
-
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
5575
|
+
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
5576
|
+
/*html*/ `
|
|
5527
5577
|
${config.title.enable
|
|
5528
5578
|
? `
|
|
5529
5579
|
<div class="pops-${PopsType}-title" style="${headerStyle}">
|
|
@@ -5547,7 +5597,7 @@ define((function () { 'use strict';
|
|
|
5547
5597
|
</div>
|
|
5548
5598
|
|
|
5549
5599
|
${bottomBtnHTML}
|
|
5550
|
-
`, bottomBtnHTML);
|
|
5600
|
+
`, bottomBtnHTML, zIndex);
|
|
5551
5601
|
/**
|
|
5552
5602
|
* 弹窗的主元素,包括动画层
|
|
5553
5603
|
*/
|
|
@@ -5905,7 +5955,9 @@ define((function () { 'use strict';
|
|
|
5905
5955
|
let guid = popsUtils.getRandomGUID();
|
|
5906
5956
|
const PopsType = "folder";
|
|
5907
5957
|
config = PopsHandler.handleOnly(PopsType, config);
|
|
5908
|
-
|
|
5958
|
+
// 先把z-index提取出来
|
|
5959
|
+
let zIndex = PopsHandler.handleZIndex(config.zIndex);
|
|
5960
|
+
let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex);
|
|
5909
5961
|
let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
|
|
5910
5962
|
let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
|
|
5911
5963
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
@@ -6016,7 +6068,7 @@ define((function () { 'use strict';
|
|
|
6016
6068
|
</div>
|
|
6017
6069
|
</div>
|
|
6018
6070
|
${bottomBtnHTML}
|
|
6019
|
-
`, bottomBtnHTML);
|
|
6071
|
+
`, bottomBtnHTML, zIndex);
|
|
6020
6072
|
/**
|
|
6021
6073
|
* 弹窗的主元素,包括动画层
|
|
6022
6074
|
*/
|
|
@@ -7007,10 +7059,13 @@ define((function () { 'use strict';
|
|
|
7007
7059
|
let guid = popsUtils.getRandomGUID();
|
|
7008
7060
|
const PopsType = "panel";
|
|
7009
7061
|
config = PopsHandler.handleOnly(PopsType, config);
|
|
7010
|
-
|
|
7062
|
+
// 先把z-index提取出来
|
|
7063
|
+
let zIndex = PopsHandler.handleZIndex(config.zIndex);
|
|
7064
|
+
let maskHTML = PopsElementHandler.getMaskHTML(guid, zIndex);
|
|
7011
7065
|
let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
|
|
7012
7066
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
7013
|
-
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
7067
|
+
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
7068
|
+
/*html*/ `
|
|
7014
7069
|
<div
|
|
7015
7070
|
class="pops-${PopsType}-title"
|
|
7016
7071
|
style="text-align: ${config.title.position};
|
|
@@ -7028,7 +7083,7 @@ define((function () { 'use strict';
|
|
|
7028
7083
|
<ul class="pops-panel-container-header-ul"></ul>
|
|
7029
7084
|
<ul></ul>
|
|
7030
7085
|
</section>
|
|
7031
|
-
</div>`, "");
|
|
7086
|
+
</div>`, "", zIndex);
|
|
7032
7087
|
/**
|
|
7033
7088
|
* 弹窗的主元素,包括动画层
|
|
7034
7089
|
*/
|
|
@@ -9119,7 +9174,7 @@ define((function () { 'use strict';
|
|
|
9119
9174
|
* @param isChildren 是否是rightClickMenu的某一项的子菜单
|
|
9120
9175
|
*/
|
|
9121
9176
|
getMenuContainerElement(zIndex, isChildren) {
|
|
9122
|
-
let menuElement = popsUtils.parseTextToDOM(`
|
|
9177
|
+
let menuElement = popsUtils.parseTextToDOM(/*html*/ `
|
|
9123
9178
|
<div class="pops-${PopsType}" ${isChildren ? 'is-children="true"' : ""}>
|
|
9124
9179
|
<style type="text/css" data-from="pops-${PopsType}">
|
|
9125
9180
|
.pops-${PopsType} *{
|
|
@@ -9207,6 +9262,12 @@ define((function () { 'use strict';
|
|
|
9207
9262
|
}
|
|
9208
9263
|
return menuElement;
|
|
9209
9264
|
},
|
|
9265
|
+
/**
|
|
9266
|
+
* 动态获取配的z-index
|
|
9267
|
+
*/
|
|
9268
|
+
getMenuZIndex() {
|
|
9269
|
+
return PopsHandler.handleZIndex(config.zIndex);
|
|
9270
|
+
},
|
|
9210
9271
|
/**
|
|
9211
9272
|
* 获取left、top偏移
|
|
9212
9273
|
* @param menuElement 菜单元素
|
|
@@ -9241,7 +9302,7 @@ define((function () { 'use strict';
|
|
|
9241
9302
|
* @param _config_
|
|
9242
9303
|
*/
|
|
9243
9304
|
showMenu(menuEvent, _config_) {
|
|
9244
|
-
let menuElement = this.getMenuContainerElement(
|
|
9305
|
+
let menuElement = this.getMenuContainerElement(this.getMenuZIndex(), false);
|
|
9245
9306
|
menuElement["__menuData__"] = {
|
|
9246
9307
|
child: [],
|
|
9247
9308
|
};
|
|
@@ -9279,7 +9340,7 @@ define((function () { 'use strict';
|
|
|
9279
9340
|
* @param targetLiElement 父li项元素
|
|
9280
9341
|
*/
|
|
9281
9342
|
showClildMenu(menuEvent, posInfo, _config_, rootElement, targetLiElement) {
|
|
9282
|
-
let menuElement = this.getMenuContainerElement(
|
|
9343
|
+
let menuElement = this.getMenuContainerElement(this.getMenuZIndex(), true);
|
|
9283
9344
|
menuElement["__menuData__"] = {
|
|
9284
9345
|
parent: targetLiElement,
|
|
9285
9346
|
root: rootElement,
|
|
@@ -9545,7 +9606,7 @@ define((function () { 'use strict';
|
|
|
9545
9606
|
}
|
|
9546
9607
|
ul.pops-${PopsType}-search-suggestion-hint{
|
|
9547
9608
|
position: ${config.isAbsolute ? "absolute" : "fixed"};
|
|
9548
|
-
z-index: ${config.zIndex};
|
|
9609
|
+
z-index: ${PopsHandler.handleZIndex(config.zIndex)};
|
|
9549
9610
|
width: 0;
|
|
9550
9611
|
left: 0;
|
|
9551
9612
|
max-height: ${config.maxHeight};
|
|
@@ -9982,7 +10043,7 @@ define((function () { 'use strict';
|
|
|
9982
10043
|
/** 配置 */
|
|
9983
10044
|
config = {
|
|
9984
10045
|
/** 版本号 */
|
|
9985
|
-
version: "2024.9.
|
|
10046
|
+
version: "2024.9.10",
|
|
9986
10047
|
cssText: {
|
|
9987
10048
|
/** 主CSS */
|
|
9988
10049
|
index: indexCSS,
|