@yh-kit/utils 1.1.1 → 1.1.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 (2) hide show
  1. package/README.md +12 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -11,8 +11,17 @@
11
11
  ## 使用
12
12
 
13
13
  ```ts
14
- import { queryURLParamsUtil } from "@yh-kit/utils";
14
+ import { arrayUtils, numberUtils, urlUtils } from "@yh-kit/utils";
15
15
 
16
- const queryId = queryURLParamsUtil("id");
17
- console.log(queryId);
16
+ const queryId = urlUtils.getQueryInfoByName("id");
17
+ console.log(queryId); // 123 地址为:http://localhost:5173/?id=123
18
+ const toEnumObj = arrayUtils.toEnumObj([
19
+ {
20
+ value: "1",
21
+ label: "壹"
22
+ }
23
+ ]);
24
+ console.log(toEnumObj); // {1: {label: '壹', text: '壹', value: '1'}}
25
+ const toMoney = numberUtils.toMoney(123456789);
26
+ console.log(toMoney); // 123,456,789.00
18
27
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yh-kit/utils",
3
3
  "private": false,
4
- "version": "1.1.1",
4
+ "version": "1.1.3",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",