adtec-core-package 0.2.5 → 0.2.6

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,6 +1,6 @@
1
1
  {
2
2
  "name": "adtec-core-package",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -17,6 +17,7 @@
17
17
  "@element-plus/icons-vue": "^2.3.1",
18
18
  "pinia-plugin-store": "^2.2.9",
19
19
  "crypto-js": "^4.2.0",
20
+ "jsencrypt": "^3.3.2",
20
21
  "axios": "^1.7.7",
21
22
  "element-plus": "^2.8.7",
22
23
  "pinia": "^2.3.0",
@@ -50,7 +51,6 @@
50
51
  "vue-tsc": "^2.1.10"
51
52
  },
52
53
  "description": "This template should help get you started developing with Vue 3 in Vite.",
53
- "main": "/adtec-core-package/adtec-core-package.umd.cjs",
54
54
  "author": "",
55
55
  "license": "ISC"
56
56
  }
@@ -1,5 +1,6 @@
1
1
  import request from '../utils/request'
2
2
  import type { ISysDictDataCacheVo } from '../interface/ISysDictDataCacheVo'
3
+ import type { dictMapType } from '../interface/dictMapType'
3
4
 
4
5
  /**
5
6
  * Create by丁盼
@@ -8,9 +9,6 @@ import type { ISysDictDataCacheVo } from '../interface/ISysDictDataCacheVo'
8
9
  * 修改时间: 2024/11/3 上午9:11
9
10
  */
10
11
  // 定义包含map的整体类型
11
- interface dictMapType {
12
- [key: string]: ISysDictDataCacheVo[]
13
- }
14
12
  const basePath = '/api/system/dict/data/'
15
13
  export default {
16
14
  /**
@@ -8,11 +8,7 @@ import { onBeforeUnmount, ref } from 'vue'
8
8
  import type { ISysDictDataCacheVo } from '../interface/ISysDictDataCacheVo'
9
9
  import { ElMessage } from 'element-plus'
10
10
  import SysDictCacheApi from '../api/SysDictCacheApi.ts'
11
-
12
- // 定义包含map的整体类型
13
- export interface dictMapType {
14
- [key: string]: ISysDictDataCacheVo[]
15
- }
11
+ import type { dictMapType } from '../interface/dictMapType.ts'
16
12
 
17
13
  export default function useDictHooks(dictTypes: string[]) {
18
14
  const dictMap = ref<dictMapType>({})
@@ -0,0 +1,11 @@
1
+ import type { ISysDictDataCacheVo } from '../interface/ISysDictDataCacheVo.ts'
2
+
3
+ /**
4
+ * Create by丁盼
5
+ * 说明: dictMapType
6
+ * 创建时间: 2025/1/15 21:08
7
+ * 修改时间: 2025/1/15 21:08
8
+ */
9
+ export interface dictMapType {
10
+ [key: string]: ISysDictDataCacheVo[]
11
+ }