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