@momo-kits/foundation 0.81.7-beta.1 → 0.81.7-beta.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.
|
@@ -15,7 +15,7 @@ class Navigation {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* navigation options
|
|
18
|
+
* navigation options filter by design system rule
|
|
19
19
|
* @param params
|
|
20
20
|
*/
|
|
21
21
|
private filterParams = (params: NavigationOptions) => {
|
|
@@ -28,6 +28,12 @@ class Navigation {
|
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
|
|
32
|
+
if (params.headerLeft) {
|
|
33
|
+
console.warn('headerLeft not allow override render by design system!');
|
|
34
|
+
delete params.headerLeft;
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
return params;
|
|
32
38
|
};
|
|
33
39
|
|
|
@@ -36,10 +42,7 @@ class Navigation {
|
|
|
36
42
|
* @param params
|
|
37
43
|
*/
|
|
38
44
|
setOptions = (params: NavigationOptions) => {
|
|
39
|
-
|
|
40
|
-
params = this.filterParams(params);
|
|
41
|
-
}
|
|
42
|
-
params = getOptions(params, this.theme);
|
|
45
|
+
params = getOptions(this.filterParams(params), this.theme);
|
|
43
46
|
this.instance.setOptions(params);
|
|
44
47
|
};
|
|
45
48
|
}
|