@utogether/udp-core 1.0.1-beta.8 → 1.0.1-beta.9

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 (74) hide show
  1. package/dist/{403-Cjzd1bv9.js → 403-BOzKHdlm.js} +1 -1
  2. package/dist/{404-CJ-3SXgP.js → 404-uwgt4Nll.js} +1 -1
  3. package/dist/{500-CQ65MvIK.js → 500-4HBf6V9m.js} +1 -1
  4. package/dist/{AuthorityInfo-BdISFrap.js → AuthorityInfo-DvbIh1vT.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DsLG5slc.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BlCPvwXU.js} +1 -1
  6. package/dist/{Company-Mj-z1hNb.js → Company-D7Q9BFmr.js} +3 -3
  7. package/dist/{CompanyPanel-BNXZ7ER3.js → CompanyPanel-C0-PJlrt.js} +1 -1
  8. package/dist/{Department-C4ygVbSP.js → Department-h2hlXACv.js} +3 -3
  9. package/dist/{DepartmentPanel-Bk96mDlD.js → DepartmentPanel-B6hDEQpG.js} +1 -1
  10. package/dist/{DesignPanel-Bwx2QwMM.js → DesignPanel-cS58-1v9.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-B3OjJTHG.js → DesignPanel.vue_vue_type_style_index_0_lang-LdvLC8VU.js} +2 -2
  12. package/dist/{DictView-DE3jnxnq.js → DictView-T3TmpBa8.js} +57 -44
  13. package/dist/{InvOrganization-Drce3xUC.js → InvOrganization-BVuOhzbt.js} +1 -1
  14. package/dist/{Org-C42D9lDj.js → Org-CnCBDGKF.js} +1 -1
  15. package/dist/{Preview-CCXoRvWF.js → Preview-BaktKXB1.js} +1 -1
  16. package/dist/{ReportDefine-BWsExcQU.js → ReportDefine-5Rb0PO9A.js} +1 -1
  17. package/dist/{ReportDesign-BTzpUpGj.js → ReportDesign-DYdkVREA.js} +2 -2
  18. package/dist/{ReportQuery-eoSmPXzc.js → ReportQuery-BwhzIXMt.js} +1 -1
  19. package/dist/{ReportQueryFrom-D4YlI5jl.js → ReportQueryFrom-PHtWwlOe.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-DPDGKW9a.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BE5yZNPM.js} +1 -1
  21. package/dist/{ReportTemplate-BTa2YWq0.js → ReportTemplate-DaadVXIi.js} +1 -1
  22. package/dist/{Role-BTGB91P1.js → Role-Dtg3nAmG.js} +3 -3
  23. package/dist/{RoleAssign-BBSY6bYM.js → RoleAssign-DEGtLssH.js} +3 -3
  24. package/dist/{RolePanel-DNDI7e0g.js → RolePanel-CT7BTPmy.js} +1 -1
  25. package/dist/{RolePanel-BaTuyeVC.js → RolePanel-DpUzfE_o.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-QUeAQHrg.js → RolePanel.vue_vue_type_script_setup_true_lang-Dg2A6DJu.js} +3 -3
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BCwAp_1a.js → RolePanel.vue_vue_type_script_setup_true_lang-Xyo0YEI0.js} +1 -1
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-nqrbOaQP.js → ScrollPanel.vue_vue_type_style_index_0_lang-CyutzDZS.js} +1 -1
  29. package/dist/{Staff-4dbkOqzl.js → Staff-_NlAGkrh.js} +3 -3
  30. package/dist/{StaffInfo-xFAMTWgD.js → StaffInfo-DVgUvVgd.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CocRlLsO.js → StaffInfo.vue_vue_type_script_setup_true_lang-C8hmlFgX.js} +1 -1
  32. package/dist/{StaffPanel-Cx-8MHBz.js → StaffPanel-DKNZE3IE.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B3wfpxel.js → StaffPanel.vue_vue_type_script_setup_true_lang-BOOO6Cek.js} +2 -2
  34. package/dist/{SysUser-BHpgPXsI.js → SysUser-kQUf7XKz.js} +2 -2
  35. package/dist/{SysUserPanel-DH79Lsnm.js → SysUserPanel-C191uX3U.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BONl2R1a.js → SysUserPanel.vue_vue_type_script_setup_true_lang-SwNbAEvW.js} +1 -1
  37. package/dist/{SystemMenu-C2JbVgyr.js → SystemMenu-DwuSvHnj.js} +2 -2
  38. package/dist/{UserInfo-Efo-_yRo.js → UserInfo-DIsInFld.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DnjjBjMU.js → UserInfo.vue_vue_type_style_index_0_lang-CnvGdbej.js} +1 -1
  40. package/dist/{childView-D7U7qh_A.js → childView-3Bs2UBEw.js} +1 -1
  41. package/dist/{childView-wFMGHGiX.js → childView-BawyULD7.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-w2CkZij-.js → childView.vue_vue_type_style_index_0_lang-DWIFCX3X.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-Bshn4N8Y.js → childView.vue_vue_type_style_index_0_lang-YpWF-p2F.js} +1 -1
  44. package/dist/{code-rule-B5dIxV6g.js → code-rule-DVaYcn8S.js} +1 -1
  45. package/dist/core.es.js +1 -1
  46. package/dist/{cron-task-DWGtihrw.js → cron-task-xuzP-BpE.js} +1 -1
  47. package/dist/{frameView-DF2mXAwO.js → frameView-Cudt06qS.js} +1 -1
  48. package/dist/index-CKnq5xIa.js +2623 -0
  49. package/dist/{layoutView-DUUKW0KX.js → layoutView-BlFTV2jX.js} +2 -2
  50. package/dist/{login-ByEoQ2HH.js → login-CpKykfdf.js} +2 -2
  51. package/dist/{lov-view-DqD__3-w.js → lov-view-B2HaxyMs.js} +2 -2
  52. package/dist/{menuInfo-a7jPwS1r.js → menuInfo-BxCTJ1VW.js} +1 -1
  53. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-ZzGrkylA.js → menuInfo.vue_vue_type_style_index_0_lang-CLOPNeUW.js} +1 -1
  54. package/dist/{pda-app-EP9d0Ypd.js → pda-app-DPsAFNiw.js} +8 -10
  55. package/dist/{resource-eughqxkP.js → resource-Dibb7t8u.js} +1 -1
  56. package/dist/{su-welcome-98GLKyZM.js → su-welcome-DejR0KkM.js} +1 -1
  57. package/dist/{sys-config-gs16tgwA.js → sys-config-DiySRWns.js} +1 -1
  58. package/dist/udp-core.css +2 -2
  59. package/dist/{utogether-C4Dd2epc.js → utogether-Dct_14Zk.js} +1 -1
  60. package/package.json +1 -1
  61. package/src/components/udp/form-upload.vue +375 -76
  62. package/src/components/udp/form.vue +12 -7
  63. package/src/components/udp/lov.vue +5 -27
  64. package/src/components/udp/upload.vue +1 -3
  65. package/src/components/udp/utils.ts +9 -3
  66. package/src/main.ts +119 -119
  67. package/src/plugins/vxe-table/index.ts +1 -1
  68. package/src/plugins/vxe-table/render.tsx +956 -896
  69. package/src/style/vxetable.scss +6 -10
  70. package/src/utils/udp/useRender.ts +17 -6
  71. package/src/views/uapp/pda/pda-app.vue +208 -207
  72. package/src/views/udev/dict/DictView.vue +7 -0
  73. package/vite.config.ts +2 -1
  74. package/dist/index-VU6c04nN.js +0 -4531
@@ -2,7 +2,7 @@
2
2
  * @Author: levi7754 levi7754@163.com
3
3
  * @Date: 2025-07-14 17:38:38
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-07-30 15:00:49
5
+ * @LastEditTime: 2025-08-21 10:57:00
6
6
  * @FilePath: \udp-front\packages\udp-core\src\components\udp\utils.ts
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  */
@@ -228,8 +228,10 @@ export const getExportConfig = attrs => {
228
228
  export const getToolBarConfig = (data, props, attrs, hasAuthority) => {
229
229
  const refreshOptions = {
230
230
  icon: 'ri-refresh-line',
231
+ code: 'query',
231
232
  iconLoading: 'vxe-icon-spinner roll vxe-loading--default-icon'
232
233
  };
234
+ debugger;
233
235
  // 不可编辑时
234
236
  if (!props.editable) {
235
237
  data.editConfig.editable = props.editable;
@@ -242,7 +244,9 @@ export const getToolBarConfig = (data, props, attrs, hasAuthority) => {
242
244
  enabled: hasExport,
243
245
  refreshOptions,
244
246
  exportOptions: { icon: 'ri-download-2-line', code: 'export' },
245
- customOptions: !!attrs.gridId,
247
+ export: hasExport,
248
+ custom: !!attrs.gridId,
249
+ refresh: true,
246
250
  perfect: true
247
251
  };
248
252
  return data;
@@ -283,8 +287,10 @@ export const getToolBarConfig = (data, props, attrs, hasAuthority) => {
283
287
  buttons,
284
288
  enabled: true,
285
289
  refreshOptions,
286
- customOptions: !!attrs.gridId,
290
+ custom: !!attrs.gridId,
287
291
  exportOptions: exportBtn,
292
+ export: hasExport,
293
+ refresh: true,
288
294
  perfect: true
289
295
  };
290
296
  return data;
package/src/main.ts CHANGED
@@ -1,119 +1,119 @@
1
- /*
2
- * @Author: levi7754 levi7754@163.com
3
- * @Date: 2025-07-25 13:38:20
4
- * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-08-11 16:55:33
6
- * @FilePath: \udp-front\packages\udp-core\src\main.ts
7
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
- */
9
- /*
10
- * @Author: wei.li
11
- * @Date: 2022-10-18 18:13:54
12
- * @LastEditors: levi7754 levi7754@163.com
13
- * @LastEditTime: 2025-07-31 17:17:32
14
- * @Description: file content
15
- */
16
- import { createApp, type Directive } from 'vue';
17
- import App from './App.vue';
18
- // import router from './router';
19
- import { setViews } from './router';
20
- import { setupStore } from './store';
21
- import { setConfig, setSystemEnv } from './config';
22
- import { useI18n } from '../src/plugins/i18n';
23
- import { setTableConfig } from '../src/plugins/vxe-table';
24
- import { injectResponsiveStorage } from './utils/storage';
25
- import hasAuthority from './utils/authority';
26
- import { getServiceApi, getBaseURL, setRouter } from './api';
27
-
28
- import 'nprogress/nprogress.css';
29
- // 一定要在main.ts中导入tailwind.css,防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
30
- import './style/tailwind.css';
31
- // // 引入重置样式
32
- import './style/reset.scss';
33
- // 导入公共样式
34
- import './style/index.scss';
35
-
36
- import 'viewerjs/dist/viewer.css';
37
-
38
- import VueViewer from 'v-viewer';
39
-
40
- // import SuTable from './components/SuTable/SuTable.vue';
41
-
42
- import {
43
- // UtButton,
44
- // utLov2,
45
- // UGrid,
46
- // UtDivider,
47
- // UtModalForm2,
48
- // FormUpload2
49
- // UtForm2,
50
- // UtGrid2,
51
- // UtContent,
52
- UtModalGrid2
53
- // UtUpload2
54
- // UtIconSelect,
55
- // UtCalendar
56
- // uAttachment
57
- } from './components/udp';
58
-
59
- const app = createApp(App);
60
-
61
- // 全局注册`@iconify/vue`图标库
62
- import { IconifyIconOffline, FontIcon } from './components/ReIcon';
63
- // 全局注册`vue-tippy`
64
- import 'tippy.js/dist/tippy.css';
65
- import 'tippy.js/animations/perspective.css';
66
- import VueTippy from 'vue-tippy';
67
-
68
- app.use(VueTippy, {
69
- defaultProps: { animation: 'perspective' }
70
- });
71
-
72
- // 自定义指令
73
- import * as directives from './directives';
74
-
75
- const setGlobal = app => {
76
- app.config.globalProperties.$hasAuthority = hasAuthority;
77
- app.config.globalProperties.$serviceApi = getServiceApi();
78
- app.config.globalProperties.$url = getBaseURL();
79
- };
80
-
81
- const setGlobalDirective = app => {
82
- Object.keys(directives).forEach(key => {
83
- app.directive(key, (directives as { [key: string]: Directive })[key]);
84
- });
85
- };
86
-
87
- const init = ({ router, config, lang, views, env, tableConfig }) => {
88
- setViews(views, router);
89
- app.use(router);
90
- setRouter(router);
91
- setConfig(app, config);
92
- setSystemEnv(env);
93
- setTableConfig(tableConfig);
94
- return new Promise(resolve => {
95
- useI18n(app, lang);
96
- app.component('IconifyIconOffline', IconifyIconOffline);
97
- app.component('FontIcon', FontIcon);
98
- // app.component('uAttachment', uAttachment).component('UGrid', UGrid);
99
- // .component('UtDivider', UtDivider)
100
- // app.component('UtModalForm2', UtModalForm2);
101
- // app.component('UtGrid2', UtGrid2);
102
- // app.component('UtForm2', UtForm2);
103
- app.component('UtModalGrid2', UtModalGrid2);
104
- // .component('UtIconSelect', UtIconSelect)
105
- // app.component('UtUpload2', UtUpload2);
106
- // .component('UtCalendar', UtCalendar)
107
- // .component('UtModalGrid', UtModalGrid);
108
- app.use(VueViewer, { defaultOptions: { zIndex: 9999 } });
109
- setGlobal(app);
110
- setGlobalDirective(app);
111
- // 全局组件
112
- setupStore(app);
113
- injectResponsiveStorage(app, config);
114
- const result = { app, router };
115
- resolve(result);
116
- });
117
- };
118
-
119
- export default init;
1
+ /*
2
+ * @Author: levi7754 levi7754@163.com
3
+ * @Date: 2025-07-25 13:38:20
4
+ * @LastEditors: levi7754 levi7754@163.com
5
+ * @LastEditTime: 2025-08-21 17:15:41
6
+ * @FilePath: \udp-front\packages\udp-core\src\main.ts
7
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
+ */
9
+ /*
10
+ * @Author: wei.li
11
+ * @Date: 2022-10-18 18:13:54
12
+ * @LastEditors: levi7754 levi7754@163.com
13
+ * @LastEditTime: 2025-07-31 17:17:32
14
+ * @Description: file content
15
+ */
16
+ import { createApp, type Directive } from 'vue';
17
+ import App from './App.vue';
18
+ // import router from './router';
19
+ import { setViews } from './router';
20
+ import { setupStore } from './store';
21
+ import { setConfig, setSystemEnv } from './config';
22
+ import { useI18n } from '../src/plugins/i18n';
23
+ import { setTableConfig } from '../src/plugins/vxe-table';
24
+ import { injectResponsiveStorage } from './utils/storage';
25
+ import hasAuthority from './utils/authority';
26
+ import { getServiceApi, getBaseURL, setRouter } from './api';
27
+
28
+ import 'nprogress/nprogress.css';
29
+ // 一定要在main.ts中导入tailwind.css,防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
30
+ import './style/tailwind.css';
31
+ // // 引入重置样式
32
+ import './style/reset.scss';
33
+ // 导入公共样式
34
+ import './style/index.scss';
35
+
36
+ import 'viewerjs/dist/viewer.css';
37
+
38
+ import VueViewer from 'v-viewer';
39
+
40
+ // import SuTable from './components/SuTable/SuTable.vue';
41
+
42
+ // import {
43
+ // UtButton,
44
+ // utLov2,
45
+ // UGrid,
46
+ // UtDivider,
47
+ // UtModalForm2,
48
+ // FormUpload2,
49
+ // UtForm2
50
+ // UtGrid2
51
+ // UtContent,
52
+ // UtModalGrid2
53
+ // UtUpload2
54
+ // UtIconSelect,
55
+ // UtCalendar
56
+ // uAttachment
57
+ // } from './components/udp';
58
+
59
+ const app = createApp(App);
60
+
61
+ // 全局注册`@iconify/vue`图标库
62
+ import { IconifyIconOffline, FontIcon } from './components/ReIcon';
63
+ // 全局注册`vue-tippy`
64
+ import 'tippy.js/dist/tippy.css';
65
+ import 'tippy.js/animations/perspective.css';
66
+ import VueTippy from 'vue-tippy';
67
+
68
+ app.use(VueTippy, {
69
+ defaultProps: { animation: 'perspective' }
70
+ });
71
+
72
+ // 自定义指令
73
+ import * as directives from './directives';
74
+
75
+ const setGlobal = app => {
76
+ app.config.globalProperties.$hasAuthority = hasAuthority;
77
+ app.config.globalProperties.$serviceApi = getServiceApi();
78
+ app.config.globalProperties.$url = getBaseURL();
79
+ };
80
+
81
+ const setGlobalDirective = app => {
82
+ Object.keys(directives).forEach(key => {
83
+ app.directive(key, (directives as { [key: string]: Directive })[key]);
84
+ });
85
+ };
86
+
87
+ const init = ({ router, config, lang, views, env, tableConfig }) => {
88
+ setViews(views, router);
89
+ app.use(router);
90
+ setRouter(router);
91
+ setConfig(app, config);
92
+ setSystemEnv(env);
93
+ setTableConfig(tableConfig);
94
+ return new Promise(resolve => {
95
+ useI18n(app, lang);
96
+ app.component('IconifyIconOffline', IconifyIconOffline);
97
+ app.component('FontIcon', FontIcon);
98
+ // app.component('uAttachment', uAttachment).component('UGrid', UGrid);
99
+ // .component('UtDivider', UtDivider)
100
+ // app.component('UtModalForm2', UtModalForm2);
101
+ // app.component('UtGrid2', UtGrid2);
102
+ // app.component('UtForm2', UtForm2);
103
+ // app.component('UtModalGrid2', UtModalGrid2);
104
+ // .component('UtIconSelect', UtIconSelect)
105
+ // app.component('FormUpload2', FormUpload2);
106
+ // .component('UtCalendar', UtCalendar)
107
+ // .component('UtModalGrid', UtModalGrid);
108
+ app.use(VueViewer, { defaultOptions: { zIndex: 9999 } });
109
+ setGlobal(app);
110
+ setGlobalDirective(app);
111
+ // 全局组件
112
+ setupStore(app);
113
+ injectResponsiveStorage(app, config);
114
+ const result = { app, router };
115
+ resolve(result);
116
+ });
117
+ };
118
+
119
+ export default init;
@@ -2,7 +2,7 @@
2
2
  * @Author: levi7754 levi7754@163.com
3
3
  * @Date: 2024-06-05 14:32:03
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-08-15 10:01:28
5
+ * @LastEditTime: 2025-08-18 22:04:11
6
6
  * @FilePath: /udp-front/packages/udp-core/src/plugins/vxe-table/index.ts
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  */