@whitesev/pops 2.2.1 → 2.2.2
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 +256 -257
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +256 -257
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +256 -257
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +256 -257
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +256 -257
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +256 -257
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/Pops.d.ts +1 -1
- package/dist/types/src/components/panel/index.d.ts +2 -1
- package/dist/types/src/components/searchSuggestion/index.d.ts +1 -1
- package/dist/types/src/handler/PopsElementHandler.d.ts +6 -6
- package/dist/types/src/handler/PopsHandler.d.ts +3 -3
- package/dist/types/src/types/components.d.ts +5 -5
- package/dist/types/src/types/main.d.ts +34 -31
- package/package.json +1 -1
- package/src/components/alert/index.ts +15 -15
- package/src/components/confirm/index.ts +16 -15
- package/src/components/drawer/index.ts +16 -15
- package/src/components/folder/index.ts +141 -152
- package/src/components/iframe/index.ts +14 -13
- package/src/components/panel/index.ts +19 -18
- package/src/components/prompt/index.ts +15 -14
- package/src/components/rightClickMenu/index.ts +17 -16
- package/src/components/searchSuggestion/index.ts +21 -20
- package/src/components/tooltip/index.ts +3 -2
- package/src/handler/PopsElementHandler.ts +18 -18
- package/src/handler/PopsHandler.ts +13 -7
- package/src/types/components.d.ts +5 -5
- package/src/types/main.d.ts +34 -31
|
@@ -21,17 +21,17 @@ export interface PopsTitleConfig {
|
|
|
21
21
|
*/
|
|
22
22
|
text?: string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* 标题文字的位置
|
|
25
25
|
* @default "left"
|
|
26
26
|
*/
|
|
27
27
|
position?: PopsTextAlign;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* 标题文字是否是html
|
|
30
30
|
* @default false
|
|
31
31
|
*/
|
|
32
32
|
html?: boolean;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* 自定义CSS
|
|
35
35
|
*/
|
|
36
36
|
style?: string;
|
|
37
37
|
};
|
|
@@ -47,12 +47,12 @@ export interface PopsContentConfig {
|
|
|
47
47
|
*/
|
|
48
48
|
text?: string;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* 内容文字是否是html
|
|
51
51
|
* @default false
|
|
52
52
|
*/
|
|
53
53
|
html?: boolean;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* 自定义CSS
|
|
56
56
|
*/
|
|
57
57
|
style?: string;
|
|
58
58
|
};
|
package/src/types/main.d.ts
CHANGED
|
@@ -16,12 +16,13 @@ import type { PopsPanelTextAreaDetails } from "../components/panel/types/compone
|
|
|
16
16
|
import type { PopsPromptDetails } from "../components/prompt/types/index";
|
|
17
17
|
import { PopsRightClickMenuDetails } from "../components/rightClickMenu/types";
|
|
18
18
|
import { PopsToolTipDetails } from "../components/tooltip/types/index";
|
|
19
|
+
import type { PopsSearchSuggestionDetails } from "../components/searchSuggestion/types";
|
|
19
20
|
|
|
20
21
|
export interface PopsUtilsOwnObject<V extends any> {
|
|
21
22
|
[key: string]: V | PopsUtilsOwnObject<V>;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
/** pops
|
|
25
|
+
/** pops所有的类型配置 11个*/
|
|
25
26
|
export interface PopsDetails {
|
|
26
27
|
alert: PopsAlertDetails;
|
|
27
28
|
confirm: PopsConfirmDetails;
|
|
@@ -33,53 +34,55 @@ export interface PopsDetails {
|
|
|
33
34
|
folder: PopsFolderDetails;
|
|
34
35
|
panel: PopsPanelDetails;
|
|
35
36
|
rightClickMenu: PopsRightClickMenuDetails;
|
|
37
|
+
searchSuggestion: PopsSearchSuggestionDetails;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
/** pops
|
|
40
|
+
/** pops的类型 */
|
|
39
41
|
export type PopsType = keyof PopsDetails;
|
|
40
42
|
|
|
41
|
-
/**
|
|
42
|
-
export type
|
|
43
|
+
/** pops中支持only的配置 */
|
|
44
|
+
export type PopsSupportOnlyDetails = Omit<PopsDetails, "searchSuggestion">;
|
|
45
|
+
|
|
46
|
+
/** 存储实例的类型 */
|
|
47
|
+
export type PopsInstStoreType = keyof Omit<PopsDetails, "searchSuggestion">;
|
|
43
48
|
|
|
44
49
|
/** pops弹窗支持动画元素的配置 8个 */
|
|
45
|
-
export type
|
|
50
|
+
export type PopsSupportAnimDetails = Omit<
|
|
51
|
+
PopsDetails,
|
|
52
|
+
"tooltip" | "rightClickMenu" | "searchSuggestion"
|
|
53
|
+
>;
|
|
46
54
|
|
|
47
55
|
/** pops弹窗支持动画元素的类型 */
|
|
48
|
-
export type
|
|
56
|
+
export type PopsSupportAnimDetailsType = keyof PopsSupportAnimDetails;
|
|
49
57
|
|
|
50
58
|
/** pops弹窗支持标题栏的配置 */
|
|
51
|
-
export
|
|
52
|
-
|
|
53
|
-
confirm
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
drawer: PopsDrawerDetails;
|
|
57
|
-
folder: PopsFolderDetails;
|
|
58
|
-
panel: PopsPanelDetails;
|
|
59
|
-
}
|
|
59
|
+
export type PopsSupportHeaderTitleDetails = Pick<
|
|
60
|
+
PopsDetails,
|
|
61
|
+
"alert" | "confirm" | "prompt" | "iframe" | "drawer" | "folder" | "panel"
|
|
62
|
+
>;
|
|
63
|
+
|
|
60
64
|
/** pops弹窗支持标题栏的类型 */
|
|
61
|
-
export type
|
|
65
|
+
export type PopsSupportHeaderTitleDetailsType =
|
|
66
|
+
keyof PopsSupportHeaderTitleDetails;
|
|
62
67
|
|
|
63
68
|
/** pops支持底部按钮的配置 */
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
confirm
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
69
|
+
export type PopsSupportBottomBtnDetails = Pick<
|
|
70
|
+
PopsDetails,
|
|
71
|
+
"alert" | "confirm" | "prompt" | "drawer"
|
|
72
|
+
>;
|
|
73
|
+
|
|
70
74
|
/** pops支持底部按钮的类型 */
|
|
71
|
-
export type
|
|
75
|
+
export type PopsSupportBottomBtnDetailsType =
|
|
76
|
+
keyof PopsSupportHeaderTitleDetails;
|
|
72
77
|
|
|
73
78
|
/** pops支持中间内容的配置 */
|
|
74
|
-
export
|
|
75
|
-
|
|
76
|
-
confirm
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
loading: PopsLoadingDetails;
|
|
80
|
-
}
|
|
79
|
+
export type PopsSupportContentDetails = Pick<
|
|
80
|
+
PopsDetails,
|
|
81
|
+
"alert" | "confirm" | "prompt" | "drawer" | "loading"
|
|
82
|
+
>;
|
|
83
|
+
|
|
81
84
|
/** pops支持中间内容的类型 */
|
|
82
|
-
export type
|
|
85
|
+
export type PopsSupportContentDetailsType = keyof PopsSupportContentDetails;
|
|
83
86
|
|
|
84
87
|
/** panel的各种类型的配置项 */
|
|
85
88
|
export type PopsPanelFormsTotalDetails =
|