@gx-design-vue/pro-utils 0.2.0-alpha.2 → 0.2.0-alpha.3

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.
Files changed (74) hide show
  1. package/dist/array/index.js +1 -2
  2. package/dist/array/slice.js +1 -3
  3. package/dist/array/sort.js +1 -3
  4. package/dist/array/tree.d.ts +2 -2
  5. package/dist/array/tree.js +1 -3
  6. package/dist/array/unique.js +1 -2
  7. package/dist/base64/index.js +1 -2
  8. package/dist/class/index.js +1 -2
  9. package/dist/class/prefix.js +1 -2
  10. package/dist/clone/cloneDeep.js +1 -3
  11. package/dist/clone/cloneDeepWith.js +1 -3
  12. package/dist/clone/getTag.js +1 -2
  13. package/dist/clone/index.js +1 -2
  14. package/dist/clone/symbols.js +1 -2
  15. package/dist/clone/tags.js +1 -2
  16. package/dist/dom/event.js +1 -2
  17. package/dist/dom/index.js +1 -2
  18. package/dist/dom/measure.js +1 -3
  19. package/dist/dom/raf.js +1 -2
  20. package/dist/dom/scroll.js +1 -3
  21. package/dist/file/config.js +6 -2
  22. package/dist/file/convert.js +1 -2
  23. package/dist/file/index.js +1 -2
  24. package/dist/file/media.js +1 -3
  25. package/dist/file/type.js +1 -3
  26. package/dist/function/copy.js +1 -2
  27. package/dist/function/getValue.js +1 -2
  28. package/dist/function/index.js +1 -2
  29. package/dist/function/object.js +1 -2
  30. package/dist/function/run.js +1 -2
  31. package/dist/index.d.ts +0 -7
  32. package/dist/index.js +2 -3
  33. package/dist/is/base64.js +1 -2
  34. package/dist/is/browser.js +1 -2
  35. package/dist/is/deepEqual.js +1 -2
  36. package/dist/is/device.js +1 -2
  37. package/dist/is/equal.js +1 -2
  38. package/dist/is/img.js +1 -2
  39. package/dist/is/index.js +1 -2
  40. package/dist/is/nil.js +1 -2
  41. package/dist/is/plainObject.js +1 -3
  42. package/dist/is/primitive.js +1 -2
  43. package/dist/is/server.js +1 -2
  44. package/dist/is/type.js +1 -2
  45. package/dist/is/typedArray.js +1 -2
  46. package/dist/is/unsafeProperty.js +1 -2
  47. package/dist/is/url.js +1 -2
  48. package/dist/is/valid.js +1 -2
  49. package/dist/merge/index.js +25 -7
  50. package/dist/merge/mergeWith.js +1 -3
  51. package/dist/merge/useDeepMege.js +1 -3
  52. package/dist/number/chinese.js +1 -3
  53. package/dist/number/format.js +1 -3
  54. package/dist/number/index.js +1 -2
  55. package/dist/object/classNames.js +1 -4
  56. package/dist/object/index.js +2 -3
  57. package/dist/object/omitBoolean.js +1 -2
  58. package/dist/object/omitUndefined.js +1 -2
  59. package/dist/object/omitUndefinedAndEmptyArr.js +1 -2
  60. package/dist/pro-utils.esm.js +366 -242
  61. package/dist/pro-utils.js +1 -1
  62. package/dist/string/duration.js +1 -2
  63. package/dist/string/empty.js +1 -2
  64. package/dist/string/index.js +1 -2
  65. package/dist/string/nanoid.js +1 -2
  66. package/dist/string/uuid.js +23 -2
  67. package/dist/table/column.js +1 -3
  68. package/dist/table/index.js +1 -2
  69. package/dist/table/page.js +1 -3
  70. package/dist/typing.js +1 -1
  71. package/dist/vue/index.js +1 -2
  72. package/dist/vue/slots.d.ts +2 -2
  73. package/dist/vue/slots.js +1 -3
  74. package/package.json +1 -1
@@ -1,7 +1,6 @@
1
1
  import { isPlainObject } from "../is/plainObject.js";
2
2
  import { isUnsafeProperty } from "../is/unsafeProperty.js";
3
3
  import "../is/index.js";
4
-
5
4
  //#region src/merge/mergeWith.ts
6
5
  /**
7
6
  * 合并对象(带自定义处理)
@@ -26,6 +25,5 @@ function mergeWith(target, source, merge) {
26
25
  }
27
26
  return target;
28
27
  }
29
-
30
28
  //#endregion
31
- export { mergeWith };
29
+ export { mergeWith };
@@ -1,7 +1,6 @@
1
1
  import { isPlainObject } from "../is/plainObject.js";
2
2
  import "../is/index.js";
3
3
  import { mergeWith } from "./mergeWith.js";
4
-
5
4
  //#region src/merge/useDeepMege.ts
6
5
  /**
7
6
  * Merges the properties of the source object into a deep clone of the target object.
@@ -51,6 +50,5 @@ function useDeepMerge(target, source) {
51
50
  else return mergeWith({}, sourceValue, mergeRecursively);
52
51
  });
53
52
  }
54
-
55
53
  //#endregion
56
- export { useDeepMerge };
54
+ export { useDeepMerge };
@@ -1,6 +1,5 @@
1
1
  import { isNumber } from "../is/type.js";
2
2
  import "../is/index.js";
3
-
4
3
  //#region src/number/chinese.ts
5
4
  /**
6
5
  * 数字转中文
@@ -41,6 +40,5 @@ function toChinesNum(num) {
41
40
  if (noWan.toString().length < 4) noWan = `0${noWan}`;
42
41
  return overWan ? `${getWan(overWan)}万${getWan(noWan)}` : getWan(num);
43
42
  }
44
-
45
43
  //#endregion
46
- export { toChinesNum };
44
+ export { toChinesNum };
@@ -1,6 +1,5 @@
1
1
  import { isNumber } from "../is/type.js";
2
2
  import "../is/index.js";
3
-
4
3
  //#region src/number/format.ts
5
4
  /**
6
5
  * 格式化数字,保留指定小数位
@@ -67,6 +66,5 @@ function toConvertNumberShow(number, options) {
67
66
  unit: countStr
68
67
  };
69
68
  }
70
-
71
69
  //#endregion
72
- export { formatNumber, toConvertNumberShow };
70
+ export { formatNumber, toConvertNumberShow };
@@ -1,4 +1,3 @@
1
1
  import { toChinesNum } from "./chinese.js";
2
2
  import { formatNumber, toConvertNumberShow } from "./format.js";
3
-
4
- export { formatNumber, toChinesNum, toConvertNumberShow };
3
+ export { formatNumber, toChinesNum, toConvertNumberShow };
@@ -1,6 +1,5 @@
1
1
  import { isArray, isObject, isString } from "../is/type.js";
2
2
  import "../is/index.js";
3
-
4
3
  //#region src/object/classNames.ts
5
4
  /**
6
5
  * 类名合并工具
@@ -24,7 +23,5 @@ function classNames(...args) {
24
23
  }
25
24
  return classes.filter((el) => el).join(" ");
26
25
  }
27
- var classNames_default = classNames;
28
-
29
26
  //#endregion
30
- export { classNames_default as default };
27
+ export { classNames as default };
@@ -1,6 +1,5 @@
1
- import classNames_default from "./classNames.js";
1
+ import classNames from "./classNames.js";
2
2
  import { omitBoolean } from "./omitBoolean.js";
3
3
  import { omitUndefined } from "./omitUndefined.js";
4
4
  import { omitUndefinedAndEmptyArr } from "./omitUndefinedAndEmptyArr.js";
5
-
6
- export { classNames_default as classNames, omitBoolean, omitUndefined, omitUndefinedAndEmptyArr };
5
+ export { classNames, omitBoolean, omitUndefined, omitUndefinedAndEmptyArr };
@@ -8,6 +8,5 @@
8
8
  function omitBoolean(obj) {
9
9
  if (obj && obj !== true) return obj;
10
10
  }
11
-
12
11
  //#endregion
13
- export { omitBoolean };
12
+ export { omitBoolean };
@@ -13,6 +13,5 @@ function omitUndefined(obj) {
13
13
  if (Object.keys(newObj).length < 1) return;
14
14
  return newObj;
15
15
  }
16
-
17
16
  //#endregion
18
- export { omitUndefined };
17
+ export { omitUndefined };
@@ -14,6 +14,5 @@ function omitUndefinedAndEmptyArr(obj) {
14
14
  });
15
15
  return newObj;
16
16
  }
17
-
18
17
  //#endregion
19
- export { omitUndefinedAndEmptyArr };
18
+ export { omitUndefinedAndEmptyArr };