@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.esm.js
CHANGED
|
@@ -3244,8 +3244,8 @@ const PopsAlertConfig = () => {
|
|
|
3244
3244
|
};
|
|
3245
3245
|
};
|
|
3246
3246
|
|
|
3247
|
-
|
|
3248
|
-
|
|
3247
|
+
const PopsAlert = {
|
|
3248
|
+
init(details) {
|
|
3249
3249
|
const guid = popsUtils.getRandomGUID();
|
|
3250
3250
|
// 设置当前类型
|
|
3251
3251
|
const PopsType = "alert";
|
|
@@ -3334,9 +3334,10 @@ class PopsAlert {
|
|
|
3334
3334
|
endCallBack: config.dragEndCallBack,
|
|
3335
3335
|
});
|
|
3336
3336
|
}
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
}
|
|
3337
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3338
|
+
return result;
|
|
3339
|
+
},
|
|
3340
|
+
};
|
|
3340
3341
|
|
|
3341
3342
|
const PopsConfirmConfig = () => {
|
|
3342
3343
|
return {
|
|
@@ -3426,8 +3427,8 @@ const PopsConfirmConfig = () => {
|
|
|
3426
3427
|
};
|
|
3427
3428
|
};
|
|
3428
3429
|
|
|
3429
|
-
|
|
3430
|
-
|
|
3430
|
+
const PopsConfirm = {
|
|
3431
|
+
init(details) {
|
|
3431
3432
|
const guid = popsUtils.getRandomGUID();
|
|
3432
3433
|
// 设置当前类型
|
|
3433
3434
|
const PopsType = "confirm";
|
|
@@ -3517,9 +3518,10 @@ class PopsConfirm {
|
|
|
3517
3518
|
endCallBack: config.dragEndCallBack,
|
|
3518
3519
|
});
|
|
3519
3520
|
}
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
}
|
|
3521
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3522
|
+
return result;
|
|
3523
|
+
},
|
|
3524
|
+
};
|
|
3523
3525
|
|
|
3524
3526
|
const PopsPromptConfig = () => {
|
|
3525
3527
|
return {
|
|
@@ -3613,8 +3615,8 @@ const PopsPromptConfig = () => {
|
|
|
3613
3615
|
};
|
|
3614
3616
|
};
|
|
3615
3617
|
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
+
const PopsPrompt = {
|
|
3619
|
+
init(details) {
|
|
3618
3620
|
const guid = popsUtils.getRandomGUID();
|
|
3619
3621
|
// 设置当前类型
|
|
3620
3622
|
const PopsType = "prompt";
|
|
@@ -3720,9 +3722,10 @@ class PopsPrompt {
|
|
|
3720
3722
|
if (config.content.select) {
|
|
3721
3723
|
$input.select();
|
|
3722
3724
|
}
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
}
|
|
3725
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3726
|
+
return result;
|
|
3727
|
+
},
|
|
3728
|
+
};
|
|
3726
3729
|
|
|
3727
3730
|
const PopsLoadingConfig = () => {
|
|
3728
3731
|
return {
|
|
@@ -3746,13 +3749,14 @@ const PopsLoadingConfig = () => {
|
|
|
3746
3749
|
},
|
|
3747
3750
|
animation: "pops-anim-fadein-zoom",
|
|
3748
3751
|
forbiddenScroll: false,
|
|
3752
|
+
isAbsolute: false,
|
|
3749
3753
|
style: null,
|
|
3750
3754
|
addIndexCSS: true,
|
|
3751
3755
|
};
|
|
3752
3756
|
};
|
|
3753
3757
|
|
|
3754
|
-
|
|
3755
|
-
|
|
3758
|
+
const PopsLoading = {
|
|
3759
|
+
init(details) {
|
|
3756
3760
|
let config = PopsLoadingConfig();
|
|
3757
3761
|
config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
|
|
3758
3762
|
config = popsUtils.assign(config, details);
|
|
@@ -3782,9 +3786,6 @@ class PopsLoading {
|
|
|
3782
3786
|
* 弹窗的主元素,包括动画层
|
|
3783
3787
|
*/
|
|
3784
3788
|
let $anim = PopsElementHandler.parseElement(animHTML);
|
|
3785
|
-
// 遮罩层必须是跟随主内容
|
|
3786
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3787
|
-
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3788
3789
|
let { popsElement: $pops } = PopsHandler.handleQueryElement($anim, PopsType);
|
|
3789
3790
|
/**
|
|
3790
3791
|
* 遮罩层元素
|
|
@@ -3804,9 +3805,6 @@ class PopsLoading {
|
|
|
3804
3805
|
maskHTML: maskHTML,
|
|
3805
3806
|
});
|
|
3806
3807
|
$mask = _handleMask_.maskElement;
|
|
3807
|
-
// 遮罩层必须是跟随主内容
|
|
3808
|
-
// 即设置主内容position: relative,mask:position: absolute
|
|
3809
|
-
popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3810
3808
|
elementList.push($mask);
|
|
3811
3809
|
}
|
|
3812
3810
|
let eventDetails = PopsHandler.handleLoadingEventDetails(guid, PopsType, $anim, $pops, $mask, config);
|
|
@@ -3820,9 +3818,16 @@ class PopsLoading {
|
|
|
3820
3818
|
popsElement: $pops,
|
|
3821
3819
|
maskElement: $mask,
|
|
3822
3820
|
});
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3821
|
+
if (config.isAbsolute) {
|
|
3822
|
+
// 遮罩层必须是跟随主内容
|
|
3823
|
+
// 即设置主内容position: relative,mask:position: absolute
|
|
3824
|
+
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3825
|
+
$mask && popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3826
|
+
}
|
|
3827
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3828
|
+
return result;
|
|
3829
|
+
},
|
|
3830
|
+
};
|
|
3826
3831
|
|
|
3827
3832
|
const PopsIframeConfig = () => {
|
|
3828
3833
|
return {
|
|
@@ -3882,8 +3887,8 @@ const PopsIframeConfig = () => {
|
|
|
3882
3887
|
};
|
|
3883
3888
|
};
|
|
3884
3889
|
|
|
3885
|
-
|
|
3886
|
-
|
|
3890
|
+
const PopsIframe = {
|
|
3891
|
+
init(details) {
|
|
3887
3892
|
const guid = popsUtils.getRandomGUID();
|
|
3888
3893
|
// 设置当前类型
|
|
3889
3894
|
const PopsType = "iframe";
|
|
@@ -4113,8 +4118,8 @@ class PopsIframe {
|
|
|
4113
4118
|
});
|
|
4114
4119
|
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
4115
4120
|
return result;
|
|
4116
|
-
}
|
|
4117
|
-
}
|
|
4121
|
+
},
|
|
4122
|
+
};
|
|
4118
4123
|
|
|
4119
4124
|
const PopsDrawerConfig = () => {
|
|
4120
4125
|
return {
|
|
@@ -4203,8 +4208,8 @@ const PopsDrawerConfig = () => {
|
|
|
4203
4208
|
};
|
|
4204
4209
|
};
|
|
4205
4210
|
|
|
4206
|
-
|
|
4207
|
-
|
|
4211
|
+
const PopsDrawer = {
|
|
4212
|
+
init(details) {
|
|
4208
4213
|
const guid = popsUtils.getRandomGUID();
|
|
4209
4214
|
// 设置当前类型
|
|
4210
4215
|
const PopsType = "drawer";
|
|
@@ -4365,9 +4370,10 @@ class PopsDrawer {
|
|
|
4365
4370
|
$shadowContainer: $shadowContainer,
|
|
4366
4371
|
$shadowRoot: $shadowRoot,
|
|
4367
4372
|
});
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
}
|
|
4373
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
4374
|
+
return result;
|
|
4375
|
+
},
|
|
4376
|
+
};
|
|
4371
4377
|
|
|
4372
4378
|
const PopsFolderConfig = () => {
|
|
4373
4379
|
return {
|
|
@@ -4529,8 +4535,8 @@ const Folder_ICON = {
|
|
|
4529
4535
|
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=",
|
|
4530
4536
|
};
|
|
4531
4537
|
|
|
4532
|
-
|
|
4533
|
-
|
|
4538
|
+
const PopsFolder = {
|
|
4539
|
+
init(details) {
|
|
4534
4540
|
const guid = popsUtils.getRandomGUID();
|
|
4535
4541
|
// 设置当前类型
|
|
4536
4542
|
const PopsType = "folder";
|
|
@@ -5312,9 +5318,10 @@ class PopsFolder {
|
|
|
5312
5318
|
$shadowContainer: $shadowContainer,
|
|
5313
5319
|
$shadowRoot: $shadowRoot,
|
|
5314
5320
|
});
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
}
|
|
5321
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
5322
|
+
return result;
|
|
5323
|
+
},
|
|
5324
|
+
};
|
|
5318
5325
|
|
|
5319
5326
|
const PopsPanelConfig = () => {
|
|
5320
5327
|
return {
|
|
@@ -6197,6 +6204,7 @@ const PanelHandleContentDetails = () => {
|
|
|
6197
6204
|
*/
|
|
6198
6205
|
createSectionContainerItem_slider_new(formConfig) {
|
|
6199
6206
|
let liElement = document.createElement("li");
|
|
6207
|
+
// @ts-ignore
|
|
6200
6208
|
liElement["__formConfig__"] = formConfig;
|
|
6201
6209
|
this.setElementClassName(liElement, formConfig.className);
|
|
6202
6210
|
this.setElementAttributes(liElement, formConfig.attributes);
|
|
@@ -6297,15 +6305,15 @@ const PanelHandleContentDetails = () => {
|
|
|
6297
6305
|
this.setPanEvent();
|
|
6298
6306
|
this.setRunAwayClickEvent();
|
|
6299
6307
|
this.intervalInit();
|
|
6300
|
-
if (
|
|
6308
|
+
if (this.isFormConfigDisabledDrag()) {
|
|
6301
6309
|
this.disableDrag();
|
|
6302
6310
|
}
|
|
6303
6311
|
},
|
|
6304
6312
|
/**
|
|
6305
6313
|
* 10s内循环获取slider的宽度等信息
|
|
6306
6314
|
* 获取到了就可以初始化left的值
|
|
6307
|
-
* @param
|
|
6308
|
-
* @param
|
|
6315
|
+
* @param [checkStepTime=200] 每次检测的间隔时间
|
|
6316
|
+
* @param [maxTime=10000] 最大的检测时间
|
|
6309
6317
|
*/
|
|
6310
6318
|
intervalInit(checkStepTime = 200, maxTime = 10000) {
|
|
6311
6319
|
if (this.$interval.isCheck) {
|
|
@@ -6351,9 +6359,13 @@ const PanelHandleContentDetails = () => {
|
|
|
6351
6359
|
this.$ele.slider.setAttribute("data-max", this.max.toString());
|
|
6352
6360
|
this.$ele.slider.setAttribute("data-value", this.value.toString());
|
|
6353
6361
|
this.$ele.slider.setAttribute("data-step", this.step.toString());
|
|
6362
|
+
// @ts-ignore
|
|
6354
6363
|
this.$ele.slider["data-min"] = this.min;
|
|
6364
|
+
// @ts-ignore
|
|
6355
6365
|
this.$ele.slider["data-max"] = this.max;
|
|
6366
|
+
// @ts-ignore
|
|
6356
6367
|
this.$ele.slider["data-value"] = this.value;
|
|
6368
|
+
// @ts-ignore
|
|
6357
6369
|
this.$ele.slider["data-step"] = this.step;
|
|
6358
6370
|
},
|
|
6359
6371
|
/**
|
|
@@ -6468,7 +6480,6 @@ const PanelHandleContentDetails = () => {
|
|
|
6468
6480
|
/**
|
|
6469
6481
|
* 判断数字是否是浮点数
|
|
6470
6482
|
* @param num
|
|
6471
|
-
* @returns
|
|
6472
6483
|
*/
|
|
6473
6484
|
isFloat(num) {
|
|
6474
6485
|
return Number(num) === num && num % 1 !== 0;
|
|
@@ -6485,6 +6496,7 @@ const PanelHandleContentDetails = () => {
|
|
|
6485
6496
|
},
|
|
6486
6497
|
/**
|
|
6487
6498
|
* 根据拖拽距离获取滑块应该在的区间和值
|
|
6499
|
+
* @param dragX
|
|
6488
6500
|
*/
|
|
6489
6501
|
getDragInfo(dragX) {
|
|
6490
6502
|
let result = this.$data.stepBlockMap.get(0);
|
|
@@ -6499,7 +6511,7 @@ const PanelHandleContentDetails = () => {
|
|
|
6499
6511
|
},
|
|
6500
6512
|
/**
|
|
6501
6513
|
* 获取滑块的当前脱拖拽占据的百分比
|
|
6502
|
-
* @param
|
|
6514
|
+
* @param dragWidth
|
|
6503
6515
|
*/
|
|
6504
6516
|
getSliderPositonPercent(dragWidth) {
|
|
6505
6517
|
return dragWidth / this.$data.totalWidth;
|
|
@@ -6551,6 +6563,21 @@ const PanelHandleContentDetails = () => {
|
|
|
6551
6563
|
isDisabledDrag() {
|
|
6552
6564
|
return this.$ele.runAway.classList.contains("pops-slider-is-disabled");
|
|
6553
6565
|
},
|
|
6566
|
+
/**
|
|
6567
|
+
* 判断当前滑块是否被禁用(配置中判断)
|
|
6568
|
+
*/
|
|
6569
|
+
isFormConfigDisabledDrag() {
|
|
6570
|
+
if (typeof formConfig.disabled === "function" ||
|
|
6571
|
+
typeof formConfig.disabled === "boolean") {
|
|
6572
|
+
let isDisabled = typeof formConfig.disabled === "function"
|
|
6573
|
+
? formConfig.disabled()
|
|
6574
|
+
: formConfig.disabled;
|
|
6575
|
+
return isDisabled;
|
|
6576
|
+
}
|
|
6577
|
+
else {
|
|
6578
|
+
return false;
|
|
6579
|
+
}
|
|
6580
|
+
},
|
|
6554
6581
|
/**
|
|
6555
6582
|
* 设置进度条点击定位的事件
|
|
6556
6583
|
*/
|
|
@@ -6573,9 +6600,17 @@ const PanelHandleContentDetails = () => {
|
|
|
6573
6600
|
*/
|
|
6574
6601
|
dragStartCallBack() {
|
|
6575
6602
|
if (!this.$data.isMove) {
|
|
6576
|
-
if (this.
|
|
6603
|
+
if (this.isFormConfigDisabledDrag()) {
|
|
6604
|
+
// 禁止
|
|
6605
|
+
this.disableDrag();
|
|
6577
6606
|
return false;
|
|
6578
6607
|
}
|
|
6608
|
+
else {
|
|
6609
|
+
// 允许
|
|
6610
|
+
if (this.isDisabledDrag()) {
|
|
6611
|
+
this.allowDrag();
|
|
6612
|
+
}
|
|
6613
|
+
}
|
|
6579
6614
|
this.$data.isMove = true;
|
|
6580
6615
|
}
|
|
6581
6616
|
return true;
|
|
@@ -6722,6 +6757,14 @@ const PanelHandleContentDetails = () => {
|
|
|
6722
6757
|
passive: true,
|
|
6723
6758
|
},
|
|
6724
6759
|
showBeforeCallBack: () => {
|
|
6760
|
+
let isShowHoverTip = typeof formConfig.isShowHoverTip === "function"
|
|
6761
|
+
? formConfig.isShowHoverTip()
|
|
6762
|
+
: typeof formConfig.isShowHoverTip === "boolean"
|
|
6763
|
+
? formConfig.isShowHoverTip
|
|
6764
|
+
: true;
|
|
6765
|
+
if (!isShowHoverTip) {
|
|
6766
|
+
return false;
|
|
6767
|
+
}
|
|
6725
6768
|
this.intervalInit();
|
|
6726
6769
|
},
|
|
6727
6770
|
showAfterCallBack: (toolTipNode) => {
|
|
@@ -8306,8 +8349,8 @@ const PanelHandleContentDetails = () => {
|
|
|
8306
8349
|
};
|
|
8307
8350
|
};
|
|
8308
8351
|
|
|
8309
|
-
|
|
8310
|
-
|
|
8352
|
+
const PopsPanel = {
|
|
8353
|
+
init(details) {
|
|
8311
8354
|
const guid = popsUtils.getRandomGUID();
|
|
8312
8355
|
// 设置当前类型
|
|
8313
8356
|
const PopsType = "panel";
|
|
@@ -8420,9 +8463,10 @@ class PopsPanel {
|
|
|
8420
8463
|
endCallBack: config.dragEndCallBack,
|
|
8421
8464
|
});
|
|
8422
8465
|
}
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
}
|
|
8466
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
8467
|
+
return result;
|
|
8468
|
+
},
|
|
8469
|
+
};
|
|
8426
8470
|
|
|
8427
8471
|
const rightClickMenuConfig = () => {
|
|
8428
8472
|
return {
|
|
@@ -8549,8 +8593,8 @@ const rightClickMenuConfig = () => {
|
|
|
8549
8593
|
};
|
|
8550
8594
|
};
|
|
8551
8595
|
|
|
8552
|
-
|
|
8553
|
-
|
|
8596
|
+
const PopsRightClickMenu = {
|
|
8597
|
+
init(details) {
|
|
8554
8598
|
const guid = popsUtils.getRandomGUID();
|
|
8555
8599
|
// 设置当前类型
|
|
8556
8600
|
const PopsType = "rightClickMenu";
|
|
@@ -8976,8 +9020,8 @@ class PopsRightClickMenu {
|
|
|
8976
9020
|
removeContextMenuEvent: PopsContextMenu.removeContextMenuEvent,
|
|
8977
9021
|
addContextMenuEvent: PopsContextMenu.addContextMenuEvent,
|
|
8978
9022
|
};
|
|
8979
|
-
}
|
|
8980
|
-
}
|
|
9023
|
+
},
|
|
9024
|
+
};
|
|
8981
9025
|
|
|
8982
9026
|
const searchSuggestionConfig = () => {
|
|
8983
9027
|
return {
|
|
@@ -9036,8 +9080,8 @@ const searchSuggestionConfig = () => {
|
|
|
9036
9080
|
};
|
|
9037
9081
|
};
|
|
9038
9082
|
|
|
9039
|
-
|
|
9040
|
-
|
|
9083
|
+
const PopsSearchSuggestion = {
|
|
9084
|
+
init(details) {
|
|
9041
9085
|
const guid = popsUtils.getRandomGUID();
|
|
9042
9086
|
// 设置当前类型
|
|
9043
9087
|
const PopsType = "searchSuggestion";
|
|
@@ -9575,8 +9619,8 @@ class PopsSearchSuggestion {
|
|
|
9575
9619
|
},
|
|
9576
9620
|
};
|
|
9577
9621
|
return SearchSuggestion;
|
|
9578
|
-
}
|
|
9579
|
-
}
|
|
9622
|
+
},
|
|
9623
|
+
};
|
|
9580
9624
|
|
|
9581
9625
|
const PopsTooltipConfig = () => {
|
|
9582
9626
|
// @ts-ignore
|
|
@@ -10039,8 +10083,8 @@ class ToolTip {
|
|
|
10039
10083
|
popsDOMUtils.off(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent, this.$data.config.eventOption);
|
|
10040
10084
|
}
|
|
10041
10085
|
}
|
|
10042
|
-
|
|
10043
|
-
|
|
10086
|
+
const PopsTooltip = {
|
|
10087
|
+
init(details) {
|
|
10044
10088
|
const guid = popsUtils.getRandomGUID();
|
|
10045
10089
|
// 设置当前类型
|
|
10046
10090
|
const PopsType = "tooltip";
|
|
@@ -10068,20 +10112,20 @@ class PopsTooltip {
|
|
|
10068
10112
|
toolTip.show();
|
|
10069
10113
|
}
|
|
10070
10114
|
return {
|
|
10071
|
-
guid
|
|
10072
|
-
config
|
|
10073
|
-
$shadowContainer
|
|
10074
|
-
$shadowRoot
|
|
10075
|
-
toolTip
|
|
10115
|
+
guid,
|
|
10116
|
+
config,
|
|
10117
|
+
$shadowContainer,
|
|
10118
|
+
$shadowRoot,
|
|
10119
|
+
toolTip,
|
|
10076
10120
|
};
|
|
10077
|
-
}
|
|
10078
|
-
}
|
|
10121
|
+
},
|
|
10122
|
+
};
|
|
10079
10123
|
|
|
10080
10124
|
class Pops {
|
|
10081
10125
|
/** 配置 */
|
|
10082
10126
|
config = {
|
|
10083
10127
|
/** 版本号 */
|
|
10084
|
-
version: "2025.5.
|
|
10128
|
+
version: "2025.5.25",
|
|
10085
10129
|
cssText: {
|
|
10086
10130
|
/** 主CSS */
|
|
10087
10131
|
index: indexCSS,
|
|
@@ -10227,42 +10271,47 @@ class Pops {
|
|
|
10227
10271
|
* @param details 配置
|
|
10228
10272
|
*/
|
|
10229
10273
|
alert = (details) => {
|
|
10230
|
-
|
|
10274
|
+
let dialog = PopsAlert.init(details);
|
|
10275
|
+
return dialog;
|
|
10231
10276
|
};
|
|
10232
10277
|
/**
|
|
10233
10278
|
* 询问框
|
|
10234
10279
|
* @param details 配置
|
|
10235
10280
|
*/
|
|
10236
10281
|
confirm = (details) => {
|
|
10237
|
-
|
|
10282
|
+
let dialog = PopsConfirm.init(details);
|
|
10283
|
+
return dialog;
|
|
10238
10284
|
};
|
|
10239
10285
|
/**
|
|
10240
10286
|
* 输入框
|
|
10241
10287
|
* @param details 配置
|
|
10242
10288
|
*/
|
|
10243
10289
|
prompt = (details) => {
|
|
10244
|
-
|
|
10290
|
+
let dialog = PopsPrompt.init(details);
|
|
10291
|
+
return dialog;
|
|
10245
10292
|
};
|
|
10246
10293
|
/**
|
|
10247
10294
|
* 加载层
|
|
10248
10295
|
* @param details 配置
|
|
10249
10296
|
*/
|
|
10250
10297
|
loading = (details) => {
|
|
10251
|
-
|
|
10298
|
+
let popsLoading = PopsLoading.init(details);
|
|
10299
|
+
return popsLoading;
|
|
10252
10300
|
};
|
|
10253
10301
|
/**
|
|
10254
10302
|
* iframe层
|
|
10255
10303
|
* @param details 配置
|
|
10256
10304
|
*/
|
|
10257
10305
|
iframe = (details) => {
|
|
10258
|
-
|
|
10306
|
+
let dialog = PopsIframe.init(details);
|
|
10307
|
+
return dialog;
|
|
10259
10308
|
};
|
|
10260
10309
|
/**
|
|
10261
10310
|
* 提示框
|
|
10262
10311
|
* @param details 配置
|
|
10263
10312
|
*/
|
|
10264
10313
|
tooltip = (details) => {
|
|
10265
|
-
let popsTooltip =
|
|
10314
|
+
let popsTooltip = PopsTooltip.init(details);
|
|
10266
10315
|
return popsTooltip;
|
|
10267
10316
|
};
|
|
10268
10317
|
/**
|
|
@@ -10270,35 +10319,40 @@ class Pops {
|
|
|
10270
10319
|
* @param details 配置
|
|
10271
10320
|
*/
|
|
10272
10321
|
drawer = (details) => {
|
|
10273
|
-
|
|
10322
|
+
let dialog = PopsDrawer.init(details);
|
|
10323
|
+
return dialog;
|
|
10274
10324
|
};
|
|
10275
10325
|
/**
|
|
10276
10326
|
* 文件夹
|
|
10277
10327
|
* @param details 配置
|
|
10278
10328
|
*/
|
|
10279
10329
|
folder = (details) => {
|
|
10280
|
-
|
|
10330
|
+
let dialog = PopsFolder.init(details);
|
|
10331
|
+
return dialog;
|
|
10281
10332
|
};
|
|
10282
10333
|
/**
|
|
10283
10334
|
* 配置面板
|
|
10284
10335
|
* @param details 配置
|
|
10285
10336
|
*/
|
|
10286
10337
|
panel = (details) => {
|
|
10287
|
-
|
|
10338
|
+
let dialog = PopsPanel.init(details);
|
|
10339
|
+
return dialog;
|
|
10288
10340
|
};
|
|
10289
10341
|
/**
|
|
10290
10342
|
* 右键菜单
|
|
10291
10343
|
* @param details 配置
|
|
10292
10344
|
*/
|
|
10293
10345
|
rightClickMenu = (details) => {
|
|
10294
|
-
|
|
10346
|
+
let popsRightClickMenu = PopsRightClickMenu.init(details);
|
|
10347
|
+
return popsRightClickMenu;
|
|
10295
10348
|
};
|
|
10296
10349
|
/**
|
|
10297
10350
|
* 搜索建议
|
|
10298
10351
|
* @param details 配置
|
|
10299
10352
|
*/
|
|
10300
10353
|
searchSuggestion = (details) => {
|
|
10301
|
-
|
|
10354
|
+
let popsSearchSuggestion = PopsSearchSuggestion.init(details);
|
|
10355
|
+
return popsSearchSuggestion;
|
|
10302
10356
|
};
|
|
10303
10357
|
}
|
|
10304
10358
|
const pops = new Pops();
|