@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.
- package/dist/array/index.js +1 -2
- package/dist/array/slice.js +1 -3
- package/dist/array/sort.js +1 -3
- package/dist/array/tree.d.ts +2 -2
- package/dist/array/tree.js +1 -3
- package/dist/array/unique.js +1 -2
- package/dist/base64/index.js +1 -2
- package/dist/class/index.js +1 -2
- package/dist/class/prefix.js +1 -2
- package/dist/clone/cloneDeep.js +1 -3
- package/dist/clone/cloneDeepWith.js +1 -3
- package/dist/clone/getTag.js +1 -2
- package/dist/clone/index.js +1 -2
- package/dist/clone/symbols.js +1 -2
- package/dist/clone/tags.js +1 -2
- package/dist/dom/event.js +1 -2
- package/dist/dom/index.js +1 -2
- package/dist/dom/measure.js +1 -3
- package/dist/dom/raf.js +1 -2
- package/dist/dom/scroll.js +1 -3
- package/dist/file/config.js +6 -2
- package/dist/file/convert.js +1 -2
- package/dist/file/index.js +1 -2
- package/dist/file/media.js +1 -3
- package/dist/file/type.js +1 -3
- package/dist/function/copy.js +1 -2
- package/dist/function/getValue.js +1 -2
- package/dist/function/index.js +1 -2
- package/dist/function/object.js +1 -2
- package/dist/function/run.js +1 -2
- package/dist/index.d.ts +0 -7
- package/dist/index.js +2 -3
- package/dist/is/base64.js +1 -2
- package/dist/is/browser.js +1 -2
- package/dist/is/deepEqual.js +1 -2
- package/dist/is/device.js +1 -2
- package/dist/is/equal.js +1 -2
- package/dist/is/img.js +1 -2
- package/dist/is/index.js +1 -2
- package/dist/is/nil.js +1 -2
- package/dist/is/plainObject.js +1 -3
- package/dist/is/primitive.js +1 -2
- package/dist/is/server.js +1 -2
- package/dist/is/type.js +1 -2
- package/dist/is/typedArray.js +1 -2
- package/dist/is/unsafeProperty.js +1 -2
- package/dist/is/url.js +1 -2
- package/dist/is/valid.js +1 -2
- package/dist/merge/index.js +25 -7
- package/dist/merge/mergeWith.js +1 -3
- package/dist/merge/useDeepMege.js +1 -3
- package/dist/number/chinese.js +1 -3
- package/dist/number/format.js +1 -3
- package/dist/number/index.js +1 -2
- package/dist/object/classNames.js +1 -4
- package/dist/object/index.js +2 -3
- package/dist/object/omitBoolean.js +1 -2
- package/dist/object/omitUndefined.js +1 -2
- package/dist/object/omitUndefinedAndEmptyArr.js +1 -2
- package/dist/pro-utils.esm.js +366 -242
- package/dist/pro-utils.js +1 -1
- package/dist/string/duration.js +1 -2
- package/dist/string/empty.js +1 -2
- package/dist/string/index.js +1 -2
- package/dist/string/nanoid.js +1 -2
- package/dist/string/uuid.js +23 -2
- package/dist/table/column.js +1 -3
- package/dist/table/index.js +1 -2
- package/dist/table/page.js +1 -3
- package/dist/typing.js +1 -1
- package/dist/vue/index.js +1 -2
- package/dist/vue/slots.d.ts +2 -2
- package/dist/vue/slots.js +1 -3
- package/package.json +1 -1
package/dist/merge/mergeWith.js
CHANGED
|
@@ -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 };
|
package/dist/number/chinese.js
CHANGED
|
@@ -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 };
|
package/dist/number/format.js
CHANGED
|
@@ -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 };
|
package/dist/number/index.js
CHANGED
|
@@ -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 {
|
|
27
|
+
export { classNames as default };
|
package/dist/object/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
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 };
|