@utogether/udp-core 2.0.0-beta.23 → 2.0.0-beta.25
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/403-QwBKrRZE.js +72 -0
- package/dist/404-Cr7MbzNV.js +72 -0
- package/dist/500-B7kCOeIA.js +77 -0
- package/dist/AuthorityInfo-Dwml2K4S.js +91 -0
- package/dist/AuthorityPanel-DzPhsPpa.js +98 -0
- package/dist/Company-BhOlvl7Q.js +21 -0
- package/dist/CompanyPanel-ByhY5-Sq.js +199 -0
- package/dist/DataSet-CuGZcKC-.js +141 -0
- package/dist/Department-QvngN63N.js +21 -0
- package/dist/DepartmentPanel-BCXqC39J.js +2 -0
- package/dist/DepartmentPanel-DntGycxr.js +242 -0
- package/dist/DesignPanel-BMN4DZ0R.js +1196 -0
- package/dist/DictView-ERFqZ5VD.js +100 -0
- package/dist/File-WJXjGYxr.js +89 -0
- package/dist/InvOrganization-BwMmD8Ua.js +76 -0
- package/dist/Org-HgnOWubi.js +76 -0
- package/dist/Preview-CVZdnHB1.js +45 -0
- package/dist/ReIcon-DecitXmg.js +413 -0
- package/dist/ReportDefine-BgLM-Rjk.js +10 -0
- package/dist/ReportDesign-CjfTyyy_.js +158 -0
- package/dist/ReportQuery-CP-E0Puv.js +101 -0
- package/dist/ReportQueryFrom-D7SPPAps.js +198 -0
- package/dist/ReportTemplate-DE25zc1f.js +162 -0
- package/dist/Role-K7v_ZhFE.js +21 -0
- package/dist/RoleAssign-C16fjLaX.js +22 -0
- package/dist/RolePanel-CV-xPlYJ.js +176 -0
- package/dist/RolePanel-DPCe9k8f.js +131 -0
- package/dist/ScrollPanel-DW30pGz1.js +88 -0
- package/dist/Staff-w2ly4qd0.js +22 -0
- package/dist/StaffInfo-DPDRpz6F.js +149 -0
- package/dist/StaffPanel-DI1eTTp9.js +143 -0
- package/dist/SysUser-BMTX1cJM.js +12 -0
- package/dist/SysUserPanel-xwZdVjdp.js +365 -0
- package/dist/SystemMenu-TXhiQZVm.js +154 -0
- package/dist/UserInfo-JQqw8FMT.js +194 -0
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +8 -0
- package/dist/api-BFNxcxSN.js +30 -0
- package/dist/authority-Bi6BGB5B.js +20 -0
- package/dist/await-to-js.es5-DkWYmPXW.js +10 -0
- package/dist/childView-Bk8OD9bV.js +181 -0
- package/dist/childView-CyrcwshT.js +184 -0
- package/dist/code-rule-QFrhqFrW.js +151 -0
- package/dist/contant-Q77dU_V3.js +4 -0
- package/dist/core.es.js +6 -23
- package/dist/cron-task-BpUDKEAU.js +131 -0
- package/dist/flow-task-DAc2NrDU.js +11 -0
- package/dist/frameView-Di0zJZUR.js +39 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/layout-home-BVp7vYLR.js +239 -0
- package/dist/layoutView-DFUjrqAS.js +2662 -0
- package/dist/log-in-BrNB0mLz.js +117 -0
- package/dist/log-out-dYfqvzy6.js +111 -0
- package/dist/login-BdCDnuXL.js +233 -0
- package/dist/login-log-CJak-ANA.js +79 -0
- package/dist/lov-view-DkmG4K57.js +95 -0
- package/dist/menuInfo-kp2wNYOp.js +346 -0
- package/dist/mitt-CQgI7DYU.js +27 -0
- package/dist/pda-app-CA7YI37u.js +589 -0
- package/dist/redirect-N0k4tImU.js +16 -0
- package/dist/resource-CfQTHFcs.js +94 -0
- package/dist/router-CeluSGiD.js +1531 -0
- package/dist/su-welcome-JeiovGpe.js +799 -0
- package/dist/sys-config-Ddb3vBpK.js +316 -0
- package/dist/udp-core-Dhm-BlAs.js +2032 -0
- package/dist/udp-core.css +2 -1
- package/dist/useDataThemeChange-BCy8JBG7.js +226 -0
- package/dist/useNav-DY8FkltH.js +106 -0
- package/dist/utogether-l7JXs4Lv.js +4 -0
- package/dist/water-mark-WDQZ9YqB.js +119 -0
- package/dist/wecom-push-kWkAVRCj.js +77 -0
- package/package.json +1 -1
- package/src/api/index.ts +51 -51
- package/src/components/udp/index.ts +9 -8
- package/src/components/udp/lov/index.vue +430 -0
- package/src/components/udp/upload/index.vue +444 -444
- package/src/main.ts +110 -111
- package/src/plugins/vxe-table/index.ts +1 -1
- package/src/plugins/vxe-table/render.tsx +999 -998
- package/tsconfig.json +1 -1
- package/vite.config.ts +8 -3
- package/dist/403-Bu1hm1tf.js +0 -65
- package/dist/404-BB-df9AI.js +0 -65
- package/dist/500-_ivjNAjo.js +0 -67
- package/dist/AuthorityInfo-DTeV-2ob.js +0 -4
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BlaR0Onc.js +0 -100
- package/dist/AuthorityPanel-CRlAwbaI.js +0 -4
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js +0 -114
- package/dist/Company-B-kqHIz7.js +0 -25
- package/dist/CompanyPanel-DyKh7m0Z.js +0 -206
- package/dist/DataSet-DT-rGICv.js +0 -147
- package/dist/Department-CKsiqoIY.js +0 -25
- package/dist/DepartmentPanel-kCSiG2Hv.js +0 -254
- package/dist/DesignPanel-dpjAWAxC.js +0 -4
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-e3mxfUBR.js +0 -1013
- package/dist/DictView-a_uYPbX5.js +0 -111
- package/dist/InvOrganization-DRhir-02.js +0 -74
- package/dist/Org-CqmyMUy_.js +0 -39
- package/dist/Preview-CXK4KxQN.js +0 -48
- package/dist/ReportDefine-BPBpVUdl.js +0 -10
- package/dist/ReportDesign-D_Cqvh_m.js +0 -165
- package/dist/ReportQuery-CPCKroWq.js +0 -75
- package/dist/ReportQueryFrom-DtVN20Ou.js +0 -4
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-ByBocawe.js +0 -178
- package/dist/ReportTemplate-B3ubCMWK.js +0 -161
- package/dist/Role-Bq2GjT1k.js +0 -25
- package/dist/RoleAssign-CZGTP6M1.js +0 -26
- package/dist/RolePanel-B_2W2wLA.js +0 -4
- package/dist/RolePanel-DeHHsXTQ.js +0 -4
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-D165_X8i.js +0 -132
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-F40M5JeR.js +0 -154
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-CjBEiasb.js +0 -101
- package/dist/Staff-e7v32WE7.js +0 -26
- package/dist/StaffInfo-CO0VfxT1.js +0 -4
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DerORcB0.js +0 -108
- package/dist/StaffPanel-ZslIuuEe.js +0 -4
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-ONDmYqiK.js +0 -154
- package/dist/SysUser-1LJIDkLs.js +0 -15
- package/dist/SysUserPanel-DGz0upa2.js +0 -4
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BxDkwKk4.js +0 -356
- package/dist/SystemMenu-BJFA-7na.js +0 -156
- package/dist/UserInfo-DgEgNcI1.js +0 -4
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-0LeXBHJO.js +0 -160
- package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
- package/dist/childView-n3PQsXw_.js +0 -4
- package/dist/childView-sWkqPxWe.js +0 -4
- package/dist/childView.vue_vue_type_style_index_0_lang-DlACXm6-.js +0 -183
- package/dist/childView.vue_vue_type_style_index_0_lang-XGM6istV.js +0 -143
- package/dist/code-rule-B5swnIDE.js +0 -148
- package/dist/cron-task-BgeQLdRW.js +0 -135
- package/dist/flow-task-B07st2aD.js +0 -10
- package/dist/frameView-B37Oqu4T.js +0 -44
- package/dist/index-BLLwR2mu.js +0 -7944
- package/dist/layout-home-mag8cpgN.js +0 -232
- package/dist/layoutView-D4YY2av1.js +0 -3239
- package/dist/log-in-BPUMwivh.js +0 -117
- package/dist/log-out-py6304lk.js +0 -130
- package/dist/login-BITK6XJ-.js +0 -235
- package/dist/login-log-BEHYT0v0.js +0 -70
- package/dist/lov-view-Cv-0Ii-W.js +0 -99
- package/dist/menuInfo-DqQdEkla.js +0 -4
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-CObiQiIC.js +0 -363
- package/dist/pda-app-PLxdqt6q.js +0 -710
- package/dist/redirect-BqegffKC.js +0 -15
- package/dist/resource-Dz8NFuxi.js +0 -97
- package/dist/su-welcome-CSWrN5Dc.js +0 -42225
- package/dist/sys-config-BJY2IkSZ.js +0 -385
- package/dist/useNav-BT7Od00q.js +0 -92
- package/dist/utogether-MlnyYtNS.js +0 -4
- package/dist/wecom-push-DR7NsNro.js +0 -70
package/src/main.ts
CHANGED
|
@@ -1,111 +1,110 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: levi7754 levi7754@163.com
|
|
3
|
-
* @Date: 2025-07-25 13:38:20
|
|
4
|
-
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2026-03-30 13:50:20
|
|
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
|
-
import { createApp, type Directive } from 'vue';
|
|
10
|
-
import App from './App.vue';
|
|
11
|
-
// import router from './router';
|
|
12
|
-
import { setViews } from './router';
|
|
13
|
-
import { setupStore } from './store';
|
|
14
|
-
import { setConfig, getEnv, setSystemEnv } from './config';
|
|
15
|
-
import { useI18n, transformI18n } from '../src/plugins/i18n';
|
|
16
|
-
import { setTableConfig } from '../src/plugins/vxe-table';
|
|
17
|
-
import { injectResponsiveStorage } from './utils/storage';
|
|
18
|
-
import hasAuthority from './utils/authority';
|
|
19
|
-
import { getServiceApi, getBaseURL, setRouter, setBaseUrl, getDebugBaseURL } from './api';
|
|
20
|
-
|
|
21
|
-
import 'nprogress/nprogress.css';
|
|
22
|
-
// 一定要在main.ts中导入tailwind.css,防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
|
|
23
|
-
import './style/tailwind.css';
|
|
24
|
-
// // 引入重置样式
|
|
25
|
-
import './style/reset.scss';
|
|
26
|
-
// 导入公共样式
|
|
27
|
-
import './style/index.scss';
|
|
28
|
-
|
|
29
|
-
import {
|
|
30
|
-
|
|
31
|
-
// UtDivider,
|
|
32
|
-
// UtModalForm2
|
|
33
|
-
FormUpload2,
|
|
34
|
-
// UtForm2,
|
|
35
|
-
UtGrid2,
|
|
36
|
-
UtContent2,
|
|
37
|
-
UtStampBadge2,
|
|
38
|
-
// UtModalGrid2
|
|
39
|
-
UtUpload2
|
|
40
|
-
// UtIconSelect,
|
|
41
|
-
// UtCalendar
|
|
42
|
-
// uAttachment
|
|
43
|
-
} from './components/udp';
|
|
44
|
-
|
|
45
|
-
const app = createApp(App);
|
|
46
|
-
|
|
47
|
-
// 全局注册`@iconify/vue`图标库
|
|
48
|
-
import { IconifyIconOffline, FontIcon } from './components/ReIcon';
|
|
49
|
-
// 全局注册`vue-tippy`
|
|
50
|
-
import 'tippy.js/dist/tippy.css';
|
|
51
|
-
import 'tippy.js/animations/perspective.css';
|
|
52
|
-
import VueTippy from 'vue-tippy';
|
|
53
|
-
|
|
54
|
-
app.use(VueTippy, {
|
|
55
|
-
defaultProps: { animation: 'perspective' }
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
// 自定义指令
|
|
59
|
-
import * as directives from './directives';
|
|
60
|
-
|
|
61
|
-
const setGlobal = app => {
|
|
62
|
-
app.config.globalProperties.$hasAuthority = hasAuthority;
|
|
63
|
-
app.config.globalProperties.$debugModel = getEnv().VITE_DEBUG === 'true';
|
|
64
|
-
app.config.globalProperties.$serviceApi = getServiceApi();
|
|
65
|
-
app.config.globalProperties.$debuggerApi = getDebugBaseURL();
|
|
66
|
-
app.config.globalProperties.$url = getBaseURL();
|
|
67
|
-
window.$i18n = transformI18n;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
const setGlobalDirective = app => {
|
|
71
|
-
Object.keys(directives).forEach(key => {
|
|
72
|
-
app.directive(key, (directives as { [key: string]: Directive })[key]);
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
const init = ({ router, config, lang, views, env, tableConfig }) => {
|
|
77
|
-
setViews(views, router);
|
|
78
|
-
app.use(router);
|
|
79
|
-
setRouter(router);
|
|
80
|
-
setConfig(app, config);
|
|
81
|
-
setSystemEnv(env);
|
|
82
|
-
setTableConfig(tableConfig);
|
|
83
|
-
return new Promise(resolve => {
|
|
84
|
-
useI18n(app, lang);
|
|
85
|
-
app.component('IconifyIconOffline', IconifyIconOffline);
|
|
86
|
-
app.component('FontIcon', FontIcon);
|
|
87
|
-
// app.component('uAttachment', uAttachment).component('UGrid', UGrid);
|
|
88
|
-
// .component('UtDivider', UtDivider)
|
|
89
|
-
// app.component('UtModalForm2', UtModalForm2);
|
|
90
|
-
app.component('UtGrid2', UtGrid2);
|
|
91
|
-
app.component('UtUpload2', UtUpload2);
|
|
92
|
-
// app.component('UtModalGrid2', UtModalGrid2);
|
|
93
|
-
// .component('UtIconSelect', UtIconSelect)
|
|
94
|
-
app.component('FormUpload2', FormUpload2);
|
|
95
|
-
|
|
96
|
-
app.component('
|
|
97
|
-
|
|
98
|
-
//
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
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: 2026-03-30 13:50:20
|
|
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
|
+
import { createApp, type Directive } from 'vue';
|
|
10
|
+
import App from './App.vue';
|
|
11
|
+
// import router from './router';
|
|
12
|
+
import { setViews } from './router';
|
|
13
|
+
import { setupStore } from './store';
|
|
14
|
+
import { setConfig, getEnv, setSystemEnv } from './config';
|
|
15
|
+
import { useI18n, transformI18n } from '../src/plugins/i18n';
|
|
16
|
+
import { setTableConfig } from '../src/plugins/vxe-table';
|
|
17
|
+
import { injectResponsiveStorage } from './utils/storage';
|
|
18
|
+
import hasAuthority from './utils/authority';
|
|
19
|
+
import { getServiceApi, getBaseURL, setRouter, setBaseUrl, getDebugBaseURL } from './api';
|
|
20
|
+
|
|
21
|
+
import 'nprogress/nprogress.css';
|
|
22
|
+
// 一定要在main.ts中导入tailwind.css,防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
|
|
23
|
+
import './style/tailwind.css';
|
|
24
|
+
// // 引入重置样式
|
|
25
|
+
import './style/reset.scss';
|
|
26
|
+
// 导入公共样式
|
|
27
|
+
import './style/index.scss';
|
|
28
|
+
|
|
29
|
+
import {
|
|
30
|
+
UtLov2,
|
|
31
|
+
// UtDivider,
|
|
32
|
+
// UtModalForm2
|
|
33
|
+
FormUpload2,
|
|
34
|
+
// UtForm2,
|
|
35
|
+
UtGrid2,
|
|
36
|
+
UtContent2,
|
|
37
|
+
UtStampBadge2,
|
|
38
|
+
// UtModalGrid2
|
|
39
|
+
UtUpload2
|
|
40
|
+
// UtIconSelect,
|
|
41
|
+
// UtCalendar
|
|
42
|
+
// uAttachment
|
|
43
|
+
} from './components/udp';
|
|
44
|
+
|
|
45
|
+
const app = createApp(App);
|
|
46
|
+
|
|
47
|
+
// 全局注册`@iconify/vue`图标库
|
|
48
|
+
import { IconifyIconOffline, FontIcon } from './components/ReIcon';
|
|
49
|
+
// 全局注册`vue-tippy`
|
|
50
|
+
import 'tippy.js/dist/tippy.css';
|
|
51
|
+
import 'tippy.js/animations/perspective.css';
|
|
52
|
+
import VueTippy from 'vue-tippy';
|
|
53
|
+
|
|
54
|
+
app.use(VueTippy, {
|
|
55
|
+
defaultProps: { animation: 'perspective' }
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
// 自定义指令
|
|
59
|
+
import * as directives from './directives';
|
|
60
|
+
|
|
61
|
+
const setGlobal = app => {
|
|
62
|
+
app.config.globalProperties.$hasAuthority = hasAuthority;
|
|
63
|
+
app.config.globalProperties.$debugModel = getEnv().VITE_DEBUG === 'true';
|
|
64
|
+
app.config.globalProperties.$serviceApi = getServiceApi();
|
|
65
|
+
app.config.globalProperties.$debuggerApi = getDebugBaseURL();
|
|
66
|
+
app.config.globalProperties.$url = getBaseURL();
|
|
67
|
+
window.$i18n = transformI18n;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const setGlobalDirective = app => {
|
|
71
|
+
Object.keys(directives).forEach(key => {
|
|
72
|
+
app.directive(key, (directives as { [key: string]: Directive })[key]);
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const init = ({ router, config, lang, views, env, tableConfig }) => {
|
|
77
|
+
setViews(views, router);
|
|
78
|
+
app.use(router);
|
|
79
|
+
setRouter(router);
|
|
80
|
+
setConfig(app, config);
|
|
81
|
+
setSystemEnv(env);
|
|
82
|
+
setTableConfig(tableConfig);
|
|
83
|
+
return new Promise(resolve => {
|
|
84
|
+
useI18n(app, lang);
|
|
85
|
+
app.component('IconifyIconOffline', IconifyIconOffline);
|
|
86
|
+
app.component('FontIcon', FontIcon);
|
|
87
|
+
// app.component('uAttachment', uAttachment).component('UGrid', UGrid);
|
|
88
|
+
// .component('UtDivider', UtDivider)
|
|
89
|
+
// app.component('UtModalForm2', UtModalForm2);
|
|
90
|
+
app.component('UtGrid2', UtGrid2);
|
|
91
|
+
app.component('UtUpload2', UtUpload2);
|
|
92
|
+
// app.component('UtModalGrid2', UtModalGrid2);
|
|
93
|
+
// .component('UtIconSelect', UtIconSelect)
|
|
94
|
+
app.component('FormUpload2', FormUpload2).component('UtLov2', UtLov2);
|
|
95
|
+
app.component('UtContent2', UtContent2);
|
|
96
|
+
app.component('UtStampBadge2', UtStampBadge2);
|
|
97
|
+
// .component('UtModalGrid', UtModalGrid);
|
|
98
|
+
// app.use(VueViewer, { defaultOptions: { zIndex: 9999 } });
|
|
99
|
+
setGlobal(app);
|
|
100
|
+
setBaseUrl(getBaseURL());
|
|
101
|
+
setGlobalDirective(app);
|
|
102
|
+
// 全局组件
|
|
103
|
+
setupStore(app);
|
|
104
|
+
injectResponsiveStorage(app, config);
|
|
105
|
+
const result = { app, router };
|
|
106
|
+
resolve(result);
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
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:
|
|
5
|
+
* @LastEditTime: 2026-04-07 13:43:12
|
|
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
|
*/
|