@utogether/udp-core 1.0.1-beta.15 → 1.0.1-beta.16
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-DpJevH-h.js → 403-RBzulrcG.js} +1 -1
- package/dist/{404-BpqJK3YD.js → 404-DX-dU_6C.js} +1 -1
- package/dist/{500-DyvRbMD_.js → 500-BCTk0__d.js} +1 -1
- package/dist/{AuthorityInfo-Cyu4XHXx.js → AuthorityInfo-BADTOenq.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BxmnEEFq.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Cv46yAx_.js} +3 -3
- package/dist/{Company-BLygcYrI.js → Company-B-61KrWd.js} +3 -3
- package/dist/{CompanyPanel-D5Tgw6LF.js → CompanyPanel-CawSrEff.js} +10 -10
- package/dist/{Department-qI9OninZ.js → Department-CrzJPtvP.js} +3 -3
- package/dist/{DepartmentPanel-P-P8fPZQ.js → DepartmentPanel-DYuL8H-j.js} +23 -23
- package/dist/{DesignPanel-BxjD0AZi.js → DesignPanel-DEAv6V68.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DN_OKxCu.js → DesignPanel.vue_vue_type_style_index_0_lang-BsnXZ2td.js} +6 -6
- package/dist/{DictView-PWL_Vf0T.js → DictView-BuO-2b-c.js} +15 -16
- package/dist/{InvOrganization-JXBXyn3G.js → InvOrganization-CBgKBJAn.js} +1 -1
- package/dist/{Org-DcTJn6YQ.js → Org-BaQw2r-o.js} +3 -3
- package/dist/{Preview-IKvbHI8a.js → Preview-DvCrmKNk.js} +1 -1
- package/dist/{ReportDefine-_G7ts7Ch.js → ReportDefine-DyhWz0as.js} +1 -1
- package/dist/{ReportDesign-7h5oFklh.js → ReportDesign-DgZ2f2zv.js} +9 -9
- package/dist/{ReportQuery-dj0BQUyi.js → ReportQuery-DTZYbCDi.js} +1 -1
- package/dist/{ReportQueryFrom-6WaZPg9i.js → ReportQueryFrom-B-vtJegP.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-ChhcBPqa.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-D6izgxph.js} +1 -1
- package/dist/{ReportTemplate-DIvJ3RrB.js → ReportTemplate-DA1ZqKGf.js} +11 -11
- package/dist/{Role-ia_3qAZU.js → Role-mbqoav5t.js} +3 -3
- package/dist/{RoleAssign-D0zVl4y3.js → RoleAssign-ltEJIEcr.js} +3 -3
- package/dist/{RolePanel-CQxOiAzj.js → RolePanel-1g1a-G8D.js} +1 -1
- package/dist/{RolePanel-BiGGmP2w.js → RolePanel-u90v9eS0.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BYDLRS_x.js → RolePanel.vue_vue_type_script_setup_true_lang-D9YxpGnt.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Dwv5LFbf.js → RolePanel.vue_vue_type_script_setup_true_lang-LC4Egk-Q.js} +9 -9
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-gPP4duO8.js → ScrollPanel.vue_vue_type_style_index_0_lang-DZ3W1epK.js} +8 -8
- package/dist/{Staff-Bf_oUqF6.js → Staff-CJ2GgCL3.js} +3 -3
- package/dist/{StaffInfo-D5aisjx2.js → StaffInfo-3KkodDCK.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-6PX7Bx6A.js → StaffInfo.vue_vue_type_script_setup_true_lang-CW-isIxJ.js} +7 -7
- package/dist/{StaffPanel--zKzd4rt.js → StaffPanel-DoXPSoY5.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BWZSIFpq.js → StaffPanel.vue_vue_type_script_setup_true_lang-DvhGnOMZ.js} +2 -2
- package/dist/{SysUser-BelbESLR.js → SysUser-BuIZhMPh.js} +2 -2
- package/dist/{SysUserPanel-BixKqQcA.js → SysUserPanel-t1GJcJGM.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BhaWZEfo.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CDDkFLlN.js} +6 -6
- package/dist/{SystemMenu-D40tzcSj.js → SystemMenu-DuLEL6_l.js} +10 -10
- package/dist/{UserInfo-DTyk071j.js → UserInfo-WWby4lts.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-p9MByikC.js → UserInfo.vue_vue_type_style_index_0_lang-B06ZSrJV.js} +10 -10
- package/dist/{childView-so5qSxr0.js → childView-B0-EAoAi.js} +1 -1
- package/dist/{childView-xL3iE1yN.js → childView-IYY4L8VK.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-DK1ei5uM.js → childView.vue_vue_type_style_index_0_lang-B56v6yK7.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CKcXpSqa.js → childView.vue_vue_type_style_index_0_lang-CjF8nZuj.js} +6 -6
- package/dist/{code-rule-DC35y76w.js → code-rule-DDLdi3pP.js} +6 -6
- package/dist/core.es.js +17 -12
- package/dist/{cron-task-BhjQ4S68.js → cron-task-p3-AFN1w.js} +11 -11
- package/dist/{frameView-G_zhG9pf.js → frameView-B_WAZErD.js} +1 -1
- package/dist/{index-C6ehxLLO.js → index-24fnvUBy.js} +741 -540
- package/dist/{layoutView-CO2U8qCQ.js → layoutView-CoEp2afn.js} +25 -27
- package/dist/login-DP0oP70W.js +249 -0
- package/dist/{lov-view-Cr929NMD.js → lov-view-BDoZRK-v.js} +5 -5
- package/dist/{menuInfo-BWuROp7u.js → menuInfo-5Xls76qB.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-9nouHUjO.js → menuInfo.vue_vue_type_style_index_0_lang-BfZczW9a.js} +7 -7
- package/dist/{pda-app-CQP1sMAI.js → pda-app-DxGYn4G7.js} +18 -18
- package/dist/{resource-BDQLrMpK.js → resource-BnYWe_-Q.js} +7 -7
- package/dist/{su-welcome-CZysrZQ1.js → su-welcome-B2rNhhDH.js} +88 -88
- package/dist/{sys-config-BiGNMYSA.js → sys-config-Bb4WkxZK.js} +6 -6
- package/dist/udp-core.css +2 -2
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/index.ts +12 -4
- package/package.json +1 -1
- package/src/layout/hooks/useTag.ts +221 -233
- package/src/main.ts +114 -113
- package/src/style/login.css +336 -336
- package/src/style/vxetable.scss +13 -0
- package/src/utils/index.ts +3 -1
- package/src/views/udev/dict/DictView.vue +2 -2
- package/src/views/ulogin/login.vue +323 -323
- package/types/global.d.ts +230 -236
- package/dist/login-DzyK2soP.js +0 -278
- package/dist/utogether-BRirriOz.js +0 -182
package/src/main.ts
CHANGED
|
@@ -1,113 +1,114 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: levi7754 levi7754@163.com
|
|
3
|
-
* @Date: 2025-07-25 13:38:20
|
|
4
|
-
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-09-
|
|
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, setSystemEnv } from './config';
|
|
15
|
-
import { useI18n } 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 } 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 'viewerjs/dist/viewer.css';
|
|
30
|
-
|
|
31
|
-
import VueViewer from 'v-viewer';
|
|
32
|
-
|
|
33
|
-
// import SuTable from './components/SuTable/SuTable.vue';
|
|
34
|
-
|
|
35
|
-
// import {
|
|
36
|
-
// UtButton,
|
|
37
|
-
// utLov2,
|
|
38
|
-
// UGrid,
|
|
39
|
-
// UtDivider,
|
|
40
|
-
// UtModalForm2
|
|
41
|
-
// FormUpload2,
|
|
42
|
-
// UtForm2
|
|
43
|
-
// UtGrid2
|
|
44
|
-
// UtContent,
|
|
45
|
-
// UtModalGrid2
|
|
46
|
-
// UtUpload2
|
|
47
|
-
// UtIconSelect,
|
|
48
|
-
// UtCalendar
|
|
49
|
-
// uAttachment
|
|
50
|
-
// } from './components/udp';
|
|
51
|
-
|
|
52
|
-
const app = createApp(App);
|
|
53
|
-
|
|
54
|
-
// 全局注册`@iconify/vue`图标库
|
|
55
|
-
import { IconifyIconOffline, FontIcon } from './components/ReIcon';
|
|
56
|
-
// 全局注册`vue-tippy`
|
|
57
|
-
import 'tippy.js/dist/tippy.css';
|
|
58
|
-
import 'tippy.js/animations/perspective.css';
|
|
59
|
-
import VueTippy from 'vue-tippy';
|
|
60
|
-
|
|
61
|
-
app.use(VueTippy, {
|
|
62
|
-
defaultProps: { animation: 'perspective' }
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
// 自定义指令
|
|
66
|
-
import * as directives from './directives';
|
|
67
|
-
|
|
68
|
-
const setGlobal = app => {
|
|
69
|
-
app.config.globalProperties.$hasAuthority = hasAuthority;
|
|
70
|
-
app.config.globalProperties.$serviceApi = getServiceApi();
|
|
71
|
-
app.config.globalProperties.$url = getBaseURL();
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
app
|
|
90
|
-
app.component('
|
|
91
|
-
|
|
92
|
-
//
|
|
93
|
-
//
|
|
94
|
-
// app.component('
|
|
95
|
-
// app.component('
|
|
96
|
-
// app.component('
|
|
97
|
-
//
|
|
98
|
-
//
|
|
99
|
-
//
|
|
100
|
-
// .component('
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
/*
|
|
2
|
+
* @Author: levi7754 levi7754@163.com
|
|
3
|
+
* @Date: 2025-07-25 13:38:20
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-09-11 16:21:38
|
|
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, 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 } 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 'viewerjs/dist/viewer.css';
|
|
30
|
+
|
|
31
|
+
import VueViewer from 'v-viewer';
|
|
32
|
+
|
|
33
|
+
// import SuTable from './components/SuTable/SuTable.vue';
|
|
34
|
+
|
|
35
|
+
// import {
|
|
36
|
+
// UtButton,
|
|
37
|
+
// utLov2,
|
|
38
|
+
// UGrid,
|
|
39
|
+
// UtDivider,
|
|
40
|
+
// UtModalForm2
|
|
41
|
+
// FormUpload2,
|
|
42
|
+
// UtForm2
|
|
43
|
+
// UtGrid2
|
|
44
|
+
// UtContent,
|
|
45
|
+
// UtModalGrid2
|
|
46
|
+
// UtUpload2
|
|
47
|
+
// UtIconSelect,
|
|
48
|
+
// UtCalendar
|
|
49
|
+
// uAttachment
|
|
50
|
+
// } from './components/udp';
|
|
51
|
+
|
|
52
|
+
const app = createApp(App);
|
|
53
|
+
|
|
54
|
+
// 全局注册`@iconify/vue`图标库
|
|
55
|
+
import { IconifyIconOffline, FontIcon } from './components/ReIcon';
|
|
56
|
+
// 全局注册`vue-tippy`
|
|
57
|
+
import 'tippy.js/dist/tippy.css';
|
|
58
|
+
import 'tippy.js/animations/perspective.css';
|
|
59
|
+
import VueTippy from 'vue-tippy';
|
|
60
|
+
|
|
61
|
+
app.use(VueTippy, {
|
|
62
|
+
defaultProps: { animation: 'perspective' }
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
// 自定义指令
|
|
66
|
+
import * as directives from './directives';
|
|
67
|
+
|
|
68
|
+
const setGlobal = app => {
|
|
69
|
+
app.config.globalProperties.$hasAuthority = hasAuthority;
|
|
70
|
+
app.config.globalProperties.$serviceApi = getServiceApi();
|
|
71
|
+
app.config.globalProperties.$url = getBaseURL();
|
|
72
|
+
window.$i18n = transformI18n;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const setGlobalDirective = app => {
|
|
76
|
+
Object.keys(directives).forEach(key => {
|
|
77
|
+
app.directive(key, (directives as { [key: string]: Directive })[key]);
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const init = ({ router, config, lang, views, env, tableConfig }) => {
|
|
82
|
+
setViews(views, router);
|
|
83
|
+
app.use(router);
|
|
84
|
+
setRouter(router);
|
|
85
|
+
setConfig(app, config);
|
|
86
|
+
setSystemEnv(env);
|
|
87
|
+
setTableConfig(tableConfig);
|
|
88
|
+
return new Promise(resolve => {
|
|
89
|
+
useI18n(app, lang);
|
|
90
|
+
app.component('IconifyIconOffline', IconifyIconOffline);
|
|
91
|
+
app.component('FontIcon', FontIcon);
|
|
92
|
+
// app.component('uAttachment', uAttachment).component('UGrid', UGrid);
|
|
93
|
+
// .component('UtDivider', UtDivider)
|
|
94
|
+
// app.component('UtModalForm2', UtModalForm2);
|
|
95
|
+
// app.component('UtGrid2', UtGrid2);
|
|
96
|
+
// app.component('UtForm2', UtForm2);
|
|
97
|
+
// app.component('UtModalGrid2', UtModalGrid2);
|
|
98
|
+
// .component('UtIconSelect', UtIconSelect)
|
|
99
|
+
// app.component('FormUpload2', FormUpload2);
|
|
100
|
+
// .component('UtCalendar', UtCalendar)
|
|
101
|
+
// .component('UtModalGrid', UtModalGrid);
|
|
102
|
+
app.use(VueViewer, { defaultOptions: { zIndex: 9999 } });
|
|
103
|
+
setGlobal(app);
|
|
104
|
+
setBaseUrl(getBaseURL());
|
|
105
|
+
setGlobalDirective(app);
|
|
106
|
+
// 全局组件
|
|
107
|
+
setupStore(app);
|
|
108
|
+
injectResponsiveStorage(app, config);
|
|
109
|
+
const result = { app, router };
|
|
110
|
+
resolve(result);
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export default init;
|