@whitesev/pops 3.2.1 → 3.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/README.md +249 -249
- package/dist/index.amd.js +702 -667
- package/dist/index.amd.js.map +1 -1
- package/dist/index.amd.min.js +1 -1
- package/dist/index.amd.min.js.map +1 -1
- package/dist/index.cjs.js +702 -667
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +702 -667
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.iife.js +702 -667
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.system.js +702 -667
- package/dist/index.system.js.map +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/dist/index.umd.js +702 -667
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/src/components/folder/types/index.d.ts +43 -13
- package/dist/types/src/types/PopsDOMUtilsEventType.d.ts +313 -313
- package/dist/types/src/types/animation.d.ts +19 -19
- package/dist/types/src/types/button.d.ts +94 -94
- package/dist/types/src/types/components.d.ts +211 -211
- package/dist/types/src/types/event.d.ts +43 -43
- package/dist/types/src/types/global.d.ts +31 -31
- package/dist/types/src/types/icon.d.ts +32 -32
- package/dist/types/src/types/inst.d.ts +28 -28
- package/dist/types/src/types/main.d.ts +66 -66
- package/dist/types/src/types/mask.d.ts +52 -52
- package/dist/types/src/types/position.d.ts +60 -60
- package/package.json +27 -25
- package/src/Pops.ts +206 -206
- package/src/PopsAnimation.ts +32 -32
- package/src/PopsCSS.ts +54 -54
- package/src/PopsCore.ts +37 -37
- package/src/PopsIcon.ts +95 -95
- package/src/PopsInst.ts +21 -21
- package/src/components/alert/defaultConfig.ts +62 -62
- package/src/components/alert/index.ts +163 -163
- package/src/components/alert/types/index.ts +23 -23
- package/src/components/confirm/defaultConfig.ts +90 -90
- package/src/components/confirm/index.ts +165 -165
- package/src/components/confirm/types/index.ts +13 -17
- package/src/components/drawer/defaultConfig.ts +89 -89
- package/src/components/drawer/index.css +37 -37
- package/src/components/drawer/index.ts +245 -245
- package/src/components/drawer/types/index.ts +62 -61
- package/src/components/folder/defaultConfig.ts +151 -151
- package/src/components/folder/folderIcon.ts +28 -28
- package/src/components/folder/index.css +303 -303
- package/src/components/folder/index.ts +953 -932
- package/src/components/folder/types/index.ts +143 -110
- package/src/components/iframe/defaultConfig.ts +60 -60
- package/src/components/iframe/index.css +76 -76
- package/src/components/iframe/index.ts +331 -331
- package/src/components/iframe/types/index.ts +96 -96
- package/src/components/loading/defaultConfig.ts +29 -29
- package/src/components/loading/index.css +66 -66
- package/src/components/loading/index.ts +101 -101
- package/src/components/loading/types/index.ts +36 -34
- package/src/components/panel/css/components-select.css +84 -84
- package/src/components/panel/defaultConfig.ts +868 -868
- package/src/components/panel/handlerComponents.ts +3993 -3993
- package/src/components/panel/index.css +1403 -1403
- package/src/components/panel/index.ts +221 -221
- package/src/components/panel/types/components-button.ts +56 -56
- package/src/components/panel/types/components-common.ts +73 -73
- package/src/components/panel/types/components-container.ts +25 -25
- package/src/components/panel/types/components-deepMenu.ts +64 -64
- package/src/components/panel/types/components-input.ts +90 -90
- package/src/components/panel/types/components-own.ts +16 -16
- package/src/components/panel/types/components-select.ts +169 -169
- package/src/components/panel/types/components-selectMultiple.ts +105 -104
- package/src/components/panel/types/components-slider.ts +55 -55
- package/src/components/panel/types/components-switch.ts +33 -33
- package/src/components/panel/types/components-textarea.ts +45 -45
- package/src/components/panel/types/index.ts +244 -244
- package/src/components/prompt/defaultConfig.ts +94 -94
- package/src/components/prompt/index.css +34 -34
- package/src/components/prompt/index.ts +187 -215
- package/src/components/prompt/types/index.ts +57 -56
- package/src/components/rightClickMenu/defaultConfig.ts +103 -103
- package/src/components/rightClickMenu/index.css +115 -115
- package/src/components/rightClickMenu/index.ts +662 -662
- package/src/components/rightClickMenu/types/index.ts +145 -143
- package/src/components/searchSuggestion/defaultConfig.ts +63 -63
- package/src/components/searchSuggestion/index.ts +813 -813
- package/src/components/searchSuggestion/types/index.ts +244 -242
- package/src/components/tooltip/defaultConfig.ts +33 -33
- package/src/components/tooltip/index.css +199 -199
- package/src/components/tooltip/index.ts +617 -617
- package/src/components/tooltip/types/index.ts +123 -121
- package/src/config/CommonCSSClassName.ts +17 -17
- package/src/config/GlobalConfig.ts +63 -63
- package/src/css/animation.css +987 -987
- package/src/css/button.css +551 -551
- package/src/css/common.css +54 -54
- package/src/css/index.css +253 -253
- package/src/css/ninePalaceGridPosition.css +50 -50
- package/src/css/scrollbar.css +22 -22
- package/src/handler/PopsElementHandler.ts +303 -303
- package/src/handler/PopsHandler.ts +611 -611
- package/src/types/PopsDOMUtilsEventType.d.ts +313 -313
- package/src/types/animation.d.ts +19 -19
- package/src/types/button.d.ts +94 -94
- package/src/types/components.d.ts +211 -211
- package/src/types/event.d.ts +43 -43
- package/src/types/global.d.ts +31 -31
- package/src/types/icon.d.ts +32 -32
- package/src/types/inst.d.ts +28 -28
- package/src/types/main.d.ts +66 -66
- package/src/types/mask.d.ts +52 -52
- package/src/types/position.d.ts +60 -60
- package/src/utils/PopsDOMUtils.ts +2483 -2483
- package/src/utils/PopsDOMUtilsEventsConfig.ts +4 -4
- package/src/utils/PopsInstanceUtils.ts +714 -714
- package/src/utils/PopsMathUtils.ts +71 -71
- package/src/utils/PopsSafeUtils.ts +22 -22
- package/src/utils/PopsUtils.ts +421 -421
|
@@ -1,121 +1,123 @@
|
|
|
1
|
-
import type { PopsGeneralConfig } from "../../../types/components";
|
|
2
|
-
import type { PopsPanelGeneralConfig } from "../../panel/types/components-common";
|
|
3
|
-
|
|
4
|
-
/** tooltip的出现位置 */
|
|
5
|
-
export type PopsTooltipPosition = "top" | "right" | "bottom" | "left" | "follow";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* pops.tooltip
|
|
9
|
-
*/
|
|
10
|
-
export interface PopsToolTipConfig
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*
|
|
49
|
-
* +
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
*
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
*
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
*
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
*
|
|
117
|
-
* + 当`position`为`
|
|
118
|
-
*
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
1
|
+
import type { PopsGeneralConfig } from "../../../types/components";
|
|
2
|
+
import type { PopsPanelGeneralConfig } from "../../panel/types/components-common";
|
|
3
|
+
|
|
4
|
+
/** tooltip的出现位置 */
|
|
5
|
+
export type PopsTooltipPosition = "top" | "right" | "bottom" | "left" | "follow";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* pops.tooltip
|
|
9
|
+
*/
|
|
10
|
+
export interface PopsToolTipConfig extends Pick<
|
|
11
|
+
PopsGeneralConfig,
|
|
12
|
+
"useShadowRoot" | "only" | "zIndex" | "style" | "beforeAppendToPageCallBack"
|
|
13
|
+
> {
|
|
14
|
+
/**
|
|
15
|
+
* 目标元素
|
|
16
|
+
*/
|
|
17
|
+
$target: HTMLElement;
|
|
18
|
+
/**
|
|
19
|
+
* 显示的文字
|
|
20
|
+
*/
|
|
21
|
+
content: string | (() => string);
|
|
22
|
+
/**
|
|
23
|
+
* 是否比较获取到的`content`的内容是否改变
|
|
24
|
+
*
|
|
25
|
+
* 如果未改变,则在触发`.show`时不修改内容
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
isDiffContent?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* 位置
|
|
31
|
+
* + `follow` 跟随(鼠标|触摸)的位置而移动
|
|
32
|
+
* @default "top"
|
|
33
|
+
*/
|
|
34
|
+
position?: PopsTooltipPosition;
|
|
35
|
+
/**
|
|
36
|
+
* 自定义className
|
|
37
|
+
*
|
|
38
|
+
* + `github-tooltip`:github的样式
|
|
39
|
+
* @default ""
|
|
40
|
+
*/
|
|
41
|
+
className?: PopsPanelGeneralConfig<any>["className"];
|
|
42
|
+
/**
|
|
43
|
+
* 是否使用`fixed`定位,`false`则是`absolute`定位
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
isFixed?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 是否总是显示,默认为false
|
|
49
|
+
* + true 设置的`onShowEventName`、`onCloseEventName`将无效
|
|
50
|
+
* 返回提供`show`和`close`函数,取消`on`和`off`
|
|
51
|
+
* + false 事件触发才显示
|
|
52
|
+
*/
|
|
53
|
+
alwaysShow?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* 延迟xxms关闭tooltip
|
|
56
|
+
* @default 100
|
|
57
|
+
*/
|
|
58
|
+
delayCloseTime?: number;
|
|
59
|
+
/**
|
|
60
|
+
* 触发显示事件的名称,默认`mouseenter`、`touchstart`,如果是多个事件,按空格分割
|
|
61
|
+
*
|
|
62
|
+
* 如果`position`为`follow`,则添加`mousemove`、`touchmove`事件监听
|
|
63
|
+
* @default "mouseenter touchstart"
|
|
64
|
+
*/
|
|
65
|
+
onShowEventName?: string;
|
|
66
|
+
/**
|
|
67
|
+
* 触发关闭事件的名称,默认`mouseleave`、`touchend`、`touchcancel`,如果是多个事件,按空格分割
|
|
68
|
+
* @default "mouseleave touchend touchcancel"
|
|
69
|
+
*/
|
|
70
|
+
onCloseEventName?: string;
|
|
71
|
+
/**
|
|
72
|
+
* 监听的事件配置
|
|
73
|
+
*/
|
|
74
|
+
eventOption?: {
|
|
75
|
+
once?: boolean;
|
|
76
|
+
passive?: boolean;
|
|
77
|
+
capture?: boolean;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* 触发显示前的回调
|
|
81
|
+
* @returns
|
|
82
|
+
* + false 可阻止显示
|
|
83
|
+
*/
|
|
84
|
+
showBeforeCallBack?: ($toolTip: HTMLElement) => false | void;
|
|
85
|
+
/**
|
|
86
|
+
* 触发显示后的回调
|
|
87
|
+
*/
|
|
88
|
+
showAfterCallBack?: ($toolTip: HTMLElement) => void;
|
|
89
|
+
/**
|
|
90
|
+
* 触发关闭前的回调
|
|
91
|
+
*/
|
|
92
|
+
closeBeforeCallBack?: (
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @returns
|
|
96
|
+
* + false 可阻止关闭
|
|
97
|
+
*/
|
|
98
|
+
$toolTip: HTMLElement
|
|
99
|
+
) => false | void;
|
|
100
|
+
/**
|
|
101
|
+
* 触发关闭后的回调
|
|
102
|
+
*/
|
|
103
|
+
closeAfterCallBack?: ($toolTip: HTMLElement) => void;
|
|
104
|
+
/**
|
|
105
|
+
* 是否显示箭头
|
|
106
|
+
* @default true
|
|
107
|
+
*/
|
|
108
|
+
showArrow?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* 箭头与目标的的距离(px)
|
|
111
|
+
*
|
|
112
|
+
* @default 12.5
|
|
113
|
+
*/
|
|
114
|
+
arrowDistance?: number;
|
|
115
|
+
/**
|
|
116
|
+
* 其它的距离(px)
|
|
117
|
+
* + 当`position`为`left`或者`right`,这个距离是上、下距离
|
|
118
|
+
* + 当`position`为`top`或者`bottom`,这个距离是左、右距离
|
|
119
|
+
* + 当`position`为`follow`,这个距离是上、左距离
|
|
120
|
+
* @default 0
|
|
121
|
+
*/
|
|
122
|
+
otherDistance?: number;
|
|
123
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 通用的CSS类名
|
|
3
|
-
*/
|
|
4
|
-
export const PopsCommonCSSClassName = {
|
|
5
|
-
flexCenter: "pops-flex-items-center",
|
|
6
|
-
flexYCenter: "pops-flex-y-center",
|
|
7
|
-
flexXCenter: "pops-flex-x-center",
|
|
8
|
-
hide: "pops-hide",
|
|
9
|
-
hideImportant: "pops-hide-important",
|
|
10
|
-
noBorder: "pops-no-border",
|
|
11
|
-
noBorderImportant: "pops-no-border-important",
|
|
12
|
-
userSelectNone: "pops-user-select-none",
|
|
13
|
-
lineHeightCenter: "pops-line-height-center",
|
|
14
|
-
widthFill: "pops-width-fill",
|
|
15
|
-
textIsDisabled: "pops-text-is-disabled",
|
|
16
|
-
textIsDisabledImportant: "pops-text-is-disabled-important",
|
|
17
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* 通用的CSS类名
|
|
3
|
+
*/
|
|
4
|
+
export const PopsCommonCSSClassName = {
|
|
5
|
+
flexCenter: "pops-flex-items-center",
|
|
6
|
+
flexYCenter: "pops-flex-y-center",
|
|
7
|
+
flexXCenter: "pops-flex-x-center",
|
|
8
|
+
hide: "pops-hide",
|
|
9
|
+
hideImportant: "pops-hide-important",
|
|
10
|
+
noBorder: "pops-no-border",
|
|
11
|
+
noBorderImportant: "pops-no-border-important",
|
|
12
|
+
userSelectNone: "pops-user-select-none",
|
|
13
|
+
lineHeightCenter: "pops-line-height-center",
|
|
14
|
+
widthFill: "pops-width-fill",
|
|
15
|
+
textIsDisabled: "pops-text-is-disabled",
|
|
16
|
+
textIsDisabledImportant: "pops-text-is-disabled-important",
|
|
17
|
+
};
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import type { PopsGeneralConfig, PopsDragConfig } from "../types/components";
|
|
2
|
-
|
|
3
|
-
type EnterReturnType<T> = null | T | (() => T);
|
|
4
|
-
|
|
5
|
-
type GlobalConfigOption = {
|
|
6
|
-
style?: EnterReturnType<string>;
|
|
7
|
-
zIndex?: EnterReturnType<number> | EnterReturnType<string>;
|
|
8
|
-
} & Partial<PopsGeneralConfig> &
|
|
9
|
-
Partial<PopsDragConfig>;
|
|
10
|
-
|
|
11
|
-
type ResultGlobalConfigOption<T> = T extends null | undefined ? never : T extends (...args: any) => infer R ? R : T;
|
|
12
|
-
|
|
13
|
-
export const GlobalConfig = {
|
|
14
|
-
config: {} as GlobalConfigOption,
|
|
15
|
-
/**
|
|
16
|
-
* 为所有弹窗设置全局属性
|
|
17
|
-
*/
|
|
18
|
-
setGlobalConfig(config: GlobalConfigOption) {
|
|
19
|
-
Reflect.ownKeys(config).forEach((keyName) => {
|
|
20
|
-
Reflect.set(GlobalConfig.config, keyName, Reflect.get(config, keyName));
|
|
21
|
-
});
|
|
22
|
-
},
|
|
23
|
-
/**
|
|
24
|
-
* 获取全局配置
|
|
25
|
-
*/
|
|
26
|
-
getGlobalConfig() {
|
|
27
|
-
const result: {
|
|
28
|
-
[P in keyof GlobalConfigOption]: ResultGlobalConfigOption<GlobalConfigOption[P]>;
|
|
29
|
-
} = {};
|
|
30
|
-
Object.keys(GlobalConfig.config).forEach((keyName) => {
|
|
31
|
-
const configValue = Reflect.get(GlobalConfig.config, keyName);
|
|
32
|
-
if (keyName === "style") {
|
|
33
|
-
// 设置style属性
|
|
34
|
-
const style = configValue == null ? "" : typeof configValue === "function" ? configValue() : configValue;
|
|
35
|
-
|
|
36
|
-
if (typeof style === "string") {
|
|
37
|
-
result.style = style;
|
|
38
|
-
}
|
|
39
|
-
} else if (keyName === "zIndex") {
|
|
40
|
-
// 设置zIndex属性
|
|
41
|
-
let zIndex = configValue == null ? "" : typeof configValue === "function" ? configValue() : configValue;
|
|
42
|
-
if (typeof zIndex === "string") {
|
|
43
|
-
const newIndex = (zIndex = Number(zIndex));
|
|
44
|
-
if (!isNaN(newIndex)) {
|
|
45
|
-
result.zIndex = newIndex;
|
|
46
|
-
}
|
|
47
|
-
} else {
|
|
48
|
-
if (!isNaN(zIndex)) {
|
|
49
|
-
result.zIndex = zIndex;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
} else if (keyName === "mask") {
|
|
53
|
-
const mask = GlobalConfig.config.mask == null ? {} : GlobalConfig.config.mask;
|
|
54
|
-
if (typeof mask === "object" && mask != null) {
|
|
55
|
-
result.mask = mask;
|
|
56
|
-
}
|
|
57
|
-
} else {
|
|
58
|
-
Reflect.set(result, keyName, configValue);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
return result;
|
|
62
|
-
},
|
|
63
|
-
};
|
|
1
|
+
import type { PopsGeneralConfig, PopsDragConfig } from "../types/components";
|
|
2
|
+
|
|
3
|
+
type EnterReturnType<T> = null | T | (() => T);
|
|
4
|
+
|
|
5
|
+
type GlobalConfigOption = {
|
|
6
|
+
style?: EnterReturnType<string>;
|
|
7
|
+
zIndex?: EnterReturnType<number> | EnterReturnType<string>;
|
|
8
|
+
} & Partial<PopsGeneralConfig> &
|
|
9
|
+
Partial<PopsDragConfig>;
|
|
10
|
+
|
|
11
|
+
type ResultGlobalConfigOption<T> = T extends null | undefined ? never : T extends (...args: any) => infer R ? R : T;
|
|
12
|
+
|
|
13
|
+
export const GlobalConfig = {
|
|
14
|
+
config: {} as GlobalConfigOption,
|
|
15
|
+
/**
|
|
16
|
+
* 为所有弹窗设置全局属性
|
|
17
|
+
*/
|
|
18
|
+
setGlobalConfig(config: GlobalConfigOption) {
|
|
19
|
+
Reflect.ownKeys(config).forEach((keyName) => {
|
|
20
|
+
Reflect.set(GlobalConfig.config, keyName, Reflect.get(config, keyName));
|
|
21
|
+
});
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* 获取全局配置
|
|
25
|
+
*/
|
|
26
|
+
getGlobalConfig() {
|
|
27
|
+
const result: {
|
|
28
|
+
[P in keyof GlobalConfigOption]: ResultGlobalConfigOption<GlobalConfigOption[P]>;
|
|
29
|
+
} = {};
|
|
30
|
+
Object.keys(GlobalConfig.config).forEach((keyName) => {
|
|
31
|
+
const configValue = Reflect.get(GlobalConfig.config, keyName);
|
|
32
|
+
if (keyName === "style") {
|
|
33
|
+
// 设置style属性
|
|
34
|
+
const style = configValue == null ? "" : typeof configValue === "function" ? configValue() : configValue;
|
|
35
|
+
|
|
36
|
+
if (typeof style === "string") {
|
|
37
|
+
result.style = style;
|
|
38
|
+
}
|
|
39
|
+
} else if (keyName === "zIndex") {
|
|
40
|
+
// 设置zIndex属性
|
|
41
|
+
let zIndex = configValue == null ? "" : typeof configValue === "function" ? configValue() : configValue;
|
|
42
|
+
if (typeof zIndex === "string") {
|
|
43
|
+
const newIndex = (zIndex = Number(zIndex));
|
|
44
|
+
if (!isNaN(newIndex)) {
|
|
45
|
+
result.zIndex = newIndex;
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
if (!isNaN(zIndex)) {
|
|
49
|
+
result.zIndex = zIndex;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
} else if (keyName === "mask") {
|
|
53
|
+
const mask = GlobalConfig.config.mask == null ? {} : GlobalConfig.config.mask;
|
|
54
|
+
if (typeof mask === "object" && mask != null) {
|
|
55
|
+
result.mask = mask;
|
|
56
|
+
}
|
|
57
|
+
} else {
|
|
58
|
+
Reflect.set(result, keyName, configValue);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
return result;
|
|
62
|
+
},
|
|
63
|
+
};
|