yxuse 2.0.36 → 2.0.37

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.
Files changed (66) hide show
  1. package/README.md +75 -75
  2. package/lib/dayjs.min.es.js.gz +0 -0
  3. package/lib/index.cjs.js.map +1 -1
  4. package/lib/index.cjs10.js.map +1 -1
  5. package/lib/index.cjs11.js.map +1 -1
  6. package/lib/index.cjs12.js.gz +0 -0
  7. package/lib/index.cjs12.js.map +1 -1
  8. package/lib/index.cjs13.js.map +1 -1
  9. package/lib/index.cjs2.js.map +1 -1
  10. package/lib/index.cjs3.js.map +1 -1
  11. package/lib/index.cjs4.js.map +1 -1
  12. package/lib/index.cjs5.js +3 -3
  13. package/lib/index.cjs5.js.gz +0 -0
  14. package/lib/index.cjs5.js.map +1 -1
  15. package/lib/index.cjs6.js +1 -1
  16. package/lib/index.cjs6.js.gz +0 -0
  17. package/lib/index.cjs6.js.map +1 -1
  18. package/lib/index.cjs7.js.gz +0 -0
  19. package/lib/index.cjs7.js.map +1 -1
  20. package/lib/index.cjs8.js.map +1 -1
  21. package/lib/index.es.js.map +1 -1
  22. package/lib/index.es10.js.map +1 -1
  23. package/lib/index.es11.js.map +1 -1
  24. package/lib/index.es12.js.gz +0 -0
  25. package/lib/index.es12.js.map +1 -1
  26. package/lib/index.es13.js.map +1 -1
  27. package/lib/index.es2.js.map +1 -1
  28. package/lib/index.es3.js.map +1 -1
  29. package/lib/index.es4.js.map +1 -1
  30. package/lib/index.es5.js +7 -15
  31. package/lib/index.es5.js.gz +0 -0
  32. package/lib/index.es5.js.map +1 -1
  33. package/lib/index.es6.js +5 -5
  34. package/lib/index.es6.js.gz +0 -0
  35. package/lib/index.es6.js.map +1 -1
  36. package/lib/index.es7.js.gz +0 -0
  37. package/lib/index.es7.js.map +1 -1
  38. package/lib/index.es8.js.map +1 -1
  39. package/lib/mqtt.min.cjs.js.gz +0 -0
  40. package/lib/mqtt.min.cjs.js.map +1 -1
  41. package/lib/mqtt.min.es.js.gz +0 -0
  42. package/lib/mqtt.min.es.js.map +1 -1
  43. package/lib/style.css +1 -1
  44. package/lib/style.css.gz +0 -0
  45. package/lib/version.json +12 -12
  46. package/lib/vue.runtime.esm-bundler.cjs.js.gz +0 -0
  47. package/lib/vue.runtime.esm-bundler.es.js.gz +0 -0
  48. package/package.json +176 -176
  49. package/types/api/modules/auth/index.d.ts +13 -13
  50. package/types/components/SearchForm/index.d.ts +3 -3
  51. package/types/components/SearchForm/index.vue.d.ts +2 -2
  52. package/types/components/YxForm/form.type.d.ts +183 -183
  53. package/types/components/YxForm/form.vaildator.d.ts +57 -57
  54. package/types/components/YxForm/form.vue.d.ts +66 -66
  55. package/types/components/YxFormV2/index.d.ts +3 -3
  56. package/types/components/YxFormV2/index.vue.d.ts +46 -46
  57. package/types/components/YxFormV2/type.d.ts +54 -54
  58. package/types/components/YxFrom/form.type.d.ts +179 -179
  59. package/types/components/YxFrom/form.vaildator.d.ts +57 -57
  60. package/types/components/YxFrom/form.vue.d.ts +66 -66
  61. package/types/components/YxFrom/index.d.ts +3 -3
  62. package/types/components/YxIcon/index.vue.d.ts +22 -22
  63. package/types/components/YxTable3/index.d.ts +1 -1
  64. package/types/components/YxTable3/src/index.d.ts +31 -31
  65. package/types/icons/index.d.ts +1 -1
  66. package/types/icons/src/index.d.ts +4 -4
package/README.md CHANGED
@@ -1,75 +1,75 @@
1
- <!--
2
- * @Author: WangXin
3
- * @Date: 2024-04-24 11:20:12
4
- * @LastEditors: WangXin
5
- * @LastEditTime: 2025-05-12 10:57:21
6
- * @FilePath: /yxuse/README.md
7
- * @Description:
8
- *
9
- * Copyright (c) ${2024} by YuXing, All Rights Reserved.
10
- -->
11
-
12
- # yxuse
13
-
14
- ## 更新日志
15
-
16
- ## 2025-05-12
17
-
18
- ### 3.0.50
19
-
20
- #### Features
21
-
22
- - Components:[YxTable] 操作栏 render,参数新增 index
23
-
24
- #### Bug fixes
25
-
26
- - utils:[http]修复请求无法显示错误信息的 bug
27
- - utils:[bc]修复在主应用下打开两个页面发送路由跳转的消息,子系统会同时进行路由跳转
28
-
29
- ## 2025-05-09
30
-
31
- ### 3.0.47
32
-
33
- #### Features
34
-
35
- - Components:[YxTable] 新增系统 title、logo 组件
36
-
37
- ## 2025-05-08
38
-
39
- ### 3.0.46
40
-
41
- ### 2.0.35
42
-
43
- #### Features
44
-
45
- - Components:[LogoTitle] 新增系统 title、logo 组件
46
-
47
- #### Bug fixes
48
-
49
- - utils:[http]修复去除国际化逻辑后,请求 401 后无法跳转登录页的 bug
50
-
51
- ## 2025-04-27
52
-
53
- ### 3.0.45
54
-
55
- #### Features
56
-
57
- - Components:[YxForm] 新增表单分组样式的自定义
58
-
59
- ### 3.0.44
60
-
61
- #### Features
62
-
63
- - Components:[YxTable]operate 操作栏新增自定义 className 配置
64
- - utils:[mqtt]新增 mqtt 的统一封装
65
- - utils:[websocket]新增 websocket 的封装
66
- - utils:[fecth]新增 fecth 请求的封装
67
- - docs:更新部分组件的文档
68
-
69
- #### Bug fixes
70
-
71
- - Components:[YxForm]修复在初始化时传入默认数据不生效的 bug
72
- - Components:[YxForm]修复类型提示
73
- - Components:[YxTable]修复类型提示和排序的 bug
74
- - utils:[translate]修复翻译的 bug
75
- - auth:[getUserRouter]获取当前系统的动态路由不再需要 viewConfig 配置,统一从权限配置取
1
+ <!--
2
+ * @Author: WangXin
3
+ * @Date: 2024-04-24 11:20:12
4
+ * @LastEditors: WangXin
5
+ * @LastEditTime: 2025-05-12 10:57:21
6
+ * @FilePath: /yxuse/README.md
7
+ * @Description:
8
+ *
9
+ * Copyright (c) ${2024} by YuXing, All Rights Reserved.
10
+ -->
11
+
12
+ # yxuse
13
+
14
+ ## 更新日志
15
+
16
+ ## 2025-05-12
17
+
18
+ ### 3.0.50
19
+
20
+ #### Features
21
+
22
+ - Components:[YxTable] 操作栏 render,参数新增 index
23
+
24
+ #### Bug fixes
25
+
26
+ - utils:[http]修复请求无法显示错误信息的 bug
27
+ - utils:[bc]修复在主应用下打开两个页面发送路由跳转的消息,子系统会同时进行路由跳转
28
+
29
+ ## 2025-05-09
30
+
31
+ ### 3.0.47
32
+
33
+ #### Features
34
+
35
+ - Components:[YxTable] 新增系统 title、logo 组件
36
+
37
+ ## 2025-05-08
38
+
39
+ ### 3.0.46
40
+
41
+ ### 2.0.35
42
+
43
+ #### Features
44
+
45
+ - Components:[LogoTitle] 新增系统 title、logo 组件
46
+
47
+ #### Bug fixes
48
+
49
+ - utils:[http]修复去除国际化逻辑后,请求 401 后无法跳转登录页的 bug
50
+
51
+ ## 2025-04-27
52
+
53
+ ### 3.0.45
54
+
55
+ #### Features
56
+
57
+ - Components:[YxForm] 新增表单分组样式的自定义
58
+
59
+ ### 3.0.44
60
+
61
+ #### Features
62
+
63
+ - Components:[YxTable]operate 操作栏新增自定义 className 配置
64
+ - utils:[mqtt]新增 mqtt 的统一封装
65
+ - utils:[websocket]新增 websocket 的封装
66
+ - utils:[fecth]新增 fecth 请求的封装
67
+ - docs:更新部分组件的文档
68
+
69
+ #### Bug fixes
70
+
71
+ - Components:[YxForm]修复在初始化时传入默认数据不生效的 bug
72
+ - Components:[YxForm]修复类型提示
73
+ - Components:[YxTable]修复类型提示和排序的 bug
74
+ - utils:[translate]修复翻译的 bug
75
+ - auth:[getUserRouter]获取当前系统的动态路由不再需要 viewConfig 配置,统一从权限配置取
Binary file
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../packages/index.ts"],"sourcesContent":["/*\n * @Author: WangXin\n * @Date: 2023-08-16 15:38:34\n * @LastEditors: WangXin\n * @LastEditTime: 2025-05-08 15:48:37\n * @FilePath: /yxuse/packages/index.ts\n * @Description:\n *\n * Copyright (c) 2023 by YuXing, All Rights Reserved.\n */\nexport * as utils from \"./utils\";\n\n// export * as icons from \"./icons\";\nexport * as yxIcon from \"./yxIcon\";\nexport * as api from \"./api\";\nexport * as theme from \"./theme\";\nexport * as components from \"./components\";\nexport * as translate from \"./translate\";\nexport * as yxi18n from \"./yxi18n\";\nexport * from \"./directives\";\nexport * from \"./hooks\";\nexport * from \"./app\";\nexport * from \"./bc\";\n//导出类型\nexport * from \"./components/type\";\nimport * as utils from \"./utils\";\n\n// import * as icons from \"./icons\";\nimport * as api from \"./api\";\nimport * as theme from \"./theme\";\nimport * as components from \"./components\";\nimport * as directives from \"./directives\";\nimport * as translate from \"./translate\";\nimport * as yxi18n from \"./yxi18n\";\nimport * as yxHooks from \"./hooks\";\nimport * as yxIcon from \"./yxIcon\";\nimport * as app from \"./app\";\nimport * as BC from \"./bc\";\nexport default {\n\tutils,\n\tapi,\n\tapp,\n\ttheme,\n\tcomponents,\n\tdirectives,\n\tBC,\n\ttranslate,\n\tyxi18n,\n\tyxHooks,\n\tyxIcon\n};\n"],"names":["index","utils","api","app","theme","components","directives","BC","translate","yxi18n","yxHooks","yxIcon"],"mappings":"sZAsCeA,EAAA,CACdC,MAAAA,EAAAA,OACAC,IAAAA,EAAAA,KAAAC,IACAA,EAAAA,IACAC,MAAAA,EAAAA,OACAC,WAAAA,EAAAA,YAAAC,WACAA,EAAAA,WAAAC,GACAA,EAAAA,GACAC,UAAAA,EAAAA,WACAC,OAAAA,EAAAA,QAAAC,QACAA,EAAAA,QACAC,OAAAA,EAAAA"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../packages/index.ts"],"sourcesContent":["/*\r\n * @Author: WangXin\r\n * @Date: 2023-08-16 15:38:34\r\n * @LastEditors: WangXin\r\n * @LastEditTime: 2025-05-08 15:48:37\r\n * @FilePath: /yxuse/packages/index.ts\r\n * @Description:\r\n *\r\n * Copyright (c) 2023 by YuXing, All Rights Reserved.\r\n */\r\nexport * as utils from \"./utils\";\r\n\r\n// export * as icons from \"./icons\";\r\nexport * as yxIcon from \"./yxIcon\";\r\nexport * as api from \"./api\";\r\nexport * as theme from \"./theme\";\r\nexport * as components from \"./components\";\r\nexport * as translate from \"./translate\";\r\nexport * as yxi18n from \"./yxi18n\";\r\nexport * from \"./directives\";\r\nexport * from \"./hooks\";\r\nexport * from \"./app\";\r\nexport * from \"./bc\";\r\n//导出类型\r\nexport * from \"./components/type\";\r\nimport * as utils from \"./utils\";\r\n\r\n// import * as icons from \"./icons\";\r\nimport * as api from \"./api\";\r\nimport * as theme from \"./theme\";\r\nimport * as components from \"./components\";\r\nimport * as directives from \"./directives\";\r\nimport * as translate from \"./translate\";\r\nimport * as yxi18n from \"./yxi18n\";\r\nimport * as yxHooks from \"./hooks\";\r\nimport * as yxIcon from \"./yxIcon\";\r\nimport * as app from \"./app\";\r\nimport * as BC from \"./bc\";\r\nexport default {\r\n\tutils,\r\n\tapi,\r\n\tapp,\r\n\ttheme,\r\n\tcomponents,\r\n\tdirectives,\r\n\tBC,\r\n\ttranslate,\r\n\tyxi18n,\r\n\tyxHooks,\r\n\tyxIcon\r\n};\r\n"],"names":["index","utils","api","app","theme","components","directives","BC","translate","yxi18n","yxHooks","yxIcon"],"mappings":"sZAsCeA,EAAA,CACdC,MAAAA,EAAAA,OACAC,IAAAA,EAAAA,KAAAC,IACAA,EAAAA,IACAC,MAAAA,EAAAA,OACAC,WAAAA,EAAAA,YAAAC,WACAA,EAAAA,WAAAC,GACAA,EAAAA,GACAC,UAAAA,EAAAA,WACAC,OAAAA,EAAAA,QAAAC,QACAA,EAAAA,QACAC,OAAAA,EAAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs10.js","sources":["../packages/app/index.ts"],"sourcesContent":["/*\n * @Author: WangXin\n * @Date: 2024-09-02 14:03:25\n * @LastEditors: WangXin\n * @LastEditTime: 2024-09-02 15:40:00\n * @FilePath: /yxuse/packages/app/index.ts\n * @Description:\n *\n * Copyright (c) ${2024} by YuXing, All Rights Reserved.\n */\n// export const installWebApp = async (systemKey?: string, lang?: string, callback?: Function) => {\n// \twindow.__YUXING_APP_ENVIRONMENT__ = true;\n// \tconsole.log(\"当前的主题是\", getCurThemeCssVar(), getCurTheme());\n// \tinstallCssVarInSystemTheme();\n// \tconst langStr = await getLang();\n// \tawait initTranslate({ to: lang ? langStr : lang || \"zh\", systemKey });\n// \t//注册BC\n// \tBC.onmessage = event => {\n// \t\tconst data = JSON.parse(event.data);\n// \t\tif (data.type === \"theme\") {\n// \t\t\tconsole.log(\"监听到其他系统切换主题收到的信息\", data.data);\n// \t\t\tconst { themeCssVar, themeId, themeUrl } = data.data;\n// \t\t\t// setCssVar(themeUrl);\n// \t\t\tsaveCssVar({ themeCssVar, themeId });\n// \t\t\tinstallCssVarInSystemTheme(themeCssVar);\n// \t\t}\n// \t\tif (data.type === \"lang\") {\n// \t\t\tconsole.log(\"监听到其他系统切换语言\");\n// \t\t\tlocation.reload();\n// \t\t}\n// \t};\n// \tcallback && callback();\n// };\n\nexport const isWebApp = (key = \"isWebApp\") => {\n\tconst url = new URLSearchParams(window.location.href.split(\"?\")[1]);\n\tconst params = Object.fromEntries(url.entries());\n\treturn params[key] && +params[key] ? true : false;\n};\n"],"names":["isWebApp","key","url","URLSearchParams","window","location","href","split","params","Object","fromEntries","entries"],"mappings":"aAkCa,MAAAA,EAAW,CAACC,EAAM,cACxB,MAAAC,EAAM,IAAIC,gBAAgBC,OAAOC,SAASC,KAAKC,MAAM,KAAK,IAC1DC,EAASC,OAAOC,YAAYR,EAAIS,WACtC,SAAOH,EAAOP,MAASO,EAAOP,GAAc"}
1
+ {"version":3,"file":"index.cjs10.js","sources":["../packages/app/index.ts"],"sourcesContent":["/*\r\n * @Author: WangXin\r\n * @Date: 2024-09-02 14:03:25\r\n * @LastEditors: WangXin\r\n * @LastEditTime: 2024-09-02 15:40:00\r\n * @FilePath: /yxuse/packages/app/index.ts\r\n * @Description:\r\n *\r\n * Copyright (c) ${2024} by YuXing, All Rights Reserved.\r\n */\r\n// export const installWebApp = async (systemKey?: string, lang?: string, callback?: Function) => {\r\n// \twindow.__YUXING_APP_ENVIRONMENT__ = true;\r\n// \tconsole.log(\"当前的主题是\", getCurThemeCssVar(), getCurTheme());\r\n// \tinstallCssVarInSystemTheme();\r\n// \tconst langStr = await getLang();\r\n// \tawait initTranslate({ to: lang ? langStr : lang || \"zh\", systemKey });\r\n// \t//注册BC\r\n// \tBC.onmessage = event => {\r\n// \t\tconst data = JSON.parse(event.data);\r\n// \t\tif (data.type === \"theme\") {\r\n// \t\t\tconsole.log(\"监听到其他系统切换主题收到的信息\", data.data);\r\n// \t\t\tconst { themeCssVar, themeId, themeUrl } = data.data;\r\n// \t\t\t// setCssVar(themeUrl);\r\n// \t\t\tsaveCssVar({ themeCssVar, themeId });\r\n// \t\t\tinstallCssVarInSystemTheme(themeCssVar);\r\n// \t\t}\r\n// \t\tif (data.type === \"lang\") {\r\n// \t\t\tconsole.log(\"监听到其他系统切换语言\");\r\n// \t\t\tlocation.reload();\r\n// \t\t}\r\n// \t};\r\n// \tcallback && callback();\r\n// };\r\n\r\nexport const isWebApp = (key = \"isWebApp\") => {\r\n\tconst url = new URLSearchParams(window.location.href.split(\"?\")[1]);\r\n\tconst params = Object.fromEntries(url.entries());\r\n\treturn params[key] && +params[key] ? true : false;\r\n};\r\n"],"names":["isWebApp","key","url","URLSearchParams","window","location","href","split","params","Object","fromEntries","entries"],"mappings":"aAkCa,MAAAA,EAAW,CAACC,EAAM,cACxB,MAAAC,EAAM,IAAIC,gBAAgBC,OAAOC,SAASC,KAAKC,MAAM,KAAK,IAC1DC,EAASC,OAAOC,YAAYR,EAAIS,WACtC,SAAOH,EAAOP,MAASO,EAAOP,GAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs11.js","sources":["../packages/hooks/useTime/index.ts"],"sourcesContent":["/*\n * @Author: WangXin\n * @Date: 2024-04-07 09:50:34\n * @LastEditors: WangXin\n * @LastEditTime: 2025-04-25 14:50:40\n * @FilePath: /yxuse/packages/hooks/useTime/index.ts\n * @Description:\n *\n * Copyright (c) 2024 by YuXing, All Rights Reserved.\n */\nimport { ref, reactive, computed } from \"vue\";\nimport dayjs from \"dayjs\";\nconst time = ref(\"\");\nlet _timer: any;\nexport const useTime = () => {\n\tconst timedExecution = () => {\n\t\t_timer = setTimeout(() => {\n\t\t\ttime.value = dayjs().format(\"YYYY-MM-DD HH:mm:ss\");\n\t\t\t_timer && clearTimeout(_timer);\n\t\t\ttimedExecution();\n\t\t}, 1000);\n\t};\n\ttimedExecution();\n\treturn { time };\n};\n"],"names":["time","ref","_timer","timedExecution","setTimeout","value","dayjs","format","clearTimeout"],"mappings":"iGAYMA,EAAOC,MAAI,IACjB,IAAIC,kBACmB,KACtB,MAAMC,EAAiB,KACtBD,EAASE,YAAW,KACnBJ,EAAKK,MAAQC,EAAAA,QAAQC,OAAO,uBAC5BL,GAAUM,aAAaN,GACRC,GAAA,GACb,IAAI,EAGR,OADeA,IACR,CAAEH,OAAK"}
1
+ {"version":3,"file":"index.cjs11.js","sources":["../packages/hooks/useTime/index.ts"],"sourcesContent":["/*\r\n * @Author: WangXin\r\n * @Date: 2024-04-07 09:50:34\r\n * @LastEditors: WangXin\r\n * @LastEditTime: 2025-04-25 14:50:40\r\n * @FilePath: /yxuse/packages/hooks/useTime/index.ts\r\n * @Description:\r\n *\r\n * Copyright (c) 2024 by YuXing, All Rights Reserved.\r\n */\r\nimport { ref, reactive, computed } from \"vue\";\r\nimport dayjs from \"dayjs\";\r\nconst time = ref(\"\");\r\nlet _timer: any;\r\nexport const useTime = () => {\r\n\tconst timedExecution = () => {\r\n\t\t_timer = setTimeout(() => {\r\n\t\t\ttime.value = dayjs().format(\"YYYY-MM-DD HH:mm:ss\");\r\n\t\t\t_timer && clearTimeout(_timer);\r\n\t\t\ttimedExecution();\r\n\t\t}, 1000);\r\n\t};\r\n\ttimedExecution();\r\n\treturn { time };\r\n};\r\n"],"names":["time","ref","_timer","timedExecution","setTimeout","value","dayjs","format","clearTimeout"],"mappings":"iGAYMA,EAAOC,MAAI,IACjB,IAAIC,kBACmB,KACtB,MAAMC,EAAiB,KACtBD,EAASE,YAAW,KACnBJ,EAAKK,MAAQC,EAAAA,QAAQC,OAAO,uBAC5BL,GAAUM,aAAaN,GACRC,GAAA,GACb,IAAI,EAGR,OADeA,IACR,CAAEH,OAAK"}
Binary file