@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/package.json CHANGED
@@ -1,26 +1,27 @@
1
- {
2
- "name": "@utogether/utils",
3
- "private": false,
4
- "version": "2.8.2",
5
- "description": "",
6
- "main": "dist/utils.umd.js",
7
- "module": "dist/utils.umd.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/style.css",
16
- "dist/index.d.ts",
17
- "dist/pkg"
18
- ],
19
- "typings": "dist/index.d.ts",
20
- "keywords": [],
21
- "author": "levi7754@163.com",
22
- "license": "ISC",
23
- "dependencies": {
24
- "localforage": "^1.10.0"
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;