@utogether/udp-core 1.0.1-beta.1 → 1.0.1-beta.3

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 (93) hide show
  1. package/build/plugins.ts +6 -1
  2. package/dist/{403-Dp617CWX.js → 403-BuP9jvH9.js} +1 -1
  3. package/dist/{404-Cz_Axb6Y.js → 404-DfQk8kKl.js} +1 -1
  4. package/dist/{500-BGCtRNse.js → 500-OgROWdiZ.js} +1 -1
  5. package/dist/{AuthorityInfo-DGGfm7IS.js → AuthorityInfo-q2ksfkWH.js} +1 -1
  6. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BqccGW7v.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Bwsf6lMH.js} +1 -1
  7. package/dist/{Company-IV3GTnzY.js → Company-DgqowAxc.js} +3 -3
  8. package/dist/{CompanyPanel-qV-_VtoL.js → CompanyPanel-BNb1rUhD.js} +16 -16
  9. package/dist/{Department-B3W-OxW8.js → Department-Cl8CROSU.js} +3 -3
  10. package/dist/{DepartmentPanel-Cw3OWxE7.js → DepartmentPanel-D5VkqKeP.js} +1 -1
  11. package/dist/{DesignPanel-BFxR2fHJ.js → DesignPanel-BGvEusHC.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DljbeFba.js → DesignPanel.vue_vue_type_style_index_0_lang-BQF1uQ7w.js} +2 -2
  13. package/dist/{DictView-C-i7e4hZ.js → DictView-BnxfaOBv.js} +13 -12
  14. package/dist/InvOrganization-5y79ZLdY.js +66 -0
  15. package/dist/{Org-CA7vTDIF.js → Org-2oBAXN2r.js} +1 -1
  16. package/dist/{Preview-BlDMmpdR.js → Preview-BaGmXH7r.js} +1 -1
  17. package/dist/{ReportDefine-Cub_85LA.js → ReportDefine-DkQdBErt.js} +1 -1
  18. package/dist/{ReportDesign-hFhq5UVE.js → ReportDesign-DzB_A_G6.js} +2 -2
  19. package/dist/{ReportQuery-ChkWEyxT.js → ReportQuery-DRcMb6ya.js} +1 -1
  20. package/dist/{ReportQueryFrom-KVyD_8Dj.js → ReportQueryFrom-CeA9xhR4.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CLNODquq.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CgGtcs5V.js} +1 -1
  22. package/dist/{ReportTemplate-ag9NDvh2.js → ReportTemplate-qaiTMQuT.js} +1 -1
  23. package/dist/{Role-_q3lQ8CZ.js → Role-DsFulAjq.js} +3 -3
  24. package/dist/{RoleAssign-DZb9IRsm.js → RoleAssign-DMRdocpa.js} +3 -3
  25. package/dist/{RolePanel-CsLsz-Ds.js → RolePanel-B9POS_pg.js} +1 -1
  26. package/dist/{RolePanel-BQb1LlhD.js → RolePanel-wXVysDHM.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BrnRgHEk.js → RolePanel.vue_vue_type_script_setup_true_lang-CleVvkcY.js} +3 -3
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-cmW7zBLu.js → RolePanel.vue_vue_type_script_setup_true_lang-t6S_0zmJ.js} +1 -1
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js → ScrollPanel.vue_vue_type_style_index_0_lang-DlXUs0j9.js} +1 -1
  30. package/dist/{Staff-BSf9Ypbk.js → Staff-Cq4V7ruC.js} +3 -3
  31. package/dist/{StaffInfo-BNKasyMF.js → StaffInfo-CJDKMbud.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js → StaffInfo.vue_vue_type_script_setup_true_lang-DQ4DL1KY.js} +1 -1
  33. package/dist/{StaffPanel-Bpq0WVlH.js → StaffPanel-CG-uggdr.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js → StaffPanel.vue_vue_type_script_setup_true_lang-DAgN7zN2.js} +2 -2
  35. package/dist/{SysUser-FAABuNti.js → SysUser-kwnzRNdD.js} +2 -2
  36. package/dist/{SysUserPanel-PxJeOgHm.js → SysUserPanel-DTlZf3vk.js} +1 -1
  37. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BW6PlGjM.js} +1 -1
  38. package/dist/{SystemMenu-C-7NAGon.js → SystemMenu-BVT0n-L2.js} +21 -21
  39. package/dist/{UserInfo-ClXKtyGo.js → UserInfo-BbTQ9Zat.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js → UserInfo.vue_vue_type_style_index_0_lang-D_bpYDmI.js} +1 -1
  41. package/dist/{childView-C_HmDQNd.js → childView-BJbIhjmf.js} +1 -1
  42. package/dist/{childView-uUlBcTza.js → childView-DCsGFrG-.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-y0sDvYx5.js → childView.vue_vue_type_style_index_0_lang-BCDxpVoD.js} +1 -1
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js → childView.vue_vue_type_style_index_0_lang-CDtsalCm.js} +1 -1
  45. package/dist/{code-rule-AgCVDKFy.js → code-rule-DePU6cdp.js} +1 -1
  46. package/dist/core.es.js +1 -1
  47. package/dist/{cron-task-C6FgQxTi.js → cron-task-DUM1SIGL.js} +1 -1
  48. package/dist/{frameView-BDgISK7N.js → frameView-CEUTDtSm.js} +1 -1
  49. package/dist/img/l_img.svg +1 -1
  50. package/dist/img/minicolors.png +0 -0
  51. package/dist/img/v_img.svg +1 -1
  52. package/dist/{index-DzOzUkf6.js → index-ZdgOD7cF.js} +59 -48
  53. package/dist/{layoutView-yb3DV2DQ.js → layoutView-PCjwVwkX.js} +109 -108
  54. package/dist/{login-RRpljbkm.js → login-B1CjWVKu.js} +2 -2
  55. package/dist/{lov-view-C9-rjzZR.js → lov-view-D8wwkxFJ.js} +2 -2
  56. package/dist/{menuInfo-CzPQyFhp.js → menuInfo-B5JKVwrB.js} +1 -1
  57. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js → menuInfo.vue_vue_type_style_index_0_lang-CcM9WX4n.js} +97 -96
  58. package/dist/{pda-app-Dvy3U-b6.js → pda-app-DIa1p1Ww.js} +1 -1
  59. package/dist/{resource-Fy0lFkSV.js → resource-CCQ7Dd-5.js} +1 -1
  60. package/dist/{su-welcome-DYvSCUST.js → su-welcome-CLp9YaJa.js} +1 -1
  61. package/dist/{sys-config-DJ1vNQTy.js → sys-config-BBmf_SqF.js} +1 -1
  62. package/dist/udp-core.css +2 -2
  63. package/dist/{utogether-CjmJiHoE.js → utogether-Bkptx2lB.js} +1 -1
  64. package/package.json +18 -18
  65. package/src/App.vue +70 -70
  66. package/src/components/udp/form-upload.vue +71 -20
  67. package/src/components/udp/grid.vue +500 -0
  68. package/src/components/udp/index.ts +7 -4
  69. package/src/components/udp/lov.vue +410 -0
  70. package/src/components/udp/modal-form.vue +2 -2
  71. package/src/components/udp/modal-grid.vue +297 -0
  72. package/src/components/udp/utils.ts +379 -40
  73. package/src/layout/components/lay-navbar/index.vue +1 -1
  74. package/src/layout/components/lay-panel/index.vue +150 -150
  75. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  76. package/src/layout/components/lay-tag/index.vue +625 -625
  77. package/src/layout/layoutView.vue +215 -215
  78. package/src/main.ts +4 -3
  79. package/src/plugins/i18n/en.ts +291 -289
  80. package/src/plugins/i18n/zh.ts +338 -337
  81. package/src/plugins/vxe-table/index.ts +53 -46
  82. package/src/plugins/vxe-table/render.tsx +4 -2
  83. package/src/style/button.scss +85 -78
  84. package/src/style/tailwind.css +1 -68
  85. package/src/style/vxetable.scss +258 -256
  86. package/src/views/organization/company/CompanyPanel.vue +259 -259
  87. package/src/views/organization/inv-org/InvOrganization.vue +2 -3
  88. package/src/views/system/menu/SystemMenu.vue +197 -197
  89. package/src/views/system/menu/menuInfo.vue +372 -371
  90. package/src/views/udev/dict/DictView.vue +106 -106
  91. package/src/views/udev/lov/lov-view.vue +91 -91
  92. package/vite.config.ts +4 -1
  93. package/dist/InvOrganization-cfT6riGU.js +0 -260
@@ -1,46 +1,53 @@
1
- /*
2
- * @Author: levi7754 levi7754@163.com
3
- * @Date: 2024-06-05 14:32:03
4
- * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-07-16 15:36:56
6
- * @FilePath: /udp-front/packages/udp-core/src/plugins/vxe-table/index.ts
7
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
- */
9
- import 'xe-utils';
10
- import { merge } from 'xe-utils';
11
- import { geti18n, transformI18n } from '../i18n/index';
12
- // import { storageLocal } from '@utogether/utils';
13
- // import { VxetableRender } from '@utogether/utils';
14
- import { VxetableRender } from './render';
15
- import { getServiceApi } from '../../api';
16
-
17
- import VXETable, { VxeUI } from 'vxe-table';
18
- // import './render.tsx';
19
-
20
- // const dict = storageLocal.getItem('kLov');
21
- VxetableRender(VXETable, { serviceApi: getServiceApi(), i18n: transformI18n });
22
-
23
- // 全局默认参数
24
- const defaultConfig = {
25
- // 对组件内置的提示语进行国际化翻译
26
- // @ts-ignore
27
- i18n: (key, args) => geti18n().global.t(key, args),
28
- // 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
29
- translate(key) {
30
- // 例如,只翻译 "message." 开头的键值
31
- const NAMESPACED = ['message.', 'el.'];
32
- if (key && NAMESPACED.findIndex(v => key.includes(v)) !== -1) {
33
- return geti18n().global.t.call(geti18n().global.locale, key);
34
- }
35
- return key;
36
- }
37
- };
38
-
39
- export function setTableConfig(config = {}) {
40
- VXETable.setConfig(merge(defaultConfig, config));
41
- }
42
-
43
- export function setTheme(theme) {
44
- // 切换为暗黑主题
45
- VxeUI.setTheme(theme);
46
- }
1
+ /*
2
+ * @Author: levi7754 levi7754@163.com
3
+ * @Date: 2024-06-05 14:32:03
4
+ * @LastEditors: levi7754 levi7754@163.com
5
+ * @LastEditTime: 2025-07-21 11:37:34
6
+ * @FilePath: /udp-front/packages/udp-core/src/plugins/vxe-table/index.ts
7
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
+ */
9
+ import 'xe-utils';
10
+ import { merge } from 'xe-utils';
11
+ import { geti18n, transformI18n } from '../i18n/index';
12
+ // import { storageLocal } from '@utogether/utils';
13
+ // import { VxetableRender } from '@utogether/utils';
14
+ import { VxetableRender } from './render';
15
+ import { getServiceApi } from '../../api';
16
+
17
+ import VXETable, { VxeUI } from 'vxe-table';
18
+ // import './render.tsx';
19
+
20
+ // const dict = storageLocal.getItem('kLov');
21
+ VxetableRender(VXETable, { serviceApi: getServiceApi(), i18n: transformI18n });
22
+
23
+ // 全局默认参数
24
+ const defaultConfig = {
25
+ // 对组件内置的提示语进行国际化翻译
26
+ // @ts-ignore
27
+ i18n: (key, args) => geti18n().global.t(key, args),
28
+ // 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
29
+ translate(key) {
30
+ // 例如,只翻译 "message." 开头的键值
31
+ const NAMESPACED = ['message.', 'el.'];
32
+ if (key && NAMESPACED.findIndex(v => key.includes(v)) !== -1) {
33
+ return geti18n().global.t.call(geti18n().global.locale, key);
34
+ }
35
+ return key;
36
+ }
37
+ };
38
+
39
+ export function setTableConfig(config = {}) {
40
+ VXETable.setConfig(merge(defaultConfig, config));
41
+
42
+ VxeUI.interceptor.add('event.clearEdit', {
43
+ tableInterceptorMethod(params) {
44
+ const { $event } = params;
45
+ if ($event.target.className.indexOf('vxe-table--ignore-clear') > -1) return false;
46
+ }
47
+ });
48
+ }
49
+
50
+ export function setTheme(theme) {
51
+ // 切换为暗黑主题
52
+ VxeUI.setTheme(theme);
53
+ }
@@ -2,7 +2,7 @@
2
2
  * @Author: wei.li
3
3
  * @Date: 2021-12-01 09:18:50
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-07-14 18:17:16
5
+ * @LastEditTime: 2025-07-23 09:41:24
6
6
  * @Description: file content
7
7
  */
8
8
 
@@ -59,7 +59,7 @@ export const VxetableRender = (VXETable, { serviceApi, i18n }) => {
59
59
  * @param {*} val 目前的选中值
60
60
  */
61
61
  function onChange(val) {
62
- componentHook.selectChange(val, data, column.field, renderOpts, {
62
+ componentHook.selectChange(val, row, column.field, renderOpts, {
63
63
  column,
64
64
  datasource: 'row'
65
65
  });
@@ -471,6 +471,7 @@ export const VxetableRender = (VXETable, { serviceApi, i18n }) => {
471
471
  const { row, column } = params;
472
472
  const { props, events } = renderOpts;
473
473
  const componentHook = useComponent();
474
+ console.log('lov====');
474
475
  function onChange(record, displayField) {
475
476
  const { mapField, field, displayName, multiple } = props;
476
477
  if (!multiple) {
@@ -493,6 +494,7 @@ export const VxetableRender = (VXETable, { serviceApi, i18n }) => {
493
494
  <ut-lov
494
495
  record={row}
495
496
  mode="vxe"
497
+ transfer
496
498
  {...props}
497
499
  onChange={(v, f) => onChange(v, f)}
498
500
  onClear={() => onClear()}
@@ -1,78 +1,85 @@
1
- .vxe-button.size--mini.type--button {
2
- height: 25px;
3
- }
4
-
5
- .vxe-button.size--small.type--button {
6
- height: 25px;
7
- }
8
-
9
- .vxe-button.type--button.theme--u-cyan,
10
- .vxe-button.type--button.theme--u-cyan:hover {
11
- color: #fff;
12
- }
13
-
14
- .vxe-button.type--button.theme--u-cyan {
15
- background-color: #1cbbb4;
16
- }
17
-
18
- .vxe-button.type--button.theme--u-cyan:active {
19
- background-color: #39b54a;
20
- }
21
-
22
- // 禁用状态
23
- .vxe-button.type--button.theme--u-cyan.is--disabled {
24
- background-color: #69e4de;
25
- border-color: #69e4de;
26
- }
27
-
28
- .vxe-button.type--button.theme--u-color-shallow,
29
- .vxe-button.type--button.theme--u-color-shallow:hover {
30
- color: #fff;
31
- }
32
-
33
- .vxe-button.type--button.theme--u-color-shallow {
34
- background-color: #fbbd08;
35
- }
36
-
37
- .vxe-button.type--button.theme--u-color-shallow:active {
38
- background-color: #fff;
39
- }
40
-
41
- .layout-theme-default .vxe-button.type--button.theme--u-cyan:not(.is--disabled):hover {
42
- background-color: #40e0d0;
43
- border-color: #40e0d0;
44
- }
45
-
46
- .vxe-button.type--button:not(.is--disabled):hover {
47
- color: #fff !important;
48
-
49
- .vxe-button--icon {
50
- color: #4169e1;
51
- }
52
- }
53
-
54
- .u-color-royalBlue {
55
- color: #4169e1;
56
- }
57
-
58
- .u-color-turquoise {
59
- color: #40e0d0;
60
- }
61
-
62
- .el-dropdown {
63
- .el-dropdown__caret-button {
64
- margin-left: 0;
65
- border-top-left-radius: 0;
66
- border-bottom-left-radius: 0;
67
- }
68
-
69
- .el-button-group + .el-button {
70
- border-top-right-radius: 0 !important;
71
- border-bottom-right-radius: 0 !important;
72
- }
73
-
74
- .el-button:first-child {
75
- border-top-right-radius: 0 !important;
76
- border-bottom-right-radius: 0 !important;
77
- }
78
- }
1
+ .vxe-button.size--mini.type--button {
2
+ height: 25px;
3
+ }
4
+
5
+ .vxe-button.size--small.type--button {
6
+ height: 25px;
7
+ }
8
+
9
+ .vxe-button.type--button.theme--u-cyan,
10
+ .vxe-button.type--button.theme--u-cyan:hover {
11
+ color: #fff;
12
+ }
13
+
14
+ .vxe-button.type--button.theme--u-cyan {
15
+ background-color: #1cbbb4;
16
+ }
17
+
18
+ .vxe-button.type--button.theme--u-cyan:active {
19
+ background-color: #39b54a;
20
+ }
21
+
22
+ // 禁用状态
23
+ .vxe-button.type--button.theme--u-cyan.is--disabled {
24
+ background-color: #69e4de;
25
+ border-color: #69e4de;
26
+ }
27
+
28
+ .vxe-button.type--button.theme--u-color-shallow,
29
+ .vxe-button.type--button.theme--u-color-shallow:hover {
30
+ color: #fff;
31
+ }
32
+
33
+ .vxe-button.type--button.theme--u-color-shallow {
34
+ background-color: #fbbd08;
35
+ }
36
+
37
+ .vxe-button.type--button.theme--u-color-shallow:active {
38
+ background-color: #fff;
39
+ }
40
+
41
+ .layout-theme-default .vxe-button.type--button.theme--u-cyan:not(.is--disabled):hover {
42
+ background-color: #40e0d0;
43
+ border-color: #40e0d0;
44
+ }
45
+
46
+ .vxe-button.type--button:not(.is--disabled):hover {
47
+ color: #fff;
48
+
49
+ .vxe-button--icon,
50
+ .vxe-button--item {
51
+ color: inherit;
52
+ }
53
+ }
54
+
55
+ .vxe-button[name='favorite'].type--button:not(.is--disabled):hover {
56
+ .vxe-button--item {
57
+ color: var(--udp-theme-vxeColor);
58
+ }
59
+ }
60
+
61
+ .u-color-royalBlue {
62
+ color: #4169e1;
63
+ }
64
+
65
+ .u-color-turquoise {
66
+ color: #40e0d0;
67
+ }
68
+
69
+ .el-dropdown {
70
+ .el-dropdown__caret-button {
71
+ margin-left: 0;
72
+ border-top-left-radius: 0;
73
+ border-bottom-left-radius: 0;
74
+ }
75
+
76
+ .el-button-group + .el-button {
77
+ border-top-right-radius: 0 !important;
78
+ border-bottom-right-radius: 0 !important;
79
+ }
80
+
81
+ .el-button:first-child {
82
+ border-top-right-radius: 0 !important;
83
+ border-bottom-right-radius: 0 !important;
84
+ }
85
+ }
@@ -1,68 +1 @@
1
- /* @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- @layer components {
6
- .flex-c {
7
- @apply flex justify-center items-center;
8
- }
9
-
10
- .flex-ac {
11
- @apply flex justify-around items-center;
12
- }
13
-
14
- .flex-bc {
15
- @apply flex justify-between items-center;
16
- }
17
-
18
- .navbar-bg-hover {
19
- @apply dark:text-white dark:hover:!bg-[#242424];
20
- }
21
- } */
22
-
23
- @layer theme, base, components, utilities;
24
- @import 'tailwindcss/theme.css' layer(theme);
25
- @import 'tailwindcss/utilities.css' layer(utilities);
26
-
27
- @custom-variant dark (&:is(.dark *));
28
-
29
- @theme {
30
- --color-bg_color: var(--el-bg-color);
31
- --color-primary: var(--el-color-primary);
32
- --color-text_color_primary: var(--el-text-color-primary);
33
- --color-text_color_regular: var(--el-text-color-regular);
34
- }
35
-
36
- /*
37
- The default border color has changed to `currentColor` in Tailwind CSS v4,
38
- so we've added these compatibility styles to make sure everything still
39
- looks the same as it did with Tailwind CSS v3.
40
-
41
- If we ever want to remove these styles, we need to add an explicit border
42
- color utility to any element that depends on these defaults.
43
- */
44
- @layer base {
45
- *,
46
- ::after,
47
- ::before,
48
- ::backdrop,
49
- ::file-selector-button {
50
- border-color: var(--color-gray-200, currentColor);
51
- }
52
- }
53
-
54
- @utility flex-c {
55
- @apply flex justify-center items-center;
56
- }
57
-
58
- @utility flex-ac {
59
- @apply flex justify-around items-center;
60
- }
61
-
62
- @utility flex-bc {
63
- @apply flex justify-between items-center;
64
- }
65
-
66
- @utility navbar-bg-hover {
67
- @apply dark:text-white dark:hover:bg-[#242424]!;
68
- }
1
+ @import 'tailwindcss';