cc1-admin-front 0.0.1
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/README.md +1 -0
- package/dist/App.vue.d.ts +2 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/apis/auth/ApiAuthApi.d.ts +7 -0
- package/dist/apis/auth/ApiAuthMenu.d.ts +6 -0
- package/dist/apis/auth/ApiAuthPhone.d.ts +3 -0
- package/dist/apis/auth/ApiAuthRole.d.ts +12 -0
- package/dist/apis/auth/ApiAuthUser.d.ts +7 -0
- package/dist/apis/auth/ApiCaptcha.d.ts +4 -0
- package/dist/apis/auth/ApiLoginLog.d.ts +4 -0
- package/dist/apis/cron/ApiCron.d.ts +6 -0
- package/dist/apis/db/ApiDb.d.ts +4 -0
- package/dist/apis/email/ApiEmailConfig.d.ts +6 -0
- package/dist/apis/log/ApiErrorLog.d.ts +4 -0
- package/dist/apis/schedule/ApiJob.d.ts +8 -0
- package/dist/apis/sms/ApiSmsConfig.d.ts +7 -0
- package/dist/apis/system/ApiApp.d.ts +4 -0
- package/dist/apis/system/ApiSystemConfig.d.ts +6 -0
- package/dist/apis/system/ApiSystemTenant.d.ts +6 -0
- package/dist/apis/types/query.d.ts +4 -0
- package/dist/cc1-admin-front.css +1 -0
- package/dist/cc1-admin-front.js +937 -0
- package/dist/cc1-admin-front.umd.cjs +1 -0
- package/dist/components/editor/index.vue.d.ts +18 -0
- package/dist/components/formList/index.vue.d.ts +97 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/particle/yinhua/index.vue.d.ts +2 -0
- package/dist/components/routeEvent/index.vue.d.ts +2 -0
- package/dist/enum/Enum.d.ts +15 -0
- package/dist/index--6fokZC8.js +172 -0
- package/dist/index-BTuR22Wh.js +41 -0
- package/dist/index-Bk_LJXIb.js +257 -0
- package/dist/index-C8fkVOS0.js +127 -0
- package/dist/index-CJ5aGrl0.js +152 -0
- package/dist/index-CatA5C4N.js +132 -0
- package/dist/index-D47lvu37.js +333 -0
- package/dist/index-D8U8yEvx.js +49 -0
- package/dist/index-DFNCjb_F.js +69 -0
- package/dist/index-DU5RPuKk.js +95 -0
- package/dist/index-Dkl3LwVN.js +143 -0
- package/dist/index-DvZhYqrw.js +113 -0
- package/dist/index-O3L87IEQ.js +157 -0
- package/dist/index-pxgBPi_e.js +197 -0
- package/dist/index-rnNeo1-y.js +184 -0
- package/dist/index-tQ4ZyO21.js +592 -0
- package/dist/index-uPQ6O40Q.js +180 -0
- package/dist/index.d.ts +41 -0
- package/dist/plugins/index.d.ts +6 -0
- package/dist/plugins/tools-form.d.ts +7 -0
- package/dist/plugins/tools-javascript.d.ts +6 -0
- package/dist/plugins/tools-vue3.d.ts +6 -0
- package/dist/plugins/uivite.d.ts +6 -0
- package/dist/router/index.d.ts +1 -0
- package/dist/sstore/index.d.ts +5 -0
- package/dist/sstore/scurd.d.ts +10 -0
- package/dist/sstore/ssys.d.ts +85 -0
- package/dist/sstore/suser.d.ts +20 -0
- package/dist/sstore/sutil.d.ts +16 -0
- package/dist/sstore/svf.d.ts +73 -0
- package/dist/utils/Config.d.ts +7 -0
- package/dist/utils/HttpConfig.d.ts +4 -0
- package/dist/utils/System.d.ts +71 -0
- package/dist/views/error/index.vue.d.ts +2 -0
- package/dist/views/layout/com/Header.vue.d.ts +2 -0
- package/dist/views/layout/com/Sidebar.vue.d.ts +2 -0
- package/dist/views/layout/index.vue.d.ts +2 -0
- package/dist/views/login/index.vue.d.ts +2 -0
- package/dist/views/pages/auth/api/index.vue.d.ts +2 -0
- package/dist/views/pages/auth/menu/com/addDialog.vue.d.ts +39 -0
- package/dist/views/pages/auth/menu/com/addIconItem.vue.d.ts +40 -0
- package/dist/views/pages/auth/menu/com/colorChoose.vue.d.ts +23 -0
- package/dist/views/pages/auth/menu/index.vue.d.ts +2 -0
- package/dist/views/pages/auth/role/index.vue.d.ts +2 -0
- package/dist/views/pages/auth/user/index.vue.d.ts +2 -0
- package/dist/views/pages/db/index.vue.d.ts +2 -0
- package/dist/views/pages/email/config/index.vue.d.ts +2 -0
- package/dist/views/pages/home/index.vue.d.ts +2 -0
- package/dist/views/pages/log/error/index.vue.d.ts +2 -0
- package/dist/views/pages/log/loginlog/index.vue.d.ts +2 -0
- package/dist/views/pages/schedule/job/index.vue.d.ts +2 -0
- package/dist/views/pages/sms/config/index.vue.d.ts +2 -0
- package/dist/views/pages/system/config/index.vue.d.ts +2 -0
- package/dist/views/pages/system/tenant/index.vue.d.ts +2 -0
- package/package.json +66 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { defineComponent as c, reactive as m, resolveComponent as o, openBlock as b, createBlock as y, withCtx as r, createVNode as p, createTextVNode as n, toDisplayString as i } from "vue";
|
|
2
|
+
import { ApiSystemTenant as d } from "./cc1-admin-front.js";
|
|
3
|
+
import "cc1-form";
|
|
4
|
+
const h = /* @__PURE__ */ c({
|
|
5
|
+
__name: "index",
|
|
6
|
+
setup(T) {
|
|
7
|
+
const u = m({
|
|
8
|
+
option: {
|
|
9
|
+
api: d,
|
|
10
|
+
data(t) {
|
|
11
|
+
return t.forEach((e) => {
|
|
12
|
+
e.createTime = new Date(e.createTime).Format(), e.updateTime = new Date(e.updateTime).Format(), e.expireTime && (e.expireTime = new Date(e.expireTime));
|
|
13
|
+
}), t;
|
|
14
|
+
},
|
|
15
|
+
table: {
|
|
16
|
+
border: !0,
|
|
17
|
+
column: [
|
|
18
|
+
{
|
|
19
|
+
key: "createTime",
|
|
20
|
+
label: "创建时间",
|
|
21
|
+
type: "input",
|
|
22
|
+
value: "",
|
|
23
|
+
table: {
|
|
24
|
+
minWidth: "180px"
|
|
25
|
+
},
|
|
26
|
+
sort: {
|
|
27
|
+
table: 99
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
tools: {
|
|
33
|
+
export: {
|
|
34
|
+
fileName: () => `租户管理_${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
35
|
+
before: (t) => {
|
|
36
|
+
t.data.forEach((e) => {
|
|
37
|
+
e.expireTime && (e.expireTime = new Date(e.expireTime).Format());
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
column: [
|
|
43
|
+
{
|
|
44
|
+
key: "name",
|
|
45
|
+
label: "租户名称",
|
|
46
|
+
type: "input",
|
|
47
|
+
value: "",
|
|
48
|
+
rules: !0,
|
|
49
|
+
show: {
|
|
50
|
+
search: !0
|
|
51
|
+
},
|
|
52
|
+
sort: {
|
|
53
|
+
table: 1
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
key: "code",
|
|
58
|
+
label: "租户编码",
|
|
59
|
+
type: "input",
|
|
60
|
+
value: "",
|
|
61
|
+
rules: !0,
|
|
62
|
+
show: {
|
|
63
|
+
search: !0
|
|
64
|
+
},
|
|
65
|
+
sort: {
|
|
66
|
+
table: 2
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
key: "type",
|
|
71
|
+
label: "租户类型",
|
|
72
|
+
type: "select",
|
|
73
|
+
value: 1,
|
|
74
|
+
options: {
|
|
75
|
+
select: {
|
|
76
|
+
data: [
|
|
77
|
+
{ label: "单库多租户", value: 1 },
|
|
78
|
+
{ label: "多库多租户", value: 2 }
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
rules: !0,
|
|
83
|
+
show: {
|
|
84
|
+
search: !0
|
|
85
|
+
},
|
|
86
|
+
sort: {
|
|
87
|
+
table: 3
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
key: "domain",
|
|
92
|
+
label: "域名",
|
|
93
|
+
type: "input",
|
|
94
|
+
value: "",
|
|
95
|
+
rules: !0,
|
|
96
|
+
show: {
|
|
97
|
+
table: !1,
|
|
98
|
+
search: !0
|
|
99
|
+
},
|
|
100
|
+
sort: {
|
|
101
|
+
table: 4
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
key: "expireTime",
|
|
106
|
+
label: "过期时间",
|
|
107
|
+
type: "datetime",
|
|
108
|
+
value: /* @__PURE__ */ new Date(),
|
|
109
|
+
table: {
|
|
110
|
+
minWidth: "180px"
|
|
111
|
+
},
|
|
112
|
+
sort: {
|
|
113
|
+
table: 100
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
key: "contactName",
|
|
118
|
+
label: "联系人",
|
|
119
|
+
type: "input",
|
|
120
|
+
value: "",
|
|
121
|
+
sort: {
|
|
122
|
+
table: 7
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
key: "contactPhone",
|
|
127
|
+
label: "联系电话",
|
|
128
|
+
type: "input",
|
|
129
|
+
value: "",
|
|
130
|
+
sort: {
|
|
131
|
+
table: 8
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
key: "dbUrl",
|
|
136
|
+
label: "数据库连接",
|
|
137
|
+
type: "input",
|
|
138
|
+
value: "",
|
|
139
|
+
rules: !0,
|
|
140
|
+
show: {
|
|
141
|
+
form: (t) => t.type === 2,
|
|
142
|
+
table: !1
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
return (t, e) => {
|
|
149
|
+
const l = o("el-tag"), s = o("t-curd");
|
|
150
|
+
return b(), y(s, {
|
|
151
|
+
option: u.option
|
|
152
|
+
}, {
|
|
153
|
+
"table-type": r(({ row: a }) => [
|
|
154
|
+
p(l, {
|
|
155
|
+
type: a.type === 1 ? "success" : "warning"
|
|
156
|
+
}, {
|
|
157
|
+
default: r(() => [
|
|
158
|
+
n(i(a.type === 1 ? "单库多租户" : "多库多租户"), 1)
|
|
159
|
+
]),
|
|
160
|
+
_: 2
|
|
161
|
+
}, 1032, ["type"])
|
|
162
|
+
]),
|
|
163
|
+
"table-expireTime": r(({ row: a }) => [
|
|
164
|
+
p(l, {
|
|
165
|
+
type: a.expireTime < (/* @__PURE__ */ new Date()).getTime() ? "danger" : "success"
|
|
166
|
+
}, {
|
|
167
|
+
default: r(() => [
|
|
168
|
+
n(i(new Date(a.expireTime).Format()), 1)
|
|
169
|
+
]),
|
|
170
|
+
_: 2
|
|
171
|
+
}, 1032, ["type"])
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
}, 8, ["option"]);
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
export {
|
|
179
|
+
h as default
|
|
180
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import 'tools-css/index.css';
|
|
2
|
+
import 'tools-css/scroll.css';
|
|
3
|
+
import ApiAuthApi from './apis/auth/ApiAuthApi';
|
|
4
|
+
import ApiAuthMenu from './apis/auth/ApiAuthMenu';
|
|
5
|
+
import ApiAuthPhone from './apis/auth/ApiAuthPhone';
|
|
6
|
+
import ApiAuthRole from './apis/auth/ApiAuthRole';
|
|
7
|
+
import ApiAuthUser from './apis/auth/ApiAuthUser';
|
|
8
|
+
import ApiCaptcha from './apis/auth/ApiCaptcha';
|
|
9
|
+
import ApiLoginLog from './apis/auth/ApiLoginLog';
|
|
10
|
+
import ApiCron from './apis/cron/ApiCron';
|
|
11
|
+
import ApiEmailConfig from './apis/email/ApiEmailConfig';
|
|
12
|
+
import ApiErrorLog from './apis/log/ApiErrorLog';
|
|
13
|
+
import ApiJob from './apis/schedule/ApiJob';
|
|
14
|
+
import ApiSmsConfig from './apis/sms/ApiSmsConfig';
|
|
15
|
+
import ApiApp from './apis/system/ApiApp';
|
|
16
|
+
import ApiSystemConfig from './apis/system/ApiSystemConfig';
|
|
17
|
+
import ApiSystemTenant from './apis/system/ApiSystemTenant';
|
|
18
|
+
import { EDialog, ERouter } from './enum/Enum';
|
|
19
|
+
import { scurd } from './sstore/scurd';
|
|
20
|
+
import { ssys } from './sstore/ssys';
|
|
21
|
+
import { suser } from './sstore/suser';
|
|
22
|
+
import { sutil } from './sstore/sutil';
|
|
23
|
+
import { svf } from './sstore/svf';
|
|
24
|
+
import './styles/index.less';
|
|
25
|
+
import System from './utils/System';
|
|
26
|
+
declare const initApp: (config: Partial<typeof System.config>) => Promise<void>;
|
|
27
|
+
export { ApiApp, ApiAuthApi, ApiAuthMenu, ApiAuthPhone, ApiAuthRole, ApiAuthUser, ApiCaptcha, ApiCron, ApiEmailConfig, ApiErrorLog, ApiJob, ApiLoginLog, ApiSmsConfig, ApiSystemConfig, ApiSystemTenant, EDialog, ERouter, initApp, scurd, ssys, suser, sutil, svf, System };
|
|
28
|
+
|
|
29
|
+
export {}
|
|
30
|
+
|
|
31
|
+
/* prettier-ignore */
|
|
32
|
+
declare module 'vue' {
|
|
33
|
+
export interface GlobalComponents {
|
|
34
|
+
xEditor:typeof import('./components/editor/index.vue')['default']
|
|
35
|
+
xFormList:typeof import('./components/formList/index.vue')['default']
|
|
36
|
+
xParticle:typeof import('./components/particle/yinhua/index.vue')['default']
|
|
37
|
+
xRouteEvent:typeof import('./components/routeEvent/index.vue')['default']
|
|
38
|
+
}
|
|
39
|
+
export interface ComponentCustomProperties {
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initRouter: () => import("vue-router").Router | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const scurd: {
|
|
2
|
+
findOptions: (option: any, field: string) => any;
|
|
3
|
+
setOptionsData: (option: any, field: string, data: any) => void;
|
|
4
|
+
form: {
|
|
5
|
+
openBefore: {
|
|
6
|
+
parentId: (data: any, update: any, treeData: any[], option: any) => void;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default scurd;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare const getTableTree: (sourceData: any[]) => any;
|
|
2
|
+
/**
|
|
3
|
+
* 系统参数
|
|
4
|
+
*/
|
|
5
|
+
export declare const ssys: {
|
|
6
|
+
getTableTree: (sourceData: any[]) => any;
|
|
7
|
+
auth: {
|
|
8
|
+
list: string[];
|
|
9
|
+
isPass: (auth: string) => boolean;
|
|
10
|
+
};
|
|
11
|
+
load: () => void;
|
|
12
|
+
layout: {
|
|
13
|
+
collapse: boolean;
|
|
14
|
+
};
|
|
15
|
+
menuListSource: {
|
|
16
|
+
_id: string;
|
|
17
|
+
parentId: string;
|
|
18
|
+
createTime: number;
|
|
19
|
+
updateTime: number;
|
|
20
|
+
title: string;
|
|
21
|
+
url: string;
|
|
22
|
+
sort: number;
|
|
23
|
+
type: number;
|
|
24
|
+
iconName: string;
|
|
25
|
+
iconLib: string;
|
|
26
|
+
iconFill: string[];
|
|
27
|
+
show: boolean;
|
|
28
|
+
desc: string;
|
|
29
|
+
children: /*elided*/ any[];
|
|
30
|
+
}[];
|
|
31
|
+
menuList: {
|
|
32
|
+
_id: string;
|
|
33
|
+
parentId: string;
|
|
34
|
+
createTime: number;
|
|
35
|
+
updateTime: number;
|
|
36
|
+
title: string;
|
|
37
|
+
url: string;
|
|
38
|
+
sort: number;
|
|
39
|
+
type: number;
|
|
40
|
+
iconName: string;
|
|
41
|
+
iconLib: string;
|
|
42
|
+
iconFill: string[];
|
|
43
|
+
show: boolean;
|
|
44
|
+
desc: string;
|
|
45
|
+
children: /*elided*/ any[];
|
|
46
|
+
}[];
|
|
47
|
+
setMenuList: (menuList: Menu[], menuListSource: Menu[]) => void;
|
|
48
|
+
getMenuList: () => Promise<Menu[]>;
|
|
49
|
+
apiList: string[];
|
|
50
|
+
setApiList: (apiList: string[]) => void;
|
|
51
|
+
getApiList: () => Promise<string[]>;
|
|
52
|
+
upload: {
|
|
53
|
+
handler: (param: {
|
|
54
|
+
callback: (url: string) => void;
|
|
55
|
+
accept?: string;
|
|
56
|
+
multiple?: boolean;
|
|
57
|
+
toast?: boolean;
|
|
58
|
+
}) => void;
|
|
59
|
+
};
|
|
60
|
+
preview: {
|
|
61
|
+
show: boolean;
|
|
62
|
+
srcList: any[];
|
|
63
|
+
index: number;
|
|
64
|
+
open: (urls: any[], index?: number) => void;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export type Menu = MenuItem & {
|
|
68
|
+
children: Menu[];
|
|
69
|
+
};
|
|
70
|
+
type MenuItem = {
|
|
71
|
+
_id: string;
|
|
72
|
+
parentId: string;
|
|
73
|
+
createTime: number;
|
|
74
|
+
updateTime: number;
|
|
75
|
+
title: string;
|
|
76
|
+
url: string;
|
|
77
|
+
sort: number;
|
|
78
|
+
type: number;
|
|
79
|
+
iconName: string;
|
|
80
|
+
iconLib: string;
|
|
81
|
+
iconFill: string[];
|
|
82
|
+
show: boolean;
|
|
83
|
+
desc: string;
|
|
84
|
+
};
|
|
85
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const suser: {
|
|
2
|
+
load: () => void;
|
|
3
|
+
loginInfo: {
|
|
4
|
+
roleInfo: {
|
|
5
|
+
apiList: string[];
|
|
6
|
+
menuList: string[];
|
|
7
|
+
};
|
|
8
|
+
token: string;
|
|
9
|
+
userInfo: {
|
|
10
|
+
nickname: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
userInfo: {
|
|
14
|
+
nickname: string;
|
|
15
|
+
};
|
|
16
|
+
token: any;
|
|
17
|
+
setUserInfo: (loginInfo: any) => void;
|
|
18
|
+
clearInfo: () => void;
|
|
19
|
+
hasApi: (api: string) => boolean;
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const sutil: {
|
|
2
|
+
baseUrl: string;
|
|
3
|
+
reset: () => void;
|
|
4
|
+
store: any;
|
|
5
|
+
getStore: (name: string) => any;
|
|
6
|
+
getDateOptions: (all?: boolean) => ({
|
|
7
|
+
label: any;
|
|
8
|
+
value: null;
|
|
9
|
+
key: string;
|
|
10
|
+
} | {
|
|
11
|
+
label: any;
|
|
12
|
+
value: number[];
|
|
13
|
+
key: string;
|
|
14
|
+
})[];
|
|
15
|
+
};
|
|
16
|
+
export default sutil;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare const svf: {
|
|
2
|
+
getVf: (obj: any, config: {
|
|
3
|
+
[key: string]: Partial<inputReg>;
|
|
4
|
+
}, fun?: any) => any;
|
|
5
|
+
inputVal: (config: inputReg & {
|
|
6
|
+
after: (val: any) => void;
|
|
7
|
+
val: string;
|
|
8
|
+
}) => string;
|
|
9
|
+
};
|
|
10
|
+
export default svf;
|
|
11
|
+
type inputReg = {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
/**
|
|
14
|
+
* 去除换行回车空格(默认为true)
|
|
15
|
+
*/
|
|
16
|
+
trim: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 只要整数
|
|
19
|
+
*/
|
|
20
|
+
int: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 只要小数
|
|
23
|
+
*/
|
|
24
|
+
float: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 保留小数后n位(默认为2)
|
|
27
|
+
*/
|
|
28
|
+
fixed: number;
|
|
29
|
+
/**
|
|
30
|
+
* 数字最小-小于更改为最小(默认为undefined)
|
|
31
|
+
*/
|
|
32
|
+
min: number;
|
|
33
|
+
/**
|
|
34
|
+
* 数字最大-大于更改为最大(默认为undefined)
|
|
35
|
+
*/
|
|
36
|
+
max: number;
|
|
37
|
+
/**
|
|
38
|
+
* 长度限制(默认为undefined)
|
|
39
|
+
*/
|
|
40
|
+
length: number;
|
|
41
|
+
/**
|
|
42
|
+
* 需要汉字
|
|
43
|
+
*/
|
|
44
|
+
getHanzi: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 需要数字
|
|
47
|
+
*/
|
|
48
|
+
getNum: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* 需要字母
|
|
51
|
+
*/
|
|
52
|
+
getEn: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* 自定义需要内容(如-_.等)
|
|
55
|
+
*/
|
|
56
|
+
getCustom: string;
|
|
57
|
+
/**
|
|
58
|
+
* 去除汉字
|
|
59
|
+
*/
|
|
60
|
+
delHanzi: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* 去除数字
|
|
63
|
+
*/
|
|
64
|
+
delNum: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* 去除字母
|
|
67
|
+
*/
|
|
68
|
+
delEn: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* 自定义去除内容(如-_.等)
|
|
71
|
+
*/
|
|
72
|
+
delCustom: string;
|
|
73
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { type App } from 'vue';
|
|
2
|
+
export default class System {
|
|
3
|
+
/**
|
|
4
|
+
* 环境变量
|
|
5
|
+
*/
|
|
6
|
+
static env: any;
|
|
7
|
+
/**
|
|
8
|
+
* i18n对象
|
|
9
|
+
*/
|
|
10
|
+
static i18n: any;
|
|
11
|
+
/**
|
|
12
|
+
* element-多语言对象
|
|
13
|
+
*/
|
|
14
|
+
static elementLocale: any;
|
|
15
|
+
/**
|
|
16
|
+
* 静态资源地址-默认/static_admin
|
|
17
|
+
*/
|
|
18
|
+
static staticDir: any;
|
|
19
|
+
static config: {
|
|
20
|
+
/**
|
|
21
|
+
* i18n组件对象-必传
|
|
22
|
+
*/
|
|
23
|
+
i18n: any;
|
|
24
|
+
/**
|
|
25
|
+
* 环境变量-必传
|
|
26
|
+
*/
|
|
27
|
+
env: any;
|
|
28
|
+
/**
|
|
29
|
+
* element-多语言对象-必传
|
|
30
|
+
*/
|
|
31
|
+
elementLocale: any;
|
|
32
|
+
/**
|
|
33
|
+
* 静态资源地址
|
|
34
|
+
*/
|
|
35
|
+
staticDir: any;
|
|
36
|
+
/**
|
|
37
|
+
* 网站配置
|
|
38
|
+
*/
|
|
39
|
+
website: Partial<{
|
|
40
|
+
/**
|
|
41
|
+
* 备案号
|
|
42
|
+
*/
|
|
43
|
+
recordNumber: any;
|
|
44
|
+
/**
|
|
45
|
+
* 设计者
|
|
46
|
+
*/
|
|
47
|
+
author: any;
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* 路由配置 -必传
|
|
51
|
+
* @example
|
|
52
|
+
/**
|
|
53
|
+
* 路由配置
|
|
54
|
+
* @example
|
|
55
|
+
* //把xx换成两个*号
|
|
56
|
+
* import.meta.glob([
|
|
57
|
+
* '~/views/xx/*.vue',
|
|
58
|
+
* '!~/views/xx/x-com/xx/*.vue',
|
|
59
|
+
* '!~/views/xx/x/com/xx/*.vue',
|
|
60
|
+
* '!~/views/xx/x/components/xx/*.vue'
|
|
61
|
+
* ])
|
|
62
|
+
*/
|
|
63
|
+
routes: Record<string, () => Promise<unknown>>;
|
|
64
|
+
/**
|
|
65
|
+
* 初始化回调
|
|
66
|
+
*/
|
|
67
|
+
install: (app: App) => any;
|
|
68
|
+
};
|
|
69
|
+
static setConfig(config: any): void;
|
|
70
|
+
static getBaseUrl(url: string): string;
|
|
71
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
show: {
|
|
3
|
+
default: boolean;
|
|
4
|
+
};
|
|
5
|
+
iconName: {
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
iconLib: {
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
iconFill: {
|
|
12
|
+
default: any[];
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
close: (...args: any[]) => void;
|
|
16
|
+
"update:show": (...args: any[]) => void;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
show: {
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
iconName: {
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
iconLib: {
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
iconFill: {
|
|
28
|
+
default: any[];
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{
|
|
31
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
iconName: string;
|
|
35
|
+
iconLib: string;
|
|
36
|
+
iconFill: any[];
|
|
37
|
+
show: boolean;
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
isbig: {
|
|
3
|
+
default: boolean;
|
|
4
|
+
};
|
|
5
|
+
el: {
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
lib: {
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
color: {
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
nofill: {
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
isbig: {
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
el: {
|
|
22
|
+
default: any;
|
|
23
|
+
};
|
|
24
|
+
lib: {
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
color: {
|
|
28
|
+
default: any;
|
|
29
|
+
};
|
|
30
|
+
nofill: {
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{}>, {
|
|
34
|
+
el: any;
|
|
35
|
+
lib: string;
|
|
36
|
+
color: any;
|
|
37
|
+
nofill: boolean;
|
|
38
|
+
isbig: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
export default _default;
|