@utogether/utils 2.8.2 → 2.8.5
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/pkg/cookie.d.ts +31 -31
- package/dist/pkg/device.d.ts +7 -7
- package/dist/pkg/element.d.ts +9 -9
- package/dist/pkg/encrypte.d.ts +12 -0
- package/dist/pkg/format.d.ts +53 -53
- package/dist/pkg/formatData.d.ts +43 -26
- package/dist/pkg/http/index.d.ts +31 -31
- package/dist/pkg/lunarCalendar.d.ts +426 -426
- package/dist/pkg/message.d.ts +31 -31
- package/dist/pkg/progress.d.ts +2 -2
- package/dist/pkg/remixiconSet.d.ts +7623 -7623
- package/dist/pkg/render.d.ts +5 -5
- package/dist/pkg/resize.d.ts +2 -2
- package/dist/pkg/rules.d.ts +2 -0
- package/dist/pkg/storage.d.ts +32 -32
- package/dist/pkg/useAttrs.d.ts +9 -9
- package/dist/pkg/useGlobal.d.ts +15 -15
- package/dist/pkg/useRender.d.ts +168 -168
- package/dist/pkg/useTree.d.ts +24 -24
- package/dist/pkg/useWatermark.d.ts +10 -10
- package/dist/pkg/uuid.d.ts +6 -6
- package/dist/utils.es.js +13577 -0
- package/dist/utils.umd.js +7 -5
- package/package.json +27 -26
- package/dist/index.d.ts +0 -56
package/package.json
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@utogether/utils",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "2.8.
|
|
5
|
-
"description": "",
|
|
6
|
-
"main": "dist/utils.umd.js",
|
|
7
|
-
"module": "dist/utils.
|
|
8
|
-
"scripts": {
|
|
9
|
-
"dev": "vite",
|
|
10
|
-
"build": "vite build",
|
|
11
|
-
"build:less": "esno build/buildScss"
|
|
12
|
-
},
|
|
13
|
-
"files": [
|
|
14
|
-
"dist/utils.umd.js",
|
|
15
|
-
"dist/
|
|
16
|
-
"dist/
|
|
17
|
-
"dist/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@utogether/utils",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "2.8.5",
|
|
5
|
+
"description": "",
|
|
6
|
+
"main": "dist/utils.umd.js",
|
|
7
|
+
"module": "dist/utils.es.js",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "vite",
|
|
10
|
+
"build": "vite build",
|
|
11
|
+
"build:less": "esno build/buildScss"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/utils.umd.js",
|
|
15
|
+
"dist/utils.es.js",
|
|
16
|
+
"dist/style.css",
|
|
17
|
+
"dist/index.d.ts",
|
|
18
|
+
"dist/pkg"
|
|
19
|
+
],
|
|
20
|
+
"typings": "dist/index.d.ts",
|
|
21
|
+
"keywords": [],
|
|
22
|
+
"author": "levi7754@163.com",
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"localforage": "^1.10.0"
|
|
26
|
+
}
|
|
27
|
+
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
declare interface Fn<T = any, R = T> {
|
|
2
|
-
(...arg: T[]): R;
|
|
3
|
-
}
|
|
4
|
-
export { VxetableRender } from "./pkg/render.tsx";
|
|
5
|
-
export { useWatermark } from "./pkg/useWatermark";
|
|
6
|
-
export { useAttrs } from "./pkg/useAttrs";
|
|
7
|
-
export { useRender } from "./pkg/useRender";
|
|
8
|
-
export { useGlobal } from "./pkg/useGlobal";
|
|
9
|
-
export { addResizeListener, removeResizeListener } from "./pkg/resize";
|
|
10
|
-
export { buildUUID, buildShortUUID } from "./pkg/uuid";
|
|
11
|
-
export { getBrowserInfo, deviceDetection } from "./pkg/device";
|
|
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";
|
|
15
|
-
export { cookies } from "./pkg/cookie";
|
|
16
|
-
export { storageSession, dbstorage } from "./pkg/storage";
|
|
17
|
-
export { http } from "./pkg/http";
|
|
18
|
-
export { lunarCalendar } from "./pkg/lunarCalendar";
|
|
19
|
-
export { formats } from "./pkg/format";
|
|
20
|
-
export { openLink, toggleClass, removeClass, addClass, hasClass, } from "./pkg/element";
|
|
21
|
-
import NProgress from "./pkg/progress";
|
|
22
|
-
import type { Plugin } from "vue";
|
|
23
|
-
import { storageLocal } from "./pkg/storage";
|
|
24
|
-
import iconSet from "./pkg/remixiconSet";
|
|
25
|
-
declare const withInstall: <T>(component: any) => T & Plugin<any[]>;
|
|
26
|
-
/**
|
|
27
|
-
* @description: 延迟函数
|
|
28
|
-
* @param {number} timeout 延时时间
|
|
29
|
-
* @deprecated 2.6版本废弃, 使用delay代替
|
|
30
|
-
* @return {*}
|
|
31
|
-
*/
|
|
32
|
-
declare function sleep(timer?: number): Promise<unknown>;
|
|
33
|
-
/**
|
|
34
|
-
* @description: 延迟函数
|
|
35
|
-
* @param {number} timeout 延时时间
|
|
36
|
-
* @return {*}
|
|
37
|
-
*/
|
|
38
|
-
export declare const delay: (timeout: number) => Promise<unknown>;
|
|
39
|
-
export { withInstall, sleep, NProgress, storageLocal, iconSet };
|
|
40
|
-
export declare const useDark: () => {
|
|
41
|
-
isDark: import("vue").Ref<boolean>;
|
|
42
|
-
};
|
|
43
|
-
export declare const useDebounce: (fn: () => Fn, timeout: number) => () => void;
|
|
44
|
-
/**
|
|
45
|
-
* @description: 判断路径是否合法
|
|
46
|
-
* @param {string} path 服务路径
|
|
47
|
-
* @return {*} boolean
|
|
48
|
-
*/
|
|
49
|
-
export declare function isUrl(path: string): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* @description: 根据值查找字典名称
|
|
52
|
-
* @param {*} dictCode 字典编码
|
|
53
|
-
* @param {*} val 数据值
|
|
54
|
-
* @return {*} 字典名称
|
|
55
|
-
*/
|
|
56
|
-
export declare const getDictName: (dictCode: any, val: any) => any;
|