@gx-design-vue/pro-utils 0.2.0-beta.54 → 0.2.0-beta.55

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,23 @@
1
1
  import classNames from './classNames';
2
2
  import { getValueFromObjectByKey } from './getValueFromObjectByKey';
3
- import { isImg } from './isImg';
4
- import { isNil } from './isNil';
5
3
  import isServer from './isServer';
6
- import { isUrl } from './isUrl';
7
- import { deepMerge, merge } from './merge';
8
- import { nanoid } from './nanoid';
9
4
  import { getScrollContainer, isInContainer, isScroll } from './scroll';
10
5
  import getScroll from './scroll/getScroll';
6
+ import raf from './scroll/raf';
11
7
  import scrollTo from './scroll/scrollTo';
12
8
  import throttleByAnimationFrame from './scroll/throttleByAnimationFrame';
13
- import globalConfig from './utils/config';
14
9
  export * from './cloneDeep';
15
10
  export * from './isBrowser';
16
11
  export * from './isDeepEqualReact';
12
+ export * from './isImg';
13
+ export * from './isNil';
14
+ export * from './isUrl';
15
+ export * from './merge';
16
+ export * from './nanoid';
17
17
  export * from './omitBoolean';
18
18
  export * from './omitUndefined';
19
19
  export * from './omitUndefinedAndEmptyArr';
20
20
  export * from './slots';
21
21
  export * from './typings';
22
22
  export * from './utils';
23
- export * from './utils/validate';
24
- export { classNames, deepMerge, getScroll, getScrollContainer, getValueFromObjectByKey, globalConfig, isImg, isInContainer, isNil, isScroll, isServer, isUrl, merge, nanoid, scrollTo, throttleByAnimationFrame };
23
+ export { classNames, getScroll, getScrollContainer, getValueFromObjectByKey, isInContainer, isScroll, isServer, raf, scrollTo, throttleByAnimationFrame };
@@ -5,7 +5,19 @@ import type { DeepPartial } from '../typings';
5
5
  * @returns T
6
6
  */
7
7
  declare const merge: <T = any>(...rest: any[]) => T;
8
+ /**
9
+ * @Author gx12358
10
+ * @DateTime 2024/12/6
11
+ * @lastTime 2024/12/6
12
+ * @description 深度合并对象
13
+ * @description target 目标值
14
+ * @description source 合并值
15
+ * @description options 参数配置
16
+ * @description options - omitNil 去除空值
17
+ * @description options - omitEmpty 去除空数组或对象
18
+ */
8
19
  declare function deepMerge<T extends object>(target: T, source: DeepPartial<T>, options?: {
9
- omitUndefined?: boolean;
20
+ omitNil?: boolean;
21
+ omitEmpty?: boolean;
10
22
  }): T;
11
23
  export { deepMerge, merge };