@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.iife.js
CHANGED
|
@@ -3247,8 +3247,8 @@ var pops = (function () {
|
|
|
3247
3247
|
};
|
|
3248
3248
|
};
|
|
3249
3249
|
|
|
3250
|
-
|
|
3251
|
-
|
|
3250
|
+
const PopsAlert = {
|
|
3251
|
+
init(details) {
|
|
3252
3252
|
const guid = popsUtils.getRandomGUID();
|
|
3253
3253
|
// 设置当前类型
|
|
3254
3254
|
const PopsType = "alert";
|
|
@@ -3337,9 +3337,10 @@ var pops = (function () {
|
|
|
3337
3337
|
endCallBack: config.dragEndCallBack,
|
|
3338
3338
|
});
|
|
3339
3339
|
}
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3340
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3341
|
+
return result;
|
|
3342
|
+
},
|
|
3343
|
+
};
|
|
3343
3344
|
|
|
3344
3345
|
const PopsConfirmConfig = () => {
|
|
3345
3346
|
return {
|
|
@@ -3429,8 +3430,8 @@ var pops = (function () {
|
|
|
3429
3430
|
};
|
|
3430
3431
|
};
|
|
3431
3432
|
|
|
3432
|
-
|
|
3433
|
-
|
|
3433
|
+
const PopsConfirm = {
|
|
3434
|
+
init(details) {
|
|
3434
3435
|
const guid = popsUtils.getRandomGUID();
|
|
3435
3436
|
// 设置当前类型
|
|
3436
3437
|
const PopsType = "confirm";
|
|
@@ -3520,9 +3521,10 @@ var pops = (function () {
|
|
|
3520
3521
|
endCallBack: config.dragEndCallBack,
|
|
3521
3522
|
});
|
|
3522
3523
|
}
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3524
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3525
|
+
return result;
|
|
3526
|
+
},
|
|
3527
|
+
};
|
|
3526
3528
|
|
|
3527
3529
|
const PopsPromptConfig = () => {
|
|
3528
3530
|
return {
|
|
@@ -3616,8 +3618,8 @@ var pops = (function () {
|
|
|
3616
3618
|
};
|
|
3617
3619
|
};
|
|
3618
3620
|
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
+
const PopsPrompt = {
|
|
3622
|
+
init(details) {
|
|
3621
3623
|
const guid = popsUtils.getRandomGUID();
|
|
3622
3624
|
// 设置当前类型
|
|
3623
3625
|
const PopsType = "prompt";
|
|
@@ -3723,9 +3725,10 @@ var pops = (function () {
|
|
|
3723
3725
|
if (config.content.select) {
|
|
3724
3726
|
$input.select();
|
|
3725
3727
|
}
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3728
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3729
|
+
return result;
|
|
3730
|
+
},
|
|
3731
|
+
};
|
|
3729
3732
|
|
|
3730
3733
|
const PopsLoadingConfig = () => {
|
|
3731
3734
|
return {
|
|
@@ -3755,8 +3758,8 @@ var pops = (function () {
|
|
|
3755
3758
|
};
|
|
3756
3759
|
};
|
|
3757
3760
|
|
|
3758
|
-
|
|
3759
|
-
|
|
3761
|
+
const PopsLoading = {
|
|
3762
|
+
init(details) {
|
|
3760
3763
|
let config = PopsLoadingConfig();
|
|
3761
3764
|
config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
|
|
3762
3765
|
config = popsUtils.assign(config, details);
|
|
@@ -3824,9 +3827,10 @@ var pops = (function () {
|
|
|
3824
3827
|
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3825
3828
|
$mask && popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3826
3829
|
}
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3831
|
+
return result;
|
|
3832
|
+
},
|
|
3833
|
+
};
|
|
3830
3834
|
|
|
3831
3835
|
const PopsIframeConfig = () => {
|
|
3832
3836
|
return {
|
|
@@ -3886,8 +3890,8 @@ var pops = (function () {
|
|
|
3886
3890
|
};
|
|
3887
3891
|
};
|
|
3888
3892
|
|
|
3889
|
-
|
|
3890
|
-
|
|
3893
|
+
const PopsIframe = {
|
|
3894
|
+
init(details) {
|
|
3891
3895
|
const guid = popsUtils.getRandomGUID();
|
|
3892
3896
|
// 设置当前类型
|
|
3893
3897
|
const PopsType = "iframe";
|
|
@@ -4117,8 +4121,8 @@ var pops = (function () {
|
|
|
4117
4121
|
});
|
|
4118
4122
|
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
4119
4123
|
return result;
|
|
4120
|
-
}
|
|
4121
|
-
}
|
|
4124
|
+
},
|
|
4125
|
+
};
|
|
4122
4126
|
|
|
4123
4127
|
const PopsDrawerConfig = () => {
|
|
4124
4128
|
return {
|
|
@@ -4207,8 +4211,8 @@ var pops = (function () {
|
|
|
4207
4211
|
};
|
|
4208
4212
|
};
|
|
4209
4213
|
|
|
4210
|
-
|
|
4211
|
-
|
|
4214
|
+
const PopsDrawer = {
|
|
4215
|
+
init(details) {
|
|
4212
4216
|
const guid = popsUtils.getRandomGUID();
|
|
4213
4217
|
// 设置当前类型
|
|
4214
4218
|
const PopsType = "drawer";
|
|
@@ -4369,9 +4373,10 @@ var pops = (function () {
|
|
|
4369
4373
|
$shadowContainer: $shadowContainer,
|
|
4370
4374
|
$shadowRoot: $shadowRoot,
|
|
4371
4375
|
});
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4376
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
4377
|
+
return result;
|
|
4378
|
+
},
|
|
4379
|
+
};
|
|
4375
4380
|
|
|
4376
4381
|
const PopsFolderConfig = () => {
|
|
4377
4382
|
return {
|
|
@@ -4533,8 +4538,8 @@ var pops = (function () {
|
|
|
4533
4538
|
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=",
|
|
4534
4539
|
};
|
|
4535
4540
|
|
|
4536
|
-
|
|
4537
|
-
|
|
4541
|
+
const PopsFolder = {
|
|
4542
|
+
init(details) {
|
|
4538
4543
|
const guid = popsUtils.getRandomGUID();
|
|
4539
4544
|
// 设置当前类型
|
|
4540
4545
|
const PopsType = "folder";
|
|
@@ -5316,9 +5321,10 @@ var pops = (function () {
|
|
|
5316
5321
|
$shadowContainer: $shadowContainer,
|
|
5317
5322
|
$shadowRoot: $shadowRoot,
|
|
5318
5323
|
});
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5324
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
5325
|
+
return result;
|
|
5326
|
+
},
|
|
5327
|
+
};
|
|
5322
5328
|
|
|
5323
5329
|
const PopsPanelConfig = () => {
|
|
5324
5330
|
return {
|
|
@@ -6201,6 +6207,7 @@ var pops = (function () {
|
|
|
6201
6207
|
*/
|
|
6202
6208
|
createSectionContainerItem_slider_new(formConfig) {
|
|
6203
6209
|
let liElement = document.createElement("li");
|
|
6210
|
+
// @ts-ignore
|
|
6204
6211
|
liElement["__formConfig__"] = formConfig;
|
|
6205
6212
|
this.setElementClassName(liElement, formConfig.className);
|
|
6206
6213
|
this.setElementAttributes(liElement, formConfig.attributes);
|
|
@@ -6301,15 +6308,15 @@ var pops = (function () {
|
|
|
6301
6308
|
this.setPanEvent();
|
|
6302
6309
|
this.setRunAwayClickEvent();
|
|
6303
6310
|
this.intervalInit();
|
|
6304
|
-
if (
|
|
6311
|
+
if (this.isFormConfigDisabledDrag()) {
|
|
6305
6312
|
this.disableDrag();
|
|
6306
6313
|
}
|
|
6307
6314
|
},
|
|
6308
6315
|
/**
|
|
6309
6316
|
* 10s内循环获取slider的宽度等信息
|
|
6310
6317
|
* 获取到了就可以初始化left的值
|
|
6311
|
-
* @param
|
|
6312
|
-
* @param
|
|
6318
|
+
* @param [checkStepTime=200] 每次检测的间隔时间
|
|
6319
|
+
* @param [maxTime=10000] 最大的检测时间
|
|
6313
6320
|
*/
|
|
6314
6321
|
intervalInit(checkStepTime = 200, maxTime = 10000) {
|
|
6315
6322
|
if (this.$interval.isCheck) {
|
|
@@ -6355,9 +6362,13 @@ var pops = (function () {
|
|
|
6355
6362
|
this.$ele.slider.setAttribute("data-max", this.max.toString());
|
|
6356
6363
|
this.$ele.slider.setAttribute("data-value", this.value.toString());
|
|
6357
6364
|
this.$ele.slider.setAttribute("data-step", this.step.toString());
|
|
6365
|
+
// @ts-ignore
|
|
6358
6366
|
this.$ele.slider["data-min"] = this.min;
|
|
6367
|
+
// @ts-ignore
|
|
6359
6368
|
this.$ele.slider["data-max"] = this.max;
|
|
6369
|
+
// @ts-ignore
|
|
6360
6370
|
this.$ele.slider["data-value"] = this.value;
|
|
6371
|
+
// @ts-ignore
|
|
6361
6372
|
this.$ele.slider["data-step"] = this.step;
|
|
6362
6373
|
},
|
|
6363
6374
|
/**
|
|
@@ -6472,7 +6483,6 @@ var pops = (function () {
|
|
|
6472
6483
|
/**
|
|
6473
6484
|
* 判断数字是否是浮点数
|
|
6474
6485
|
* @param num
|
|
6475
|
-
* @returns
|
|
6476
6486
|
*/
|
|
6477
6487
|
isFloat(num) {
|
|
6478
6488
|
return Number(num) === num && num % 1 !== 0;
|
|
@@ -6489,6 +6499,7 @@ var pops = (function () {
|
|
|
6489
6499
|
},
|
|
6490
6500
|
/**
|
|
6491
6501
|
* 根据拖拽距离获取滑块应该在的区间和值
|
|
6502
|
+
* @param dragX
|
|
6492
6503
|
*/
|
|
6493
6504
|
getDragInfo(dragX) {
|
|
6494
6505
|
let result = this.$data.stepBlockMap.get(0);
|
|
@@ -6503,7 +6514,7 @@ var pops = (function () {
|
|
|
6503
6514
|
},
|
|
6504
6515
|
/**
|
|
6505
6516
|
* 获取滑块的当前脱拖拽占据的百分比
|
|
6506
|
-
* @param
|
|
6517
|
+
* @param dragWidth
|
|
6507
6518
|
*/
|
|
6508
6519
|
getSliderPositonPercent(dragWidth) {
|
|
6509
6520
|
return dragWidth / this.$data.totalWidth;
|
|
@@ -6555,6 +6566,21 @@ var pops = (function () {
|
|
|
6555
6566
|
isDisabledDrag() {
|
|
6556
6567
|
return this.$ele.runAway.classList.contains("pops-slider-is-disabled");
|
|
6557
6568
|
},
|
|
6569
|
+
/**
|
|
6570
|
+
* 判断当前滑块是否被禁用(配置中判断)
|
|
6571
|
+
*/
|
|
6572
|
+
isFormConfigDisabledDrag() {
|
|
6573
|
+
if (typeof formConfig.disabled === "function" ||
|
|
6574
|
+
typeof formConfig.disabled === "boolean") {
|
|
6575
|
+
let isDisabled = typeof formConfig.disabled === "function"
|
|
6576
|
+
? formConfig.disabled()
|
|
6577
|
+
: formConfig.disabled;
|
|
6578
|
+
return isDisabled;
|
|
6579
|
+
}
|
|
6580
|
+
else {
|
|
6581
|
+
return false;
|
|
6582
|
+
}
|
|
6583
|
+
},
|
|
6558
6584
|
/**
|
|
6559
6585
|
* 设置进度条点击定位的事件
|
|
6560
6586
|
*/
|
|
@@ -6577,9 +6603,17 @@ var pops = (function () {
|
|
|
6577
6603
|
*/
|
|
6578
6604
|
dragStartCallBack() {
|
|
6579
6605
|
if (!this.$data.isMove) {
|
|
6580
|
-
if (this.
|
|
6606
|
+
if (this.isFormConfigDisabledDrag()) {
|
|
6607
|
+
// 禁止
|
|
6608
|
+
this.disableDrag();
|
|
6581
6609
|
return false;
|
|
6582
6610
|
}
|
|
6611
|
+
else {
|
|
6612
|
+
// 允许
|
|
6613
|
+
if (this.isDisabledDrag()) {
|
|
6614
|
+
this.allowDrag();
|
|
6615
|
+
}
|
|
6616
|
+
}
|
|
6583
6617
|
this.$data.isMove = true;
|
|
6584
6618
|
}
|
|
6585
6619
|
return true;
|
|
@@ -6726,6 +6760,14 @@ var pops = (function () {
|
|
|
6726
6760
|
passive: true,
|
|
6727
6761
|
},
|
|
6728
6762
|
showBeforeCallBack: () => {
|
|
6763
|
+
let isShowHoverTip = typeof formConfig.isShowHoverTip === "function"
|
|
6764
|
+
? formConfig.isShowHoverTip()
|
|
6765
|
+
: typeof formConfig.isShowHoverTip === "boolean"
|
|
6766
|
+
? formConfig.isShowHoverTip
|
|
6767
|
+
: true;
|
|
6768
|
+
if (!isShowHoverTip) {
|
|
6769
|
+
return false;
|
|
6770
|
+
}
|
|
6729
6771
|
this.intervalInit();
|
|
6730
6772
|
},
|
|
6731
6773
|
showAfterCallBack: (toolTipNode) => {
|
|
@@ -8310,8 +8352,8 @@ var pops = (function () {
|
|
|
8310
8352
|
};
|
|
8311
8353
|
};
|
|
8312
8354
|
|
|
8313
|
-
|
|
8314
|
-
|
|
8355
|
+
const PopsPanel = {
|
|
8356
|
+
init(details) {
|
|
8315
8357
|
const guid = popsUtils.getRandomGUID();
|
|
8316
8358
|
// 设置当前类型
|
|
8317
8359
|
const PopsType = "panel";
|
|
@@ -8424,9 +8466,10 @@ var pops = (function () {
|
|
|
8424
8466
|
endCallBack: config.dragEndCallBack,
|
|
8425
8467
|
});
|
|
8426
8468
|
}
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8469
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
8470
|
+
return result;
|
|
8471
|
+
},
|
|
8472
|
+
};
|
|
8430
8473
|
|
|
8431
8474
|
const rightClickMenuConfig = () => {
|
|
8432
8475
|
return {
|
|
@@ -8553,8 +8596,8 @@ var pops = (function () {
|
|
|
8553
8596
|
};
|
|
8554
8597
|
};
|
|
8555
8598
|
|
|
8556
|
-
|
|
8557
|
-
|
|
8599
|
+
const PopsRightClickMenu = {
|
|
8600
|
+
init(details) {
|
|
8558
8601
|
const guid = popsUtils.getRandomGUID();
|
|
8559
8602
|
// 设置当前类型
|
|
8560
8603
|
const PopsType = "rightClickMenu";
|
|
@@ -8980,8 +9023,8 @@ var pops = (function () {
|
|
|
8980
9023
|
removeContextMenuEvent: PopsContextMenu.removeContextMenuEvent,
|
|
8981
9024
|
addContextMenuEvent: PopsContextMenu.addContextMenuEvent,
|
|
8982
9025
|
};
|
|
8983
|
-
}
|
|
8984
|
-
}
|
|
9026
|
+
},
|
|
9027
|
+
};
|
|
8985
9028
|
|
|
8986
9029
|
const searchSuggestionConfig = () => {
|
|
8987
9030
|
return {
|
|
@@ -9040,8 +9083,8 @@ var pops = (function () {
|
|
|
9040
9083
|
};
|
|
9041
9084
|
};
|
|
9042
9085
|
|
|
9043
|
-
|
|
9044
|
-
|
|
9086
|
+
const PopsSearchSuggestion = {
|
|
9087
|
+
init(details) {
|
|
9045
9088
|
const guid = popsUtils.getRandomGUID();
|
|
9046
9089
|
// 设置当前类型
|
|
9047
9090
|
const PopsType = "searchSuggestion";
|
|
@@ -9579,8 +9622,8 @@ var pops = (function () {
|
|
|
9579
9622
|
},
|
|
9580
9623
|
};
|
|
9581
9624
|
return SearchSuggestion;
|
|
9582
|
-
}
|
|
9583
|
-
}
|
|
9625
|
+
},
|
|
9626
|
+
};
|
|
9584
9627
|
|
|
9585
9628
|
const PopsTooltipConfig = () => {
|
|
9586
9629
|
// @ts-ignore
|
|
@@ -10043,8 +10086,8 @@ var pops = (function () {
|
|
|
10043
10086
|
popsDOMUtils.off(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent, this.$data.config.eventOption);
|
|
10044
10087
|
}
|
|
10045
10088
|
}
|
|
10046
|
-
|
|
10047
|
-
|
|
10089
|
+
const PopsTooltip = {
|
|
10090
|
+
init(details) {
|
|
10048
10091
|
const guid = popsUtils.getRandomGUID();
|
|
10049
10092
|
// 设置当前类型
|
|
10050
10093
|
const PopsType = "tooltip";
|
|
@@ -10072,20 +10115,20 @@ var pops = (function () {
|
|
|
10072
10115
|
toolTip.show();
|
|
10073
10116
|
}
|
|
10074
10117
|
return {
|
|
10075
|
-
guid
|
|
10076
|
-
config
|
|
10077
|
-
$shadowContainer
|
|
10078
|
-
$shadowRoot
|
|
10079
|
-
toolTip
|
|
10118
|
+
guid,
|
|
10119
|
+
config,
|
|
10120
|
+
$shadowContainer,
|
|
10121
|
+
$shadowRoot,
|
|
10122
|
+
toolTip,
|
|
10080
10123
|
};
|
|
10081
|
-
}
|
|
10082
|
-
}
|
|
10124
|
+
},
|
|
10125
|
+
};
|
|
10083
10126
|
|
|
10084
10127
|
class Pops {
|
|
10085
10128
|
/** 配置 */
|
|
10086
10129
|
config = {
|
|
10087
10130
|
/** 版本号 */
|
|
10088
|
-
version: "2025.5.
|
|
10131
|
+
version: "2025.5.25",
|
|
10089
10132
|
cssText: {
|
|
10090
10133
|
/** 主CSS */
|
|
10091
10134
|
index: indexCSS,
|
|
@@ -10231,42 +10274,47 @@ var pops = (function () {
|
|
|
10231
10274
|
* @param details 配置
|
|
10232
10275
|
*/
|
|
10233
10276
|
alert = (details) => {
|
|
10234
|
-
|
|
10277
|
+
let dialog = PopsAlert.init(details);
|
|
10278
|
+
return dialog;
|
|
10235
10279
|
};
|
|
10236
10280
|
/**
|
|
10237
10281
|
* 询问框
|
|
10238
10282
|
* @param details 配置
|
|
10239
10283
|
*/
|
|
10240
10284
|
confirm = (details) => {
|
|
10241
|
-
|
|
10285
|
+
let dialog = PopsConfirm.init(details);
|
|
10286
|
+
return dialog;
|
|
10242
10287
|
};
|
|
10243
10288
|
/**
|
|
10244
10289
|
* 输入框
|
|
10245
10290
|
* @param details 配置
|
|
10246
10291
|
*/
|
|
10247
10292
|
prompt = (details) => {
|
|
10248
|
-
|
|
10293
|
+
let dialog = PopsPrompt.init(details);
|
|
10294
|
+
return dialog;
|
|
10249
10295
|
};
|
|
10250
10296
|
/**
|
|
10251
10297
|
* 加载层
|
|
10252
10298
|
* @param details 配置
|
|
10253
10299
|
*/
|
|
10254
10300
|
loading = (details) => {
|
|
10255
|
-
|
|
10301
|
+
let popsLoading = PopsLoading.init(details);
|
|
10302
|
+
return popsLoading;
|
|
10256
10303
|
};
|
|
10257
10304
|
/**
|
|
10258
10305
|
* iframe层
|
|
10259
10306
|
* @param details 配置
|
|
10260
10307
|
*/
|
|
10261
10308
|
iframe = (details) => {
|
|
10262
|
-
|
|
10309
|
+
let dialog = PopsIframe.init(details);
|
|
10310
|
+
return dialog;
|
|
10263
10311
|
};
|
|
10264
10312
|
/**
|
|
10265
10313
|
* 提示框
|
|
10266
10314
|
* @param details 配置
|
|
10267
10315
|
*/
|
|
10268
10316
|
tooltip = (details) => {
|
|
10269
|
-
let popsTooltip =
|
|
10317
|
+
let popsTooltip = PopsTooltip.init(details);
|
|
10270
10318
|
return popsTooltip;
|
|
10271
10319
|
};
|
|
10272
10320
|
/**
|
|
@@ -10274,35 +10322,40 @@ var pops = (function () {
|
|
|
10274
10322
|
* @param details 配置
|
|
10275
10323
|
*/
|
|
10276
10324
|
drawer = (details) => {
|
|
10277
|
-
|
|
10325
|
+
let dialog = PopsDrawer.init(details);
|
|
10326
|
+
return dialog;
|
|
10278
10327
|
};
|
|
10279
10328
|
/**
|
|
10280
10329
|
* 文件夹
|
|
10281
10330
|
* @param details 配置
|
|
10282
10331
|
*/
|
|
10283
10332
|
folder = (details) => {
|
|
10284
|
-
|
|
10333
|
+
let dialog = PopsFolder.init(details);
|
|
10334
|
+
return dialog;
|
|
10285
10335
|
};
|
|
10286
10336
|
/**
|
|
10287
10337
|
* 配置面板
|
|
10288
10338
|
* @param details 配置
|
|
10289
10339
|
*/
|
|
10290
10340
|
panel = (details) => {
|
|
10291
|
-
|
|
10341
|
+
let dialog = PopsPanel.init(details);
|
|
10342
|
+
return dialog;
|
|
10292
10343
|
};
|
|
10293
10344
|
/**
|
|
10294
10345
|
* 右键菜单
|
|
10295
10346
|
* @param details 配置
|
|
10296
10347
|
*/
|
|
10297
10348
|
rightClickMenu = (details) => {
|
|
10298
|
-
|
|
10349
|
+
let popsRightClickMenu = PopsRightClickMenu.init(details);
|
|
10350
|
+
return popsRightClickMenu;
|
|
10299
10351
|
};
|
|
10300
10352
|
/**
|
|
10301
10353
|
* 搜索建议
|
|
10302
10354
|
* @param details 配置
|
|
10303
10355
|
*/
|
|
10304
10356
|
searchSuggestion = (details) => {
|
|
10305
|
-
|
|
10357
|
+
let popsSearchSuggestion = PopsSearchSuggestion.init(details);
|
|
10358
|
+
return popsSearchSuggestion;
|
|
10306
10359
|
};
|
|
10307
10360
|
}
|
|
10308
10361
|
const pops = new Pops();
|