@whitesev/pops 2.0.6 → 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 +127 -74
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +127 -74
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +127 -74
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +127 -74
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +127 -74
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +127 -74
- 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 +3 -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/index.ts +6 -5
- package/src/components/loading/indexType.ts +3 -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 {
|
|
@@ -3752,8 +3755,8 @@ const PopsLoadingConfig = () => {
|
|
|
3752
3755
|
};
|
|
3753
3756
|
};
|
|
3754
3757
|
|
|
3755
|
-
|
|
3756
|
-
|
|
3758
|
+
const PopsLoading = {
|
|
3759
|
+
init(details) {
|
|
3757
3760
|
let config = PopsLoadingConfig();
|
|
3758
3761
|
config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
|
|
3759
3762
|
config = popsUtils.assign(config, details);
|
|
@@ -3821,9 +3824,10 @@ class PopsLoading {
|
|
|
3821
3824
|
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3822
3825
|
$mask && popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3823
3826
|
}
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
}
|
|
3827
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3828
|
+
return result;
|
|
3829
|
+
},
|
|
3830
|
+
};
|
|
3827
3831
|
|
|
3828
3832
|
const PopsIframeConfig = () => {
|
|
3829
3833
|
return {
|
|
@@ -3883,8 +3887,8 @@ const PopsIframeConfig = () => {
|
|
|
3883
3887
|
};
|
|
3884
3888
|
};
|
|
3885
3889
|
|
|
3886
|
-
|
|
3887
|
-
|
|
3890
|
+
const PopsIframe = {
|
|
3891
|
+
init(details) {
|
|
3888
3892
|
const guid = popsUtils.getRandomGUID();
|
|
3889
3893
|
// 设置当前类型
|
|
3890
3894
|
const PopsType = "iframe";
|
|
@@ -4114,8 +4118,8 @@ class PopsIframe {
|
|
|
4114
4118
|
});
|
|
4115
4119
|
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
4116
4120
|
return result;
|
|
4117
|
-
}
|
|
4118
|
-
}
|
|
4121
|
+
},
|
|
4122
|
+
};
|
|
4119
4123
|
|
|
4120
4124
|
const PopsDrawerConfig = () => {
|
|
4121
4125
|
return {
|
|
@@ -4204,8 +4208,8 @@ const PopsDrawerConfig = () => {
|
|
|
4204
4208
|
};
|
|
4205
4209
|
};
|
|
4206
4210
|
|
|
4207
|
-
|
|
4208
|
-
|
|
4211
|
+
const PopsDrawer = {
|
|
4212
|
+
init(details) {
|
|
4209
4213
|
const guid = popsUtils.getRandomGUID();
|
|
4210
4214
|
// 设置当前类型
|
|
4211
4215
|
const PopsType = "drawer";
|
|
@@ -4366,9 +4370,10 @@ class PopsDrawer {
|
|
|
4366
4370
|
$shadowContainer: $shadowContainer,
|
|
4367
4371
|
$shadowRoot: $shadowRoot,
|
|
4368
4372
|
});
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
}
|
|
4373
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
4374
|
+
return result;
|
|
4375
|
+
},
|
|
4376
|
+
};
|
|
4372
4377
|
|
|
4373
4378
|
const PopsFolderConfig = () => {
|
|
4374
4379
|
return {
|
|
@@ -4530,8 +4535,8 @@ const Folder_ICON = {
|
|
|
4530
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=",
|
|
4531
4536
|
};
|
|
4532
4537
|
|
|
4533
|
-
|
|
4534
|
-
|
|
4538
|
+
const PopsFolder = {
|
|
4539
|
+
init(details) {
|
|
4535
4540
|
const guid = popsUtils.getRandomGUID();
|
|
4536
4541
|
// 设置当前类型
|
|
4537
4542
|
const PopsType = "folder";
|
|
@@ -5313,9 +5318,10 @@ class PopsFolder {
|
|
|
5313
5318
|
$shadowContainer: $shadowContainer,
|
|
5314
5319
|
$shadowRoot: $shadowRoot,
|
|
5315
5320
|
});
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
}
|
|
5321
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
5322
|
+
return result;
|
|
5323
|
+
},
|
|
5324
|
+
};
|
|
5319
5325
|
|
|
5320
5326
|
const PopsPanelConfig = () => {
|
|
5321
5327
|
return {
|
|
@@ -6198,6 +6204,7 @@ const PanelHandleContentDetails = () => {
|
|
|
6198
6204
|
*/
|
|
6199
6205
|
createSectionContainerItem_slider_new(formConfig) {
|
|
6200
6206
|
let liElement = document.createElement("li");
|
|
6207
|
+
// @ts-ignore
|
|
6201
6208
|
liElement["__formConfig__"] = formConfig;
|
|
6202
6209
|
this.setElementClassName(liElement, formConfig.className);
|
|
6203
6210
|
this.setElementAttributes(liElement, formConfig.attributes);
|
|
@@ -6298,15 +6305,15 @@ const PanelHandleContentDetails = () => {
|
|
|
6298
6305
|
this.setPanEvent();
|
|
6299
6306
|
this.setRunAwayClickEvent();
|
|
6300
6307
|
this.intervalInit();
|
|
6301
|
-
if (
|
|
6308
|
+
if (this.isFormConfigDisabledDrag()) {
|
|
6302
6309
|
this.disableDrag();
|
|
6303
6310
|
}
|
|
6304
6311
|
},
|
|
6305
6312
|
/**
|
|
6306
6313
|
* 10s内循环获取slider的宽度等信息
|
|
6307
6314
|
* 获取到了就可以初始化left的值
|
|
6308
|
-
* @param
|
|
6309
|
-
* @param
|
|
6315
|
+
* @param [checkStepTime=200] 每次检测的间隔时间
|
|
6316
|
+
* @param [maxTime=10000] 最大的检测时间
|
|
6310
6317
|
*/
|
|
6311
6318
|
intervalInit(checkStepTime = 200, maxTime = 10000) {
|
|
6312
6319
|
if (this.$interval.isCheck) {
|
|
@@ -6352,9 +6359,13 @@ const PanelHandleContentDetails = () => {
|
|
|
6352
6359
|
this.$ele.slider.setAttribute("data-max", this.max.toString());
|
|
6353
6360
|
this.$ele.slider.setAttribute("data-value", this.value.toString());
|
|
6354
6361
|
this.$ele.slider.setAttribute("data-step", this.step.toString());
|
|
6362
|
+
// @ts-ignore
|
|
6355
6363
|
this.$ele.slider["data-min"] = this.min;
|
|
6364
|
+
// @ts-ignore
|
|
6356
6365
|
this.$ele.slider["data-max"] = this.max;
|
|
6366
|
+
// @ts-ignore
|
|
6357
6367
|
this.$ele.slider["data-value"] = this.value;
|
|
6368
|
+
// @ts-ignore
|
|
6358
6369
|
this.$ele.slider["data-step"] = this.step;
|
|
6359
6370
|
},
|
|
6360
6371
|
/**
|
|
@@ -6469,7 +6480,6 @@ const PanelHandleContentDetails = () => {
|
|
|
6469
6480
|
/**
|
|
6470
6481
|
* 判断数字是否是浮点数
|
|
6471
6482
|
* @param num
|
|
6472
|
-
* @returns
|
|
6473
6483
|
*/
|
|
6474
6484
|
isFloat(num) {
|
|
6475
6485
|
return Number(num) === num && num % 1 !== 0;
|
|
@@ -6486,6 +6496,7 @@ const PanelHandleContentDetails = () => {
|
|
|
6486
6496
|
},
|
|
6487
6497
|
/**
|
|
6488
6498
|
* 根据拖拽距离获取滑块应该在的区间和值
|
|
6499
|
+
* @param dragX
|
|
6489
6500
|
*/
|
|
6490
6501
|
getDragInfo(dragX) {
|
|
6491
6502
|
let result = this.$data.stepBlockMap.get(0);
|
|
@@ -6500,7 +6511,7 @@ const PanelHandleContentDetails = () => {
|
|
|
6500
6511
|
},
|
|
6501
6512
|
/**
|
|
6502
6513
|
* 获取滑块的当前脱拖拽占据的百分比
|
|
6503
|
-
* @param
|
|
6514
|
+
* @param dragWidth
|
|
6504
6515
|
*/
|
|
6505
6516
|
getSliderPositonPercent(dragWidth) {
|
|
6506
6517
|
return dragWidth / this.$data.totalWidth;
|
|
@@ -6552,6 +6563,21 @@ const PanelHandleContentDetails = () => {
|
|
|
6552
6563
|
isDisabledDrag() {
|
|
6553
6564
|
return this.$ele.runAway.classList.contains("pops-slider-is-disabled");
|
|
6554
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
|
+
},
|
|
6555
6581
|
/**
|
|
6556
6582
|
* 设置进度条点击定位的事件
|
|
6557
6583
|
*/
|
|
@@ -6574,9 +6600,17 @@ const PanelHandleContentDetails = () => {
|
|
|
6574
6600
|
*/
|
|
6575
6601
|
dragStartCallBack() {
|
|
6576
6602
|
if (!this.$data.isMove) {
|
|
6577
|
-
if (this.
|
|
6603
|
+
if (this.isFormConfigDisabledDrag()) {
|
|
6604
|
+
// 禁止
|
|
6605
|
+
this.disableDrag();
|
|
6578
6606
|
return false;
|
|
6579
6607
|
}
|
|
6608
|
+
else {
|
|
6609
|
+
// 允许
|
|
6610
|
+
if (this.isDisabledDrag()) {
|
|
6611
|
+
this.allowDrag();
|
|
6612
|
+
}
|
|
6613
|
+
}
|
|
6580
6614
|
this.$data.isMove = true;
|
|
6581
6615
|
}
|
|
6582
6616
|
return true;
|
|
@@ -6723,6 +6757,14 @@ const PanelHandleContentDetails = () => {
|
|
|
6723
6757
|
passive: true,
|
|
6724
6758
|
},
|
|
6725
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
|
+
}
|
|
6726
6768
|
this.intervalInit();
|
|
6727
6769
|
},
|
|
6728
6770
|
showAfterCallBack: (toolTipNode) => {
|
|
@@ -8307,8 +8349,8 @@ const PanelHandleContentDetails = () => {
|
|
|
8307
8349
|
};
|
|
8308
8350
|
};
|
|
8309
8351
|
|
|
8310
|
-
|
|
8311
|
-
|
|
8352
|
+
const PopsPanel = {
|
|
8353
|
+
init(details) {
|
|
8312
8354
|
const guid = popsUtils.getRandomGUID();
|
|
8313
8355
|
// 设置当前类型
|
|
8314
8356
|
const PopsType = "panel";
|
|
@@ -8421,9 +8463,10 @@ class PopsPanel {
|
|
|
8421
8463
|
endCallBack: config.dragEndCallBack,
|
|
8422
8464
|
});
|
|
8423
8465
|
}
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
}
|
|
8466
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
8467
|
+
return result;
|
|
8468
|
+
},
|
|
8469
|
+
};
|
|
8427
8470
|
|
|
8428
8471
|
const rightClickMenuConfig = () => {
|
|
8429
8472
|
return {
|
|
@@ -8550,8 +8593,8 @@ const rightClickMenuConfig = () => {
|
|
|
8550
8593
|
};
|
|
8551
8594
|
};
|
|
8552
8595
|
|
|
8553
|
-
|
|
8554
|
-
|
|
8596
|
+
const PopsRightClickMenu = {
|
|
8597
|
+
init(details) {
|
|
8555
8598
|
const guid = popsUtils.getRandomGUID();
|
|
8556
8599
|
// 设置当前类型
|
|
8557
8600
|
const PopsType = "rightClickMenu";
|
|
@@ -8977,8 +9020,8 @@ class PopsRightClickMenu {
|
|
|
8977
9020
|
removeContextMenuEvent: PopsContextMenu.removeContextMenuEvent,
|
|
8978
9021
|
addContextMenuEvent: PopsContextMenu.addContextMenuEvent,
|
|
8979
9022
|
};
|
|
8980
|
-
}
|
|
8981
|
-
}
|
|
9023
|
+
},
|
|
9024
|
+
};
|
|
8982
9025
|
|
|
8983
9026
|
const searchSuggestionConfig = () => {
|
|
8984
9027
|
return {
|
|
@@ -9037,8 +9080,8 @@ const searchSuggestionConfig = () => {
|
|
|
9037
9080
|
};
|
|
9038
9081
|
};
|
|
9039
9082
|
|
|
9040
|
-
|
|
9041
|
-
|
|
9083
|
+
const PopsSearchSuggestion = {
|
|
9084
|
+
init(details) {
|
|
9042
9085
|
const guid = popsUtils.getRandomGUID();
|
|
9043
9086
|
// 设置当前类型
|
|
9044
9087
|
const PopsType = "searchSuggestion";
|
|
@@ -9576,8 +9619,8 @@ class PopsSearchSuggestion {
|
|
|
9576
9619
|
},
|
|
9577
9620
|
};
|
|
9578
9621
|
return SearchSuggestion;
|
|
9579
|
-
}
|
|
9580
|
-
}
|
|
9622
|
+
},
|
|
9623
|
+
};
|
|
9581
9624
|
|
|
9582
9625
|
const PopsTooltipConfig = () => {
|
|
9583
9626
|
// @ts-ignore
|
|
@@ -10040,8 +10083,8 @@ class ToolTip {
|
|
|
10040
10083
|
popsDOMUtils.off(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent, this.$data.config.eventOption);
|
|
10041
10084
|
}
|
|
10042
10085
|
}
|
|
10043
|
-
|
|
10044
|
-
|
|
10086
|
+
const PopsTooltip = {
|
|
10087
|
+
init(details) {
|
|
10045
10088
|
const guid = popsUtils.getRandomGUID();
|
|
10046
10089
|
// 设置当前类型
|
|
10047
10090
|
const PopsType = "tooltip";
|
|
@@ -10069,20 +10112,20 @@ class PopsTooltip {
|
|
|
10069
10112
|
toolTip.show();
|
|
10070
10113
|
}
|
|
10071
10114
|
return {
|
|
10072
|
-
guid
|
|
10073
|
-
config
|
|
10074
|
-
$shadowContainer
|
|
10075
|
-
$shadowRoot
|
|
10076
|
-
toolTip
|
|
10115
|
+
guid,
|
|
10116
|
+
config,
|
|
10117
|
+
$shadowContainer,
|
|
10118
|
+
$shadowRoot,
|
|
10119
|
+
toolTip,
|
|
10077
10120
|
};
|
|
10078
|
-
}
|
|
10079
|
-
}
|
|
10121
|
+
},
|
|
10122
|
+
};
|
|
10080
10123
|
|
|
10081
10124
|
class Pops {
|
|
10082
10125
|
/** 配置 */
|
|
10083
10126
|
config = {
|
|
10084
10127
|
/** 版本号 */
|
|
10085
|
-
version: "2025.5.
|
|
10128
|
+
version: "2025.5.25",
|
|
10086
10129
|
cssText: {
|
|
10087
10130
|
/** 主CSS */
|
|
10088
10131
|
index: indexCSS,
|
|
@@ -10228,42 +10271,47 @@ class Pops {
|
|
|
10228
10271
|
* @param details 配置
|
|
10229
10272
|
*/
|
|
10230
10273
|
alert = (details) => {
|
|
10231
|
-
|
|
10274
|
+
let dialog = PopsAlert.init(details);
|
|
10275
|
+
return dialog;
|
|
10232
10276
|
};
|
|
10233
10277
|
/**
|
|
10234
10278
|
* 询问框
|
|
10235
10279
|
* @param details 配置
|
|
10236
10280
|
*/
|
|
10237
10281
|
confirm = (details) => {
|
|
10238
|
-
|
|
10282
|
+
let dialog = PopsConfirm.init(details);
|
|
10283
|
+
return dialog;
|
|
10239
10284
|
};
|
|
10240
10285
|
/**
|
|
10241
10286
|
* 输入框
|
|
10242
10287
|
* @param details 配置
|
|
10243
10288
|
*/
|
|
10244
10289
|
prompt = (details) => {
|
|
10245
|
-
|
|
10290
|
+
let dialog = PopsPrompt.init(details);
|
|
10291
|
+
return dialog;
|
|
10246
10292
|
};
|
|
10247
10293
|
/**
|
|
10248
10294
|
* 加载层
|
|
10249
10295
|
* @param details 配置
|
|
10250
10296
|
*/
|
|
10251
10297
|
loading = (details) => {
|
|
10252
|
-
|
|
10298
|
+
let popsLoading = PopsLoading.init(details);
|
|
10299
|
+
return popsLoading;
|
|
10253
10300
|
};
|
|
10254
10301
|
/**
|
|
10255
10302
|
* iframe层
|
|
10256
10303
|
* @param details 配置
|
|
10257
10304
|
*/
|
|
10258
10305
|
iframe = (details) => {
|
|
10259
|
-
|
|
10306
|
+
let dialog = PopsIframe.init(details);
|
|
10307
|
+
return dialog;
|
|
10260
10308
|
};
|
|
10261
10309
|
/**
|
|
10262
10310
|
* 提示框
|
|
10263
10311
|
* @param details 配置
|
|
10264
10312
|
*/
|
|
10265
10313
|
tooltip = (details) => {
|
|
10266
|
-
let popsTooltip =
|
|
10314
|
+
let popsTooltip = PopsTooltip.init(details);
|
|
10267
10315
|
return popsTooltip;
|
|
10268
10316
|
};
|
|
10269
10317
|
/**
|
|
@@ -10271,35 +10319,40 @@ class Pops {
|
|
|
10271
10319
|
* @param details 配置
|
|
10272
10320
|
*/
|
|
10273
10321
|
drawer = (details) => {
|
|
10274
|
-
|
|
10322
|
+
let dialog = PopsDrawer.init(details);
|
|
10323
|
+
return dialog;
|
|
10275
10324
|
};
|
|
10276
10325
|
/**
|
|
10277
10326
|
* 文件夹
|
|
10278
10327
|
* @param details 配置
|
|
10279
10328
|
*/
|
|
10280
10329
|
folder = (details) => {
|
|
10281
|
-
|
|
10330
|
+
let dialog = PopsFolder.init(details);
|
|
10331
|
+
return dialog;
|
|
10282
10332
|
};
|
|
10283
10333
|
/**
|
|
10284
10334
|
* 配置面板
|
|
10285
10335
|
* @param details 配置
|
|
10286
10336
|
*/
|
|
10287
10337
|
panel = (details) => {
|
|
10288
|
-
|
|
10338
|
+
let dialog = PopsPanel.init(details);
|
|
10339
|
+
return dialog;
|
|
10289
10340
|
};
|
|
10290
10341
|
/**
|
|
10291
10342
|
* 右键菜单
|
|
10292
10343
|
* @param details 配置
|
|
10293
10344
|
*/
|
|
10294
10345
|
rightClickMenu = (details) => {
|
|
10295
|
-
|
|
10346
|
+
let popsRightClickMenu = PopsRightClickMenu.init(details);
|
|
10347
|
+
return popsRightClickMenu;
|
|
10296
10348
|
};
|
|
10297
10349
|
/**
|
|
10298
10350
|
* 搜索建议
|
|
10299
10351
|
* @param details 配置
|
|
10300
10352
|
*/
|
|
10301
10353
|
searchSuggestion = (details) => {
|
|
10302
|
-
|
|
10354
|
+
let popsSearchSuggestion = PopsSearchSuggestion.init(details);
|
|
10355
|
+
return popsSearchSuggestion;
|
|
10303
10356
|
};
|
|
10304
10357
|
}
|
|
10305
10358
|
const pops = new Pops();
|