@douyinfe/semi-foundation 2.38.3-alpha.2-patch-table-datepicker → 2.38.3-alpha.2-path-settimeout
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/datePicker/foundation.ts +1 -8
- package/lib/cjs/datePicker/foundation.js +1 -8
- package/lib/cjs/navigation/subNavFoundation.js +3 -1
- package/lib/cjs/overflowList/constants.d.ts +1 -1
- package/lib/cjs/tooltip/foundation.js +1 -0
- package/lib/cjs/tree/treeUtil.d.ts +1 -1
- package/lib/cjs/upload/constants.d.ts +1 -1
- package/lib/es/datePicker/foundation.js +1 -8
- package/lib/es/navigation/subNavFoundation.js +3 -1
- package/lib/es/overflowList/constants.d.ts +1 -1
- package/lib/es/tooltip/foundation.js +1 -0
- package/lib/es/tree/treeUtil.d.ts +1 -1
- package/lib/es/upload/constants.d.ts +1 -1
- package/navigation/subNavFoundation.ts +3 -1
- package/package.json +3 -3
- package/tooltip/foundation.ts +1 -0
package/datePicker/foundation.ts
CHANGED
|
@@ -1361,14 +1361,7 @@ export default class DatePickerFoundation extends BaseFoundation<DatePickerAdapt
|
|
|
1361
1361
|
|
|
1362
1362
|
handlePanelVisibleChange(visible: boolean) {
|
|
1363
1363
|
if (visible) {
|
|
1364
|
-
|
|
1365
|
-
// for internal use only
|
|
1366
|
-
setTimeout(() => {
|
|
1367
|
-
this._adapter.setInsetInputFocus();
|
|
1368
|
-
// 100 is a magic number
|
|
1369
|
-
// <10 is not ok
|
|
1370
|
-
// >= 10 is ok
|
|
1371
|
-
}, 100);
|
|
1364
|
+
this._adapter.setInsetInputFocus();
|
|
1372
1365
|
/**
|
|
1373
1366
|
* After the panel is closed, the trigger input is disabled
|
|
1374
1367
|
* 面板关闭后,trigger input 禁用
|
|
@@ -1183,14 +1183,7 @@ class DatePickerFoundation extends _foundation.default {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
handlePanelVisibleChange(visible) {
|
|
1185
1185
|
if (visible) {
|
|
1186
|
-
|
|
1187
|
-
// for internal use only
|
|
1188
|
-
setTimeout(() => {
|
|
1189
|
-
this._adapter.setInsetInputFocus();
|
|
1190
|
-
// 100 is a magic number
|
|
1191
|
-
// <10 is not ok
|
|
1192
|
-
// >= 10 is ok
|
|
1193
|
-
}, 100);
|
|
1186
|
+
this._adapter.setInsetInputFocus();
|
|
1194
1187
|
/**
|
|
1195
1188
|
* After the panel is closed, the trigger input is disabled
|
|
1196
1189
|
* 面板关闭后,trigger input 禁用
|
|
@@ -33,7 +33,9 @@ class SubNavFoundation extends _foundation.default {
|
|
|
33
33
|
// this.log('invoke SubNavFoundation init()');
|
|
34
34
|
this._timer = null;
|
|
35
35
|
}
|
|
36
|
-
destroy() {
|
|
36
|
+
destroy() {
|
|
37
|
+
this.clearDelayTimer();
|
|
38
|
+
}
|
|
37
39
|
clearDelayTimer() {
|
|
38
40
|
if (this._timer) {
|
|
39
41
|
clearTimeout(this._timer);
|
|
@@ -235,6 +235,7 @@ class Tooltip extends _foundation.default {
|
|
|
235
235
|
this._adapter.unregisterClickOutsideHandler();
|
|
236
236
|
this.unBindResizeEvent();
|
|
237
237
|
this.unBindScrollEvent();
|
|
238
|
+
clearTimeout(this._timer);
|
|
238
239
|
}
|
|
239
240
|
_bindTriggerEvent(triggerEventSet) {
|
|
240
241
|
this._adapter.registerTriggerEvent(triggerEventSet);
|
|
@@ -75,6 +75,6 @@ export declare function getValueOrKey(data: any): any;
|
|
|
75
75
|
export declare function normalizeValue(value: any, withObject: boolean): any;
|
|
76
76
|
export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
|
|
77
77
|
export declare function calcDisabledKeys(keyEntities: KeyEntities): Set<string>;
|
|
78
|
-
export declare function calcDropRelativePosition(event: any, treeNode: any):
|
|
78
|
+
export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
|
|
79
79
|
export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
|
|
80
80
|
export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
|
|
@@ -18,7 +18,7 @@ declare const strings: {
|
|
|
18
18
|
DRAG_AREA_ILLEGAL: string;
|
|
19
19
|
TRIGGER_AUTO: "auto";
|
|
20
20
|
TRIGGER_CUSTOM: "custom";
|
|
21
|
-
UPLOAD_TRIGGER: ("
|
|
21
|
+
UPLOAD_TRIGGER: ("custom" | "auto")[];
|
|
22
22
|
VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
|
|
23
23
|
PROMPT_POSITION: readonly ["left", "right", "bottom"];
|
|
24
24
|
};
|
|
@@ -1175,14 +1175,7 @@ export default class DatePickerFoundation extends BaseFoundation {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
handlePanelVisibleChange(visible) {
|
|
1177
1177
|
if (visible) {
|
|
1178
|
-
|
|
1179
|
-
// for internal use only
|
|
1180
|
-
setTimeout(() => {
|
|
1181
|
-
this._adapter.setInsetInputFocus();
|
|
1182
|
-
// 100 is a magic number
|
|
1183
|
-
// <10 is not ok
|
|
1184
|
-
// >= 10 is ok
|
|
1185
|
-
}, 100);
|
|
1178
|
+
this._adapter.setInsetInputFocus();
|
|
1186
1179
|
/**
|
|
1187
1180
|
* After the panel is closed, the trigger input is disabled
|
|
1188
1181
|
* 面板关闭后,trigger input 禁用
|
|
@@ -26,7 +26,9 @@ export default class SubNavFoundation extends BaseFoundation {
|
|
|
26
26
|
// this.log('invoke SubNavFoundation init()');
|
|
27
27
|
this._timer = null;
|
|
28
28
|
}
|
|
29
|
-
destroy() {
|
|
29
|
+
destroy() {
|
|
30
|
+
this.clearDelayTimer();
|
|
31
|
+
}
|
|
30
32
|
clearDelayTimer() {
|
|
31
33
|
if (this._timer) {
|
|
32
34
|
clearTimeout(this._timer);
|
|
@@ -227,6 +227,7 @@ export default class Tooltip extends BaseFoundation {
|
|
|
227
227
|
this._adapter.unregisterClickOutsideHandler();
|
|
228
228
|
this.unBindResizeEvent();
|
|
229
229
|
this.unBindScrollEvent();
|
|
230
|
+
clearTimeout(this._timer);
|
|
230
231
|
}
|
|
231
232
|
_bindTriggerEvent(triggerEventSet) {
|
|
232
233
|
this._adapter.registerTriggerEvent(triggerEventSet);
|
|
@@ -75,6 +75,6 @@ export declare function getValueOrKey(data: any): any;
|
|
|
75
75
|
export declare function normalizeValue(value: any, withObject: boolean): any;
|
|
76
76
|
export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
|
|
77
77
|
export declare function calcDisabledKeys(keyEntities: KeyEntities): Set<string>;
|
|
78
|
-
export declare function calcDropRelativePosition(event: any, treeNode: any):
|
|
78
|
+
export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
|
|
79
79
|
export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
|
|
80
80
|
export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
|
|
@@ -18,7 +18,7 @@ declare const strings: {
|
|
|
18
18
|
DRAG_AREA_ILLEGAL: string;
|
|
19
19
|
TRIGGER_AUTO: "auto";
|
|
20
20
|
TRIGGER_CUSTOM: "custom";
|
|
21
|
-
UPLOAD_TRIGGER: ("
|
|
21
|
+
UPLOAD_TRIGGER: ("custom" | "auto")[];
|
|
22
22
|
VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
|
|
23
23
|
PROMPT_POSITION: readonly ["left", "right", "bottom"];
|
|
24
24
|
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.38.3-alpha.2-
|
|
3
|
+
"version": "2.38.3-alpha.2-path-settimeout",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
7
7
|
"prepublishOnly": "npm run build:lib"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@douyinfe/semi-animation": "2.38.3-alpha.2-
|
|
10
|
+
"@douyinfe/semi-animation": "2.38.3-alpha.2-path-settimeout",
|
|
11
11
|
"async-validator": "^3.5.0",
|
|
12
12
|
"classnames": "^2.2.6",
|
|
13
13
|
"date-fns": "^2.29.3",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"*.scss",
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "6ee0dec58c24d51eec631bc922854834afc548cf",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|
package/tooltip/foundation.ts
CHANGED
|
@@ -115,6 +115,7 @@ export default class Tooltip<P = Record<string, any>, S = Record<string, any>> e
|
|
|
115
115
|
this._adapter.unregisterClickOutsideHandler();
|
|
116
116
|
this.unBindResizeEvent();
|
|
117
117
|
this.unBindScrollEvent();
|
|
118
|
+
clearTimeout(this._timer);
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
_bindTriggerEvent(triggerEventSet: Record<string, any>) {
|