@whitesev/pops 2.0.5 → 2.0.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 +134 -80
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +134 -80
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +134 -80
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +134 -80
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +134 -80
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +134 -80
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/Pops.d.ts +20411 -15
- package/dist/types/src/components/alert/index.d.ts +3 -3
- package/dist/types/src/components/confirm/index.d.ts +3 -3
- package/dist/types/src/components/drawer/index.d.ts +3 -3
- package/dist/types/src/components/drawer/indexType.d.ts +10 -2
- package/dist/types/src/components/folder/index.d.ts +3 -3
- package/dist/types/src/components/folder/indexType.d.ts +4 -1
- package/dist/types/src/components/iframe/index.d.ts +6 -3
- package/dist/types/src/components/iframe/indexType.d.ts +2 -0
- package/dist/types/src/components/loading/index.d.ts +3 -3
- package/dist/types/src/components/loading/indexType.d.ts +10 -1
- package/dist/types/src/components/panel/index.d.ts +3 -3
- package/dist/types/src/components/panel/indexType.d.ts +1 -0
- package/dist/types/src/components/panel/sliderType.d.ts +14 -4
- package/dist/types/src/components/prompt/index.d.ts +3 -3
- package/dist/types/src/components/prompt/indexType.d.ts +1 -0
- package/dist/types/src/components/rightClickMenu/index.d.ts +20315 -3
- package/dist/types/src/components/rightClickMenu/indexType.d.ts +6 -2
- package/dist/types/src/components/searchSuggestion/index.d.ts +141 -3
- package/dist/types/src/components/searchSuggestion/indexType.d.ts +0 -108
- package/dist/types/src/components/tooltip/index.d.ts +51 -3
- package/package.json +1 -1
- package/src/Pops.ts +25 -24
- package/src/components/alert/index.ts +6 -5
- package/src/components/confirm/index.ts +6 -5
- package/src/components/drawer/index.ts +6 -5
- package/src/components/drawer/indexType.ts +10 -2
- package/src/components/folder/index.ts +6 -5
- package/src/components/folder/indexType.ts +4 -1
- package/src/components/iframe/index.ts +4 -4
- package/src/components/iframe/indexType.ts +2 -0
- package/src/components/loading/config.ts +1 -1
- package/src/components/loading/index.ts +12 -11
- package/src/components/loading/indexType.ts +10 -1
- package/src/components/panel/PanelHandleContentDetails.ts +62 -29
- package/src/components/panel/index.ts +6 -5
- package/src/components/panel/indexType.ts +1 -0
- package/src/components/panel/sliderType.ts +14 -4
- package/src/components/prompt/index.ts +6 -5
- package/src/components/prompt/indexType.ts +1 -0
- package/src/components/rightClickMenu/index.ts +4 -5
- package/src/components/rightClickMenu/indexType.ts +6 -7
- package/src/components/searchSuggestion/index.ts +4 -4
- package/src/components/searchSuggestion/indexType.ts +0 -109
- package/src/components/tooltip/index.ts +9 -9
package/dist/index.amd.js
CHANGED
|
@@ -3246,8 +3246,8 @@ define((function () { 'use strict';
|
|
|
3246
3246
|
};
|
|
3247
3247
|
};
|
|
3248
3248
|
|
|
3249
|
-
|
|
3250
|
-
|
|
3249
|
+
const PopsAlert = {
|
|
3250
|
+
init(details) {
|
|
3251
3251
|
const guid = popsUtils.getRandomGUID();
|
|
3252
3252
|
// 设置当前类型
|
|
3253
3253
|
const PopsType = "alert";
|
|
@@ -3336,9 +3336,10 @@ define((function () { 'use strict';
|
|
|
3336
3336
|
endCallBack: config.dragEndCallBack,
|
|
3337
3337
|
});
|
|
3338
3338
|
}
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3339
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3340
|
+
return result;
|
|
3341
|
+
},
|
|
3342
|
+
};
|
|
3342
3343
|
|
|
3343
3344
|
const PopsConfirmConfig = () => {
|
|
3344
3345
|
return {
|
|
@@ -3428,8 +3429,8 @@ define((function () { 'use strict';
|
|
|
3428
3429
|
};
|
|
3429
3430
|
};
|
|
3430
3431
|
|
|
3431
|
-
|
|
3432
|
-
|
|
3432
|
+
const PopsConfirm = {
|
|
3433
|
+
init(details) {
|
|
3433
3434
|
const guid = popsUtils.getRandomGUID();
|
|
3434
3435
|
// 设置当前类型
|
|
3435
3436
|
const PopsType = "confirm";
|
|
@@ -3519,9 +3520,10 @@ define((function () { 'use strict';
|
|
|
3519
3520
|
endCallBack: config.dragEndCallBack,
|
|
3520
3521
|
});
|
|
3521
3522
|
}
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3523
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3524
|
+
return result;
|
|
3525
|
+
},
|
|
3526
|
+
};
|
|
3525
3527
|
|
|
3526
3528
|
const PopsPromptConfig = () => {
|
|
3527
3529
|
return {
|
|
@@ -3615,8 +3617,8 @@ define((function () { 'use strict';
|
|
|
3615
3617
|
};
|
|
3616
3618
|
};
|
|
3617
3619
|
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
+
const PopsPrompt = {
|
|
3621
|
+
init(details) {
|
|
3620
3622
|
const guid = popsUtils.getRandomGUID();
|
|
3621
3623
|
// 设置当前类型
|
|
3622
3624
|
const PopsType = "prompt";
|
|
@@ -3722,9 +3724,10 @@ define((function () { 'use strict';
|
|
|
3722
3724
|
if (config.content.select) {
|
|
3723
3725
|
$input.select();
|
|
3724
3726
|
}
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3727
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3728
|
+
return result;
|
|
3729
|
+
},
|
|
3730
|
+
};
|
|
3728
3731
|
|
|
3729
3732
|
const PopsLoadingConfig = () => {
|
|
3730
3733
|
return {
|
|
@@ -3748,13 +3751,14 @@ define((function () { 'use strict';
|
|
|
3748
3751
|
},
|
|
3749
3752
|
animation: "pops-anim-fadein-zoom",
|
|
3750
3753
|
forbiddenScroll: false,
|
|
3754
|
+
isAbsolute: false,
|
|
3751
3755
|
style: null,
|
|
3752
3756
|
addIndexCSS: true,
|
|
3753
3757
|
};
|
|
3754
3758
|
};
|
|
3755
3759
|
|
|
3756
|
-
|
|
3757
|
-
|
|
3760
|
+
const PopsLoading = {
|
|
3761
|
+
init(details) {
|
|
3758
3762
|
let config = PopsLoadingConfig();
|
|
3759
3763
|
config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
|
|
3760
3764
|
config = popsUtils.assign(config, details);
|
|
@@ -3784,9 +3788,6 @@ define((function () { 'use strict';
|
|
|
3784
3788
|
* 弹窗的主元素,包括动画层
|
|
3785
3789
|
*/
|
|
3786
3790
|
let $anim = PopsElementHandler.parseElement(animHTML);
|
|
3787
|
-
// 遮罩层必须是跟随主内容
|
|
3788
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3789
|
-
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3790
3791
|
let { popsElement: $pops } = PopsHandler.handleQueryElement($anim, PopsType);
|
|
3791
3792
|
/**
|
|
3792
3793
|
* 遮罩层元素
|
|
@@ -3806,9 +3807,6 @@ define((function () { 'use strict';
|
|
|
3806
3807
|
maskHTML: maskHTML,
|
|
3807
3808
|
});
|
|
3808
3809
|
$mask = _handleMask_.maskElement;
|
|
3809
|
-
// 遮罩层必须是跟随主内容
|
|
3810
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3811
|
-
popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3812
3810
|
elementList.push($mask);
|
|
3813
3811
|
}
|
|
3814
3812
|
let eventDetails = PopsHandler.handleLoadingEventDetails(guid, PopsType, $anim, $pops, $mask, config);
|
|
@@ -3822,9 +3820,16 @@ define((function () { 'use strict';
|
|
|
3822
3820
|
popsElement: $pops,
|
|
3823
3821
|
maskElement: $mask,
|
|
3824
3822
|
});
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3823
|
+
if (config.isAbsolute) {
|
|
3824
|
+
// 遮罩层必须是跟随主内容
|
|
3825
|
+
// 即设置主内容position: relative,mask:position: absolute
|
|
3826
|
+
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3827
|
+
$mask && popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3828
|
+
}
|
|
3829
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3830
|
+
return result;
|
|
3831
|
+
},
|
|
3832
|
+
};
|
|
3828
3833
|
|
|
3829
3834
|
const PopsIframeConfig = () => {
|
|
3830
3835
|
return {
|
|
@@ -3884,8 +3889,8 @@ define((function () { 'use strict';
|
|
|
3884
3889
|
};
|
|
3885
3890
|
};
|
|
3886
3891
|
|
|
3887
|
-
|
|
3888
|
-
|
|
3892
|
+
const PopsIframe = {
|
|
3893
|
+
init(details) {
|
|
3889
3894
|
const guid = popsUtils.getRandomGUID();
|
|
3890
3895
|
// 设置当前类型
|
|
3891
3896
|
const PopsType = "iframe";
|
|
@@ -4115,8 +4120,8 @@ define((function () { 'use strict';
|
|
|
4115
4120
|
});
|
|
4116
4121
|
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
4117
4122
|
return result;
|
|
4118
|
-
}
|
|
4119
|
-
}
|
|
4123
|
+
},
|
|
4124
|
+
};
|
|
4120
4125
|
|
|
4121
4126
|
const PopsDrawerConfig = () => {
|
|
4122
4127
|
return {
|
|
@@ -4205,8 +4210,8 @@ define((function () { 'use strict';
|
|
|
4205
4210
|
};
|
|
4206
4211
|
};
|
|
4207
4212
|
|
|
4208
|
-
|
|
4209
|
-
|
|
4213
|
+
const PopsDrawer = {
|
|
4214
|
+
init(details) {
|
|
4210
4215
|
const guid = popsUtils.getRandomGUID();
|
|
4211
4216
|
// 设置当前类型
|
|
4212
4217
|
const PopsType = "drawer";
|
|
@@ -4367,9 +4372,10 @@ define((function () { 'use strict';
|
|
|
4367
4372
|
$shadowContainer: $shadowContainer,
|
|
4368
4373
|
$shadowRoot: $shadowRoot,
|
|
4369
4374
|
});
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4375
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
4376
|
+
return result;
|
|
4377
|
+
},
|
|
4378
|
+
};
|
|
4373
4379
|
|
|
4374
4380
|
const PopsFolderConfig = () => {
|
|
4375
4381
|
return {
|
|
@@ -4531,8 +4537,8 @@ define((function () { 'use strict';
|
|
|
4531
4537
|
dwg: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAABaUExURUxpcXvGVIbNYXvHVHzJWYbNYXbDTWu9QHrGU4jOZHLBSW+/RYDJWmy+QoXMYHzHVYjOZHfET2m7P4LLXf3/+/T+7u3+5MXrsaXbiVyuMZjUeNb2xOP81bPjmuZ7vy0AAAAKdFJOUwA9z1wc33ign591Bg7OAAACdUlEQVRYw+2Yi3KjIBRAm51UI4gKxMei+f/f3PsQNU3SXtzOdGfWo0W4wBGFau3b28HBwYGYU1a85JSuOxfNZ/w6p/rem895TzQWTfOtxjP1qWCDtJoLK1WyMcM+VUUu1pJ3ls6nSDEW1UpTvSLBWFRf0iQZXwn93jFuhd7fK/2SJhgL9Hh0ecp5P4tn3xzwYmPhX0En2SL7nXkirEIPNA/xspAIL9Cw9CUmsV85dG3bBcjNgSUjeVJcykeG9nrtAmX9/MNJtk9Yk7B5cqbLvymsdwjr2LOmBIVtU3OMQ9xGJIQOQHSFGzBegR5zoV4Qj7DeQiumbVGIx26gEXICpAvr4bqlHe5r04WWhB1BQvsdwo5uX4/GvxCGgejBMv4mJpwZjoY0IY7C9nSZNB+jI1DY8tXfsJGVCi3Rt8tUjBoDelrn5mbBJxVi29qqG60XXDLtqFjYXudQd1N8VqEQUUNPTNA/jhCyE0cHRUNMEiq+cbiwV2E3cFTvGKHjqQ34bB0Jespy1NlkIQwR0aG7I2iOJwmVje1BG6atbwpQxbUqZYRq3ej9NIJ1GjGHwk21SKgiFndL7xQU0jvFLlWERJhHE3ehuQnTNI2WZmOxUQuhcDsK44xzJCx5vdyRJFzRYQShf6xQ+U8J9VOh3inU4NMAaTULccWUmopUrRQ3kAkfqQJgn1TsFBpaO+77hHp+xOwXmo9DhNVoOLipMlKh0dibd8waLq7HWDBGJDQJ/IgwM3zHIm5JlpQ33CV/wZ6wj1t7UT4KaLY5R4noMyB3EXN32BRiRHLF8H2rnRAt/JY65zJfLv8iPWf5l2Q7/ptxcHDw//IHYWiLelDcDu8AAAAASUVORK5CYII=",
|
|
4532
4538
|
};
|
|
4533
4539
|
|
|
4534
|
-
|
|
4535
|
-
|
|
4540
|
+
const PopsFolder = {
|
|
4541
|
+
init(details) {
|
|
4536
4542
|
const guid = popsUtils.getRandomGUID();
|
|
4537
4543
|
// 设置当前类型
|
|
4538
4544
|
const PopsType = "folder";
|
|
@@ -5314,9 +5320,10 @@ define((function () { 'use strict';
|
|
|
5314
5320
|
$shadowContainer: $shadowContainer,
|
|
5315
5321
|
$shadowRoot: $shadowRoot,
|
|
5316
5322
|
});
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5323
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
5324
|
+
return result;
|
|
5325
|
+
},
|
|
5326
|
+
};
|
|
5320
5327
|
|
|
5321
5328
|
const PopsPanelConfig = () => {
|
|
5322
5329
|
return {
|
|
@@ -6199,6 +6206,7 @@ define((function () { 'use strict';
|
|
|
6199
6206
|
*/
|
|
6200
6207
|
createSectionContainerItem_slider_new(formConfig) {
|
|
6201
6208
|
let liElement = document.createElement("li");
|
|
6209
|
+
// @ts-ignore
|
|
6202
6210
|
liElement["__formConfig__"] = formConfig;
|
|
6203
6211
|
this.setElementClassName(liElement, formConfig.className);
|
|
6204
6212
|
this.setElementAttributes(liElement, formConfig.attributes);
|
|
@@ -6299,15 +6307,15 @@ define((function () { 'use strict';
|
|
|
6299
6307
|
this.setPanEvent();
|
|
6300
6308
|
this.setRunAwayClickEvent();
|
|
6301
6309
|
this.intervalInit();
|
|
6302
|
-
if (
|
|
6310
|
+
if (this.isFormConfigDisabledDrag()) {
|
|
6303
6311
|
this.disableDrag();
|
|
6304
6312
|
}
|
|
6305
6313
|
},
|
|
6306
6314
|
/**
|
|
6307
6315
|
* 10s内循环获取slider的宽度等信息
|
|
6308
6316
|
* 获取到了就可以初始化left的值
|
|
6309
|
-
* @param
|
|
6310
|
-
* @param
|
|
6317
|
+
* @param [checkStepTime=200] 每次检测的间隔时间
|
|
6318
|
+
* @param [maxTime=10000] 最大的检测时间
|
|
6311
6319
|
*/
|
|
6312
6320
|
intervalInit(checkStepTime = 200, maxTime = 10000) {
|
|
6313
6321
|
if (this.$interval.isCheck) {
|
|
@@ -6353,9 +6361,13 @@ define((function () { 'use strict';
|
|
|
6353
6361
|
this.$ele.slider.setAttribute("data-max", this.max.toString());
|
|
6354
6362
|
this.$ele.slider.setAttribute("data-value", this.value.toString());
|
|
6355
6363
|
this.$ele.slider.setAttribute("data-step", this.step.toString());
|
|
6364
|
+
// @ts-ignore
|
|
6356
6365
|
this.$ele.slider["data-min"] = this.min;
|
|
6366
|
+
// @ts-ignore
|
|
6357
6367
|
this.$ele.slider["data-max"] = this.max;
|
|
6368
|
+
// @ts-ignore
|
|
6358
6369
|
this.$ele.slider["data-value"] = this.value;
|
|
6370
|
+
// @ts-ignore
|
|
6359
6371
|
this.$ele.slider["data-step"] = this.step;
|
|
6360
6372
|
},
|
|
6361
6373
|
/**
|
|
@@ -6470,7 +6482,6 @@ define((function () { 'use strict';
|
|
|
6470
6482
|
/**
|
|
6471
6483
|
* 判断数字是否是浮点数
|
|
6472
6484
|
* @param num
|
|
6473
|
-
* @returns
|
|
6474
6485
|
*/
|
|
6475
6486
|
isFloat(num) {
|
|
6476
6487
|
return Number(num) === num && num % 1 !== 0;
|
|
@@ -6487,6 +6498,7 @@ define((function () { 'use strict';
|
|
|
6487
6498
|
},
|
|
6488
6499
|
/**
|
|
6489
6500
|
* 根据拖拽距离获取滑块应该在的区间和值
|
|
6501
|
+
* @param dragX
|
|
6490
6502
|
*/
|
|
6491
6503
|
getDragInfo(dragX) {
|
|
6492
6504
|
let result = this.$data.stepBlockMap.get(0);
|
|
@@ -6501,7 +6513,7 @@ define((function () { 'use strict';
|
|
|
6501
6513
|
},
|
|
6502
6514
|
/**
|
|
6503
6515
|
* 获取滑块的当前脱拖拽占据的百分比
|
|
6504
|
-
* @param
|
|
6516
|
+
* @param dragWidth
|
|
6505
6517
|
*/
|
|
6506
6518
|
getSliderPositonPercent(dragWidth) {
|
|
6507
6519
|
return dragWidth / this.$data.totalWidth;
|
|
@@ -6553,6 +6565,21 @@ define((function () { 'use strict';
|
|
|
6553
6565
|
isDisabledDrag() {
|
|
6554
6566
|
return this.$ele.runAway.classList.contains("pops-slider-is-disabled");
|
|
6555
6567
|
},
|
|
6568
|
+
/**
|
|
6569
|
+
* 判断当前滑块是否被禁用(配置中判断)
|
|
6570
|
+
*/
|
|
6571
|
+
isFormConfigDisabledDrag() {
|
|
6572
|
+
if (typeof formConfig.disabled === "function" ||
|
|
6573
|
+
typeof formConfig.disabled === "boolean") {
|
|
6574
|
+
let isDisabled = typeof formConfig.disabled === "function"
|
|
6575
|
+
? formConfig.disabled()
|
|
6576
|
+
: formConfig.disabled;
|
|
6577
|
+
return isDisabled;
|
|
6578
|
+
}
|
|
6579
|
+
else {
|
|
6580
|
+
return false;
|
|
6581
|
+
}
|
|
6582
|
+
},
|
|
6556
6583
|
/**
|
|
6557
6584
|
* 设置进度条点击定位的事件
|
|
6558
6585
|
*/
|
|
@@ -6575,9 +6602,17 @@ define((function () { 'use strict';
|
|
|
6575
6602
|
*/
|
|
6576
6603
|
dragStartCallBack() {
|
|
6577
6604
|
if (!this.$data.isMove) {
|
|
6578
|
-
if (this.
|
|
6605
|
+
if (this.isFormConfigDisabledDrag()) {
|
|
6606
|
+
// 禁止
|
|
6607
|
+
this.disableDrag();
|
|
6579
6608
|
return false;
|
|
6580
6609
|
}
|
|
6610
|
+
else {
|
|
6611
|
+
// 允许
|
|
6612
|
+
if (this.isDisabledDrag()) {
|
|
6613
|
+
this.allowDrag();
|
|
6614
|
+
}
|
|
6615
|
+
}
|
|
6581
6616
|
this.$data.isMove = true;
|
|
6582
6617
|
}
|
|
6583
6618
|
return true;
|
|
@@ -6724,6 +6759,14 @@ define((function () { 'use strict';
|
|
|
6724
6759
|
passive: true,
|
|
6725
6760
|
},
|
|
6726
6761
|
showBeforeCallBack: () => {
|
|
6762
|
+
let isShowHoverTip = typeof formConfig.isShowHoverTip === "function"
|
|
6763
|
+
? formConfig.isShowHoverTip()
|
|
6764
|
+
: typeof formConfig.isShowHoverTip === "boolean"
|
|
6765
|
+
? formConfig.isShowHoverTip
|
|
6766
|
+
: true;
|
|
6767
|
+
if (!isShowHoverTip) {
|
|
6768
|
+
return false;
|
|
6769
|
+
}
|
|
6727
6770
|
this.intervalInit();
|
|
6728
6771
|
},
|
|
6729
6772
|
showAfterCallBack: (toolTipNode) => {
|
|
@@ -8308,8 +8351,8 @@ define((function () { 'use strict';
|
|
|
8308
8351
|
};
|
|
8309
8352
|
};
|
|
8310
8353
|
|
|
8311
|
-
|
|
8312
|
-
|
|
8354
|
+
const PopsPanel = {
|
|
8355
|
+
init(details) {
|
|
8313
8356
|
const guid = popsUtils.getRandomGUID();
|
|
8314
8357
|
// 设置当前类型
|
|
8315
8358
|
const PopsType = "panel";
|
|
@@ -8422,9 +8465,10 @@ define((function () { 'use strict';
|
|
|
8422
8465
|
endCallBack: config.dragEndCallBack,
|
|
8423
8466
|
});
|
|
8424
8467
|
}
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8468
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
8469
|
+
return result;
|
|
8470
|
+
},
|
|
8471
|
+
};
|
|
8428
8472
|
|
|
8429
8473
|
const rightClickMenuConfig = () => {
|
|
8430
8474
|
return {
|
|
@@ -8551,8 +8595,8 @@ define((function () { 'use strict';
|
|
|
8551
8595
|
};
|
|
8552
8596
|
};
|
|
8553
8597
|
|
|
8554
|
-
|
|
8555
|
-
|
|
8598
|
+
const PopsRightClickMenu = {
|
|
8599
|
+
init(details) {
|
|
8556
8600
|
const guid = popsUtils.getRandomGUID();
|
|
8557
8601
|
// 设置当前类型
|
|
8558
8602
|
const PopsType = "rightClickMenu";
|
|
@@ -8978,8 +9022,8 @@ define((function () { 'use strict';
|
|
|
8978
9022
|
removeContextMenuEvent: PopsContextMenu.removeContextMenuEvent,
|
|
8979
9023
|
addContextMenuEvent: PopsContextMenu.addContextMenuEvent,
|
|
8980
9024
|
};
|
|
8981
|
-
}
|
|
8982
|
-
}
|
|
9025
|
+
},
|
|
9026
|
+
};
|
|
8983
9027
|
|
|
8984
9028
|
const searchSuggestionConfig = () => {
|
|
8985
9029
|
return {
|
|
@@ -9038,8 +9082,8 @@ define((function () { 'use strict';
|
|
|
9038
9082
|
};
|
|
9039
9083
|
};
|
|
9040
9084
|
|
|
9041
|
-
|
|
9042
|
-
|
|
9085
|
+
const PopsSearchSuggestion = {
|
|
9086
|
+
init(details) {
|
|
9043
9087
|
const guid = popsUtils.getRandomGUID();
|
|
9044
9088
|
// 设置当前类型
|
|
9045
9089
|
const PopsType = "searchSuggestion";
|
|
@@ -9577,8 +9621,8 @@ define((function () { 'use strict';
|
|
|
9577
9621
|
},
|
|
9578
9622
|
};
|
|
9579
9623
|
return SearchSuggestion;
|
|
9580
|
-
}
|
|
9581
|
-
}
|
|
9624
|
+
},
|
|
9625
|
+
};
|
|
9582
9626
|
|
|
9583
9627
|
const PopsTooltipConfig = () => {
|
|
9584
9628
|
// @ts-ignore
|
|
@@ -10041,8 +10085,8 @@ define((function () { 'use strict';
|
|
|
10041
10085
|
popsDOMUtils.off(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent, this.$data.config.eventOption);
|
|
10042
10086
|
}
|
|
10043
10087
|
}
|
|
10044
|
-
|
|
10045
|
-
|
|
10088
|
+
const PopsTooltip = {
|
|
10089
|
+
init(details) {
|
|
10046
10090
|
const guid = popsUtils.getRandomGUID();
|
|
10047
10091
|
// 设置当前类型
|
|
10048
10092
|
const PopsType = "tooltip";
|
|
@@ -10070,20 +10114,20 @@ define((function () { 'use strict';
|
|
|
10070
10114
|
toolTip.show();
|
|
10071
10115
|
}
|
|
10072
10116
|
return {
|
|
10073
|
-
guid
|
|
10074
|
-
config
|
|
10075
|
-
$shadowContainer
|
|
10076
|
-
$shadowRoot
|
|
10077
|
-
toolTip
|
|
10117
|
+
guid,
|
|
10118
|
+
config,
|
|
10119
|
+
$shadowContainer,
|
|
10120
|
+
$shadowRoot,
|
|
10121
|
+
toolTip,
|
|
10078
10122
|
};
|
|
10079
|
-
}
|
|
10080
|
-
}
|
|
10123
|
+
},
|
|
10124
|
+
};
|
|
10081
10125
|
|
|
10082
10126
|
class Pops {
|
|
10083
10127
|
/** 配置 */
|
|
10084
10128
|
config = {
|
|
10085
10129
|
/** 版本号 */
|
|
10086
|
-
version: "2025.5.
|
|
10130
|
+
version: "2025.5.25",
|
|
10087
10131
|
cssText: {
|
|
10088
10132
|
/** 主CSS */
|
|
10089
10133
|
index: indexCSS,
|
|
@@ -10229,42 +10273,47 @@ define((function () { 'use strict';
|
|
|
10229
10273
|
* @param details 配置
|
|
10230
10274
|
*/
|
|
10231
10275
|
alert = (details) => {
|
|
10232
|
-
|
|
10276
|
+
let dialog = PopsAlert.init(details);
|
|
10277
|
+
return dialog;
|
|
10233
10278
|
};
|
|
10234
10279
|
/**
|
|
10235
10280
|
* 询问框
|
|
10236
10281
|
* @param details 配置
|
|
10237
10282
|
*/
|
|
10238
10283
|
confirm = (details) => {
|
|
10239
|
-
|
|
10284
|
+
let dialog = PopsConfirm.init(details);
|
|
10285
|
+
return dialog;
|
|
10240
10286
|
};
|
|
10241
10287
|
/**
|
|
10242
10288
|
* 输入框
|
|
10243
10289
|
* @param details 配置
|
|
10244
10290
|
*/
|
|
10245
10291
|
prompt = (details) => {
|
|
10246
|
-
|
|
10292
|
+
let dialog = PopsPrompt.init(details);
|
|
10293
|
+
return dialog;
|
|
10247
10294
|
};
|
|
10248
10295
|
/**
|
|
10249
10296
|
* 加载层
|
|
10250
10297
|
* @param details 配置
|
|
10251
10298
|
*/
|
|
10252
10299
|
loading = (details) => {
|
|
10253
|
-
|
|
10300
|
+
let popsLoading = PopsLoading.init(details);
|
|
10301
|
+
return popsLoading;
|
|
10254
10302
|
};
|
|
10255
10303
|
/**
|
|
10256
10304
|
* iframe层
|
|
10257
10305
|
* @param details 配置
|
|
10258
10306
|
*/
|
|
10259
10307
|
iframe = (details) => {
|
|
10260
|
-
|
|
10308
|
+
let dialog = PopsIframe.init(details);
|
|
10309
|
+
return dialog;
|
|
10261
10310
|
};
|
|
10262
10311
|
/**
|
|
10263
10312
|
* 提示框
|
|
10264
10313
|
* @param details 配置
|
|
10265
10314
|
*/
|
|
10266
10315
|
tooltip = (details) => {
|
|
10267
|
-
let popsTooltip =
|
|
10316
|
+
let popsTooltip = PopsTooltip.init(details);
|
|
10268
10317
|
return popsTooltip;
|
|
10269
10318
|
};
|
|
10270
10319
|
/**
|
|
@@ -10272,35 +10321,40 @@ define((function () { 'use strict';
|
|
|
10272
10321
|
* @param details 配置
|
|
10273
10322
|
*/
|
|
10274
10323
|
drawer = (details) => {
|
|
10275
|
-
|
|
10324
|
+
let dialog = PopsDrawer.init(details);
|
|
10325
|
+
return dialog;
|
|
10276
10326
|
};
|
|
10277
10327
|
/**
|
|
10278
10328
|
* 文件夹
|
|
10279
10329
|
* @param details 配置
|
|
10280
10330
|
*/
|
|
10281
10331
|
folder = (details) => {
|
|
10282
|
-
|
|
10332
|
+
let dialog = PopsFolder.init(details);
|
|
10333
|
+
return dialog;
|
|
10283
10334
|
};
|
|
10284
10335
|
/**
|
|
10285
10336
|
* 配置面板
|
|
10286
10337
|
* @param details 配置
|
|
10287
10338
|
*/
|
|
10288
10339
|
panel = (details) => {
|
|
10289
|
-
|
|
10340
|
+
let dialog = PopsPanel.init(details);
|
|
10341
|
+
return dialog;
|
|
10290
10342
|
};
|
|
10291
10343
|
/**
|
|
10292
10344
|
* 右键菜单
|
|
10293
10345
|
* @param details 配置
|
|
10294
10346
|
*/
|
|
10295
10347
|
rightClickMenu = (details) => {
|
|
10296
|
-
|
|
10348
|
+
let popsRightClickMenu = PopsRightClickMenu.init(details);
|
|
10349
|
+
return popsRightClickMenu;
|
|
10297
10350
|
};
|
|
10298
10351
|
/**
|
|
10299
10352
|
* 搜索建议
|
|
10300
10353
|
* @param details 配置
|
|
10301
10354
|
*/
|
|
10302
10355
|
searchSuggestion = (details) => {
|
|
10303
|
-
|
|
10356
|
+
let popsSearchSuggestion = PopsSearchSuggestion.init(details);
|
|
10357
|
+
return popsSearchSuggestion;
|
|
10304
10358
|
};
|
|
10305
10359
|
}
|
|
10306
10360
|
const pops = new Pops();
|