@gx-design-vue/pro-utils 0.2.0-beta.50 → 0.2.0-beta.52

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/dist/index.d.ts CHANGED
@@ -1,24 +1,24 @@
1
- import isServer from './isServer';
2
- import { getScrollContainer, isInContainer, isScroll } from './scroll';
1
+ import classNames from './classNames';
2
+ import { getValueFromObjectByKey } from './getValueFromObjectByKey';
3
3
  import { isImg } from './isImg';
4
4
  import { isNil } from './isNil';
5
+ import isServer from './isServer';
5
6
  import { isUrl } from './isUrl';
6
- import { merge } from './merge';
7
+ import { deepMerge, merge } from './merge';
7
8
  import { nanoid } from './nanoid';
8
- import { getValueFromObjectByKey } from './getValueFromObjectByKey';
9
- import classNames from './classNames';
10
- import scrollTo from './scroll/scrollTo';
9
+ import { getScrollContainer, isInContainer, isScroll } from './scroll';
11
10
  import getScroll from './scroll/getScroll';
11
+ import scrollTo from './scroll/scrollTo';
12
12
  import throttleByAnimationFrame from './scroll/throttleByAnimationFrame';
13
13
  import globalConfig from './utils/config';
14
14
  export * from './cloneDeep';
15
- export * from './isDeepEqualReact';
16
15
  export * from './isBrowser';
16
+ export * from './isDeepEqualReact';
17
17
  export * from './omitBoolean';
18
18
  export * from './omitUndefined';
19
19
  export * from './omitUndefinedAndEmptyArr';
20
20
  export * from './slots';
21
+ export * from './typings';
21
22
  export * from './utils';
22
23
  export * from './utils/validate';
23
- export * from './typings';
24
- export { isServer, globalConfig, classNames, isScroll, isInContainer, getScrollContainer, scrollTo, getScroll, isImg, isNil, isUrl, merge, nanoid, getValueFromObjectByKey, throttleByAnimationFrame };
24
+ export { classNames, deepMerge, getScroll, getScrollContainer, getValueFromObjectByKey, globalConfig, isImg, isInContainer, isNil, isScroll, isServer, isUrl, merge, nanoid, scrollTo, throttleByAnimationFrame };
@@ -1,7 +1,11 @@
1
+ import type { DeepPartial } from '../typings';
1
2
  /**
2
3
  * 用于合并 n 个对象
3
4
  * @param {any[]} ...rest
4
5
  * @returns T
5
6
  */
6
7
  declare const merge: <T = any>(...rest: any[]) => T;
7
- export { merge };
8
+ declare function deepMerge<T extends object>(target: T, source: DeepPartial<T>, options?: {
9
+ omitUndefined?: boolean;
10
+ }): T;
11
+ export { deepMerge, merge };
@@ -1,5 +1,2 @@
1
- type OmitUndefined<T> = {
2
- [P in keyof T]: NonNullable<T[P]>;
3
- };
1
+ import type { OmitUndefined } from '../typings';
4
2
  export declare const omitUndefined: <T extends Record<string, any>>(obj: T) => OmitUndefined<T>;
5
- export {};