xto-fronted 0.4.113 → 0.5.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/dist/assets/404-BYUyVmEj.js +1 -0
- package/dist/assets/404-CcAc5uFh.css +1 -0
- package/dist/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
- package/dist/assets/index-4oN1au3P.css +1 -0
- package/dist/assets/index-BHABoX0X.css +1 -0
- package/dist/assets/index-BLHh7ayu.js +2 -0
- package/dist/assets/index-BRR97dc6.js +1 -0
- package/dist/assets/index-BvN8lC5q.js +1 -0
- package/dist/assets/index-C6ibP7SB.css +1 -0
- package/dist/assets/index-CDtU4ZUe.css +1 -0
- package/dist/assets/index-CJGmoNxx.css +1 -0
- package/dist/assets/index-DVC3VgmM.js +1 -0
- package/dist/assets/index-DcPnYH2c.js +1 -0
- package/dist/assets/index-DhwBftHU.css +1 -0
- package/dist/assets/index-DnWF32Gw.js +1 -0
- package/dist/assets/index-NyagImtN.js +1 -0
- package/dist/assets/index-UghOubOn.css +1 -0
- package/dist/assets/index-oc3LDwZZ.js +1 -0
- package/dist/assets/vendor-CWD9azq9.js +16 -0
- package/dist/assets/vue-vendor-sSbh4bdR.js +29 -0
- package/dist/assets/xto-base-Bv2ek7Ha.css +1 -0
- package/dist/assets/xto-base-kM8Cl-e6.js +1 -0
- package/dist/assets/xto-business-CW6DXcvI.css +1 -0
- package/dist/assets/xto-core-DsKtn1lm.js +1 -0
- package/dist/assets/xto-data-CDPTH0CA.js +1 -0
- package/dist/assets/xto-data-CEFTtli6.css +1 -0
- package/dist/assets/xto-feedback-Di1AeKNY.css +1 -0
- package/dist/assets/xto-feedback-Dp_1dES5.js +1 -0
- package/dist/assets/xto-form-Bl3jCZ4e.js +1 -0
- package/dist/assets/xto-form-DC11rd9L.css +1 -0
- package/dist/assets/xto-layout-BR7iLA0e.css +1 -0
- package/dist/assets/xto-navigation-Bl-kwgN_.css +1 -0
- package/dist/assets/xto-navigation-Brox2Ork.js +1 -0
- package/dist/index.html +28 -0
- package/package.json +25 -27
- package/src/App.vue +9 -9
- package/src/assets/styles/_dark.scss +181 -181
- package/src/assets/styles/_reset.scss +14 -14
- package/src/assets/styles/_root.scss +153 -132
- package/src/assets/styles/_transition.scss +10 -10
- package/src/assets/styles/_variables.scss +26 -25
- package/src/assets/styles/index.scss +62 -62
- package/src/components/Layout/Footer.vue +1 -1
- package/src/components/Layout/Header.vue +69 -69
- package/src/components/Layout/MixTopMenu.vue +66 -66
- package/src/components/Layout/Sidebar.vue +6 -6
- package/src/components/Layout/SidebarMenuItem.vue +3 -3
- package/src/components/Layout/Tabs.vue +6 -6
- package/src/components/Layout/TopMenu.vue +66 -66
- package/src/components/Layout/index.vue +7 -7
- package/src/stores/app.ts +4 -4
- package/src/style.scss +14 -14
- package/src/views/dashboard/index.vue +54 -54
- package/src/views/error/403.vue +18 -18
- package/src/views/error/404.vue +23 -23
- package/src/views/login/index.vue +22 -22
- package/src/views/system/menu/index.vue +26 -26
- package/src/views/system/role/index.vue +27 -27
- package/src/views/system/user/index.vue +31 -31
- package/dist/App.vue.d.ts +0 -2
- package/dist/api/auth.d.ts +0 -8
- package/dist/api/index.d.ts +0 -6
- package/dist/api/index.js +0 -26
- package/dist/api/system.d.ts +0 -16
- package/dist/api/user.d.ts +0 -13
- package/dist/api.d.ts +0 -2
- package/dist/components/Layout/Footer.vue.d.ts +0 -2
- package/dist/components/Layout/Header.vue.d.ts +0 -5
- package/dist/components/Layout/MixTopMenu.vue.d.ts +0 -10
- package/dist/components/Layout/Sidebar.vue.d.ts +0 -13
- package/dist/components/Layout/SidebarMenuItem.vue.d.ts +0 -5
- package/dist/components/Layout/Tabs.vue.d.ts +0 -2
- package/dist/components/Layout/TopMenu.vue.d.ts +0 -10
- package/dist/components/Layout/index.vue.d.ts +0 -7
- package/dist/composables/useApp.d.ts +0 -30
- package/dist/composables/useAuth.d.ts +0 -6
- package/dist/composables/useForm.d.ts +0 -20
- package/dist/composables/useI18n.d.ts +0 -30
- package/dist/composables/useTable.d.ts +0 -29
- package/dist/directives/permission.d.ts +0 -4
- package/dist/enums/index.d.ts +0 -32
- package/dist/index-11ZvkUE8.js +0 -641
- package/dist/index-BVEs9eIP.js +0 -3171
- package/dist/index-BuVnk-Ka.js +0 -189
- package/dist/index-CPUyTvNq.js +0 -479
- package/dist/index-CaIet-zn.js +0 -515
- package/dist/index.d.ts +0 -63
- package/dist/index.js +0 -99
- package/dist/main.d.ts +0 -0
- package/dist/router/dynamicRoutes.d.ts +0 -30
- package/dist/router/guards.d.ts +0 -17
- package/dist/router/index.d.ts +0 -6
- package/dist/router/layoutRoute.d.ts +0 -23
- package/dist/router/staticRoutes.d.ts +0 -2
- package/dist/stores/app.d.ts +0 -99
- package/dist/stores/auth.d.ts +0 -41
- package/dist/stores/index.d.ts +0 -10
- package/dist/stores/locale.d.ts +0 -42
- package/dist/stores/menu.d.ts +0 -83
- package/dist/stores/user.d.ts +0 -101
- package/dist/style.css +0 -1
- package/dist/user-ChcAx-5W.js +0 -1186
- package/dist/utils/auth.d.ts +0 -27
- package/dist/utils/config.d.ts +0 -51
- package/dist/utils/permission.d.ts +0 -17
- package/dist/utils/request.d.ts +0 -34
- package/dist/utils/storage.d.ts +0 -24
- package/dist/views/dashboard/index.vue.d.ts +0 -2
- package/dist/views/error/403.vue.d.ts +0 -2
- package/dist/views/error/404.vue.d.ts +0 -2
- package/dist/views/login/index.vue.d.ts +0 -4
- package/dist/views/system/menu/index.vue.d.ts +0 -4
- package/dist/views/system/role/index.vue.d.ts +0 -4
- package/dist/views/system/user/index.vue.d.ts +0 -4
|
@@ -247,9 +247,9 @@ onMounted(() => {
|
|
|
247
247
|
<svg viewBox="0 0 64 41" fill="none">
|
|
248
248
|
<g transform="translate(0 1)">
|
|
249
249
|
<ellipse fill="#f5f5f5" cx="32" cy="33" rx="32" ry="7"/>
|
|
250
|
-
<g stroke="var(--color-text-placeholder)" stroke-width="2">
|
|
250
|
+
<g stroke="var(--xto-color-text-placeholder, #9CA3AF)" stroke-width="2">
|
|
251
251
|
<path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"/>
|
|
252
|
-
<path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35H11.95C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="var(--
|
|
252
|
+
<path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35H11.95C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="var(--xto-fill-color, #F3F4F6)"/>
|
|
253
253
|
</g>
|
|
254
254
|
</g>
|
|
255
255
|
</svg>
|
|
@@ -377,17 +377,17 @@ onMounted(() => {
|
|
|
377
377
|
<style lang="scss" scoped>
|
|
378
378
|
.user-page {
|
|
379
379
|
padding: 24px;
|
|
380
|
-
background: var(--bg-color-page);
|
|
380
|
+
background: var(--xto-bg-color-page, #F9FAFB);
|
|
381
381
|
min-height: 100%;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
// 搜索区域
|
|
385
385
|
.search-section {
|
|
386
|
-
background: var(--bg-color);
|
|
387
|
-
border-radius: var(--border-radius-large);
|
|
386
|
+
background: var(--xto-bg-color, #FFFFFF);
|
|
387
|
+
border-radius: var(--xto-border-radius-large, 8px);
|
|
388
388
|
padding: 20px 24px;
|
|
389
389
|
margin-bottom: 16px;
|
|
390
|
-
box-shadow: var(--
|
|
390
|
+
box-shadow: var(--xto-shadow-subtle, 0 1px 2px rgba(0, 0, 0, 0.05));
|
|
391
391
|
|
|
392
392
|
.search-form {
|
|
393
393
|
display: flex;
|
|
@@ -407,9 +407,9 @@ onMounted(() => {
|
|
|
407
407
|
|
|
408
408
|
// 表格区域
|
|
409
409
|
.table-section {
|
|
410
|
-
background: var(--bg-color);
|
|
411
|
-
border-radius: var(--border-radius-large);
|
|
412
|
-
box-shadow: var(--
|
|
410
|
+
background: var(--xto-bg-color, #FFFFFF);
|
|
411
|
+
border-radius: var(--xto-border-radius-large, 8px);
|
|
412
|
+
box-shadow: var(--xto-shadow-subtle, 0 1px 2px rgba(0, 0, 0, 0.05));
|
|
413
413
|
overflow: hidden;
|
|
414
414
|
}
|
|
415
415
|
|
|
@@ -418,7 +418,7 @@ onMounted(() => {
|
|
|
418
418
|
justify-content: space-between;
|
|
419
419
|
align-items: center;
|
|
420
420
|
padding: 16px 24px;
|
|
421
|
-
border-bottom: 1px solid var(--
|
|
421
|
+
border-bottom: 1px solid var(--xto-border-color-lighter, #F3F4F6);
|
|
422
422
|
|
|
423
423
|
.toolbar-left {
|
|
424
424
|
display: flex;
|
|
@@ -427,7 +427,7 @@ onMounted(() => {
|
|
|
427
427
|
|
|
428
428
|
.table-count {
|
|
429
429
|
font-size: 14px;
|
|
430
|
-
color: var(--color-text-secondary);
|
|
430
|
+
color: var(--xto-color-text-secondary, #6B7280);
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
|
|
@@ -443,14 +443,14 @@ onMounted(() => {
|
|
|
443
443
|
th, td {
|
|
444
444
|
padding: 14px 16px;
|
|
445
445
|
text-align: left;
|
|
446
|
-
border-bottom: 1px solid var(--
|
|
446
|
+
border-bottom: 1px solid var(--xto-border-color-lighter, #F3F4F6);
|
|
447
447
|
}
|
|
448
448
|
|
|
449
449
|
th {
|
|
450
450
|
font-size: 14px;
|
|
451
451
|
font-weight: 500;
|
|
452
|
-
color: var(--color-text-secondary);
|
|
453
|
-
background: var(--
|
|
452
|
+
color: var(--xto-color-text-secondary, #6B7280);
|
|
453
|
+
background: var(--xto-fill-color-light, #F9FAFB);
|
|
454
454
|
white-space: nowrap;
|
|
455
455
|
}
|
|
456
456
|
|
|
@@ -458,7 +458,7 @@ onMounted(() => {
|
|
|
458
458
|
transition: background-color 0.2s;
|
|
459
459
|
|
|
460
460
|
&:hover {
|
|
461
|
-
background: var(--color-primary-light-6);
|
|
461
|
+
background: var(--xto-color-primary-light-6, #A5B4FC);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
|
|
@@ -477,7 +477,7 @@ onMounted(() => {
|
|
|
477
477
|
flex-direction: column;
|
|
478
478
|
align-items: center;
|
|
479
479
|
gap: 16px;
|
|
480
|
-
color: var(--color-text-placeholder);
|
|
480
|
+
color: var(--xto-color-text-placeholder, #9CA3AF);
|
|
481
481
|
|
|
482
482
|
svg {
|
|
483
483
|
width: 64px;
|
|
@@ -488,8 +488,8 @@ onMounted(() => {
|
|
|
488
488
|
.loading-spinner {
|
|
489
489
|
width: 32px;
|
|
490
490
|
height: 32px;
|
|
491
|
-
border: 3px solid var(--
|
|
492
|
-
border-top-color: var(--color-primary);
|
|
491
|
+
border: 3px solid var(--xto-border-color-lighter, #F3F4F6);
|
|
492
|
+
border-top-color: var(--xto-color-primary, #4F46E5);
|
|
493
493
|
border-radius: 50%;
|
|
494
494
|
animation: spin 0.8s linear infinite;
|
|
495
495
|
}
|
|
@@ -508,11 +508,11 @@ onMounted(() => {
|
|
|
508
508
|
display: inline-block;
|
|
509
509
|
min-width: 32px;
|
|
510
510
|
padding: 4px 10px;
|
|
511
|
-
background: var(--
|
|
511
|
+
background: var(--xto-fill-color, #F3F4F6);
|
|
512
512
|
border-radius: 12px;
|
|
513
513
|
font-size: 12px;
|
|
514
514
|
font-weight: 500;
|
|
515
|
-
color: var(--color-text-secondary);
|
|
515
|
+
color: var(--xto-color-text-secondary, #6B7280);
|
|
516
516
|
text-align: center;
|
|
517
517
|
}
|
|
518
518
|
|
|
@@ -532,11 +532,11 @@ onMounted(() => {
|
|
|
532
532
|
display: flex;
|
|
533
533
|
align-items: center;
|
|
534
534
|
justify-content: center;
|
|
535
|
-
background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light-1) 100%);
|
|
535
|
+
background: linear-gradient(135deg, var(--xto-color-primary, #4F46E5) 0%, var(--xto-color-primary-light-1, #5B54E8) 100%);
|
|
536
536
|
border-radius: 50%;
|
|
537
537
|
font-size: 16px;
|
|
538
538
|
font-weight: 500;
|
|
539
|
-
color: #
|
|
539
|
+
color: var(--xto-bg-color, #FFFFFF);
|
|
540
540
|
flex-shrink: 0;
|
|
541
541
|
}
|
|
542
542
|
|
|
@@ -549,12 +549,12 @@ onMounted(() => {
|
|
|
549
549
|
.user-nickname {
|
|
550
550
|
font-size: 14px;
|
|
551
551
|
font-weight: 500;
|
|
552
|
-
color: var(--color-text-primary);
|
|
552
|
+
color: var(--xto-color-text-primary, #1F2937);
|
|
553
553
|
}
|
|
554
554
|
|
|
555
555
|
.user-username {
|
|
556
556
|
font-size: 12px;
|
|
557
|
-
color: var(--color-text-placeholder);
|
|
557
|
+
color: var(--xto-color-text-placeholder, #9CA3AF);
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
.col-contact {
|
|
@@ -570,11 +570,11 @@ onMounted(() => {
|
|
|
570
570
|
.contact-email,
|
|
571
571
|
.contact-phone {
|
|
572
572
|
font-size: 13px;
|
|
573
|
-
color: var(--color-text-regular);
|
|
573
|
+
color: var(--xto-color-text-regular, #4B5563);
|
|
574
574
|
}
|
|
575
575
|
|
|
576
576
|
.contact-phone {
|
|
577
|
-
color: var(--color-text-secondary);
|
|
577
|
+
color: var(--xto-color-text-secondary, #6B7280);
|
|
578
578
|
}
|
|
579
579
|
|
|
580
580
|
.col-roles {
|
|
@@ -598,10 +598,10 @@ onMounted(() => {
|
|
|
598
598
|
|
|
599
599
|
.status-text {
|
|
600
600
|
font-size: 13px;
|
|
601
|
-
color: var(--color-text-secondary);
|
|
601
|
+
color: var(--xto-color-text-secondary, #6B7280);
|
|
602
602
|
|
|
603
603
|
&.enabled {
|
|
604
|
-
color: var(--color-success);
|
|
604
|
+
color: var(--xto-color-success, #10B981);
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
|
|
@@ -611,7 +611,7 @@ onMounted(() => {
|
|
|
611
611
|
|
|
612
612
|
.time-text {
|
|
613
613
|
font-size: 13px;
|
|
614
|
-
color: var(--color-text-secondary);
|
|
614
|
+
color: var(--xto-color-text-secondary, #6B7280);
|
|
615
615
|
}
|
|
616
616
|
|
|
617
617
|
.col-actions {
|
|
@@ -635,7 +635,7 @@ onMounted(() => {
|
|
|
635
635
|
display: flex;
|
|
636
636
|
justify-content: flex-end;
|
|
637
637
|
padding: 16px 24px;
|
|
638
|
-
border-top: 1px solid var(--
|
|
638
|
+
border-top: 1px solid var(--xto-border-color-lighter, #F3F4F6);
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
// 弹窗表单
|
|
@@ -650,7 +650,7 @@ onMounted(() => {
|
|
|
650
650
|
|
|
651
651
|
.status-label {
|
|
652
652
|
font-size: 14px;
|
|
653
|
-
color: var(--color-text-secondary);
|
|
653
|
+
color: var(--xto-color-text-secondary, #6B7280);
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
</style>
|
package/dist/App.vue.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
-
export default _default;
|
package/dist/api/auth.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LoginParams, LoginResult, UserInfo } from '../types/api';
|
|
2
|
-
export declare function login(data: LoginParams): Promise<LoginResult>;
|
|
3
|
-
export declare function logout(): Promise<unknown>;
|
|
4
|
-
export declare function getUserInfo(): Promise<UserInfo>;
|
|
5
|
-
export declare function refreshToken(refreshToken: string): Promise<{
|
|
6
|
-
token: string;
|
|
7
|
-
expireTime: number;
|
|
8
|
-
}>;
|
package/dist/api/index.d.ts
DELETED
package/dist/api/index.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { b as a, c as t, a as r, d as l, e as o, f as u, g as d, h as g, i as n, j as U, k as i, l as p, m as R, n as c, o as M, p as f, r as h, q as D, u as L, s as b, t as k, v as m, w } from "../user-ChcAx-5W.js";
|
|
2
|
-
export {
|
|
3
|
-
a as batchDeleteUsers,
|
|
4
|
-
t as createMenu,
|
|
5
|
-
r as createRole,
|
|
6
|
-
l as createUser,
|
|
7
|
-
o as deleteMenu,
|
|
8
|
-
u as deleteRole,
|
|
9
|
-
d as deleteUser,
|
|
10
|
-
g as getMenuList,
|
|
11
|
-
n as getMenuTree,
|
|
12
|
-
U as getRoleDetail,
|
|
13
|
-
i as getRoleList,
|
|
14
|
-
p as getUserDetail,
|
|
15
|
-
R as getUserInfo,
|
|
16
|
-
c as getUserList,
|
|
17
|
-
M as login,
|
|
18
|
-
f as logout,
|
|
19
|
-
h as refreshToken,
|
|
20
|
-
D as resetPassword,
|
|
21
|
-
L as updateMenu,
|
|
22
|
-
b as updateRole,
|
|
23
|
-
k as updateRoleStatus,
|
|
24
|
-
m as updateUser,
|
|
25
|
-
w as updateUserStatus
|
|
26
|
-
};
|
package/dist/api/system.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PageParams, PageResponse } from '../utils/request';
|
|
2
|
-
import { RoleInfo, MenuItem } from '../types/api';
|
|
3
|
-
export declare function getRoleList(params: PageParams & {
|
|
4
|
-
status?: number;
|
|
5
|
-
keyword?: string;
|
|
6
|
-
}): Promise<PageResponse<RoleInfo>>;
|
|
7
|
-
export declare function getRoleDetail(id: string | number): Promise<RoleInfo>;
|
|
8
|
-
export declare function createRole(data: Partial<RoleInfo>): Promise<RoleInfo>;
|
|
9
|
-
export declare function updateRole(id: string | number, data: Partial<RoleInfo>): Promise<RoleInfo>;
|
|
10
|
-
export declare function deleteRole(id: string | number): Promise<unknown>;
|
|
11
|
-
export declare function updateRoleStatus(id: string | number, status: number): Promise<unknown>;
|
|
12
|
-
export declare function getMenuList(): Promise<MenuItem[]>;
|
|
13
|
-
export declare function getMenuTree(appId?: string): Promise<MenuItem[]>;
|
|
14
|
-
export declare function createMenu(data: Partial<MenuItem>): Promise<MenuItem>;
|
|
15
|
-
export declare function updateMenu(id: string | number, data: Partial<MenuItem>): Promise<MenuItem>;
|
|
16
|
-
export declare function deleteMenu(id: string | number): Promise<unknown>;
|
package/dist/api/user.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PageParams, PageResponse } from '../utils/request';
|
|
2
|
-
import { UserInfo } from '../types/api';
|
|
3
|
-
export declare function getUserList(params: PageParams & {
|
|
4
|
-
status?: number;
|
|
5
|
-
keyword?: string;
|
|
6
|
-
}): Promise<PageResponse<UserInfo>>;
|
|
7
|
-
export declare function getUserDetail(id: string | number): Promise<UserInfo>;
|
|
8
|
-
export declare function createUser(data: Partial<UserInfo>): Promise<UserInfo>;
|
|
9
|
-
export declare function updateUser(id: string | number, data: Partial<UserInfo>): Promise<UserInfo>;
|
|
10
|
-
export declare function deleteUser(id: string | number): Promise<unknown>;
|
|
11
|
-
export declare function batchDeleteUsers(ids: (string | number)[]): Promise<unknown>;
|
|
12
|
-
export declare function updateUserStatus(id: string | number, status: number): Promise<unknown>;
|
|
13
|
-
export declare function resetPassword(id: string | number): Promise<unknown>;
|
package/dist/api.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
-
searchRef: HTMLDivElement;
|
|
3
|
-
dropdownRef: HTMLDivElement;
|
|
4
|
-
}, HTMLDivElement>;
|
|
5
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
logoSrc?: string;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
-
logoSrc: string;
|
|
6
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
7
|
-
searchRef: HTMLDivElement;
|
|
8
|
-
dropdownRef: HTMLDivElement;
|
|
9
|
-
}, HTMLDivElement>;
|
|
10
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
menuList?: any[];
|
|
3
|
-
showLogo?: boolean;
|
|
4
|
-
showUser?: boolean;
|
|
5
|
-
logoSrc?: string;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
-
menuList: any[];
|
|
9
|
-
showLogo: boolean;
|
|
10
|
-
showUser: boolean;
|
|
11
|
-
logoSrc: string;
|
|
12
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
menu: any;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
logoSrc?: string;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
-
logoSrc: string;
|
|
6
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
7
|
-
searchRef: HTMLDivElement;
|
|
8
|
-
dropdownRef: HTMLDivElement;
|
|
9
|
-
}, HTMLDivElement>;
|
|
10
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
logoSrc?: string;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
-
logoSrc: string;
|
|
6
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 应用组合函数
|
|
3
|
-
* 提供应用级别的状态和方法
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* 应用级别组合函数
|
|
7
|
-
* @returns 应用状态和方法
|
|
8
|
-
*/
|
|
9
|
-
export declare function useApp(): {
|
|
10
|
-
userName: import('vue').ComputedRef<string>;
|
|
11
|
-
userInfo: import('vue').ComputedRef<{
|
|
12
|
-
appId: string;
|
|
13
|
-
userId: string;
|
|
14
|
-
userName: string;
|
|
15
|
-
departmentName?: string | undefined;
|
|
16
|
-
roleName?: string | undefined;
|
|
17
|
-
email?: string | undefined;
|
|
18
|
-
mobilePhone?: string | undefined;
|
|
19
|
-
positionName?: string | undefined;
|
|
20
|
-
avatar?: string | undefined;
|
|
21
|
-
} | null>;
|
|
22
|
-
appName: import('vue').ComputedRef<string>;
|
|
23
|
-
isLoggedIn: import('vue').ComputedRef<boolean>;
|
|
24
|
-
isDark: import('vue').ComputedRef<boolean>;
|
|
25
|
-
theme: import('vue').ComputedRef<import('../stores/app').ThemeMode>;
|
|
26
|
-
isCollapsed: import('vue').ComputedRef<boolean>;
|
|
27
|
-
layout: import('vue').ComputedRef<import('../stores/app').LayoutMode>;
|
|
28
|
-
toggleTheme: () => void;
|
|
29
|
-
toggleCollapse: () => void;
|
|
30
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 表单组合函数
|
|
3
|
-
*/
|
|
4
|
-
export interface FormOptions<T = any> {
|
|
5
|
-
rules?: Record<string, any[]>;
|
|
6
|
-
onSubmit?: (data: T) => Promise<void> | void;
|
|
7
|
-
}
|
|
8
|
-
export declare function useForm<T extends Record<string, any> = Record<string, any>>(initialValues: T, options?: FormOptions<T>): {
|
|
9
|
-
formRef: import('vue').Ref<any, any>;
|
|
10
|
-
formData: import('vue').Reactive<T>;
|
|
11
|
-
rules: Record<string, any[]> | undefined;
|
|
12
|
-
loading: import('vue').Ref<boolean, boolean>;
|
|
13
|
-
visible: import('vue').Ref<boolean, boolean>;
|
|
14
|
-
isEdit: import('vue').Ref<boolean, boolean>;
|
|
15
|
-
openAdd: () => void;
|
|
16
|
-
openEdit: (data: Partial<T>) => void;
|
|
17
|
-
close: () => void;
|
|
18
|
-
resetForm: () => void;
|
|
19
|
-
handleSubmit: () => Promise<void>;
|
|
20
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { LocaleCode, LocaleMessages } from '@xto/core/locale';
|
|
2
|
-
/**
|
|
3
|
-
* 使用国际化
|
|
4
|
-
* 封装 locale store,提供更简洁的 API
|
|
5
|
-
*/
|
|
6
|
-
export declare function useI18n(): {
|
|
7
|
-
/** 当前语言代码 */
|
|
8
|
-
locale: LocaleCode;
|
|
9
|
-
/** 当前语言名称 */
|
|
10
|
-
localeName: string;
|
|
11
|
-
/** 支持的语言列表 */
|
|
12
|
-
locales: {
|
|
13
|
-
code: LocaleCode;
|
|
14
|
-
name: string;
|
|
15
|
-
}[];
|
|
16
|
-
/** 翻译函数 */
|
|
17
|
-
t: (key: string, ...args: (string | number)[]) => string;
|
|
18
|
-
/** 当前语言包 */
|
|
19
|
-
messages: LocaleMessages;
|
|
20
|
-
/** 切换语言 */
|
|
21
|
-
setLocale: (code: LocaleCode) => void;
|
|
22
|
-
/** 添加自定义翻译 */
|
|
23
|
-
addMessages: (msgs: LocaleMessages) => void;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* 创建翻译函数
|
|
27
|
-
* 用于在非组件上下文中使用翻译
|
|
28
|
-
*/
|
|
29
|
-
export declare function createTranslator(): (key: string, ...args: (string | number)[]) => string;
|
|
30
|
-
export type { LocaleCode, LocaleMessages };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 表格组合函数
|
|
3
|
-
*/
|
|
4
|
-
export interface TableOptions<T = any> {
|
|
5
|
-
fetchData: (params: any) => Promise<{
|
|
6
|
-
list: T[];
|
|
7
|
-
total: number;
|
|
8
|
-
}>;
|
|
9
|
-
defaultPageSize?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare function useTable<T = any>(options: TableOptions<T>): {
|
|
12
|
-
loading: import('vue').Ref<boolean, boolean>;
|
|
13
|
-
data: any;
|
|
14
|
-
total: import('vue').Ref<number, number>;
|
|
15
|
-
currentPage: import('vue').Ref<number, number>;
|
|
16
|
-
pageSize: import('vue').Ref<number, number>;
|
|
17
|
-
searchParams: Record<string, any>;
|
|
18
|
-
pagination: import('vue').ComputedRef<{
|
|
19
|
-
current: number;
|
|
20
|
-
pageSize: number;
|
|
21
|
-
total: number;
|
|
22
|
-
}>;
|
|
23
|
-
getData: () => Promise<void>;
|
|
24
|
-
handleSearch: () => void;
|
|
25
|
-
handleReset: () => void;
|
|
26
|
-
handlePageChange: (page: number) => void;
|
|
27
|
-
handleSizeChange: (size: number) => void;
|
|
28
|
-
refresh: () => void;
|
|
29
|
-
};
|
package/dist/enums/index.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 枚举常量
|
|
3
|
-
*/
|
|
4
|
-
export declare enum Status {
|
|
5
|
-
ENABLED = 1,
|
|
6
|
-
DISABLED = 0
|
|
7
|
-
}
|
|
8
|
-
export declare enum Gender {
|
|
9
|
-
UNKNOWN = 0,
|
|
10
|
-
MALE = 1,
|
|
11
|
-
FEMALE = 2
|
|
12
|
-
}
|
|
13
|
-
export declare enum MenuType {
|
|
14
|
-
DIRECTORY = 0,
|
|
15
|
-
MENU = 1,
|
|
16
|
-
BUTTON = 2
|
|
17
|
-
}
|
|
18
|
-
export declare const StatusText: Record<Status, string>;
|
|
19
|
-
export declare const GenderText: Record<Gender, string>;
|
|
20
|
-
export declare const MenuTypeText: Record<MenuType, string>;
|
|
21
|
-
export declare const StatusOptions: {
|
|
22
|
-
label: string;
|
|
23
|
-
value: Status;
|
|
24
|
-
}[];
|
|
25
|
-
export declare const GenderOptions: {
|
|
26
|
-
label: string;
|
|
27
|
-
value: Gender;
|
|
28
|
-
}[];
|
|
29
|
-
export declare const MenuTypeOptions: {
|
|
30
|
-
label: string;
|
|
31
|
-
value: MenuType;
|
|
32
|
-
}[];
|