@utogether/utils 1.15.13 → 1.15.15
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 +6 -36
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: wei.li
|
|
3
|
-
* @Date: 2022-10-20 21:54:44
|
|
4
|
-
* @LastEditors: wei.li
|
|
5
|
-
* @LastEditTime: 2022-10-20 22:00:16
|
|
6
|
-
* @Description: file content
|
|
7
|
-
*/
|
|
8
1
|
declare interface Fn<T = any, R = T> {
|
|
9
|
-
|
|
2
|
+
(...arg: T[]): R;
|
|
10
3
|
}
|
|
11
|
-
|
|
12
4
|
export { VxetableRender } from "./pkg/render.tsx";
|
|
13
5
|
export { useWatermark } from "./pkg/useWatermark";
|
|
14
6
|
export { useAttrs } from "./pkg/useAttrs";
|
|
@@ -17,35 +9,13 @@ export { useGlobal } from "./pkg/useGlobal";
|
|
|
17
9
|
export { addResizeListener, removeResizeListener } from "./pkg/resize";
|
|
18
10
|
export { buildUUID, buildShortUUID } from "./pkg/uuid";
|
|
19
11
|
export { getBrowserInfo, deviceDetection } from "./pkg/device";
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
successMessage,
|
|
24
|
-
errorMessage,
|
|
25
|
-
} from "./pkg/message";
|
|
26
|
-
export {
|
|
27
|
-
i18nColums,
|
|
28
|
-
formatItems,
|
|
29
|
-
formatGridItems,
|
|
30
|
-
formatRules,
|
|
31
|
-
} from "./pkg/formatData";
|
|
32
|
-
export {
|
|
33
|
-
extractPathList,
|
|
34
|
-
buildHierarchyTree,
|
|
35
|
-
getNodeByUniqueId,
|
|
36
|
-
appendFieldByUniqueId,
|
|
37
|
-
deleteTreeChildren,
|
|
38
|
-
} from "./pkg/useTree";
|
|
12
|
+
export { showMessage, warnMessage, successMessage, errorMessage, } from "./pkg/message";
|
|
13
|
+
export { i18nColums, formatItems, formatGridItems, formatRules, } from "./pkg/formatData";
|
|
14
|
+
export { extractPathList, buildHierarchyTree, getNodeByUniqueId, appendFieldByUniqueId, deleteTreeChildren, } from "./pkg/useTree";
|
|
39
15
|
export { cookies } from "./pkg/cookie";
|
|
40
16
|
export { storageSession, storageLocal } from "./pkg/storage";
|
|
41
17
|
export { http } from "./pkg/http";
|
|
42
|
-
export {
|
|
43
|
-
openLink,
|
|
44
|
-
toggleClass,
|
|
45
|
-
removeClass,
|
|
46
|
-
addClass,
|
|
47
|
-
hasClass,
|
|
48
|
-
} from "./pkg/element";
|
|
18
|
+
export { openLink, toggleClass, removeClass, addClass, hasClass, } from "./pkg/element";
|
|
49
19
|
import NProgress from "./pkg/progress";
|
|
50
20
|
import type { Plugin } from "vue";
|
|
51
21
|
declare const withInstall: <T>(component: any) => T & Plugin;
|
|
@@ -53,7 +23,7 @@ declare function sleep(timer?: number): Promise<unknown>;
|
|
|
53
23
|
export declare const delay: (timeout: number) => Promise<unknown>;
|
|
54
24
|
export { withInstall, sleep, NProgress };
|
|
55
25
|
export declare const useDark: () => {
|
|
56
|
-
|
|
26
|
+
isDark: import("vue").Ref<boolean>;
|
|
57
27
|
};
|
|
58
28
|
export declare const useDebounce: (fn: () => Fn, timeout: number) => () => void;
|
|
59
29
|
export declare function isUrl(path: string): boolean;
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utogether/utils",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.15.
|
|
4
|
+
"version": "1.15.15",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/utils.umd.js",
|
|
7
7
|
"module": "dist/utils.umd.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist/utils.umd.js",
|
|
10
10
|
"dist/style.css",
|
|
11
|
-
"dist/index.d.ts"
|
|
11
|
+
"dist/index.d.ts",
|
|
12
|
+
"dist/types"
|
|
12
13
|
],
|
|
13
|
-
"typings": "
|
|
14
|
+
"typings": "index.d.ts",
|
|
14
15
|
"keywords": [],
|
|
15
16
|
"author": "levi7754@163.com",
|
|
16
17
|
"license": "MIT",
|