@cloudcome/utils-vue 1.6.1 → 1.7.0

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.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const VERSION = "1.6.0";
3
+ const VERSION = "1.6.2";
4
4
  exports.VERSION = VERSION;
5
5
  //# sourceMappingURL=index.cjs.map
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const VERSION = "1.6.0";
1
+ const VERSION = "1.6.2";
2
2
  export {
3
3
  VERSION
4
4
  };
package/dist/types.cjs ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * ClassValue 类型定义,用于表示可以作为 CSS 类名的各种值类型
3
+ * 可以是字符串、数字、bigint、布尔值、null、undefined,或者是一个包含这些类型的数组,或者是一个对象
4
+ */
5
+ export type ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined;
6
+ /**
7
+ * ClassDictionary 类型定义,用于表示 CSS 类名的对象形式
8
+ * 对象的键是字符串,值可以是任意类型
9
+ */
10
+ export type ClassDictionary = Record<string, unknown>;
11
+ /**
12
+ * ClassArray 类型定义,用于表示 CSS 类名的数组形式
13
+ * 数组中的每个元素都可以是 ClassValue 类型
14
+ */
15
+ export type ClassArray = ClassValue[];
package/dist/types.mjs ADDED
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcome/utils-vue",
3
- "version": "1.6.1",
3
+ "version": "1.7.0",
4
4
  "description": "cloudcome utils for vue",
5
5
  "engines": {
6
6
  "node": ">=22"
@@ -43,6 +43,11 @@
43
43
  "types": "./dist/request.d.ts",
44
44
  "import": "./dist/request.mjs",
45
45
  "require": "./dist/request.cjs"
46
+ },
47
+ "./types": {
48
+ "types": "./dist/types.d.ts",
49
+ "import": "./dist/types.mjs",
50
+ "require": "./dist/types.cjs"
46
51
  }
47
52
  },
48
53
  "typesVersions": {
@@ -64,6 +69,9 @@
64
69
  ],
65
70
  "request": [
66
71
  "./dist/request.d.ts"
72
+ ],
73
+ "types": [
74
+ "./dist/types.d.ts"
67
75
  ]
68
76
  }
69
77
  },
@@ -74,7 +82,7 @@
74
82
  "dist"
75
83
  ],
76
84
  "dependencies": {
77
- "@cloudcome/utils-core": "~1.2.2",
85
+ "@cloudcome/utils-core": "~1.3.0",
78
86
  "vue": "^3.5.13",
79
87
  "vue-component-type-helpers": "^2.2.10"
80
88
  },