@whitesev/pops 1.6.1 → 1.6.3
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 +895 -874
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +895 -874
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +895 -874
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +895 -874
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +895 -874
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +895 -874
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/components/alert/config.d.ts +1 -1
- package/dist/types/src/components/confirm/config.d.ts +1 -1
- package/dist/types/src/components/drawer/config.d.ts +1 -1
- package/dist/types/src/components/folder/config.d.ts +1 -1
- package/dist/types/src/components/iframe/config.d.ts +1 -1
- package/dist/types/src/components/loading/config.d.ts +1 -1
- package/dist/types/src/components/panel/config.d.ts +1 -1
- package/dist/types/src/components/prompt/config.d.ts +1 -1
- package/dist/types/src/components/searchSuggestion/config.d.ts +1 -1
- package/dist/types/src/components/tooltip/config.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/alert/config.ts +54 -52
- package/src/components/alert/index.ts +1 -1
- package/src/components/confirm/config.ts +80 -78
- package/src/components/confirm/index.ts +1 -1
- package/src/components/drawer/config.ts +74 -72
- package/src/components/drawer/index.ts +1 -1
- package/src/components/folder/config.ts +119 -117
- package/src/components/folder/index.ts +1 -1
- package/src/components/iframe/config.ts +52 -50
- package/src/components/iframe/index.ts +1 -1
- package/src/components/loading/config.ts +23 -21
- package/src/components/loading/index.ts +1 -1
- package/src/components/panel/PanelHandleContentDetails.ts +4 -2
- package/src/components/panel/config.ts +320 -318
- package/src/components/panel/index.ts +2 -4
- package/src/components/prompt/config.ts +88 -86
- package/src/components/prompt/index.ts +1 -1
- package/src/components/rightClickMenu/config.ts +2 -4
- package/src/components/searchSuggestion/config.ts +56 -53
- package/src/components/searchSuggestion/index.ts +1 -1
- package/src/components/tooltip/config.ts +26 -24
- package/src/components/tooltip/index.ts +1 -1
package/dist/index.amd.js
CHANGED
|
@@ -4421,62 +4421,64 @@ define((function () { 'use strict';
|
|
|
4421
4421
|
},
|
|
4422
4422
|
};
|
|
4423
4423
|
|
|
4424
|
-
const PopsAlertConfig = {
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
content: {
|
|
4432
|
-
text: "默认内容",
|
|
4433
|
-
html: false,
|
|
4434
|
-
style: "",
|
|
4435
|
-
},
|
|
4436
|
-
btn: {
|
|
4437
|
-
position: "flex-end",
|
|
4438
|
-
ok: {
|
|
4439
|
-
size: void 0,
|
|
4440
|
-
enable: true,
|
|
4441
|
-
icon: void 0,
|
|
4442
|
-
rightIcon: false,
|
|
4443
|
-
iconIsLoading: false,
|
|
4444
|
-
text: "确定",
|
|
4445
|
-
type: "primary",
|
|
4446
|
-
callback: function (event) {
|
|
4447
|
-
event.close();
|
|
4448
|
-
},
|
|
4424
|
+
const PopsAlertConfig = () => {
|
|
4425
|
+
return {
|
|
4426
|
+
title: {
|
|
4427
|
+
text: "默认标题",
|
|
4428
|
+
position: "left",
|
|
4429
|
+
html: false,
|
|
4430
|
+
style: "",
|
|
4449
4431
|
},
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4432
|
+
content: {
|
|
4433
|
+
text: "默认内容",
|
|
4434
|
+
html: false,
|
|
4435
|
+
style: "",
|
|
4436
|
+
},
|
|
4437
|
+
btn: {
|
|
4438
|
+
position: "flex-end",
|
|
4439
|
+
ok: {
|
|
4440
|
+
size: void 0,
|
|
4441
|
+
enable: true,
|
|
4442
|
+
icon: void 0,
|
|
4443
|
+
rightIcon: false,
|
|
4444
|
+
iconIsLoading: false,
|
|
4445
|
+
text: "确定",
|
|
4446
|
+
type: "primary",
|
|
4447
|
+
callback: function (event) {
|
|
4448
|
+
event.close();
|
|
4449
|
+
},
|
|
4450
|
+
},
|
|
4451
|
+
close: {
|
|
4452
|
+
enable: true,
|
|
4453
|
+
callback: function (event) {
|
|
4454
|
+
event.close();
|
|
4455
|
+
},
|
|
4454
4456
|
},
|
|
4455
4457
|
},
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4458
|
+
class: "",
|
|
4459
|
+
only: false,
|
|
4460
|
+
width: "350px",
|
|
4461
|
+
height: "200px",
|
|
4462
|
+
position: "center",
|
|
4463
|
+
animation: "pops-anim-fadein-zoom",
|
|
4464
|
+
zIndex: 10000,
|
|
4465
|
+
mask: {
|
|
4466
|
+
enable: false,
|
|
4467
|
+
clickEvent: {
|
|
4468
|
+
toClose: false,
|
|
4469
|
+
toHide: false,
|
|
4470
|
+
},
|
|
4471
|
+
clickCallBack: void 0,
|
|
4469
4472
|
},
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
beforeAppendToPageCallBack() { },
|
|
4473
|
+
drag: false,
|
|
4474
|
+
dragLimit: true,
|
|
4475
|
+
dragExtraDistance: 3,
|
|
4476
|
+
dragMoveCallBack() { },
|
|
4477
|
+
dragEndCallBack() { },
|
|
4478
|
+
forbiddenScroll: false,
|
|
4479
|
+
style: null,
|
|
4480
|
+
beforeAppendToPageCallBack() { },
|
|
4481
|
+
};
|
|
4480
4482
|
};
|
|
4481
4483
|
|
|
4482
4484
|
class PopsAlert {
|
|
@@ -4491,7 +4493,7 @@ define((function () { 'use strict';
|
|
|
4491
4493
|
pops.config.cssText.common,
|
|
4492
4494
|
pops.config.cssText.alertCSS,
|
|
4493
4495
|
]);
|
|
4494
|
-
let config = PopsAlertConfig;
|
|
4496
|
+
let config = PopsAlertConfig();
|
|
4495
4497
|
config = popsUtils.assign(config, details);
|
|
4496
4498
|
let guid = popsUtils.getRandomGUID();
|
|
4497
4499
|
// 设置当前类型
|
|
@@ -4581,89 +4583,91 @@ define((function () { 'use strict';
|
|
|
4581
4583
|
}
|
|
4582
4584
|
}
|
|
4583
4585
|
|
|
4584
|
-
const PopsConfirmConfig = {
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
content: {
|
|
4592
|
-
text: "默认内容",
|
|
4593
|
-
html: false,
|
|
4594
|
-
style: "",
|
|
4595
|
-
},
|
|
4596
|
-
btn: {
|
|
4597
|
-
merge: false,
|
|
4598
|
-
mergeReverse: false,
|
|
4599
|
-
reverse: false,
|
|
4600
|
-
position: "flex-end",
|
|
4601
|
-
ok: {
|
|
4602
|
-
enable: true,
|
|
4603
|
-
size: void 0,
|
|
4604
|
-
icon: void 0,
|
|
4605
|
-
rightIcon: false,
|
|
4606
|
-
iconIsLoading: false,
|
|
4607
|
-
text: "确定",
|
|
4608
|
-
type: "primary",
|
|
4609
|
-
callback(event) {
|
|
4610
|
-
event.close();
|
|
4611
|
-
},
|
|
4586
|
+
const PopsConfirmConfig = () => {
|
|
4587
|
+
return {
|
|
4588
|
+
title: {
|
|
4589
|
+
text: "默认标题",
|
|
4590
|
+
position: "left",
|
|
4591
|
+
html: false,
|
|
4592
|
+
style: "",
|
|
4612
4593
|
},
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
rightIcon: false,
|
|
4618
|
-
iconIsLoading: false,
|
|
4619
|
-
text: "关闭",
|
|
4620
|
-
type: "default",
|
|
4621
|
-
callback(event) {
|
|
4622
|
-
event.close();
|
|
4623
|
-
},
|
|
4594
|
+
content: {
|
|
4595
|
+
text: "默认内容",
|
|
4596
|
+
html: false,
|
|
4597
|
+
style: "",
|
|
4624
4598
|
},
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4599
|
+
btn: {
|
|
4600
|
+
merge: false,
|
|
4601
|
+
mergeReverse: false,
|
|
4602
|
+
reverse: false,
|
|
4603
|
+
position: "flex-end",
|
|
4604
|
+
ok: {
|
|
4605
|
+
enable: true,
|
|
4606
|
+
size: void 0,
|
|
4607
|
+
icon: void 0,
|
|
4608
|
+
rightIcon: false,
|
|
4609
|
+
iconIsLoading: false,
|
|
4610
|
+
text: "确定",
|
|
4611
|
+
type: "primary",
|
|
4612
|
+
callback(event) {
|
|
4613
|
+
event.close();
|
|
4614
|
+
},
|
|
4635
4615
|
},
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4616
|
+
cancel: {
|
|
4617
|
+
enable: true,
|
|
4618
|
+
size: void 0,
|
|
4619
|
+
icon: void 0,
|
|
4620
|
+
rightIcon: false,
|
|
4621
|
+
iconIsLoading: false,
|
|
4622
|
+
text: "关闭",
|
|
4623
|
+
type: "default",
|
|
4624
|
+
callback(event) {
|
|
4625
|
+
event.close();
|
|
4626
|
+
},
|
|
4627
|
+
},
|
|
4628
|
+
other: {
|
|
4629
|
+
enable: false,
|
|
4630
|
+
size: void 0,
|
|
4631
|
+
icon: void 0,
|
|
4632
|
+
rightIcon: false,
|
|
4633
|
+
iconIsLoading: false,
|
|
4634
|
+
text: "其它按钮",
|
|
4635
|
+
type: "default",
|
|
4636
|
+
callback(event) {
|
|
4637
|
+
event.close();
|
|
4638
|
+
},
|
|
4639
|
+
},
|
|
4640
|
+
close: {
|
|
4641
|
+
enable: true,
|
|
4642
|
+
callback(event) {
|
|
4643
|
+
event.close();
|
|
4644
|
+
},
|
|
4641
4645
|
},
|
|
4642
4646
|
},
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4647
|
+
class: "",
|
|
4648
|
+
only: false,
|
|
4649
|
+
width: "350px",
|
|
4650
|
+
height: "200px",
|
|
4651
|
+
position: "center",
|
|
4652
|
+
animation: "pops-anim-fadein-zoom",
|
|
4653
|
+
zIndex: 10000,
|
|
4654
|
+
mask: {
|
|
4655
|
+
enable: false,
|
|
4656
|
+
clickEvent: {
|
|
4657
|
+
toClose: false,
|
|
4658
|
+
toHide: false,
|
|
4659
|
+
},
|
|
4660
|
+
clickCallBack: void 0,
|
|
4656
4661
|
},
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
beforeAppendToPageCallBack() { },
|
|
4662
|
+
drag: false,
|
|
4663
|
+
dragLimit: true,
|
|
4664
|
+
dragExtraDistance: 3,
|
|
4665
|
+
dragMoveCallBack() { },
|
|
4666
|
+
dragEndCallBack() { },
|
|
4667
|
+
forbiddenScroll: false,
|
|
4668
|
+
style: null,
|
|
4669
|
+
beforeAppendToPageCallBack() { },
|
|
4670
|
+
};
|
|
4667
4671
|
};
|
|
4668
4672
|
|
|
4669
4673
|
class PopsConfirm {
|
|
@@ -4678,7 +4682,7 @@ define((function () { 'use strict';
|
|
|
4678
4682
|
pops.config.cssText.common,
|
|
4679
4683
|
pops.config.cssText.confirmCSS,
|
|
4680
4684
|
]);
|
|
4681
|
-
let config = PopsConfirmConfig;
|
|
4685
|
+
let config = PopsConfirmConfig();
|
|
4682
4686
|
config = popsUtils.assign(config, details);
|
|
4683
4687
|
let guid = popsUtils.getRandomGUID();
|
|
4684
4688
|
// 设置当前类型
|
|
@@ -4770,97 +4774,99 @@ define((function () { 'use strict';
|
|
|
4770
4774
|
}
|
|
4771
4775
|
}
|
|
4772
4776
|
|
|
4773
|
-
const PopsPromptConfig = {
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
content: {
|
|
4781
|
-
text: "",
|
|
4782
|
-
select: false,
|
|
4783
|
-
password: false,
|
|
4784
|
-
row: false,
|
|
4785
|
-
focus: true,
|
|
4786
|
-
placeholder: "默认提示",
|
|
4787
|
-
style: "",
|
|
4788
|
-
},
|
|
4789
|
-
btn: {
|
|
4790
|
-
merge: false,
|
|
4791
|
-
mergeReverse: false,
|
|
4792
|
-
reverse: false,
|
|
4793
|
-
position: "flex-end",
|
|
4794
|
-
ok: {
|
|
4795
|
-
enable: true,
|
|
4796
|
-
size: void 0,
|
|
4797
|
-
icon: void 0,
|
|
4798
|
-
rightIcon: false,
|
|
4799
|
-
iconIsLoading: false,
|
|
4800
|
-
text: "确定",
|
|
4801
|
-
type: "success",
|
|
4802
|
-
callback(event) {
|
|
4803
|
-
console.log(event);
|
|
4804
|
-
event.close();
|
|
4805
|
-
},
|
|
4777
|
+
const PopsPromptConfig = () => {
|
|
4778
|
+
return {
|
|
4779
|
+
title: {
|
|
4780
|
+
text: "默认标题",
|
|
4781
|
+
position: "left",
|
|
4782
|
+
html: false,
|
|
4783
|
+
style: "",
|
|
4806
4784
|
},
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
callback(event) {
|
|
4816
|
-
console.log(event);
|
|
4817
|
-
event.close();
|
|
4818
|
-
},
|
|
4785
|
+
content: {
|
|
4786
|
+
text: "",
|
|
4787
|
+
select: false,
|
|
4788
|
+
password: false,
|
|
4789
|
+
row: false,
|
|
4790
|
+
focus: true,
|
|
4791
|
+
placeholder: "默认提示",
|
|
4792
|
+
style: "",
|
|
4819
4793
|
},
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4794
|
+
btn: {
|
|
4795
|
+
merge: false,
|
|
4796
|
+
mergeReverse: false,
|
|
4797
|
+
reverse: false,
|
|
4798
|
+
position: "flex-end",
|
|
4799
|
+
ok: {
|
|
4800
|
+
enable: true,
|
|
4801
|
+
size: void 0,
|
|
4802
|
+
icon: void 0,
|
|
4803
|
+
rightIcon: false,
|
|
4804
|
+
iconIsLoading: false,
|
|
4805
|
+
text: "确定",
|
|
4806
|
+
type: "success",
|
|
4807
|
+
callback(event) {
|
|
4808
|
+
console.log(event);
|
|
4809
|
+
event.close();
|
|
4810
|
+
},
|
|
4831
4811
|
},
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4812
|
+
cancel: {
|
|
4813
|
+
enable: true,
|
|
4814
|
+
size: void 0,
|
|
4815
|
+
icon: void 0,
|
|
4816
|
+
rightIcon: false,
|
|
4817
|
+
iconIsLoading: false,
|
|
4818
|
+
text: "关闭",
|
|
4819
|
+
type: "default",
|
|
4820
|
+
callback(event) {
|
|
4821
|
+
console.log(event);
|
|
4822
|
+
event.close();
|
|
4823
|
+
},
|
|
4824
|
+
},
|
|
4825
|
+
other: {
|
|
4826
|
+
enable: false,
|
|
4827
|
+
size: void 0,
|
|
4828
|
+
icon: void 0,
|
|
4829
|
+
rightIcon: false,
|
|
4830
|
+
iconIsLoading: false,
|
|
4831
|
+
text: "其它按钮",
|
|
4832
|
+
type: "default",
|
|
4833
|
+
callback(event) {
|
|
4834
|
+
console.log(event);
|
|
4835
|
+
event.close();
|
|
4836
|
+
},
|
|
4837
|
+
},
|
|
4838
|
+
close: {
|
|
4839
|
+
enable: true,
|
|
4840
|
+
callback(event) {
|
|
4841
|
+
console.log(event);
|
|
4842
|
+
event.close();
|
|
4843
|
+
},
|
|
4838
4844
|
},
|
|
4839
4845
|
},
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4846
|
+
class: "",
|
|
4847
|
+
only: false,
|
|
4848
|
+
width: "350px",
|
|
4849
|
+
height: "200px",
|
|
4850
|
+
position: "center",
|
|
4851
|
+
animation: "pops-anim-fadein-zoom",
|
|
4852
|
+
zIndex: 10000,
|
|
4853
|
+
mask: {
|
|
4854
|
+
enable: false,
|
|
4855
|
+
clickEvent: {
|
|
4856
|
+
toClose: false,
|
|
4857
|
+
toHide: false,
|
|
4858
|
+
},
|
|
4859
|
+
clickCallBack: void 0,
|
|
4853
4860
|
},
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
beforeAppendToPageCallBack() { },
|
|
4861
|
+
drag: false,
|
|
4862
|
+
dragLimit: true,
|
|
4863
|
+
dragExtraDistance: 3,
|
|
4864
|
+
dragMoveCallBack() { },
|
|
4865
|
+
dragEndCallBack() { },
|
|
4866
|
+
forbiddenScroll: false,
|
|
4867
|
+
style: null,
|
|
4868
|
+
beforeAppendToPageCallBack() { },
|
|
4869
|
+
};
|
|
4864
4870
|
};
|
|
4865
4871
|
|
|
4866
4872
|
class PopsPrompt {
|
|
@@ -4875,7 +4881,7 @@ define((function () { 'use strict';
|
|
|
4875
4881
|
pops.config.cssText.common,
|
|
4876
4882
|
pops.config.cssText.promptCSS,
|
|
4877
4883
|
]);
|
|
4878
|
-
let config = PopsPromptConfig;
|
|
4884
|
+
let config = PopsPromptConfig();
|
|
4879
4885
|
config = popsUtils.assign(config, details);
|
|
4880
4886
|
let guid = popsUtils.getRandomGUID();
|
|
4881
4887
|
const PopsType = "prompt";
|
|
@@ -4979,33 +4985,35 @@ define((function () { 'use strict';
|
|
|
4979
4985
|
}
|
|
4980
4986
|
}
|
|
4981
4987
|
|
|
4982
|
-
const PopsLoadingConfig = {
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
class: "",
|
|
4990
|
-
only: false,
|
|
4991
|
-
zIndex: 10000,
|
|
4992
|
-
mask: {
|
|
4993
|
-
enable: false,
|
|
4994
|
-
clickEvent: {
|
|
4995
|
-
toClose: false,
|
|
4996
|
-
toHide: false,
|
|
4988
|
+
const PopsLoadingConfig = () => {
|
|
4989
|
+
return {
|
|
4990
|
+
parent: document.body,
|
|
4991
|
+
content: {
|
|
4992
|
+
text: "加载中...",
|
|
4993
|
+
icon: "loading",
|
|
4994
|
+
style: "",
|
|
4997
4995
|
},
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
4996
|
+
class: "",
|
|
4997
|
+
only: false,
|
|
4998
|
+
zIndex: 10000,
|
|
4999
|
+
mask: {
|
|
5000
|
+
enable: false,
|
|
5001
|
+
clickEvent: {
|
|
5002
|
+
toClose: false,
|
|
5003
|
+
toHide: false,
|
|
5004
|
+
},
|
|
5005
|
+
clickCallBack: void 0,
|
|
5006
|
+
},
|
|
5007
|
+
animation: "pops-anim-fadein-zoom",
|
|
5008
|
+
forbiddenScroll: false,
|
|
5009
|
+
style: null,
|
|
5010
|
+
addIndexCSS: true,
|
|
5011
|
+
};
|
|
5004
5012
|
};
|
|
5005
5013
|
|
|
5006
5014
|
class PopsLoading {
|
|
5007
5015
|
constructor(details) {
|
|
5008
|
-
let config = PopsLoadingConfig;
|
|
5016
|
+
let config = PopsLoadingConfig();
|
|
5009
5017
|
config = popsUtils.assign(config, details);
|
|
5010
5018
|
let guid = popsUtils.getRandomGUID();
|
|
5011
5019
|
const PopsType = "loading";
|
|
@@ -5071,59 +5079,61 @@ define((function () { 'use strict';
|
|
|
5071
5079
|
}
|
|
5072
5080
|
}
|
|
5073
5081
|
|
|
5074
|
-
const PopsIframeConfig = {
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
loading: {
|
|
5082
|
-
enable: true,
|
|
5083
|
-
icon: true,
|
|
5084
|
-
text: "",
|
|
5085
|
-
},
|
|
5086
|
-
class: "",
|
|
5087
|
-
url: window.location.href,
|
|
5088
|
-
only: false,
|
|
5089
|
-
zIndex: 10000,
|
|
5090
|
-
mask: {
|
|
5091
|
-
enable: false,
|
|
5092
|
-
clickEvent: {
|
|
5093
|
-
toClose: false,
|
|
5094
|
-
toHide: false,
|
|
5082
|
+
const PopsIframeConfig = () => {
|
|
5083
|
+
return {
|
|
5084
|
+
title: {
|
|
5085
|
+
position: "center",
|
|
5086
|
+
text: "",
|
|
5087
|
+
html: false,
|
|
5088
|
+
style: "",
|
|
5095
5089
|
},
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
drag: false,
|
|
5101
|
-
dragLimit: true,
|
|
5102
|
-
dragExtraDistance: 3,
|
|
5103
|
-
dragMoveCallBack() { },
|
|
5104
|
-
dragEndCallBack() { },
|
|
5105
|
-
width: "300px",
|
|
5106
|
-
height: "250px",
|
|
5107
|
-
topRightButton: "min|max|mise|close",
|
|
5108
|
-
sandbox: false,
|
|
5109
|
-
forbiddenScroll: false,
|
|
5110
|
-
loadEndCallBack() { },
|
|
5111
|
-
btn: {
|
|
5112
|
-
min: {
|
|
5113
|
-
callback() { },
|
|
5114
|
-
},
|
|
5115
|
-
max: {
|
|
5116
|
-
callback() { },
|
|
5090
|
+
loading: {
|
|
5091
|
+
enable: true,
|
|
5092
|
+
icon: true,
|
|
5093
|
+
text: "",
|
|
5117
5094
|
},
|
|
5118
|
-
|
|
5119
|
-
|
|
5095
|
+
class: "",
|
|
5096
|
+
url: window.location.href,
|
|
5097
|
+
only: false,
|
|
5098
|
+
zIndex: 10000,
|
|
5099
|
+
mask: {
|
|
5100
|
+
enable: false,
|
|
5101
|
+
clickEvent: {
|
|
5102
|
+
toClose: false,
|
|
5103
|
+
toHide: false,
|
|
5104
|
+
},
|
|
5105
|
+
clickCallBack: void 0,
|
|
5120
5106
|
},
|
|
5121
|
-
|
|
5122
|
-
|
|
5107
|
+
animation: "pops-anim-fadein-zoom",
|
|
5108
|
+
position: "center",
|
|
5109
|
+
drag: false,
|
|
5110
|
+
dragLimit: true,
|
|
5111
|
+
dragExtraDistance: 3,
|
|
5112
|
+
dragMoveCallBack() { },
|
|
5113
|
+
dragEndCallBack() { },
|
|
5114
|
+
width: "300px",
|
|
5115
|
+
height: "250px",
|
|
5116
|
+
topRightButton: "min|max|mise|close",
|
|
5117
|
+
sandbox: false,
|
|
5118
|
+
forbiddenScroll: false,
|
|
5119
|
+
loadEndCallBack() { },
|
|
5120
|
+
btn: {
|
|
5121
|
+
min: {
|
|
5122
|
+
callback() { },
|
|
5123
|
+
},
|
|
5124
|
+
max: {
|
|
5125
|
+
callback() { },
|
|
5126
|
+
},
|
|
5127
|
+
mise: {
|
|
5128
|
+
callback() { },
|
|
5129
|
+
},
|
|
5130
|
+
close: {
|
|
5131
|
+
callback() { },
|
|
5132
|
+
},
|
|
5123
5133
|
},
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5134
|
+
style: null,
|
|
5135
|
+
beforeAppendToPageCallBack() { },
|
|
5136
|
+
};
|
|
5127
5137
|
};
|
|
5128
5138
|
|
|
5129
5139
|
class PopsIframe {
|
|
@@ -5137,7 +5147,7 @@ define((function () { 'use strict';
|
|
|
5137
5147
|
pops.config.cssText.common,
|
|
5138
5148
|
pops.config.cssText.iframeCSS,
|
|
5139
5149
|
]);
|
|
5140
|
-
let config = PopsIframeConfig;
|
|
5150
|
+
let config = PopsIframeConfig();
|
|
5141
5151
|
config = popsUtils.assign(config, details);
|
|
5142
5152
|
if (config.url == null) {
|
|
5143
5153
|
throw "config.url不能为空";
|
|
@@ -5352,30 +5362,32 @@ define((function () { 'use strict';
|
|
|
5352
5362
|
}
|
|
5353
5363
|
}
|
|
5354
5364
|
|
|
5355
|
-
const PopsTooltipConfig = {
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5365
|
+
const PopsTooltipConfig = () => {
|
|
5366
|
+
return {
|
|
5367
|
+
// @ts-ignore
|
|
5368
|
+
target: null,
|
|
5369
|
+
content: "默认文字",
|
|
5370
|
+
position: "top",
|
|
5371
|
+
className: "",
|
|
5372
|
+
alwaysShow: false,
|
|
5373
|
+
triggerShowEventName: "mouseenter touchstart",
|
|
5374
|
+
triggerCloseEventName: "mouseleave touchend",
|
|
5375
|
+
zIndex: 10000,
|
|
5376
|
+
only: false,
|
|
5377
|
+
eventOption: {
|
|
5378
|
+
passive: false,
|
|
5379
|
+
capture: true,
|
|
5380
|
+
once: false,
|
|
5381
|
+
},
|
|
5382
|
+
showBeforeCallBack() { },
|
|
5383
|
+
showAfterCallBack() { },
|
|
5384
|
+
closeBeforeCallBack() { },
|
|
5385
|
+
closeAfterCallBack() { },
|
|
5386
|
+
arrowDistance: 12.5,
|
|
5387
|
+
otherDistance: 0,
|
|
5388
|
+
style: "",
|
|
5389
|
+
beforeAppendToPageCallBack() { },
|
|
5390
|
+
};
|
|
5379
5391
|
};
|
|
5380
5392
|
|
|
5381
5393
|
class PopsTooltip {
|
|
@@ -5387,7 +5399,7 @@ define((function () { 'use strict';
|
|
|
5387
5399
|
pops.config.cssText.common,
|
|
5388
5400
|
pops.config.cssText.tooltipCSS,
|
|
5389
5401
|
]);
|
|
5390
|
-
let config = PopsTooltipConfig;
|
|
5402
|
+
let config = PopsTooltipConfig();
|
|
5391
5403
|
config = popsUtils.assign(config, details);
|
|
5392
5404
|
if (!(config.target instanceof HTMLElement)) {
|
|
5393
5405
|
throw "config.target 必须是HTMLElement类型";
|
|
@@ -5632,85 +5644,87 @@ define((function () { 'use strict';
|
|
|
5632
5644
|
}
|
|
5633
5645
|
}
|
|
5634
5646
|
|
|
5635
|
-
const PopsDrawerConfig = {
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
position: "center",
|
|
5639
|
-
text: "默认标题",
|
|
5640
|
-
html: false,
|
|
5641
|
-
style: "height: 60px;line-height: 60px;",
|
|
5642
|
-
},
|
|
5643
|
-
content: {
|
|
5644
|
-
text: "默认内容",
|
|
5645
|
-
html: false,
|
|
5646
|
-
style: "overflow: auto;padding: 0px 10px;",
|
|
5647
|
-
},
|
|
5648
|
-
btn: {
|
|
5649
|
-
position: "flex-end",
|
|
5650
|
-
ok: {
|
|
5647
|
+
const PopsDrawerConfig = () => {
|
|
5648
|
+
return {
|
|
5649
|
+
title: {
|
|
5651
5650
|
enable: true,
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
text: "确定",
|
|
5657
|
-
type: "primary",
|
|
5658
|
-
callback(event) {
|
|
5659
|
-
event.close();
|
|
5660
|
-
},
|
|
5651
|
+
position: "center",
|
|
5652
|
+
text: "默认标题",
|
|
5653
|
+
html: false,
|
|
5654
|
+
style: "height: 60px;line-height: 60px;",
|
|
5661
5655
|
},
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
rightIcon: false,
|
|
5667
|
-
iconIsLoading: false,
|
|
5668
|
-
text: "关闭",
|
|
5669
|
-
type: "default",
|
|
5670
|
-
callback(event) {
|
|
5671
|
-
event.close();
|
|
5672
|
-
},
|
|
5656
|
+
content: {
|
|
5657
|
+
text: "默认内容",
|
|
5658
|
+
html: false,
|
|
5659
|
+
style: "overflow: auto;padding: 0px 10px;",
|
|
5673
5660
|
},
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5661
|
+
btn: {
|
|
5662
|
+
position: "flex-end",
|
|
5663
|
+
ok: {
|
|
5664
|
+
enable: true,
|
|
5665
|
+
size: void 0,
|
|
5666
|
+
icon: void 0,
|
|
5667
|
+
rightIcon: false,
|
|
5668
|
+
iconIsLoading: false,
|
|
5669
|
+
text: "确定",
|
|
5670
|
+
type: "primary",
|
|
5671
|
+
callback(event) {
|
|
5672
|
+
event.close();
|
|
5673
|
+
},
|
|
5674
|
+
},
|
|
5675
|
+
cancel: {
|
|
5676
|
+
enable: true,
|
|
5677
|
+
size: void 0,
|
|
5678
|
+
icon: void 0,
|
|
5679
|
+
rightIcon: false,
|
|
5680
|
+
iconIsLoading: false,
|
|
5681
|
+
text: "关闭",
|
|
5682
|
+
type: "default",
|
|
5683
|
+
callback(event) {
|
|
5684
|
+
event.close();
|
|
5685
|
+
},
|
|
5686
|
+
},
|
|
5687
|
+
other: {
|
|
5688
|
+
enable: false,
|
|
5689
|
+
size: void 0,
|
|
5690
|
+
icon: void 0,
|
|
5691
|
+
rightIcon: false,
|
|
5692
|
+
iconIsLoading: false,
|
|
5693
|
+
text: "其它按钮",
|
|
5694
|
+
type: "default",
|
|
5695
|
+
callback(event) {
|
|
5696
|
+
event.close();
|
|
5697
|
+
},
|
|
5698
|
+
},
|
|
5699
|
+
close: {
|
|
5700
|
+
enable: true,
|
|
5701
|
+
callback(event) {
|
|
5702
|
+
event.close();
|
|
5703
|
+
},
|
|
5684
5704
|
},
|
|
5685
5705
|
},
|
|
5686
|
-
|
|
5706
|
+
mask: {
|
|
5687
5707
|
enable: true,
|
|
5688
|
-
|
|
5689
|
-
|
|
5708
|
+
clickEvent: {
|
|
5709
|
+
toClose: true,
|
|
5710
|
+
toHide: false,
|
|
5690
5711
|
},
|
|
5712
|
+
clickCallBack: void 0,
|
|
5691
5713
|
},
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
lockScroll: false,
|
|
5707
|
-
closeOnPressEscape: true,
|
|
5708
|
-
openDelay: 0,
|
|
5709
|
-
closeDelay: 0,
|
|
5710
|
-
borderRadius: 0,
|
|
5711
|
-
style: null,
|
|
5712
|
-
beforeAppendToPageCallBack() { },
|
|
5713
|
-
forbiddenScroll: false,
|
|
5714
|
+
class: "",
|
|
5715
|
+
zIndex: 10000,
|
|
5716
|
+
only: false,
|
|
5717
|
+
direction: "right",
|
|
5718
|
+
size: "30%",
|
|
5719
|
+
lockScroll: false,
|
|
5720
|
+
closeOnPressEscape: true,
|
|
5721
|
+
openDelay: 0,
|
|
5722
|
+
closeDelay: 0,
|
|
5723
|
+
borderRadius: 0,
|
|
5724
|
+
style: null,
|
|
5725
|
+
beforeAppendToPageCallBack() { },
|
|
5726
|
+
forbiddenScroll: false,
|
|
5727
|
+
};
|
|
5714
5728
|
};
|
|
5715
5729
|
|
|
5716
5730
|
class PopsDrawer {
|
|
@@ -5725,7 +5739,7 @@ define((function () { 'use strict';
|
|
|
5725
5739
|
pops.config.cssText.common,
|
|
5726
5740
|
pops.config.cssText.drawerCSS,
|
|
5727
5741
|
]);
|
|
5728
|
-
let config = PopsDrawerConfig;
|
|
5742
|
+
let config = PopsDrawerConfig();
|
|
5729
5743
|
config = popsUtils.assign(config, details);
|
|
5730
5744
|
let guid = popsUtils.getRandomGUID();
|
|
5731
5745
|
const PopsType = "drawer";
|
|
@@ -5892,133 +5906,135 @@ define((function () { 'use strict';
|
|
|
5892
5906
|
}
|
|
5893
5907
|
}
|
|
5894
5908
|
|
|
5895
|
-
const PopsFolderConfig = {
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
callback() { },
|
|
5907
|
-
},
|
|
5908
|
-
folder: [
|
|
5909
|
-
{
|
|
5910
|
-
fileName: "测试文件夹",
|
|
5911
|
-
fileSize: 0,
|
|
5912
|
-
fileType: "",
|
|
5913
|
-
createTime: 0,
|
|
5914
|
-
latestTime: 0,
|
|
5915
|
-
isFolder: true,
|
|
5916
|
-
index: 0,
|
|
5909
|
+
const PopsFolderConfig = () => {
|
|
5910
|
+
return {
|
|
5911
|
+
title: {
|
|
5912
|
+
text: "pops.Folder",
|
|
5913
|
+
position: "center",
|
|
5914
|
+
html: false,
|
|
5915
|
+
style: "",
|
|
5916
|
+
},
|
|
5917
|
+
sort: {
|
|
5918
|
+
name: "latestTime",
|
|
5919
|
+
isDesc: false,
|
|
5917
5920
|
// @ts-ignore
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5921
|
+
callback() { },
|
|
5922
|
+
},
|
|
5923
|
+
folder: [
|
|
5924
|
+
{
|
|
5925
|
+
fileName: "测试文件夹",
|
|
5926
|
+
fileSize: 0,
|
|
5927
|
+
fileType: "",
|
|
5928
|
+
createTime: 0,
|
|
5929
|
+
latestTime: 0,
|
|
5930
|
+
isFolder: true,
|
|
5931
|
+
index: 0,
|
|
5932
|
+
// @ts-ignore
|
|
5933
|
+
clickEvent() {
|
|
5934
|
+
return [
|
|
5935
|
+
{
|
|
5936
|
+
fileName: "内部-测试文件.zip",
|
|
5937
|
+
fileSize: 1025000,
|
|
5938
|
+
fileType: "zip",
|
|
5939
|
+
createTime: 1702038410440,
|
|
5940
|
+
latestTime: 1702039602126,
|
|
5941
|
+
isFolder: false,
|
|
5942
|
+
index: 1,
|
|
5943
|
+
clickEvent() {
|
|
5944
|
+
console.log("下载文件:", this.fileName);
|
|
5945
|
+
return "https://update.greasyfork.org/scripts/456485/pops.js";
|
|
5946
|
+
},
|
|
5931
5947
|
},
|
|
5932
|
-
|
|
5933
|
-
|
|
5948
|
+
];
|
|
5949
|
+
},
|
|
5934
5950
|
},
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5951
|
+
{
|
|
5952
|
+
fileName: "测试文件.apk",
|
|
5953
|
+
fileSize: 30125682,
|
|
5954
|
+
fileType: "apk",
|
|
5955
|
+
createTime: 1702036410440,
|
|
5956
|
+
latestTime: 1702039410440,
|
|
5957
|
+
isFolder: false,
|
|
5958
|
+
index: 1,
|
|
5959
|
+
// @ts-ignore
|
|
5960
|
+
clickEvent() {
|
|
5961
|
+
console.log("下载文件:", this.fileName);
|
|
5962
|
+
return "https://update.greasyfork.org/scripts/456485/pops.js";
|
|
5963
|
+
},
|
|
5948
5964
|
},
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5965
|
+
],
|
|
5966
|
+
btn: {
|
|
5967
|
+
merge: false,
|
|
5968
|
+
mergeReverse: false,
|
|
5969
|
+
reverse: false,
|
|
5970
|
+
position: "flex-end",
|
|
5971
|
+
ok: {
|
|
5972
|
+
enable: true,
|
|
5973
|
+
size: void 0,
|
|
5974
|
+
icon: void 0,
|
|
5975
|
+
rightIcon: false,
|
|
5976
|
+
iconIsLoading: false,
|
|
5977
|
+
text: "确定",
|
|
5978
|
+
type: "primary",
|
|
5979
|
+
callback(event) {
|
|
5980
|
+
event.close();
|
|
5981
|
+
},
|
|
5966
5982
|
},
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5983
|
+
cancel: {
|
|
5984
|
+
enable: true,
|
|
5985
|
+
size: void 0,
|
|
5986
|
+
icon: void 0,
|
|
5987
|
+
rightIcon: false,
|
|
5988
|
+
iconIsLoading: false,
|
|
5989
|
+
text: "关闭",
|
|
5990
|
+
type: "default",
|
|
5991
|
+
callback(event) {
|
|
5992
|
+
event.close();
|
|
5993
|
+
},
|
|
5978
5994
|
},
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5995
|
+
other: {
|
|
5996
|
+
enable: false,
|
|
5997
|
+
size: void 0,
|
|
5998
|
+
icon: void 0,
|
|
5999
|
+
rightIcon: false,
|
|
6000
|
+
iconIsLoading: false,
|
|
6001
|
+
text: "其它按钮",
|
|
6002
|
+
type: "default",
|
|
6003
|
+
callback(event) {
|
|
6004
|
+
event.close();
|
|
6005
|
+
},
|
|
5990
6006
|
},
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
6007
|
+
close: {
|
|
6008
|
+
enable: true,
|
|
6009
|
+
callback(event) {
|
|
6010
|
+
event.close();
|
|
6011
|
+
},
|
|
5996
6012
|
},
|
|
5997
6013
|
},
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6014
|
+
class: "",
|
|
6015
|
+
only: false,
|
|
6016
|
+
width: "500px",
|
|
6017
|
+
height: "400px",
|
|
6018
|
+
position: "center",
|
|
6019
|
+
animation: "pops-anim-fadein-zoom",
|
|
6020
|
+
zIndex: 10000,
|
|
6021
|
+
mask: {
|
|
6022
|
+
enable: false,
|
|
6023
|
+
clickEvent: {
|
|
6024
|
+
toClose: false,
|
|
6025
|
+
toHide: false,
|
|
6026
|
+
},
|
|
6027
|
+
clickCallBack: void 0,
|
|
6011
6028
|
},
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
beforeAppendToPageCallBack() { },
|
|
6029
|
+
drag: false,
|
|
6030
|
+
dragLimit: true,
|
|
6031
|
+
dragExtraDistance: 3,
|
|
6032
|
+
dragMoveCallBack() { },
|
|
6033
|
+
dragEndCallBack() { },
|
|
6034
|
+
forbiddenScroll: false,
|
|
6035
|
+
style: null,
|
|
6036
|
+
beforeAppendToPageCallBack() { },
|
|
6037
|
+
};
|
|
6022
6038
|
};
|
|
6023
6039
|
|
|
6024
6040
|
/**
|
|
@@ -6061,7 +6077,7 @@ define((function () { 'use strict';
|
|
|
6061
6077
|
pops.config.cssText.common,
|
|
6062
6078
|
pops.config.cssText.folderCSS,
|
|
6063
6079
|
]);
|
|
6064
|
-
let config = PopsFolderConfig;
|
|
6080
|
+
let config = PopsFolderConfig();
|
|
6065
6081
|
/* 办公几件套 */
|
|
6066
6082
|
Folder_ICON.docx = Folder_ICON.doc;
|
|
6067
6083
|
Folder_ICON.rtf = Folder_ICON.doc;
|
|
@@ -6827,348 +6843,350 @@ define((function () { 'use strict';
|
|
|
6827
6843
|
}
|
|
6828
6844
|
}
|
|
6829
6845
|
|
|
6830
|
-
const PopsPanelConfig = {
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
{
|
|
6869
|
-
className: "panel-slider",
|
|
6870
|
-
text: "slider",
|
|
6871
|
-
type: "slider",
|
|
6872
|
-
attributes: [],
|
|
6873
|
-
getValue() {
|
|
6874
|
-
return 50;
|
|
6846
|
+
const PopsPanelConfig = () => {
|
|
6847
|
+
return {
|
|
6848
|
+
title: {
|
|
6849
|
+
text: "默认标题",
|
|
6850
|
+
position: "center",
|
|
6851
|
+
html: false,
|
|
6852
|
+
style: "",
|
|
6853
|
+
},
|
|
6854
|
+
content: [
|
|
6855
|
+
{
|
|
6856
|
+
id: "whitesev-panel-config-1",
|
|
6857
|
+
title: "菜单配置1",
|
|
6858
|
+
headerTitle: "菜单配置1",
|
|
6859
|
+
isDefault: false,
|
|
6860
|
+
attributes: [
|
|
6861
|
+
{
|
|
6862
|
+
"data-test": "test",
|
|
6863
|
+
"data-test-2": "test2",
|
|
6864
|
+
},
|
|
6865
|
+
],
|
|
6866
|
+
forms: [
|
|
6867
|
+
{
|
|
6868
|
+
className: "forms-1",
|
|
6869
|
+
text: "区域设置",
|
|
6870
|
+
type: "forms",
|
|
6871
|
+
attributes: [],
|
|
6872
|
+
forms: [
|
|
6873
|
+
{
|
|
6874
|
+
className: "panel-switch",
|
|
6875
|
+
text: "switch",
|
|
6876
|
+
type: "switch",
|
|
6877
|
+
attributes: [],
|
|
6878
|
+
getValue() {
|
|
6879
|
+
return true;
|
|
6880
|
+
},
|
|
6881
|
+
callback(event, value) {
|
|
6882
|
+
console.log("按钮开启状态:", value);
|
|
6883
|
+
},
|
|
6875
6884
|
},
|
|
6876
|
-
|
|
6877
|
-
|
|
6885
|
+
{
|
|
6886
|
+
className: "panel-slider",
|
|
6887
|
+
text: "slider",
|
|
6888
|
+
type: "slider",
|
|
6889
|
+
attributes: [],
|
|
6890
|
+
getValue() {
|
|
6891
|
+
return 50;
|
|
6892
|
+
},
|
|
6893
|
+
callback(event, value) {
|
|
6894
|
+
console.log("滑块当前数值:", value);
|
|
6895
|
+
},
|
|
6896
|
+
min: 1,
|
|
6897
|
+
max: 100,
|
|
6878
6898
|
},
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
callback(event) {
|
|
6892
|
-
console.log("点击按钮", event);
|
|
6899
|
+
{
|
|
6900
|
+
className: "panel-button",
|
|
6901
|
+
text: "button",
|
|
6902
|
+
type: "button",
|
|
6903
|
+
attributes: [],
|
|
6904
|
+
buttonIcon: "eleme",
|
|
6905
|
+
buttonIconIsLoading: true,
|
|
6906
|
+
buttonType: "warning",
|
|
6907
|
+
buttonText: "warning按钮",
|
|
6908
|
+
callback(event) {
|
|
6909
|
+
console.log("点击按钮", event);
|
|
6910
|
+
},
|
|
6893
6911
|
},
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6912
|
+
{
|
|
6913
|
+
className: "panel-button",
|
|
6914
|
+
text: "button",
|
|
6915
|
+
type: "button",
|
|
6916
|
+
attributes: [],
|
|
6917
|
+
buttonIcon: "chromeFilled",
|
|
6918
|
+
buttonIconIsLoading: true,
|
|
6919
|
+
buttonType: "danger",
|
|
6920
|
+
buttonText: "danger按钮",
|
|
6921
|
+
callback(event) {
|
|
6922
|
+
console.log("点击按钮", event);
|
|
6923
|
+
},
|
|
6906
6924
|
},
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6925
|
+
{
|
|
6926
|
+
className: "panel-button",
|
|
6927
|
+
text: "button",
|
|
6928
|
+
type: "button",
|
|
6929
|
+
attributes: [],
|
|
6930
|
+
buttonIcon: "upload",
|
|
6931
|
+
buttonIconIsLoading: false,
|
|
6932
|
+
buttonType: "info",
|
|
6933
|
+
buttonText: "info按钮",
|
|
6934
|
+
callback(event) {
|
|
6935
|
+
console.log("点击按钮", event);
|
|
6936
|
+
},
|
|
6919
6937
|
},
|
|
6920
|
-
|
|
6921
|
-
],
|
|
6922
|
-
},
|
|
6923
|
-
],
|
|
6924
|
-
},
|
|
6925
|
-
{
|
|
6926
|
-
id: "whitesev-panel-config-2",
|
|
6927
|
-
title: "菜单配置2",
|
|
6928
|
-
headerTitle: "菜单配置2",
|
|
6929
|
-
isDefault: true,
|
|
6930
|
-
attributes: [
|
|
6931
|
-
{
|
|
6932
|
-
"data-value": "value",
|
|
6933
|
-
"data-value-2": "value2",
|
|
6934
|
-
},
|
|
6935
|
-
],
|
|
6936
|
-
forms: [
|
|
6937
|
-
{
|
|
6938
|
-
className: "panel-input",
|
|
6939
|
-
text: "input",
|
|
6940
|
-
type: "input",
|
|
6941
|
-
attributes: [],
|
|
6942
|
-
getValue() {
|
|
6943
|
-
return "50";
|
|
6944
|
-
},
|
|
6945
|
-
callback(event, value) {
|
|
6946
|
-
console.log("输入框内容改变:", value);
|
|
6947
|
-
},
|
|
6948
|
-
placeholder: "请输入内容",
|
|
6949
|
-
},
|
|
6950
|
-
{
|
|
6951
|
-
className: "panel-input-password",
|
|
6952
|
-
text: "input-password",
|
|
6953
|
-
type: "input",
|
|
6954
|
-
attributes: [],
|
|
6955
|
-
getValue() {
|
|
6956
|
-
return "123456";
|
|
6957
|
-
},
|
|
6958
|
-
callback(event, value) {
|
|
6959
|
-
console.log("密码输入框内容改变:", value);
|
|
6960
|
-
},
|
|
6961
|
-
isPassword: true,
|
|
6962
|
-
placeholder: "请输入密码",
|
|
6963
|
-
},
|
|
6964
|
-
{
|
|
6965
|
-
className: "panel-textarea",
|
|
6966
|
-
text: "textarea",
|
|
6967
|
-
type: "textarea",
|
|
6968
|
-
attributes: [],
|
|
6969
|
-
getValue() {
|
|
6970
|
-
return "50";
|
|
6971
|
-
},
|
|
6972
|
-
callback(event, value) {
|
|
6973
|
-
console.log("textarea输入框内容改变:", value);
|
|
6974
|
-
},
|
|
6975
|
-
placeholder: "请输入内容",
|
|
6976
|
-
},
|
|
6977
|
-
{
|
|
6978
|
-
className: "panel-select",
|
|
6979
|
-
text: "select",
|
|
6980
|
-
type: "select",
|
|
6981
|
-
attributes: [],
|
|
6982
|
-
getValue() {
|
|
6983
|
-
return 50;
|
|
6938
|
+
],
|
|
6984
6939
|
},
|
|
6985
|
-
|
|
6986
|
-
|
|
6940
|
+
],
|
|
6941
|
+
},
|
|
6942
|
+
{
|
|
6943
|
+
id: "whitesev-panel-config-2",
|
|
6944
|
+
title: "菜单配置2",
|
|
6945
|
+
headerTitle: "菜单配置2",
|
|
6946
|
+
isDefault: true,
|
|
6947
|
+
attributes: [
|
|
6948
|
+
{
|
|
6949
|
+
"data-value": "value",
|
|
6950
|
+
"data-value-2": "value2",
|
|
6987
6951
|
},
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6952
|
+
],
|
|
6953
|
+
forms: [
|
|
6954
|
+
{
|
|
6955
|
+
className: "panel-input",
|
|
6956
|
+
text: "input",
|
|
6957
|
+
type: "input",
|
|
6958
|
+
attributes: [],
|
|
6959
|
+
getValue() {
|
|
6960
|
+
return "50";
|
|
6996
6961
|
},
|
|
6997
|
-
{
|
|
6998
|
-
|
|
6999
|
-
text: "超文本",
|
|
6962
|
+
callback(event, value) {
|
|
6963
|
+
console.log("输入框内容改变:", value);
|
|
7000
6964
|
},
|
|
7001
|
-
|
|
7002
|
-
},
|
|
7003
|
-
{
|
|
7004
|
-
className: "panel-select-multiple",
|
|
7005
|
-
type: "select-multiple",
|
|
7006
|
-
text: "select-multiple",
|
|
7007
|
-
attributes: [],
|
|
7008
|
-
placeholder: "请至少选择一个选项",
|
|
7009
|
-
getValue() {
|
|
7010
|
-
return ["select-1", "select-2"];
|
|
7011
|
-
},
|
|
7012
|
-
callback(selectInfo) {
|
|
7013
|
-
console.log(`select值改变,多选信息`, selectInfo);
|
|
6965
|
+
placeholder: "请输入内容",
|
|
7014
6966
|
},
|
|
7015
|
-
|
|
7016
|
-
|
|
6967
|
+
{
|
|
6968
|
+
className: "panel-input-password",
|
|
6969
|
+
text: "input-password",
|
|
6970
|
+
type: "input",
|
|
6971
|
+
attributes: [],
|
|
6972
|
+
getValue() {
|
|
6973
|
+
return "123456";
|
|
6974
|
+
},
|
|
6975
|
+
callback(event, value) {
|
|
6976
|
+
console.log("密码输入框内容改变:", value);
|
|
6977
|
+
},
|
|
6978
|
+
isPassword: true,
|
|
6979
|
+
placeholder: "请输入密码",
|
|
7017
6980
|
},
|
|
7018
|
-
|
|
7019
|
-
|
|
6981
|
+
{
|
|
6982
|
+
className: "panel-textarea",
|
|
6983
|
+
text: "textarea",
|
|
6984
|
+
type: "textarea",
|
|
6985
|
+
attributes: [],
|
|
6986
|
+
getValue() {
|
|
6987
|
+
return "50";
|
|
6988
|
+
},
|
|
6989
|
+
callback(event, value) {
|
|
6990
|
+
console.log("textarea输入框内容改变:", value);
|
|
6991
|
+
},
|
|
6992
|
+
placeholder: "请输入内容",
|
|
7020
6993
|
},
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
6994
|
+
{
|
|
6995
|
+
className: "panel-select",
|
|
6996
|
+
text: "select",
|
|
6997
|
+
type: "select",
|
|
6998
|
+
attributes: [],
|
|
6999
|
+
getValue() {
|
|
7000
|
+
return 50;
|
|
7025
7001
|
},
|
|
7026
|
-
{
|
|
7027
|
-
|
|
7028
|
-
text: "单选2",
|
|
7002
|
+
callback(event, isSelectedValue, isSelectedText) {
|
|
7003
|
+
console.log(`select当前选项:${isSelectedValue},当前选项文本:${isSelectedText}`);
|
|
7029
7004
|
},
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7005
|
+
data: [
|
|
7006
|
+
{
|
|
7007
|
+
value: "all",
|
|
7008
|
+
text: "所有",
|
|
7009
|
+
},
|
|
7010
|
+
{
|
|
7011
|
+
value: "text",
|
|
7012
|
+
text: "文本",
|
|
7013
|
+
},
|
|
7014
|
+
{
|
|
7015
|
+
value: "html",
|
|
7016
|
+
text: "超文本",
|
|
7017
|
+
},
|
|
7018
|
+
],
|
|
7019
|
+
},
|
|
7020
|
+
{
|
|
7021
|
+
className: "panel-select-multiple",
|
|
7022
|
+
type: "select-multiple",
|
|
7023
|
+
text: "select-multiple",
|
|
7024
|
+
attributes: [],
|
|
7025
|
+
placeholder: "请至少选择一个选项",
|
|
7026
|
+
getValue() {
|
|
7027
|
+
return ["select-1", "select-2"];
|
|
7033
7028
|
},
|
|
7034
|
-
{
|
|
7035
|
-
|
|
7036
|
-
text: "单选4",
|
|
7029
|
+
callback(selectInfo) {
|
|
7030
|
+
console.log(`select值改变,多选信息`, selectInfo);
|
|
7037
7031
|
},
|
|
7038
|
-
{
|
|
7039
|
-
|
|
7040
|
-
text: "单选5",
|
|
7032
|
+
clickCallBack(event, isSelectedInfo) {
|
|
7033
|
+
console.log("点击", event, isSelectedInfo);
|
|
7041
7034
|
},
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
type: "deepMenu",
|
|
7050
|
-
className: "panel-deepMenu",
|
|
7051
|
-
text: "deepMenu",
|
|
7052
|
-
description: "二级菜单",
|
|
7053
|
-
rightText: "自定义配置",
|
|
7054
|
-
arrowRightIcon: true,
|
|
7055
|
-
clickCallBack(event, formConfig) {
|
|
7056
|
-
console.log("进入子配置", event, formConfig);
|
|
7035
|
+
closeIconClickCallBack(event, data) {
|
|
7036
|
+
console.log("点击关闭图标的事件", data);
|
|
7037
|
+
},
|
|
7038
|
+
data: [
|
|
7039
|
+
{
|
|
7040
|
+
value: "select-1",
|
|
7041
|
+
text: "单选1",
|
|
7057
7042
|
},
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7043
|
+
{
|
|
7044
|
+
value: "select-2",
|
|
7045
|
+
text: "单选2",
|
|
7046
|
+
},
|
|
7047
|
+
{
|
|
7048
|
+
value: "select-3",
|
|
7049
|
+
text: "单选3",
|
|
7050
|
+
},
|
|
7051
|
+
{
|
|
7052
|
+
value: "select-4",
|
|
7053
|
+
text: "单选4",
|
|
7054
|
+
},
|
|
7055
|
+
{
|
|
7056
|
+
value: "select-5",
|
|
7057
|
+
text: "单选5",
|
|
7058
|
+
},
|
|
7059
|
+
],
|
|
7060
|
+
},
|
|
7061
|
+
{
|
|
7062
|
+
type: "forms",
|
|
7063
|
+
text: "deep菜单",
|
|
7064
|
+
forms: [
|
|
7065
|
+
{
|
|
7066
|
+
type: "deepMenu",
|
|
7067
|
+
className: "panel-deepMenu",
|
|
7068
|
+
text: "deepMenu",
|
|
7069
|
+
description: "二级菜单",
|
|
7070
|
+
rightText: "自定义配置",
|
|
7071
|
+
arrowRightIcon: true,
|
|
7072
|
+
clickCallBack(event, formConfig) {
|
|
7073
|
+
console.log("进入子配置", event, formConfig);
|
|
7074
|
+
},
|
|
7075
|
+
forms: [
|
|
7076
|
+
{
|
|
7077
|
+
className: "forms-1",
|
|
7078
|
+
text: "区域设置",
|
|
7079
|
+
type: "forms",
|
|
7080
|
+
attributes: [],
|
|
7081
|
+
forms: [
|
|
7082
|
+
{
|
|
7083
|
+
className: "panel-switch",
|
|
7084
|
+
text: "switch",
|
|
7085
|
+
type: "switch",
|
|
7086
|
+
attributes: [],
|
|
7087
|
+
getValue() {
|
|
7088
|
+
return true;
|
|
7089
|
+
},
|
|
7090
|
+
callback(event, value) {
|
|
7091
|
+
console.log("按钮开启状态:", value);
|
|
7092
|
+
},
|
|
7084
7093
|
},
|
|
7085
|
-
|
|
7086
|
-
|
|
7094
|
+
{
|
|
7095
|
+
className: "panel-slider",
|
|
7096
|
+
text: "slider",
|
|
7097
|
+
type: "slider",
|
|
7098
|
+
attributes: [],
|
|
7099
|
+
getValue() {
|
|
7100
|
+
return 50;
|
|
7101
|
+
},
|
|
7102
|
+
callback(event, value) {
|
|
7103
|
+
console.log("滑块当前数值:", value);
|
|
7104
|
+
},
|
|
7105
|
+
min: 1,
|
|
7106
|
+
max: 100,
|
|
7087
7107
|
},
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
callback(event) {
|
|
7101
|
-
console.log("点击按钮", event);
|
|
7108
|
+
{
|
|
7109
|
+
className: "panel-button",
|
|
7110
|
+
text: "button",
|
|
7111
|
+
type: "button",
|
|
7112
|
+
attributes: [],
|
|
7113
|
+
buttonIcon: "eleme",
|
|
7114
|
+
buttonIconIsLoading: true,
|
|
7115
|
+
buttonType: "warning",
|
|
7116
|
+
buttonText: "warning按钮",
|
|
7117
|
+
callback(event) {
|
|
7118
|
+
console.log("点击按钮", event);
|
|
7119
|
+
},
|
|
7102
7120
|
},
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7121
|
+
{
|
|
7122
|
+
className: "panel-button",
|
|
7123
|
+
text: "button",
|
|
7124
|
+
type: "button",
|
|
7125
|
+
attributes: [],
|
|
7126
|
+
buttonIcon: "chromeFilled",
|
|
7127
|
+
buttonIconIsLoading: true,
|
|
7128
|
+
buttonType: "danger",
|
|
7129
|
+
buttonText: "danger按钮",
|
|
7130
|
+
callback(event) {
|
|
7131
|
+
console.log("点击按钮", event);
|
|
7132
|
+
},
|
|
7115
7133
|
},
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7134
|
+
{
|
|
7135
|
+
className: "panel-button",
|
|
7136
|
+
text: "button",
|
|
7137
|
+
type: "button",
|
|
7138
|
+
attributes: [],
|
|
7139
|
+
buttonIcon: "upload",
|
|
7140
|
+
buttonIconIsLoading: false,
|
|
7141
|
+
buttonType: "info",
|
|
7142
|
+
buttonText: "info按钮",
|
|
7143
|
+
callback(event) {
|
|
7144
|
+
console.log("点击按钮", event);
|
|
7145
|
+
},
|
|
7128
7146
|
},
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7147
|
+
],
|
|
7148
|
+
},
|
|
7149
|
+
],
|
|
7150
|
+
},
|
|
7151
|
+
],
|
|
7152
|
+
},
|
|
7153
|
+
],
|
|
7154
|
+
},
|
|
7155
|
+
],
|
|
7156
|
+
btn: {
|
|
7157
|
+
close: {
|
|
7158
|
+
enable: true,
|
|
7159
|
+
callback(event) {
|
|
7160
|
+
event.close();
|
|
7135
7161
|
},
|
|
7136
|
-
],
|
|
7137
|
-
},
|
|
7138
|
-
],
|
|
7139
|
-
btn: {
|
|
7140
|
-
close: {
|
|
7141
|
-
enable: true,
|
|
7142
|
-
callback(event) {
|
|
7143
|
-
event.close();
|
|
7144
7162
|
},
|
|
7145
7163
|
},
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7164
|
+
mask: {
|
|
7165
|
+
enable: false,
|
|
7166
|
+
clickEvent: {
|
|
7167
|
+
toClose: false,
|
|
7168
|
+
toHide: false,
|
|
7169
|
+
},
|
|
7170
|
+
clickCallBack: void 0,
|
|
7152
7171
|
},
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
beforeAppendToPageCallBack() { },
|
|
7172
|
+
class: "",
|
|
7173
|
+
mobileClassName: "pops-panel-is-mobile",
|
|
7174
|
+
isMobile: false,
|
|
7175
|
+
only: false,
|
|
7176
|
+
width: "700px",
|
|
7177
|
+
height: "500px",
|
|
7178
|
+
position: "center",
|
|
7179
|
+
animation: "pops-anim-fadein-zoom",
|
|
7180
|
+
zIndex: 10000,
|
|
7181
|
+
drag: false,
|
|
7182
|
+
dragLimit: true,
|
|
7183
|
+
dragExtraDistance: 3,
|
|
7184
|
+
dragMoveCallBack() { },
|
|
7185
|
+
dragEndCallBack() { },
|
|
7186
|
+
forbiddenScroll: false,
|
|
7187
|
+
style: null,
|
|
7188
|
+
beforeAppendToPageCallBack() { },
|
|
7189
|
+
};
|
|
7172
7190
|
};
|
|
7173
7191
|
|
|
7174
7192
|
const PopsMathFloatUtils = {
|
|
@@ -8595,6 +8613,7 @@ define((function () { 'use strict';
|
|
|
8595
8613
|
</div>
|
|
8596
8614
|
`;
|
|
8597
8615
|
const PopsPanelSelectMultiple = {
|
|
8616
|
+
[Symbol.toStringTag]: "PopsPanelSelectMultiple",
|
|
8598
8617
|
$el: {
|
|
8599
8618
|
/** 容器 */
|
|
8600
8619
|
$container: void 0,
|
|
@@ -8894,7 +8913,7 @@ define((function () { 'use strict';
|
|
|
8894
8913
|
});
|
|
8895
8914
|
}
|
|
8896
8915
|
let { style, ...userConfirmDetails } = formConfig.selectConfirmDialogDetails || {};
|
|
8897
|
-
let confirmDetails =
|
|
8916
|
+
let confirmDetails = popsUtils.assign({
|
|
8898
8917
|
title: {
|
|
8899
8918
|
text: "请勾选需要选择的选项",
|
|
8900
8919
|
position: "center",
|
|
@@ -8914,6 +8933,7 @@ define((function () { 'use strict';
|
|
|
8914
8933
|
callback(details, event) {
|
|
8915
8934
|
that.$data.selectInfo = [...selectedInfo];
|
|
8916
8935
|
that.updateSelectTagItem();
|
|
8936
|
+
details.close();
|
|
8917
8937
|
},
|
|
8918
8938
|
},
|
|
8919
8939
|
},
|
|
@@ -9074,7 +9094,7 @@ define((function () { 'use strict';
|
|
|
9074
9094
|
},
|
|
9075
9095
|
};
|
|
9076
9096
|
PopsPanelSelectMultiple.init();
|
|
9077
|
-
Reflect.set(liElement, "data-select", PopsPanelSelectMultiple);
|
|
9097
|
+
Reflect.set(liElement, "data-select-multiple", PopsPanelSelectMultiple);
|
|
9078
9098
|
return liElement;
|
|
9079
9099
|
},
|
|
9080
9100
|
/**
|
|
@@ -9566,7 +9586,7 @@ define((function () { 'use strict';
|
|
|
9566
9586
|
pops.config.cssText.common,
|
|
9567
9587
|
pops.config.cssText.panelCSS,
|
|
9568
9588
|
]);
|
|
9569
|
-
let config = PopsPanelConfig;
|
|
9589
|
+
let config = PopsPanelConfig();
|
|
9570
9590
|
config = popsUtils.assign(config, details);
|
|
9571
9591
|
if (details && Array.isArray(details.content)) {
|
|
9572
9592
|
config.content = details.content;
|
|
@@ -9676,7 +9696,7 @@ define((function () { 'use strict';
|
|
|
9676
9696
|
}
|
|
9677
9697
|
|
|
9678
9698
|
const rightClickMenuConfig = () => {
|
|
9679
|
-
|
|
9699
|
+
return {
|
|
9680
9700
|
target: document.documentElement,
|
|
9681
9701
|
targetSelector: null,
|
|
9682
9702
|
data: [
|
|
@@ -9791,7 +9811,6 @@ define((function () { 'use strict';
|
|
|
9791
9811
|
style: null,
|
|
9792
9812
|
beforeAppendToPageCallBack() { },
|
|
9793
9813
|
};
|
|
9794
|
-
return config;
|
|
9795
9814
|
};
|
|
9796
9815
|
|
|
9797
9816
|
class PopsRightClickMenu {
|
|
@@ -10211,58 +10230,60 @@ define((function () { 'use strict';
|
|
|
10211
10230
|
}
|
|
10212
10231
|
}
|
|
10213
10232
|
|
|
10214
|
-
const searchSuggestionConfig = {
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10233
|
+
const searchSuggestionConfig = () => {
|
|
10234
|
+
return {
|
|
10235
|
+
// @ts-ignore
|
|
10236
|
+
target: null,
|
|
10237
|
+
// @ts-ignore
|
|
10238
|
+
inputTarget: null,
|
|
10239
|
+
selfDocument: document,
|
|
10240
|
+
data: [
|
|
10241
|
+
{
|
|
10242
|
+
value: "数据1",
|
|
10243
|
+
text: "数据1-html",
|
|
10244
|
+
},
|
|
10245
|
+
{
|
|
10246
|
+
value: "数据2",
|
|
10247
|
+
text: "数据2-html",
|
|
10248
|
+
},
|
|
10249
|
+
],
|
|
10250
|
+
deleteIcon: {
|
|
10251
|
+
enable: true,
|
|
10252
|
+
callback(event, liElement, data) {
|
|
10253
|
+
console.log("删除当前项", [event, liElement, data]);
|
|
10254
|
+
liElement.remove();
|
|
10255
|
+
},
|
|
10224
10256
|
},
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10257
|
+
className: "",
|
|
10258
|
+
isAbsolute: true,
|
|
10259
|
+
isAnimation: true,
|
|
10260
|
+
width: "250px",
|
|
10261
|
+
maxHeight: "300px",
|
|
10262
|
+
followTargetWidth: true,
|
|
10263
|
+
topDistance: 0,
|
|
10264
|
+
position: "auto",
|
|
10265
|
+
positionTopToReverse: true,
|
|
10266
|
+
zIndex: 10000,
|
|
10267
|
+
searchingTip: "正在搜索中...",
|
|
10268
|
+
toSearhNotResultHTML: '<li data-none="true">暂无其它数据</li>',
|
|
10269
|
+
toHideWithNotResult: false,
|
|
10270
|
+
followPosition: "target",
|
|
10271
|
+
getItemHTML(item) {
|
|
10272
|
+
return item.text ?? item;
|
|
10228
10273
|
},
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
callback(event, liElement, data) {
|
|
10233
|
-
console.log("删除当前项", [event, liElement, data]);
|
|
10234
|
-
liElement.remove();
|
|
10274
|
+
async getData(value) {
|
|
10275
|
+
console.log("当前输入框的值是:", value);
|
|
10276
|
+
return [];
|
|
10235
10277
|
},
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
positionTopToReverse: true,
|
|
10246
|
-
zIndex: 10000,
|
|
10247
|
-
searchingTip: "正在搜索中...",
|
|
10248
|
-
toSearhNotResultHTML: '<li data-none="true">暂无其它数据</li>',
|
|
10249
|
-
toHideWithNotResult: false,
|
|
10250
|
-
followPosition: "target",
|
|
10251
|
-
getItemHTML(item) {
|
|
10252
|
-
return item.text ?? item;
|
|
10253
|
-
},
|
|
10254
|
-
async getData(value) {
|
|
10255
|
-
console.log("当前输入框的值是:", value);
|
|
10256
|
-
return [];
|
|
10257
|
-
},
|
|
10258
|
-
itemClickCallBack(event, liElement, data) {
|
|
10259
|
-
console.log("item项的点击回调", [event, liElement, data]);
|
|
10260
|
-
this.inputTarget.value = data.value;
|
|
10261
|
-
},
|
|
10262
|
-
selectCallBack(event, liElement, data) {
|
|
10263
|
-
console.log("item项的选中回调", [event, liElement, data]);
|
|
10264
|
-
},
|
|
10265
|
-
style: "",
|
|
10278
|
+
itemClickCallBack(event, liElement, data) {
|
|
10279
|
+
console.log("item项的点击回调", [event, liElement, data]);
|
|
10280
|
+
this.inputTarget.value = data.value;
|
|
10281
|
+
},
|
|
10282
|
+
selectCallBack(event, liElement, data) {
|
|
10283
|
+
console.log("item项的选中回调", [event, liElement, data]);
|
|
10284
|
+
},
|
|
10285
|
+
style: "",
|
|
10286
|
+
};
|
|
10266
10287
|
};
|
|
10267
10288
|
|
|
10268
10289
|
class PopsSearchSuggestion {
|
|
@@ -10273,7 +10294,7 @@ define((function () { 'use strict';
|
|
|
10273
10294
|
pops.config.cssText.anim,
|
|
10274
10295
|
pops.config.cssText.common,
|
|
10275
10296
|
]);
|
|
10276
|
-
let config = searchSuggestionConfig;
|
|
10297
|
+
let config = searchSuggestionConfig();
|
|
10277
10298
|
config = popsUtils.assign(config, details);
|
|
10278
10299
|
if (config.target == null) {
|
|
10279
10300
|
throw new TypeError("config.target 不能为空");
|