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