ztxkui 2.6.7 → 2.6.8

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.
@@ -14,7 +14,7 @@ export declare function setDynamicKey(dynamicStorageKey: string, value: any): vo
14
14
  /**
15
15
  * @description 比对方法,获取最终数据
16
16
  */
17
- export declare function getSearchParams(storageKey: string, params: any, otherKeys: any): any;
17
+ export declare function getSearchParams(storageKey: string, params: any, otherKeys?: any): any;
18
18
  declare function useDynamic(children: React.ReactNode, isDynamic?: boolean, // 是否利用动态列配置
19
19
  dynamicStorageKey?: string): {
20
20
  dynamicArr: ISearchLayout[];
@@ -52,7 +52,7 @@ export function getSearchParams(storageKey, params, otherKeys) {
52
52
  if (resultParams.hasOwnProperty(name_1)) {
53
53
  Reflect.deleteProperty(resultParams, name_1);
54
54
  }
55
- else if (otherKeys.hasOwnProperty(name_1)) {
55
+ else if (otherKeys && otherKeys.hasOwnProperty(name_1)) {
56
56
  // 如果key不在源数据中,找到该key对应的keys
57
57
  var keys = otherKeys[name_1];
58
58
  if (Array.isArray(keys)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "2.6.7",
3
+ "version": "2.6.8",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",