@whitesev/pops 1.6.5 → 1.6.6

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.
Files changed (38) hide show
  1. package/dist/index.amd.js +9156 -9156
  2. package/dist/index.amd.js.map +1 -1
  3. package/dist/index.cjs.js +9154 -9154
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.esm.js +9152 -9152
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.iife.js +9157 -9157
  8. package/dist/index.iife.js.map +1 -1
  9. package/dist/index.system.js +9159 -9159
  10. package/dist/index.system.js.map +1 -1
  11. package/dist/index.umd.js +9160 -9160
  12. package/dist/index.umd.js.map +1 -1
  13. package/dist/types/src/Pops.d.ts +309 -309
  14. package/dist/types/src/components/panel/PanelHandleContentDetails.d.ts +165 -165
  15. package/dist/types/src/components/panel/buttonType.d.ts +6 -2
  16. package/dist/types/src/components/panel/deepMenuType.d.ts +6 -2
  17. package/dist/types/src/components/panel/formsType.d.ts +6 -2
  18. package/dist/types/src/components/panel/indexType.d.ts +106 -102
  19. package/dist/types/src/components/panel/inputType.d.ts +6 -2
  20. package/dist/types/src/components/panel/ownType.d.ts +3 -1
  21. package/dist/types/src/components/panel/selectMultipleType.d.ts +6 -2
  22. package/dist/types/src/components/panel/selectType.d.ts +6 -2
  23. package/dist/types/src/components/panel/sliderType.d.ts +6 -2
  24. package/dist/types/src/components/panel/switchType.d.ts +6 -2
  25. package/dist/types/src/components/panel/textareaType.d.ts +6 -2
  26. package/package.json +1 -1
  27. package/src/components/panel/PanelHandleContentDetails.ts +1 -1
  28. package/src/components/panel/buttonType.ts +6 -2
  29. package/src/components/panel/deepMenuType.ts +6 -2
  30. package/src/components/panel/formsType.ts +6 -2
  31. package/src/components/panel/indexType.ts +6 -2
  32. package/src/components/panel/inputType.ts +6 -2
  33. package/src/components/panel/ownType.ts +3 -1
  34. package/src/components/panel/selectMultipleType.ts +6 -2
  35. package/src/components/panel/selectType.ts +6 -2
  36. package/src/components/panel/sliderType.ts +6 -2
  37. package/src/components/panel/switchType.ts +6 -2
  38. package/src/components/panel/textareaType.ts +6 -2
@@ -10,11 +10,15 @@ export interface PopsPanelSliderDetails extends PopsPanelCommonDetails {
10
10
  /**
11
11
  * (可选)自定义元素属性
12
12
  */
13
- attributes?: any;
13
+ attributes?: {
14
+ [key: string]: any;
15
+ };
14
16
  /**
15
17
  * (可选)自定义属性
16
18
  */
17
- props?: HTMLElement;
19
+ props?: {
20
+ [K in keyof HTMLElement]?: HTMLElement[K];
21
+ };
18
22
  /**
19
23
  * 显示在左边的文字
20
24
  */
@@ -10,11 +10,15 @@ export interface PopsPanelSwitchDetails extends PopsPanelCommonDetails {
10
10
  /**
11
11
  * (可选)自定义元素属性
12
12
  */
13
- attributes?: any;
13
+ attributes?: {
14
+ [key: string]: any;
15
+ };
14
16
  /**
15
17
  * (可选)自定义属性
16
18
  */
17
- props?: HTMLElement;
19
+ props?: {
20
+ [K in keyof HTMLElement]?: HTMLElement[K];
21
+ };
18
22
  /**
19
23
  * 显示在左边的文字
20
24
  */
@@ -10,11 +10,15 @@ export interface PopsPanelTextAreaDetails extends PopsPanelCommonDetails {
10
10
  /**
11
11
  * (可选)自定义元素属性
12
12
  */
13
- attributes?: any;
13
+ attributes?: {
14
+ [key: string]: any;
15
+ };
14
16
  /**
15
17
  * (可选)自定义属性
16
18
  */
17
- props?: HTMLElement;
19
+ props?: {
20
+ [K in keyof HTMLElement]?: HTMLElement[K];
21
+ };
18
22
  /**
19
23
  * 显示在左边的文字
20
24
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitesev/pops",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
4
4
  "description": "弹窗库",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -185,7 +185,7 @@ export const PanelHandleContentDetails = () => {
185
185
  return;
186
186
  }
187
187
  Object.keys(props).forEach((propName) => {
188
- (element as any)[propName] = props[propName];
188
+ Reflect.set(element, propName, props[propName]);
189
189
  });
190
190
  },
191
191
  /**
@@ -12,11 +12,15 @@ export interface PopsPanelButtonDetails extends PopsPanelCommonDetails {
12
12
  /**
13
13
  * (可选)自定义元素属性
14
14
  */
15
- attributes?: any;
15
+ attributes?: {
16
+ [key: string]: any;
17
+ };
16
18
  /**
17
19
  * (可选)自定义属性
18
20
  */
19
- props?: HTMLElement;
21
+ props?: {
22
+ [K in keyof HTMLElement]?: HTMLElement[K];
23
+ };
20
24
  /**
21
25
  * 显示在左边的文字
22
26
  */
@@ -16,11 +16,15 @@ export interface PopsPanelDeepMenuDetails extends PopsPanelCommonDetails {
16
16
  /**
17
17
  * (可选)自定义元素属性
18
18
  */
19
- attributes?: any;
19
+ attributes?: {
20
+ [key: string]: any;
21
+ };
20
22
  /**
21
23
  * (可选)自定义属性
22
24
  */
23
- props?: HTMLElement;
25
+ props?: {
26
+ [K in keyof HTMLElement]?: HTMLElement[K];
27
+ };
24
28
  /**
25
29
  * 显示在左边的文字
26
30
  */
@@ -12,11 +12,15 @@ export interface PopsPanelFormsDetails extends PopsPanelCommonDetails {
12
12
  /**
13
13
  * (可选)自定义元素属性
14
14
  */
15
- attributes?: any;
15
+ attributes?: {
16
+ [key: string]: any;
17
+ };
16
18
  /**
17
19
  * (可选)自定义属性
18
20
  */
19
- props?: HTMLElement;
21
+ props?: {
22
+ [K in keyof HTMLElement]?: HTMLElement[K];
23
+ };
20
24
  /**
21
25
  * 显示在左边的文字
22
26
  */
@@ -61,11 +61,15 @@ export interface PopsPanelContentConfig {
61
61
  /**
62
62
  * (可选)自定义元素属性
63
63
  */
64
- attributes?: any;
64
+ attributes?: {
65
+ [key: string]: any;
66
+ };
65
67
  /**
66
68
  * (可选)自定义属性
67
69
  */
68
- props?: HTMLElement;
70
+ props?: {
71
+ [K in keyof HTMLElement]?: HTMLElement[K];
72
+ };
69
73
  /**
70
74
  * 子配置
71
75
  */
@@ -11,11 +11,15 @@ export interface PopsPanelInputDetails extends PopsPanelCommonDetails {
11
11
  /**
12
12
  * (可选)自定义元素属性
13
13
  */
14
- attributes?: any;
14
+ attributes?: {
15
+ [key: string]: any;
16
+ };
15
17
  /**
16
18
  * (可选)自定义属性
17
19
  */
18
- props?: HTMLElement;
20
+ props?: {
21
+ [K in keyof HTMLElement]?: HTMLElement[K];
22
+ };
19
23
  /**
20
24
  * 显示在左边的文字
21
25
  */
@@ -16,7 +16,9 @@ export interface PopsPanelOwnDetails extends PopsPanelCommonDetails {
16
16
  /**
17
17
  * (可选)自定义属性
18
18
  */
19
- props?: HTMLElement;
19
+ props?: {
20
+ [K in keyof HTMLElement]?: HTMLElement[K];
21
+ };
20
22
  /**
21
23
  * 类型
22
24
  */
@@ -34,11 +34,15 @@ export interface PopsPanelSelectMultipleDetails<T = any>
34
34
  /**
35
35
  * (可选)自定义元素属性
36
36
  */
37
- attributes?: any;
37
+ attributes?: {
38
+ [key: string]: any;
39
+ };
38
40
  /**
39
41
  * (可选)自定义属性
40
42
  */
41
- props?: HTMLElement;
43
+ props?: {
44
+ [K in keyof HTMLElement]?: HTMLElement[K];
45
+ };
42
46
  /**
43
47
  * 显示在左边的文字
44
48
  */
@@ -12,11 +12,15 @@ export interface PopsPanelSelectDetails<T = any>
12
12
  /**
13
13
  * (可选)自定义元素属性
14
14
  */
15
- attributes?: any;
15
+ attributes?: {
16
+ [key: string]: any;
17
+ };
16
18
  /**
17
19
  * (可选)自定义属性
18
20
  */
19
- props?: HTMLElement;
21
+ props?: {
22
+ [K in keyof HTMLElement]?: HTMLElement[K];
23
+ };
20
24
  /**
21
25
  * 显示在左边的文字
22
26
  */
@@ -11,11 +11,15 @@ export interface PopsPanelSliderDetails extends PopsPanelCommonDetails {
11
11
  /**
12
12
  * (可选)自定义元素属性
13
13
  */
14
- attributes?: any;
14
+ attributes?: {
15
+ [key: string]: any;
16
+ };
15
17
  /**
16
18
  * (可选)自定义属性
17
19
  */
18
- props?: HTMLElement;
20
+ props?: {
21
+ [K in keyof HTMLElement]?: HTMLElement[K];
22
+ };
19
23
  /**
20
24
  * 显示在左边的文字
21
25
  */
@@ -11,11 +11,15 @@ export interface PopsPanelSwitchDetails extends PopsPanelCommonDetails {
11
11
  /**
12
12
  * (可选)自定义元素属性
13
13
  */
14
- attributes?: any;
14
+ attributes?: {
15
+ [key: string]: any;
16
+ };
15
17
  /**
16
18
  * (可选)自定义属性
17
19
  */
18
- props?: HTMLElement;
20
+ props?: {
21
+ [K in keyof HTMLElement]?: HTMLElement[K];
22
+ };
19
23
  /**
20
24
  * 显示在左边的文字
21
25
  */
@@ -11,11 +11,15 @@ export interface PopsPanelTextAreaDetails extends PopsPanelCommonDetails {
11
11
  /**
12
12
  * (可选)自定义元素属性
13
13
  */
14
- attributes?: any;
14
+ attributes?: {
15
+ [key: string]: any;
16
+ };
15
17
  /**
16
18
  * (可选)自定义属性
17
19
  */
18
- props?: HTMLElement;
20
+ props?: {
21
+ [K in keyof HTMLElement]?: HTMLElement[K];
22
+ };
19
23
  /**
20
24
  * 显示在左边的文字
21
25
  */