@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.umd.js
CHANGED
|
@@ -3250,8 +3250,8 @@
|
|
|
3250
3250
|
};
|
|
3251
3251
|
};
|
|
3252
3252
|
|
|
3253
|
-
|
|
3254
|
-
|
|
3253
|
+
const PopsAlert = {
|
|
3254
|
+
init(details) {
|
|
3255
3255
|
const guid = popsUtils.getRandomGUID();
|
|
3256
3256
|
// 设置当前类型
|
|
3257
3257
|
const PopsType = "alert";
|
|
@@ -3340,9 +3340,10 @@
|
|
|
3340
3340
|
endCallBack: config.dragEndCallBack,
|
|
3341
3341
|
});
|
|
3342
3342
|
}
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3343
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3344
|
+
return result;
|
|
3345
|
+
},
|
|
3346
|
+
};
|
|
3346
3347
|
|
|
3347
3348
|
const PopsConfirmConfig = () => {
|
|
3348
3349
|
return {
|
|
@@ -3432,8 +3433,8 @@
|
|
|
3432
3433
|
};
|
|
3433
3434
|
};
|
|
3434
3435
|
|
|
3435
|
-
|
|
3436
|
-
|
|
3436
|
+
const PopsConfirm = {
|
|
3437
|
+
init(details) {
|
|
3437
3438
|
const guid = popsUtils.getRandomGUID();
|
|
3438
3439
|
// 设置当前类型
|
|
3439
3440
|
const PopsType = "confirm";
|
|
@@ -3523,9 +3524,10 @@
|
|
|
3523
3524
|
endCallBack: config.dragEndCallBack,
|
|
3524
3525
|
});
|
|
3525
3526
|
}
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3527
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3528
|
+
return result;
|
|
3529
|
+
},
|
|
3530
|
+
};
|
|
3529
3531
|
|
|
3530
3532
|
const PopsPromptConfig = () => {
|
|
3531
3533
|
return {
|
|
@@ -3619,8 +3621,8 @@
|
|
|
3619
3621
|
};
|
|
3620
3622
|
};
|
|
3621
3623
|
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
+
const PopsPrompt = {
|
|
3625
|
+
init(details) {
|
|
3624
3626
|
const guid = popsUtils.getRandomGUID();
|
|
3625
3627
|
// 设置当前类型
|
|
3626
3628
|
const PopsType = "prompt";
|
|
@@ -3726,9 +3728,10 @@
|
|
|
3726
3728
|
if (config.content.select) {
|
|
3727
3729
|
$input.select();
|
|
3728
3730
|
}
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3731
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3732
|
+
return result;
|
|
3733
|
+
},
|
|
3734
|
+
};
|
|
3732
3735
|
|
|
3733
3736
|
const PopsLoadingConfig = () => {
|
|
3734
3737
|
return {
|
|
@@ -3758,8 +3761,8 @@
|
|
|
3758
3761
|
};
|
|
3759
3762
|
};
|
|
3760
3763
|
|
|
3761
|
-
|
|
3762
|
-
|
|
3764
|
+
const PopsLoading = {
|
|
3765
|
+
init(details) {
|
|
3763
3766
|
let config = PopsLoadingConfig();
|
|
3764
3767
|
config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
|
|
3765
3768
|
config = popsUtils.assign(config, details);
|
|
@@ -3827,9 +3830,10 @@
|
|
|
3827
3830
|
popsDOMUtils.css($anim, "position", "absolute !important");
|
|
3828
3831
|
$mask && popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3829
3832
|
}
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
3834
|
+
return result;
|
|
3835
|
+
},
|
|
3836
|
+
};
|
|
3833
3837
|
|
|
3834
3838
|
const PopsIframeConfig = () => {
|
|
3835
3839
|
return {
|
|
@@ -3889,8 +3893,8 @@
|
|
|
3889
3893
|
};
|
|
3890
3894
|
};
|
|
3891
3895
|
|
|
3892
|
-
|
|
3893
|
-
|
|
3896
|
+
const PopsIframe = {
|
|
3897
|
+
init(details) {
|
|
3894
3898
|
const guid = popsUtils.getRandomGUID();
|
|
3895
3899
|
// 设置当前类型
|
|
3896
3900
|
const PopsType = "iframe";
|
|
@@ -4120,8 +4124,8 @@
|
|
|
4120
4124
|
});
|
|
4121
4125
|
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
4122
4126
|
return result;
|
|
4123
|
-
}
|
|
4124
|
-
}
|
|
4127
|
+
},
|
|
4128
|
+
};
|
|
4125
4129
|
|
|
4126
4130
|
const PopsDrawerConfig = () => {
|
|
4127
4131
|
return {
|
|
@@ -4210,8 +4214,8 @@
|
|
|
4210
4214
|
};
|
|
4211
4215
|
};
|
|
4212
4216
|
|
|
4213
|
-
|
|
4214
|
-
|
|
4217
|
+
const PopsDrawer = {
|
|
4218
|
+
init(details) {
|
|
4215
4219
|
const guid = popsUtils.getRandomGUID();
|
|
4216
4220
|
// 设置当前类型
|
|
4217
4221
|
const PopsType = "drawer";
|
|
@@ -4372,9 +4376,10 @@
|
|
|
4372
4376
|
$shadowContainer: $shadowContainer,
|
|
4373
4377
|
$shadowRoot: $shadowRoot,
|
|
4374
4378
|
});
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4379
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
4380
|
+
return result;
|
|
4381
|
+
},
|
|
4382
|
+
};
|
|
4378
4383
|
|
|
4379
4384
|
const PopsFolderConfig = () => {
|
|
4380
4385
|
return {
|
|
@@ -4536,8 +4541,8 @@
|
|
|
4536
4541
|
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=",
|
|
4537
4542
|
};
|
|
4538
4543
|
|
|
4539
|
-
|
|
4540
|
-
|
|
4544
|
+
const PopsFolder = {
|
|
4545
|
+
init(details) {
|
|
4541
4546
|
const guid = popsUtils.getRandomGUID();
|
|
4542
4547
|
// 设置当前类型
|
|
4543
4548
|
const PopsType = "folder";
|
|
@@ -5319,9 +5324,10 @@
|
|
|
5319
5324
|
$shadowContainer: $shadowContainer,
|
|
5320
5325
|
$shadowRoot: $shadowRoot,
|
|
5321
5326
|
});
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5327
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
5328
|
+
return result;
|
|
5329
|
+
},
|
|
5330
|
+
};
|
|
5325
5331
|
|
|
5326
5332
|
const PopsPanelConfig = () => {
|
|
5327
5333
|
return {
|
|
@@ -6204,6 +6210,7 @@
|
|
|
6204
6210
|
*/
|
|
6205
6211
|
createSectionContainerItem_slider_new(formConfig) {
|
|
6206
6212
|
let liElement = document.createElement("li");
|
|
6213
|
+
// @ts-ignore
|
|
6207
6214
|
liElement["__formConfig__"] = formConfig;
|
|
6208
6215
|
this.setElementClassName(liElement, formConfig.className);
|
|
6209
6216
|
this.setElementAttributes(liElement, formConfig.attributes);
|
|
@@ -6304,15 +6311,15 @@
|
|
|
6304
6311
|
this.setPanEvent();
|
|
6305
6312
|
this.setRunAwayClickEvent();
|
|
6306
6313
|
this.intervalInit();
|
|
6307
|
-
if (
|
|
6314
|
+
if (this.isFormConfigDisabledDrag()) {
|
|
6308
6315
|
this.disableDrag();
|
|
6309
6316
|
}
|
|
6310
6317
|
},
|
|
6311
6318
|
/**
|
|
6312
6319
|
* 10s内循环获取slider的宽度等信息
|
|
6313
6320
|
* 获取到了就可以初始化left的值
|
|
6314
|
-
* @param
|
|
6315
|
-
* @param
|
|
6321
|
+
* @param [checkStepTime=200] 每次检测的间隔时间
|
|
6322
|
+
* @param [maxTime=10000] 最大的检测时间
|
|
6316
6323
|
*/
|
|
6317
6324
|
intervalInit(checkStepTime = 200, maxTime = 10000) {
|
|
6318
6325
|
if (this.$interval.isCheck) {
|
|
@@ -6358,9 +6365,13 @@
|
|
|
6358
6365
|
this.$ele.slider.setAttribute("data-max", this.max.toString());
|
|
6359
6366
|
this.$ele.slider.setAttribute("data-value", this.value.toString());
|
|
6360
6367
|
this.$ele.slider.setAttribute("data-step", this.step.toString());
|
|
6368
|
+
// @ts-ignore
|
|
6361
6369
|
this.$ele.slider["data-min"] = this.min;
|
|
6370
|
+
// @ts-ignore
|
|
6362
6371
|
this.$ele.slider["data-max"] = this.max;
|
|
6372
|
+
// @ts-ignore
|
|
6363
6373
|
this.$ele.slider["data-value"] = this.value;
|
|
6374
|
+
// @ts-ignore
|
|
6364
6375
|
this.$ele.slider["data-step"] = this.step;
|
|
6365
6376
|
},
|
|
6366
6377
|
/**
|
|
@@ -6475,7 +6486,6 @@
|
|
|
6475
6486
|
/**
|
|
6476
6487
|
* 判断数字是否是浮点数
|
|
6477
6488
|
* @param num
|
|
6478
|
-
* @returns
|
|
6479
6489
|
*/
|
|
6480
6490
|
isFloat(num) {
|
|
6481
6491
|
return Number(num) === num && num % 1 !== 0;
|
|
@@ -6492,6 +6502,7 @@
|
|
|
6492
6502
|
},
|
|
6493
6503
|
/**
|
|
6494
6504
|
* 根据拖拽距离获取滑块应该在的区间和值
|
|
6505
|
+
* @param dragX
|
|
6495
6506
|
*/
|
|
6496
6507
|
getDragInfo(dragX) {
|
|
6497
6508
|
let result = this.$data.stepBlockMap.get(0);
|
|
@@ -6506,7 +6517,7 @@
|
|
|
6506
6517
|
},
|
|
6507
6518
|
/**
|
|
6508
6519
|
* 获取滑块的当前脱拖拽占据的百分比
|
|
6509
|
-
* @param
|
|
6520
|
+
* @param dragWidth
|
|
6510
6521
|
*/
|
|
6511
6522
|
getSliderPositonPercent(dragWidth) {
|
|
6512
6523
|
return dragWidth / this.$data.totalWidth;
|
|
@@ -6558,6 +6569,21 @@
|
|
|
6558
6569
|
isDisabledDrag() {
|
|
6559
6570
|
return this.$ele.runAway.classList.contains("pops-slider-is-disabled");
|
|
6560
6571
|
},
|
|
6572
|
+
/**
|
|
6573
|
+
* 判断当前滑块是否被禁用(配置中判断)
|
|
6574
|
+
*/
|
|
6575
|
+
isFormConfigDisabledDrag() {
|
|
6576
|
+
if (typeof formConfig.disabled === "function" ||
|
|
6577
|
+
typeof formConfig.disabled === "boolean") {
|
|
6578
|
+
let isDisabled = typeof formConfig.disabled === "function"
|
|
6579
|
+
? formConfig.disabled()
|
|
6580
|
+
: formConfig.disabled;
|
|
6581
|
+
return isDisabled;
|
|
6582
|
+
}
|
|
6583
|
+
else {
|
|
6584
|
+
return false;
|
|
6585
|
+
}
|
|
6586
|
+
},
|
|
6561
6587
|
/**
|
|
6562
6588
|
* 设置进度条点击定位的事件
|
|
6563
6589
|
*/
|
|
@@ -6580,9 +6606,17 @@
|
|
|
6580
6606
|
*/
|
|
6581
6607
|
dragStartCallBack() {
|
|
6582
6608
|
if (!this.$data.isMove) {
|
|
6583
|
-
if (this.
|
|
6609
|
+
if (this.isFormConfigDisabledDrag()) {
|
|
6610
|
+
// 禁止
|
|
6611
|
+
this.disableDrag();
|
|
6584
6612
|
return false;
|
|
6585
6613
|
}
|
|
6614
|
+
else {
|
|
6615
|
+
// 允许
|
|
6616
|
+
if (this.isDisabledDrag()) {
|
|
6617
|
+
this.allowDrag();
|
|
6618
|
+
}
|
|
6619
|
+
}
|
|
6586
6620
|
this.$data.isMove = true;
|
|
6587
6621
|
}
|
|
6588
6622
|
return true;
|
|
@@ -6729,6 +6763,14 @@
|
|
|
6729
6763
|
passive: true,
|
|
6730
6764
|
},
|
|
6731
6765
|
showBeforeCallBack: () => {
|
|
6766
|
+
let isShowHoverTip = typeof formConfig.isShowHoverTip === "function"
|
|
6767
|
+
? formConfig.isShowHoverTip()
|
|
6768
|
+
: typeof formConfig.isShowHoverTip === "boolean"
|
|
6769
|
+
? formConfig.isShowHoverTip
|
|
6770
|
+
: true;
|
|
6771
|
+
if (!isShowHoverTip) {
|
|
6772
|
+
return false;
|
|
6773
|
+
}
|
|
6732
6774
|
this.intervalInit();
|
|
6733
6775
|
},
|
|
6734
6776
|
showAfterCallBack: (toolTipNode) => {
|
|
@@ -8313,8 +8355,8 @@
|
|
|
8313
8355
|
};
|
|
8314
8356
|
};
|
|
8315
8357
|
|
|
8316
|
-
|
|
8317
|
-
|
|
8358
|
+
const PopsPanel = {
|
|
8359
|
+
init(details) {
|
|
8318
8360
|
const guid = popsUtils.getRandomGUID();
|
|
8319
8361
|
// 设置当前类型
|
|
8320
8362
|
const PopsType = "panel";
|
|
@@ -8427,9 +8469,10 @@
|
|
|
8427
8469
|
endCallBack: config.dragEndCallBack,
|
|
8428
8470
|
});
|
|
8429
8471
|
}
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8472
|
+
let result = PopsHandler.handleResultDetails(eventDetails);
|
|
8473
|
+
return result;
|
|
8474
|
+
},
|
|
8475
|
+
};
|
|
8433
8476
|
|
|
8434
8477
|
const rightClickMenuConfig = () => {
|
|
8435
8478
|
return {
|
|
@@ -8556,8 +8599,8 @@
|
|
|
8556
8599
|
};
|
|
8557
8600
|
};
|
|
8558
8601
|
|
|
8559
|
-
|
|
8560
|
-
|
|
8602
|
+
const PopsRightClickMenu = {
|
|
8603
|
+
init(details) {
|
|
8561
8604
|
const guid = popsUtils.getRandomGUID();
|
|
8562
8605
|
// 设置当前类型
|
|
8563
8606
|
const PopsType = "rightClickMenu";
|
|
@@ -8983,8 +9026,8 @@
|
|
|
8983
9026
|
removeContextMenuEvent: PopsContextMenu.removeContextMenuEvent,
|
|
8984
9027
|
addContextMenuEvent: PopsContextMenu.addContextMenuEvent,
|
|
8985
9028
|
};
|
|
8986
|
-
}
|
|
8987
|
-
}
|
|
9029
|
+
},
|
|
9030
|
+
};
|
|
8988
9031
|
|
|
8989
9032
|
const searchSuggestionConfig = () => {
|
|
8990
9033
|
return {
|
|
@@ -9043,8 +9086,8 @@
|
|
|
9043
9086
|
};
|
|
9044
9087
|
};
|
|
9045
9088
|
|
|
9046
|
-
|
|
9047
|
-
|
|
9089
|
+
const PopsSearchSuggestion = {
|
|
9090
|
+
init(details) {
|
|
9048
9091
|
const guid = popsUtils.getRandomGUID();
|
|
9049
9092
|
// 设置当前类型
|
|
9050
9093
|
const PopsType = "searchSuggestion";
|
|
@@ -9582,8 +9625,8 @@
|
|
|
9582
9625
|
},
|
|
9583
9626
|
};
|
|
9584
9627
|
return SearchSuggestion;
|
|
9585
|
-
}
|
|
9586
|
-
}
|
|
9628
|
+
},
|
|
9629
|
+
};
|
|
9587
9630
|
|
|
9588
9631
|
const PopsTooltipConfig = () => {
|
|
9589
9632
|
// @ts-ignore
|
|
@@ -10046,8 +10089,8 @@
|
|
|
10046
10089
|
popsDOMUtils.off(this.$el.$toolTip, "mouseleave touchend", this.toolTipMouseLeaveEvent, this.$data.config.eventOption);
|
|
10047
10090
|
}
|
|
10048
10091
|
}
|
|
10049
|
-
|
|
10050
|
-
|
|
10092
|
+
const PopsTooltip = {
|
|
10093
|
+
init(details) {
|
|
10051
10094
|
const guid = popsUtils.getRandomGUID();
|
|
10052
10095
|
// 设置当前类型
|
|
10053
10096
|
const PopsType = "tooltip";
|
|
@@ -10075,20 +10118,20 @@
|
|
|
10075
10118
|
toolTip.show();
|
|
10076
10119
|
}
|
|
10077
10120
|
return {
|
|
10078
|
-
guid
|
|
10079
|
-
config
|
|
10080
|
-
$shadowContainer
|
|
10081
|
-
$shadowRoot
|
|
10082
|
-
toolTip
|
|
10121
|
+
guid,
|
|
10122
|
+
config,
|
|
10123
|
+
$shadowContainer,
|
|
10124
|
+
$shadowRoot,
|
|
10125
|
+
toolTip,
|
|
10083
10126
|
};
|
|
10084
|
-
}
|
|
10085
|
-
}
|
|
10127
|
+
},
|
|
10128
|
+
};
|
|
10086
10129
|
|
|
10087
10130
|
class Pops {
|
|
10088
10131
|
/** 配置 */
|
|
10089
10132
|
config = {
|
|
10090
10133
|
/** 版本号 */
|
|
10091
|
-
version: "2025.5.
|
|
10134
|
+
version: "2025.5.25",
|
|
10092
10135
|
cssText: {
|
|
10093
10136
|
/** 主CSS */
|
|
10094
10137
|
index: indexCSS,
|
|
@@ -10234,42 +10277,47 @@
|
|
|
10234
10277
|
* @param details 配置
|
|
10235
10278
|
*/
|
|
10236
10279
|
alert = (details) => {
|
|
10237
|
-
|
|
10280
|
+
let dialog = PopsAlert.init(details);
|
|
10281
|
+
return dialog;
|
|
10238
10282
|
};
|
|
10239
10283
|
/**
|
|
10240
10284
|
* 询问框
|
|
10241
10285
|
* @param details 配置
|
|
10242
10286
|
*/
|
|
10243
10287
|
confirm = (details) => {
|
|
10244
|
-
|
|
10288
|
+
let dialog = PopsConfirm.init(details);
|
|
10289
|
+
return dialog;
|
|
10245
10290
|
};
|
|
10246
10291
|
/**
|
|
10247
10292
|
* 输入框
|
|
10248
10293
|
* @param details 配置
|
|
10249
10294
|
*/
|
|
10250
10295
|
prompt = (details) => {
|
|
10251
|
-
|
|
10296
|
+
let dialog = PopsPrompt.init(details);
|
|
10297
|
+
return dialog;
|
|
10252
10298
|
};
|
|
10253
10299
|
/**
|
|
10254
10300
|
* 加载层
|
|
10255
10301
|
* @param details 配置
|
|
10256
10302
|
*/
|
|
10257
10303
|
loading = (details) => {
|
|
10258
|
-
|
|
10304
|
+
let popsLoading = PopsLoading.init(details);
|
|
10305
|
+
return popsLoading;
|
|
10259
10306
|
};
|
|
10260
10307
|
/**
|
|
10261
10308
|
* iframe层
|
|
10262
10309
|
* @param details 配置
|
|
10263
10310
|
*/
|
|
10264
10311
|
iframe = (details) => {
|
|
10265
|
-
|
|
10312
|
+
let dialog = PopsIframe.init(details);
|
|
10313
|
+
return dialog;
|
|
10266
10314
|
};
|
|
10267
10315
|
/**
|
|
10268
10316
|
* 提示框
|
|
10269
10317
|
* @param details 配置
|
|
10270
10318
|
*/
|
|
10271
10319
|
tooltip = (details) => {
|
|
10272
|
-
let popsTooltip =
|
|
10320
|
+
let popsTooltip = PopsTooltip.init(details);
|
|
10273
10321
|
return popsTooltip;
|
|
10274
10322
|
};
|
|
10275
10323
|
/**
|
|
@@ -10277,35 +10325,40 @@
|
|
|
10277
10325
|
* @param details 配置
|
|
10278
10326
|
*/
|
|
10279
10327
|
drawer = (details) => {
|
|
10280
|
-
|
|
10328
|
+
let dialog = PopsDrawer.init(details);
|
|
10329
|
+
return dialog;
|
|
10281
10330
|
};
|
|
10282
10331
|
/**
|
|
10283
10332
|
* 文件夹
|
|
10284
10333
|
* @param details 配置
|
|
10285
10334
|
*/
|
|
10286
10335
|
folder = (details) => {
|
|
10287
|
-
|
|
10336
|
+
let dialog = PopsFolder.init(details);
|
|
10337
|
+
return dialog;
|
|
10288
10338
|
};
|
|
10289
10339
|
/**
|
|
10290
10340
|
* 配置面板
|
|
10291
10341
|
* @param details 配置
|
|
10292
10342
|
*/
|
|
10293
10343
|
panel = (details) => {
|
|
10294
|
-
|
|
10344
|
+
let dialog = PopsPanel.init(details);
|
|
10345
|
+
return dialog;
|
|
10295
10346
|
};
|
|
10296
10347
|
/**
|
|
10297
10348
|
* 右键菜单
|
|
10298
10349
|
* @param details 配置
|
|
10299
10350
|
*/
|
|
10300
10351
|
rightClickMenu = (details) => {
|
|
10301
|
-
|
|
10352
|
+
let popsRightClickMenu = PopsRightClickMenu.init(details);
|
|
10353
|
+
return popsRightClickMenu;
|
|
10302
10354
|
};
|
|
10303
10355
|
/**
|
|
10304
10356
|
* 搜索建议
|
|
10305
10357
|
* @param details 配置
|
|
10306
10358
|
*/
|
|
10307
10359
|
searchSuggestion = (details) => {
|
|
10308
|
-
|
|
10360
|
+
let popsSearchSuggestion = PopsSearchSuggestion.init(details);
|
|
10361
|
+
return popsSearchSuggestion;
|
|
10309
10362
|
};
|
|
10310
10363
|
}
|
|
10311
10364
|
const pops = new Pops();
|