@whitesev/pops 1.6.2 → 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 +891 -872
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +891 -872
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +891 -872
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +891 -872
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +891 -872
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +891 -872
- 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/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
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PopsAlertDetails } from "./indexType";
|
|
2
|
-
export declare const PopsAlertConfig: Required<PopsAlertDetails>;
|
|
2
|
+
export declare const PopsAlertConfig: () => Required<PopsAlertDetails>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PopsConfirmDetails } from "./indexType";
|
|
2
|
-
export declare const PopsConfirmConfig: Required<PopsConfirmDetails>;
|
|
2
|
+
export declare const PopsConfirmConfig: () => Required<PopsConfirmDetails>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PopsDrawerDetails } from "./indexType";
|
|
2
|
-
export declare const PopsDrawerConfig: Required<PopsDrawerDetails>;
|
|
2
|
+
export declare const PopsDrawerConfig: () => Required<PopsDrawerDetails>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PopsFolderDetails } from "./indexType";
|
|
2
|
-
export declare const PopsFolderConfig: Required<PopsFolderDetails>;
|
|
2
|
+
export declare const PopsFolderConfig: () => Required<PopsFolderDetails>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PopsIframeDetails } from "./indexType";
|
|
2
|
-
export declare const PopsIframeConfig: Required<PopsIframeDetails>;
|
|
2
|
+
export declare const PopsIframeConfig: () => Required<PopsIframeDetails>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PopsLoadingDetails } from "./indexType";
|
|
2
|
-
export declare const PopsLoadingConfig: Required<PopsLoadingDetails>;
|
|
2
|
+
export declare const PopsLoadingConfig: () => Required<PopsLoadingDetails>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PopsPanelDetails } from "./indexType";
|
|
2
|
-
export declare const PopsPanelConfig: Required<PopsPanelDetails>;
|
|
2
|
+
export declare const PopsPanelConfig: () => Required<PopsPanelDetails>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PopsPromptDetails } from "./indexType";
|
|
2
|
-
export declare const PopsPromptConfig: Required<PopsPromptDetails>;
|
|
2
|
+
export declare const PopsPromptConfig: () => Required<PopsPromptDetails>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PopsSearchSuggestionDetails } from "./indexType";
|
|
2
|
-
export declare const searchSuggestionConfig: Required<PopsSearchSuggestionDetails>;
|
|
2
|
+
export declare const searchSuggestionConfig: () => Required<PopsSearchSuggestionDetails>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PopsToolTipDetails } from "./indexType";
|
|
2
|
-
export declare const PopsTooltipConfig: Required<PopsToolTipDetails>;
|
|
2
|
+
export declare const PopsTooltipConfig: () => Required<PopsToolTipDetails>;
|
package/package.json
CHANGED
|
@@ -1,59 +1,61 @@
|
|
|
1
1
|
import type { PopsAlertDetails } from "./indexType";
|
|
2
2
|
|
|
3
|
-
export const PopsAlertConfig: Required<PopsAlertDetails>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
btn: {
|
|
16
|
-
position: "flex-end",
|
|
17
|
-
ok: {
|
|
18
|
-
size: void 0,
|
|
19
|
-
enable: true,
|
|
20
|
-
icon: void 0,
|
|
21
|
-
rightIcon: false,
|
|
22
|
-
iconIsLoading: false,
|
|
23
|
-
text: "确定",
|
|
24
|
-
type: "primary",
|
|
25
|
-
callback: function (event) {
|
|
26
|
-
event.close();
|
|
27
|
-
},
|
|
3
|
+
export const PopsAlertConfig = (): Required<PopsAlertDetails> => {
|
|
4
|
+
return {
|
|
5
|
+
title: {
|
|
6
|
+
text: "默认标题",
|
|
7
|
+
position: "left",
|
|
8
|
+
html: false,
|
|
9
|
+
style: "",
|
|
10
|
+
},
|
|
11
|
+
content: {
|
|
12
|
+
text: "默认内容",
|
|
13
|
+
html: false,
|
|
14
|
+
style: "",
|
|
28
15
|
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
16
|
+
btn: {
|
|
17
|
+
position: "flex-end",
|
|
18
|
+
ok: {
|
|
19
|
+
size: void 0,
|
|
20
|
+
enable: true,
|
|
21
|
+
icon: void 0,
|
|
22
|
+
rightIcon: false,
|
|
23
|
+
iconIsLoading: false,
|
|
24
|
+
text: "确定",
|
|
25
|
+
type: "primary",
|
|
26
|
+
callback: function (event) {
|
|
27
|
+
event.close();
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
close: {
|
|
31
|
+
enable: true,
|
|
32
|
+
callback: function (event) {
|
|
33
|
+
event.close();
|
|
34
|
+
},
|
|
33
35
|
},
|
|
34
36
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
37
|
+
class: "",
|
|
38
|
+
only: false,
|
|
39
|
+
width: "350px",
|
|
40
|
+
height: "200px",
|
|
41
|
+
position: "center",
|
|
42
|
+
animation: "pops-anim-fadein-zoom",
|
|
43
|
+
zIndex: 10000,
|
|
44
|
+
mask: {
|
|
45
|
+
enable: false,
|
|
46
|
+
clickEvent: {
|
|
47
|
+
toClose: false,
|
|
48
|
+
toHide: false,
|
|
49
|
+
},
|
|
50
|
+
clickCallBack: void 0,
|
|
48
51
|
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
beforeAppendToPageCallBack() {},
|
|
52
|
+
drag: false,
|
|
53
|
+
dragLimit: true,
|
|
54
|
+
dragExtraDistance: 3,
|
|
55
|
+
dragMoveCallBack() {},
|
|
56
|
+
dragEndCallBack() {},
|
|
57
|
+
forbiddenScroll: false,
|
|
58
|
+
style: null,
|
|
59
|
+
beforeAppendToPageCallBack() {},
|
|
60
|
+
};
|
|
59
61
|
};
|
|
@@ -21,7 +21,7 @@ export class PopsAlert {
|
|
|
21
21
|
pops.config.cssText.alertCSS,
|
|
22
22
|
]);
|
|
23
23
|
|
|
24
|
-
let config: Required<PopsAlertDetails> = PopsAlertConfig;
|
|
24
|
+
let config: Required<PopsAlertDetails> = PopsAlertConfig();
|
|
25
25
|
config = popsUtils.assign(config, details);
|
|
26
26
|
let guid = popsUtils.getRandomGUID();
|
|
27
27
|
// 设置当前类型
|
|
@@ -1,94 +1,96 @@
|
|
|
1
1
|
import type { PopsConfirmDetails } from "./indexType";
|
|
2
2
|
|
|
3
|
-
export const PopsConfirmConfig: Required<PopsConfirmDetails>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
3
|
+
export const PopsConfirmConfig = (): Required<PopsConfirmDetails> => {
|
|
4
|
+
return {
|
|
5
|
+
title: {
|
|
6
|
+
text: "默认标题",
|
|
7
|
+
position: "left",
|
|
8
|
+
html: false,
|
|
9
|
+
style: "",
|
|
10
|
+
},
|
|
11
|
+
content: {
|
|
12
|
+
text: "默认内容",
|
|
13
|
+
html: false,
|
|
14
|
+
style: "",
|
|
15
|
+
},
|
|
16
|
+
btn: {
|
|
17
|
+
merge: false,
|
|
18
|
+
mergeReverse: false,
|
|
19
|
+
reverse: false,
|
|
20
|
+
position: "flex-end",
|
|
21
|
+
ok: {
|
|
22
|
+
enable: true,
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
size: void 0,
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
icon: void 0,
|
|
27
|
+
rightIcon: false,
|
|
28
|
+
iconIsLoading: false,
|
|
29
|
+
text: "确定",
|
|
30
|
+
type: "primary",
|
|
31
|
+
callback(event) {
|
|
32
|
+
event.close();
|
|
33
|
+
},
|
|
32
34
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
enable: true,
|
|
35
|
+
cancel: {
|
|
36
|
+
enable: true,
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
size: void 0,
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
icon: void 0,
|
|
41
|
+
rightIcon: false,
|
|
42
|
+
iconIsLoading: false,
|
|
43
|
+
text: "关闭",
|
|
44
|
+
type: "default",
|
|
45
|
+
callback(event) {
|
|
46
|
+
event.close();
|
|
47
|
+
},
|
|
46
48
|
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
enable: false,
|
|
49
|
+
other: {
|
|
50
|
+
enable: false,
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
size: void 0,
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
icon: void 0,
|
|
55
|
+
rightIcon: false,
|
|
56
|
+
iconIsLoading: false,
|
|
57
|
+
text: "其它按钮",
|
|
58
|
+
type: "default",
|
|
59
|
+
callback(event) {
|
|
60
|
+
event.close();
|
|
61
|
+
},
|
|
60
62
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
close: {
|
|
64
|
+
enable: true,
|
|
65
|
+
callback(event) {
|
|
66
|
+
event.close();
|
|
67
|
+
},
|
|
66
68
|
},
|
|
67
69
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
},
|
|
70
|
+
class: "",
|
|
71
|
+
only: false,
|
|
72
|
+
width: "350px",
|
|
73
|
+
height: "200px",
|
|
74
|
+
position: "center",
|
|
75
|
+
animation: "pops-anim-fadein-zoom",
|
|
76
|
+
zIndex: 10000,
|
|
77
|
+
mask: {
|
|
78
|
+
enable: false,
|
|
79
|
+
clickEvent: {
|
|
80
|
+
toClose: false,
|
|
81
|
+
toHide: false,
|
|
82
|
+
},
|
|
82
83
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
84
|
+
clickCallBack: void 0,
|
|
85
|
+
},
|
|
86
|
+
drag: false,
|
|
87
|
+
dragLimit: true,
|
|
88
|
+
dragExtraDistance: 3,
|
|
89
|
+
dragMoveCallBack() {},
|
|
90
|
+
dragEndCallBack() {},
|
|
91
|
+
forbiddenScroll: false,
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
style: null,
|
|
94
|
+
beforeAppendToPageCallBack() {},
|
|
95
|
+
};
|
|
94
96
|
};
|
|
@@ -19,7 +19,7 @@ export class PopsConfirm {
|
|
|
19
19
|
pops.config.cssText.common,
|
|
20
20
|
pops.config.cssText.confirmCSS,
|
|
21
21
|
]);
|
|
22
|
-
let config: Required<PopsConfirmDetails> = PopsConfirmConfig;
|
|
22
|
+
let config: Required<PopsConfirmDetails> = PopsConfirmConfig();
|
|
23
23
|
config = popsUtils.assign(config, details);
|
|
24
24
|
let guid = popsUtils.getRandomGUID();
|
|
25
25
|
// 设置当前类型
|
|
@@ -1,90 +1,92 @@
|
|
|
1
1
|
import type { PopsDrawerDetails } from "./indexType";
|
|
2
2
|
|
|
3
|
-
export const PopsDrawerConfig: Required<PopsDrawerDetails>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
position: "center",
|
|
7
|
-
text: "默认标题",
|
|
8
|
-
html: false,
|
|
9
|
-
style: "height: 60px;line-height: 60px;",
|
|
10
|
-
},
|
|
11
|
-
content: {
|
|
12
|
-
text: "默认内容",
|
|
13
|
-
html: false,
|
|
14
|
-
style: "overflow: auto;padding: 0px 10px;",
|
|
15
|
-
},
|
|
16
|
-
btn: {
|
|
17
|
-
position: "flex-end",
|
|
18
|
-
ok: {
|
|
3
|
+
export const PopsDrawerConfig = (): Required<PopsDrawerDetails> => {
|
|
4
|
+
return {
|
|
5
|
+
title: {
|
|
19
6
|
enable: true,
|
|
7
|
+
position: "center",
|
|
8
|
+
text: "默认标题",
|
|
9
|
+
html: false,
|
|
10
|
+
style: "height: 60px;line-height: 60px;",
|
|
11
|
+
},
|
|
12
|
+
content: {
|
|
13
|
+
text: "默认内容",
|
|
14
|
+
html: false,
|
|
15
|
+
style: "overflow: auto;padding: 0px 10px;",
|
|
16
|
+
},
|
|
17
|
+
btn: {
|
|
18
|
+
position: "flex-end",
|
|
19
|
+
ok: {
|
|
20
|
+
enable: true,
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
size: void 0,
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
icon: void 0,
|
|
25
|
+
rightIcon: false,
|
|
26
|
+
iconIsLoading: false,
|
|
27
|
+
text: "确定",
|
|
28
|
+
type: "primary",
|
|
29
|
+
callback(event) {
|
|
30
|
+
event.close();
|
|
31
|
+
},
|
|
30
32
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
enable: true,
|
|
33
|
+
cancel: {
|
|
34
|
+
enable: true,
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
size: void 0,
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
icon: void 0,
|
|
39
|
+
rightIcon: false,
|
|
40
|
+
iconIsLoading: false,
|
|
41
|
+
text: "关闭",
|
|
42
|
+
type: "default",
|
|
43
|
+
callback(event) {
|
|
44
|
+
event.close();
|
|
45
|
+
},
|
|
44
46
|
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
enable: false,
|
|
47
|
+
other: {
|
|
48
|
+
enable: false,
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
size: void 0,
|
|
50
51
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
icon: void 0,
|
|
53
|
+
rightIcon: false,
|
|
54
|
+
iconIsLoading: false,
|
|
55
|
+
text: "其它按钮",
|
|
56
|
+
type: "default",
|
|
57
|
+
callback(event) {
|
|
58
|
+
event.close();
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
close: {
|
|
62
|
+
enable: true,
|
|
63
|
+
callback(event) {
|
|
64
|
+
event.close();
|
|
65
|
+
},
|
|
58
66
|
},
|
|
59
67
|
},
|
|
60
|
-
|
|
68
|
+
mask: {
|
|
61
69
|
enable: true,
|
|
62
|
-
|
|
63
|
-
|
|
70
|
+
clickEvent: {
|
|
71
|
+
toClose: true,
|
|
72
|
+
toHide: false,
|
|
64
73
|
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
mask: {
|
|
68
|
-
enable: true,
|
|
69
|
-
clickEvent: {
|
|
70
|
-
toClose: true,
|
|
71
|
-
toHide: false,
|
|
72
|
-
},
|
|
73
74
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
75
|
+
clickCallBack: void 0,
|
|
76
|
+
},
|
|
77
|
+
class: "",
|
|
78
|
+
zIndex: 10000,
|
|
79
|
+
only: false,
|
|
80
|
+
direction: "right",
|
|
81
|
+
size: "30%",
|
|
82
|
+
lockScroll: false,
|
|
83
|
+
closeOnPressEscape: true,
|
|
84
|
+
openDelay: 0,
|
|
85
|
+
closeDelay: 0,
|
|
86
|
+
borderRadius: 0,
|
|
86
87
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
style: null,
|
|
89
|
+
beforeAppendToPageCallBack() {},
|
|
90
|
+
forbiddenScroll: false,
|
|
91
|
+
};
|
|
90
92
|
};
|
|
@@ -19,7 +19,7 @@ export class PopsDrawer {
|
|
|
19
19
|
pops.config.cssText.drawerCSS,
|
|
20
20
|
]);
|
|
21
21
|
|
|
22
|
-
let config: Required<PopsDrawerDetails> = PopsDrawerConfig;
|
|
22
|
+
let config: Required<PopsDrawerDetails> = PopsDrawerConfig();
|
|
23
23
|
config = popsUtils.assign(config, details);
|
|
24
24
|
let guid = popsUtils.getRandomGUID();
|
|
25
25
|
const PopsType = "drawer";
|