@liujitcn/kratos-admin-core 0.0.28 → 0.0.31
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 +7 -6
- package/build/auto-imports.json +73 -0
- package/build/plugins.ts +2 -58
- package/dist/package/declarations/src/api/base/mfa.d.ts +26 -0
- package/dist/package/declarations/src/components/Dialog/FormDialog.vue.d.ts +3 -3
- package/dist/package/declarations/src/components/Dialog/PasswordVerifyDialog.vue.d.ts +65 -0
- package/dist/package/declarations/src/components/Dialog/ProDialog.vue.d.ts +1 -1
- package/dist/package/declarations/src/components/Grid/components/GridItem.vue.d.ts +1 -1
- package/dist/package/declarations/src/components/Mfa/MfaRecoveryCodesDialog.vue.d.ts +19 -0
- package/dist/package/declarations/src/components/Mfa/MfaSetupPanel.vue.d.ts +8 -0
- package/dist/package/declarations/src/components/ProForm/components/ProFormItem.vue.d.ts +4 -4
- package/dist/package/declarations/src/components/ProForm/index.vue.d.ts +1 -1
- package/dist/package/declarations/src/components/ProForm/interface/index.d.ts +4 -1
- package/dist/package/declarations/src/components/RichTextPreview/index.vue.d.ts +8 -0
- package/dist/package/declarations/src/components/Upload/Img.vue.d.ts +1 -1
- package/dist/package/declarations/src/components/Upload/Imgs.vue.d.ts +1 -1
- package/dist/package/declarations/src/layouts/components/LockScreen.vue.d.ts +3 -0
- package/dist/package/declarations/src/locales/generated.d.ts +168 -0
- package/dist/package/declarations/src/locales/index.d.ts +2 -0
- package/dist/package/declarations/src/rpc/base/v1/login.d.ts +33 -3
- package/dist/package/declarations/src/rpc/base/v1/mfa.d.ts +152 -0
- package/dist/package/declarations/src/rpc/base/v1/oauth.d.ts +25 -0
- package/dist/package/declarations/src/rpc/base/v1/oauth_client.d.ts +23 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_dict.d.ts +4 -4
- package/dist/package/declarations/src/rpc/system/admin/v1/base_i18n.d.ts +27 -23
- package/dist/package/declarations/src/security.d.ts +2 -0
- package/dist/package/declarations/src/stores/interface/index.d.ts +14 -1
- package/dist/package/declarations/src/stores/modules/lockScreen.d.ts +20 -0
- package/dist/package/declarations/src/stores/modules/user.d.ts +5 -2
- package/dist/package/declarations/src/stores/runtime.d.ts +1 -0
- package/dist/package/declarations/src/utils/clipboard.d.ts +2 -0
- package/dist/package/declarations/src/utils/webauthn.d.ts +4 -0
- package/dist/package/declarations/vite.config.d.ts +2 -0
- package/dist/package/src/api/base/mfa.ts +114 -0
- package/dist/package/src/components/Dialog/PasswordVerifyDialog.vue +176 -0
- package/dist/package/src/components/Loading/fullScreen.ts +2 -1
- package/dist/package/src/components/MarkdownPreview/index.vue +21 -1
- package/dist/package/src/components/Mfa/MfaRecoveryCodesDialog.vue +91 -0
- package/dist/package/src/components/Mfa/MfaSetupPanel.vue +81 -0
- package/dist/package/src/components/ProForm/components/ProFormItem.vue +16 -1
- package/dist/package/src/components/ProForm/interface/index.ts +4 -0
- package/dist/package/src/components/ProTable/components/ColSetting.vue +1 -1
- package/dist/package/src/components/ProTable/index.vue +6 -2
- package/dist/package/src/components/RichTextPreview/index.vue +45 -0
- package/dist/package/src/config/index.ts +1 -1
- package/dist/package/src/layouts/LayoutClassic/index.vue +3 -1
- package/dist/package/src/layouts/LayoutColumns/index.vue +3 -1
- package/dist/package/src/layouts/LayoutTransverse/index.vue +3 -1
- package/dist/package/src/layouts/LayoutVertical/index.vue +9 -1
- package/dist/package/src/layouts/components/Header/components/Avatar.vue +23 -4
- package/dist/package/src/layouts/components/Header/components/InfoDialog.vue +1 -1
- package/dist/package/src/layouts/components/Header/components/PasswordDialog.vue +1 -1
- package/dist/package/src/layouts/components/LockScreen.vue +450 -0
- package/dist/package/src/layouts/index.vue +2 -0
- package/dist/package/src/layouts/indexAsync.vue +2 -0
- package/dist/package/src/locales/README.md +2 -1
- package/dist/package/src/locales/en-US.json +43 -1
- package/dist/package/src/locales/index.ts +16 -12
- package/dist/package/src/locales/ja-JP.json +43 -1
- package/dist/package/src/locales/zh-CN.json +43 -1
- package/dist/package/src/locales/zh-TW.json +43 -1
- package/dist/package/src/rpc/base/v1/login.ts +33 -2
- package/dist/package/src/rpc/base/v1/mfa.ts +180 -0
- package/dist/package/src/rpc/base/v1/oauth.ts +25 -0
- package/dist/package/src/rpc/base/v1/oauth_client.ts +33 -0
- package/dist/package/src/rpc/system/admin/v1/base_dict.ts +4 -4
- package/dist/package/src/rpc/system/admin/v1/base_i18n.ts +27 -23
- package/dist/package/src/security.ts +2 -0
- package/dist/package/src/stores/interface/index.ts +15 -1
- package/dist/package/src/stores/modules/config.ts +4 -4
- package/dist/package/src/stores/modules/lockScreen.ts +78 -0
- package/dist/package/src/stores/modules/user.ts +16 -3
- package/dist/package/src/stores/runtime.ts +1 -0
- package/dist/package/src/utils/clipboard.ts +22 -0
- package/dist/package/src/utils/request.ts +26 -10
- package/dist/package/src/utils/webauthn.ts +90 -0
- package/dist/package/src/views/login/components/LoginForm.vue +237 -16
- package/dist/package/src/views/login/index.vue +3 -1
- package/dist/package/types/generated/auto-imports.d.ts +132 -129
- package/dist/package/types/generated/components.d.ts +4 -72
- package/package.json +22 -1
- package/types/generated/auto-imports.d.ts +132 -129
- package/types/generated/components.d.ts +4 -72
- package/vite.config.ts +3 -1
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
// ------
|
|
6
6
|
// Generated by unplugin-vue-components
|
|
7
7
|
// Read more: https://github.com/vuejs/core/pull/3399
|
|
8
|
-
import { GlobalComponents } from "vue";
|
|
9
8
|
|
|
10
|
-
export {}
|
|
9
|
+
export {}
|
|
11
10
|
|
|
12
11
|
/* prettier-ignore */
|
|
13
12
|
declare module 'vue' {
|
|
@@ -15,6 +14,7 @@ declare module 'vue' {
|
|
|
15
14
|
ElAlert: typeof import('element-plus/es')['ElAlert']
|
|
16
15
|
ElAside: typeof import('element-plus/es')['ElAside']
|
|
17
16
|
ElAvatar: typeof import('element-plus/es')['ElAvatar']
|
|
17
|
+
ElBadge: typeof import('element-plus/es')['ElBadge']
|
|
18
18
|
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
|
|
19
19
|
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
|
|
20
20
|
ElButton: typeof import('element-plus/es')['ElButton']
|
|
@@ -44,6 +44,7 @@ declare module 'vue' {
|
|
|
44
44
|
ElImageViewer: typeof import('element-plus/es')['ElImageViewer']
|
|
45
45
|
ElInput: typeof import('element-plus/es')['ElInput']
|
|
46
46
|
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
|
|
47
|
+
ElLink: typeof import('element-plus/es')['ElLink']
|
|
47
48
|
ElMain: typeof import('element-plus/es')['ElMain']
|
|
48
49
|
ElMenu: typeof import('element-plus/es')['ElMenu']
|
|
49
50
|
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
|
@@ -71,81 +72,12 @@ declare module 'vue' {
|
|
|
71
72
|
ElTag: typeof import('element-plus/es')['ElTag']
|
|
72
73
|
ElTooltip: typeof import('element-plus/es')['ElTooltip']
|
|
73
74
|
ElTransfer: typeof import('element-plus/es')['ElTransfer']
|
|
75
|
+
ElTree: typeof import('element-plus/es')['ElTree']
|
|
74
76
|
ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
|
|
75
77
|
ElUpload: typeof import('element-plus/es')['ElUpload']
|
|
76
78
|
ElWatermark: typeof import('element-plus/es')['ElWatermark']
|
|
77
|
-
RouterLink: typeof import('vue-router')['RouterLink']
|
|
78
|
-
RouterView: typeof import('vue-router')['RouterView']
|
|
79
79
|
}
|
|
80
80
|
export interface GlobalDirectives {
|
|
81
81
|
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
// For TSX support
|
|
86
|
-
declare global {
|
|
87
|
-
const ElAlert: (typeof import("element-plus/es"))["ElAlert"];
|
|
88
|
-
const ElAside: (typeof import("element-plus/es"))["ElAside"];
|
|
89
|
-
const ElAvatar: (typeof import("element-plus/es"))["ElAvatar"];
|
|
90
|
-
const ElBreadcrumb: (typeof import("element-plus/es"))["ElBreadcrumb"];
|
|
91
|
-
const ElBreadcrumbItem: (typeof import("element-plus/es"))["ElBreadcrumbItem"];
|
|
92
|
-
const ElButton: (typeof import("element-plus/es"))["ElButton"];
|
|
93
|
-
const ElCard: (typeof import("element-plus/es"))["ElCard"];
|
|
94
|
-
const ElCheckbox: (typeof import("element-plus/es"))["ElCheckbox"];
|
|
95
|
-
const ElCheckboxGroup: (typeof import("element-plus/es"))["ElCheckboxGroup"];
|
|
96
|
-
const ElCol: (typeof import("element-plus/es"))["ElCol"];
|
|
97
|
-
const ElCollapse: (typeof import("element-plus/es"))["ElCollapse"];
|
|
98
|
-
const ElCollapseItem: (typeof import("element-plus/es"))["ElCollapseItem"];
|
|
99
|
-
const ElColorPicker: (typeof import("element-plus/es"))["ElColorPicker"];
|
|
100
|
-
const ElContainer: (typeof import("element-plus/es"))["ElContainer"];
|
|
101
|
-
const ElDatePicker: (typeof import("element-plus/es"))["ElDatePicker"];
|
|
102
|
-
const ElDescriptions: (typeof import("element-plus/es"))["ElDescriptions"];
|
|
103
|
-
const ElDescriptionsItem: (typeof import("element-plus/es"))["ElDescriptionsItem"];
|
|
104
|
-
const ElDialog: (typeof import("element-plus/es"))["ElDialog"];
|
|
105
|
-
const ElDivider: (typeof import("element-plus/es"))["ElDivider"];
|
|
106
|
-
const ElDrawer: (typeof import("element-plus/es"))["ElDrawer"];
|
|
107
|
-
const ElDropdown: (typeof import("element-plus/es"))["ElDropdown"];
|
|
108
|
-
const ElDropdownItem: (typeof import("element-plus/es"))["ElDropdownItem"];
|
|
109
|
-
const ElDropdownMenu: (typeof import("element-plus/es"))["ElDropdownMenu"];
|
|
110
|
-
const ElEmpty: (typeof import("element-plus/es"))["ElEmpty"];
|
|
111
|
-
const ElFooter: (typeof import("element-plus/es"))["ElFooter"];
|
|
112
|
-
const ElForm: (typeof import("element-plus/es"))["ElForm"];
|
|
113
|
-
const ElFormItem: (typeof import("element-plus/es"))["ElFormItem"];
|
|
114
|
-
const ElHeader: (typeof import("element-plus/es"))["ElHeader"];
|
|
115
|
-
const ElIcon: (typeof import("element-plus/es"))["ElIcon"];
|
|
116
|
-
const ElImageViewer: (typeof import("element-plus/es"))["ElImageViewer"];
|
|
117
|
-
const ElInput: (typeof import("element-plus/es"))["ElInput"];
|
|
118
|
-
const ElInputNumber: (typeof import("element-plus/es"))["ElInputNumber"];
|
|
119
|
-
const ElMain: (typeof import("element-plus/es"))["ElMain"];
|
|
120
|
-
const ElMenu: (typeof import("element-plus/es"))["ElMenu"];
|
|
121
|
-
const ElMenuItem: (typeof import("element-plus/es"))["ElMenuItem"];
|
|
122
|
-
const ElOption: (typeof import("element-plus/es"))["ElOption"];
|
|
123
|
-
const ElPagination: (typeof import("element-plus/es"))["ElPagination"];
|
|
124
|
-
const ElPopconfirm: (typeof import("element-plus/es"))["ElPopconfirm"];
|
|
125
|
-
const ElPopover: (typeof import("element-plus/es"))["ElPopover"];
|
|
126
|
-
const ElProgress: (typeof import("element-plus/es"))["ElProgress"];
|
|
127
|
-
const ElRadio: (typeof import("element-plus/es"))["ElRadio"];
|
|
128
|
-
const ElRadioButton: (typeof import("element-plus/es"))["ElRadioButton"];
|
|
129
|
-
const ElRadioGroup: (typeof import("element-plus/es"))["ElRadioGroup"];
|
|
130
|
-
const ElResult: (typeof import("element-plus/es"))["ElResult"];
|
|
131
|
-
const ElRow: (typeof import("element-plus/es"))["ElRow"];
|
|
132
|
-
const ElScrollbar: (typeof import("element-plus/es"))["ElScrollbar"];
|
|
133
|
-
const ElSegmented: (typeof import("element-plus/es"))["ElSegmented"];
|
|
134
|
-
const ElSelect: (typeof import("element-plus/es"))["ElSelect"];
|
|
135
|
-
const ElSkeleton: (typeof import("element-plus/es"))["ElSkeleton"];
|
|
136
|
-
const ElSpace: (typeof import("element-plus/es"))["ElSpace"];
|
|
137
|
-
const ElSubMenu: (typeof import("element-plus/es"))["ElSubMenu"];
|
|
138
|
-
const ElSwitch: (typeof import("element-plus/es"))["ElSwitch"];
|
|
139
|
-
const ElTable: (typeof import("element-plus/es"))["ElTable"];
|
|
140
|
-
const ElTableColumn: (typeof import("element-plus/es"))["ElTableColumn"];
|
|
141
|
-
const ElTabPane: (typeof import("element-plus/es"))["ElTabPane"];
|
|
142
|
-
const ElTabs: (typeof import("element-plus/es"))["ElTabs"];
|
|
143
|
-
const ElTag: (typeof import("element-plus/es"))["ElTag"];
|
|
144
|
-
const ElTooltip: (typeof import("element-plus/es"))["ElTooltip"];
|
|
145
|
-
const ElTransfer: (typeof import("element-plus/es"))["ElTransfer"];
|
|
146
|
-
const ElTreeSelect: (typeof import("element-plus/es"))["ElTreeSelect"];
|
|
147
|
-
const ElUpload: (typeof import("element-plus/es"))["ElUpload"];
|
|
148
|
-
const ElWatermark: (typeof import("element-plus/es"))["ElWatermark"];
|
|
149
|
-
const RouterLink: (typeof import("vue-router"))["RouterLink"];
|
|
150
|
-
const RouterView: (typeof import("vue-router"))["RouterView"];
|
|
151
|
-
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liujitcn/kratos-admin-core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.31",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "kratos-admin frontend runtime and base modules",
|
|
7
7
|
"author": {
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"nprogress": "^0.2.0",
|
|
43
43
|
"pinia": "^3.0.4",
|
|
44
44
|
"pinia-plugin-persistedstate": "^4.7.1",
|
|
45
|
+
"qrcode-generator": "^2.0.4",
|
|
45
46
|
"qs": "^6.12.1",
|
|
46
47
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
47
48
|
"screenfull": "^6.0.2",
|
|
@@ -103,6 +104,18 @@
|
|
|
103
104
|
"types": "./dist/package/declarations/src/components/Dialog/ProDialog.vue.d.ts",
|
|
104
105
|
"default": "./dist/package/src/components/Dialog/ProDialog.vue"
|
|
105
106
|
},
|
|
107
|
+
"./components/Dialog/PasswordVerifyDialog.vue": {
|
|
108
|
+
"types": "./dist/package/declarations/src/components/Dialog/PasswordVerifyDialog.vue.d.ts",
|
|
109
|
+
"default": "./dist/package/src/components/Dialog/PasswordVerifyDialog.vue"
|
|
110
|
+
},
|
|
111
|
+
"./components/Mfa/MfaSetupPanel.vue": {
|
|
112
|
+
"types": "./dist/package/declarations/src/components/Mfa/MfaSetupPanel.vue.d.ts",
|
|
113
|
+
"default": "./dist/package/src/components/Mfa/MfaSetupPanel.vue"
|
|
114
|
+
},
|
|
115
|
+
"./components/Mfa/MfaRecoveryCodesDialog.vue": {
|
|
116
|
+
"types": "./dist/package/declarations/src/components/Mfa/MfaRecoveryCodesDialog.vue.d.ts",
|
|
117
|
+
"default": "./dist/package/src/components/Mfa/MfaRecoveryCodesDialog.vue"
|
|
118
|
+
},
|
|
106
119
|
"./components/Dict/DictLabel.vue": {
|
|
107
120
|
"types": "./dist/package/declarations/src/components/Dict/DictLabel.vue.d.ts",
|
|
108
121
|
"default": "./dist/package/src/components/Dict/DictLabel.vue"
|
|
@@ -111,6 +124,14 @@
|
|
|
111
124
|
"types": "./dist/package/declarations/src/components/MarkdownPreview/index.vue.d.ts",
|
|
112
125
|
"default": "./dist/package/src/components/MarkdownPreview/index.vue"
|
|
113
126
|
},
|
|
127
|
+
"./components/ECharts/index.vue": {
|
|
128
|
+
"types": "./dist/package/declarations/src/components/ECharts/index.vue.d.ts",
|
|
129
|
+
"default": "./dist/package/src/components/ECharts/index.vue"
|
|
130
|
+
},
|
|
131
|
+
"./components/RichTextPreview/index.vue": {
|
|
132
|
+
"types": "./dist/package/declarations/src/components/RichTextPreview/index.vue.d.ts",
|
|
133
|
+
"default": "./dist/package/src/components/RichTextPreview/index.vue"
|
|
134
|
+
},
|
|
114
135
|
"./components/PasswordStrength/index.vue": {
|
|
115
136
|
"types": "./dist/package/declarations/src/components/PasswordStrength/index.vue.d.ts",
|
|
116
137
|
"default": "./dist/package/src/components/PasswordStrength/index.vue"
|
|
@@ -6,137 +6,140 @@
|
|
|
6
6
|
// biome-ignore lint: disable
|
|
7
7
|
export {}
|
|
8
8
|
declare global {
|
|
9
|
-
const ArrowDown: typeof import(
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
const
|
|
87
|
-
const
|
|
88
|
-
const
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
const
|
|
95
|
-
const
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
const
|
|
100
|
-
const
|
|
101
|
-
const
|
|
102
|
-
const
|
|
103
|
-
const
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
const
|
|
111
|
-
const
|
|
112
|
-
const
|
|
113
|
-
const
|
|
114
|
-
const
|
|
115
|
-
const
|
|
116
|
-
const
|
|
117
|
-
const
|
|
9
|
+
const ArrowDown: typeof import('@element-plus/icons-vue').ArrowDown
|
|
10
|
+
const ArrowLeft: typeof import('@element-plus/icons-vue').ArrowLeft
|
|
11
|
+
const ArrowRight: typeof import('@element-plus/icons-vue').ArrowRight
|
|
12
|
+
const ArrowUp: typeof import('@element-plus/icons-vue').ArrowUp
|
|
13
|
+
const Bell: typeof import('@element-plus/icons-vue').Bell
|
|
14
|
+
const Calendar: typeof import('@element-plus/icons-vue').Calendar
|
|
15
|
+
const Camera: typeof import('@element-plus/icons-vue').Camera
|
|
16
|
+
const ChatDotRound: typeof import('@element-plus/icons-vue').ChatDotRound
|
|
17
|
+
const CircleCheck: typeof import('@element-plus/icons-vue').CircleCheck
|
|
18
|
+
const CircleCheckFilled: typeof import('@element-plus/icons-vue').CircleCheckFilled
|
|
19
|
+
const CircleClose: typeof import('@element-plus/icons-vue').CircleClose
|
|
20
|
+
const CirclePlus: typeof import('@element-plus/icons-vue').CirclePlus
|
|
21
|
+
const Close: typeof import('@element-plus/icons-vue').Close
|
|
22
|
+
const CollectionTag: typeof import('@element-plus/icons-vue').CollectionTag
|
|
23
|
+
const CopyDocument: typeof import('@element-plus/icons-vue').CopyDocument
|
|
24
|
+
const DataAnalysis: typeof import('@element-plus/icons-vue').DataAnalysis
|
|
25
|
+
const Delete: typeof import('@element-plus/icons-vue').Delete
|
|
26
|
+
const Document: typeof import('@element-plus/icons-vue').Document
|
|
27
|
+
const Download: typeof import('@element-plus/icons-vue').Download
|
|
28
|
+
const Edit: typeof import('@element-plus/icons-vue').Edit
|
|
29
|
+
const EditPen: typeof import('@element-plus/icons-vue').EditPen
|
|
30
|
+
const EffectScope: typeof import('vue').EffectScope
|
|
31
|
+
const ElConfigProvider: typeof import('element-plus').ElConfigProvider
|
|
32
|
+
const ElImage: typeof import('element-plus').ElImage
|
|
33
|
+
const ElLoading: typeof import('element-plus').ElLoading
|
|
34
|
+
const ElMessage: typeof import('element-plus').ElMessage
|
|
35
|
+
const ElMessageBox: typeof import('element-plus').ElMessageBox
|
|
36
|
+
const ElNotification: typeof import('element-plus').ElNotification
|
|
37
|
+
const ElTable: typeof import('element-plus').ElTable
|
|
38
|
+
const ElTag: typeof import('element-plus').ElTag
|
|
39
|
+
const ElTooltip: typeof import('element-plus').ElTooltip
|
|
40
|
+
const ElTree: typeof import('element-plus').ElTree
|
|
41
|
+
const Expand: typeof import('@element-plus/icons-vue').Expand
|
|
42
|
+
const Female: typeof import('@element-plus/icons-vue').Female
|
|
43
|
+
const Finished: typeof import('@element-plus/icons-vue').Finished
|
|
44
|
+
const Fold: typeof import('@element-plus/icons-vue').Fold
|
|
45
|
+
const Folder: typeof import('@element-plus/icons-vue').Folder
|
|
46
|
+
const Goods: typeof import('@element-plus/icons-vue').Goods
|
|
47
|
+
const InfoFilled: typeof import('@element-plus/icons-vue').InfoFilled
|
|
48
|
+
const List: typeof import('@element-plus/icons-vue').List
|
|
49
|
+
const Lock: typeof import('@element-plus/icons-vue').Lock
|
|
50
|
+
const Male: typeof import('@element-plus/icons-vue').Male
|
|
51
|
+
const Message: typeof import('@element-plus/icons-vue').Message
|
|
52
|
+
const Moon: typeof import('@element-plus/icons-vue').Moon
|
|
53
|
+
const Operation: typeof import('@element-plus/icons-vue').Operation
|
|
54
|
+
const Phone: typeof import('@element-plus/icons-vue').Phone
|
|
55
|
+
const Plus: typeof import('@element-plus/icons-vue').Plus
|
|
56
|
+
const Position: typeof import('@element-plus/icons-vue').Position
|
|
57
|
+
const Promotion: typeof import('@element-plus/icons-vue').Promotion
|
|
58
|
+
const QuestionFilled: typeof import('@element-plus/icons-vue').QuestionFilled
|
|
59
|
+
const Refresh: typeof import('@element-plus/icons-vue').Refresh
|
|
60
|
+
const RefreshLeft: typeof import('@element-plus/icons-vue').RefreshLeft
|
|
61
|
+
const RefreshRight: typeof import('@element-plus/icons-vue').RefreshRight
|
|
62
|
+
const Search: typeof import('@element-plus/icons-vue').Search
|
|
63
|
+
const Setting: typeof import('@element-plus/icons-vue').Setting
|
|
64
|
+
const Sunny: typeof import('@element-plus/icons-vue').Sunny
|
|
65
|
+
const Switch: typeof import('@element-plus/icons-vue').Switch
|
|
66
|
+
const SwitchButton: typeof import('@element-plus/icons-vue').SwitchButton
|
|
67
|
+
const Tickets: typeof import('@element-plus/icons-vue').Tickets
|
|
68
|
+
const Timer: typeof import('@element-plus/icons-vue').Timer
|
|
69
|
+
const User: typeof import('@element-plus/icons-vue').User
|
|
70
|
+
const UserFilled: typeof import('@element-plus/icons-vue').UserFilled
|
|
71
|
+
const Van: typeof import('@element-plus/icons-vue').Van
|
|
72
|
+
const View: typeof import('@element-plus/icons-vue').View
|
|
73
|
+
const Wallet: typeof import('@element-plus/icons-vue').Wallet
|
|
74
|
+
const WarningFilled: typeof import('@element-plus/icons-vue').WarningFilled
|
|
75
|
+
const computed: typeof import('vue').computed
|
|
76
|
+
const createApp: typeof import('vue').createApp
|
|
77
|
+
const customRef: typeof import('vue').customRef
|
|
78
|
+
const defineAsyncComponent: typeof import('vue').defineAsyncComponent
|
|
79
|
+
const defineComponent: typeof import('vue').defineComponent
|
|
80
|
+
const effectScope: typeof import('vue').effectScope
|
|
81
|
+
const formContextKey: typeof import('element-plus').formContextKey
|
|
82
|
+
const formItemContextKey: typeof import('element-plus').formItemContextKey
|
|
83
|
+
const getCurrentInstance: typeof import('vue').getCurrentInstance
|
|
84
|
+
const getCurrentScope: typeof import('vue').getCurrentScope
|
|
85
|
+
const getCurrentWatcher: typeof import('vue').getCurrentWatcher
|
|
86
|
+
const h: typeof import('vue').h
|
|
87
|
+
const inject: typeof import('vue').inject
|
|
88
|
+
const isProxy: typeof import('vue').isProxy
|
|
89
|
+
const isReactive: typeof import('vue').isReactive
|
|
90
|
+
const isReadonly: typeof import('vue').isReadonly
|
|
91
|
+
const isRef: typeof import('vue').isRef
|
|
92
|
+
const isShallow: typeof import('vue').isShallow
|
|
93
|
+
const markRaw: typeof import('vue').markRaw
|
|
94
|
+
const nextTick: typeof import('vue').nextTick
|
|
95
|
+
const onActivated: typeof import('vue').onActivated
|
|
96
|
+
const onBeforeMount: typeof import('vue').onBeforeMount
|
|
97
|
+
const onBeforeRouteLeave: typeof import('vue-router').onBeforeRouteLeave
|
|
98
|
+
const onBeforeRouteUpdate: typeof import('vue-router').onBeforeRouteUpdate
|
|
99
|
+
const onBeforeUnmount: typeof import('vue').onBeforeUnmount
|
|
100
|
+
const onBeforeUpdate: typeof import('vue').onBeforeUpdate
|
|
101
|
+
const onDeactivated: typeof import('vue').onDeactivated
|
|
102
|
+
const onErrorCaptured: typeof import('vue').onErrorCaptured
|
|
103
|
+
const onMounted: typeof import('vue').onMounted
|
|
104
|
+
const onRenderTracked: typeof import('vue').onRenderTracked
|
|
105
|
+
const onRenderTriggered: typeof import('vue').onRenderTriggered
|
|
106
|
+
const onScopeDispose: typeof import('vue').onScopeDispose
|
|
107
|
+
const onServerPrefetch: typeof import('vue').onServerPrefetch
|
|
108
|
+
const onUnmounted: typeof import('vue').onUnmounted
|
|
109
|
+
const onUpdated: typeof import('vue').onUpdated
|
|
110
|
+
const onWatcherCleanup: typeof import('vue').onWatcherCleanup
|
|
111
|
+
const provide: typeof import('vue').provide
|
|
112
|
+
const reactive: typeof import('vue').reactive
|
|
113
|
+
const readonly: typeof import('vue').readonly
|
|
114
|
+
const ref: typeof import('vue').ref
|
|
115
|
+
const resolveComponent: typeof import('vue').resolveComponent
|
|
116
|
+
const shallowReactive: typeof import('vue').shallowReactive
|
|
117
|
+
const shallowReadonly: typeof import('vue').shallowReadonly
|
|
118
|
+
const shallowRef: typeof import('vue').shallowRef
|
|
119
|
+
const toRaw: typeof import('vue').toRaw
|
|
120
|
+
const toRef: typeof import('vue').toRef
|
|
121
|
+
const toRefs: typeof import('vue').toRefs
|
|
122
|
+
const toValue: typeof import('vue').toValue
|
|
123
|
+
const triggerRef: typeof import('vue').triggerRef
|
|
124
|
+
const unref: typeof import('vue').unref
|
|
125
|
+
const useAttrs: typeof import('vue').useAttrs
|
|
126
|
+
const useCssModule: typeof import('vue').useCssModule
|
|
127
|
+
const useCssVars: typeof import('vue').useCssVars
|
|
128
|
+
const useId: typeof import('vue').useId
|
|
129
|
+
const useLink: typeof import('vue-router').useLink
|
|
130
|
+
const useModel: typeof import('vue').useModel
|
|
131
|
+
const useRoute: typeof import('vue-router').useRoute
|
|
132
|
+
const useRouter: typeof import('vue-router').useRouter
|
|
133
|
+
const useSlots: typeof import('vue').useSlots
|
|
134
|
+
const useTemplateRef: typeof import('vue').useTemplateRef
|
|
135
|
+
const watch: typeof import('vue').watch
|
|
136
|
+
const watchEffect: typeof import('vue').watchEffect
|
|
137
|
+
const watchPostEffect: typeof import('vue').watchPostEffect
|
|
138
|
+
const watchSyncEffect: typeof import('vue').watchSyncEffect
|
|
118
139
|
}
|
|
119
140
|
// for type re-export
|
|
120
141
|
declare global {
|
|
121
142
|
// @ts-ignore
|
|
122
|
-
export type {
|
|
123
|
-
|
|
124
|
-
Slot,
|
|
125
|
-
Slots,
|
|
126
|
-
ComponentPublicInstance,
|
|
127
|
-
ComputedRef,
|
|
128
|
-
DirectiveBinding,
|
|
129
|
-
ExtractDefaultPropTypes,
|
|
130
|
-
ExtractPropTypes,
|
|
131
|
-
ExtractPublicPropTypes,
|
|
132
|
-
InjectionKey,
|
|
133
|
-
PropType,
|
|
134
|
-
Ref,
|
|
135
|
-
ShallowRef,
|
|
136
|
-
MaybeRef,
|
|
137
|
-
MaybeRefOrGetter,
|
|
138
|
-
VNode,
|
|
139
|
-
WritableComputedRef
|
|
140
|
-
} from "vue";
|
|
141
|
-
import("vue");
|
|
143
|
+
export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, ShallowRef, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
|
|
144
|
+
import('vue')
|
|
142
145
|
}
|
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
// ------
|
|
6
6
|
// Generated by unplugin-vue-components
|
|
7
7
|
// Read more: https://github.com/vuejs/core/pull/3399
|
|
8
|
-
import { GlobalComponents } from "vue";
|
|
9
8
|
|
|
10
|
-
export {}
|
|
9
|
+
export {}
|
|
11
10
|
|
|
12
11
|
/* prettier-ignore */
|
|
13
12
|
declare module 'vue' {
|
|
@@ -15,6 +14,7 @@ declare module 'vue' {
|
|
|
15
14
|
ElAlert: typeof import('element-plus/es')['ElAlert']
|
|
16
15
|
ElAside: typeof import('element-plus/es')['ElAside']
|
|
17
16
|
ElAvatar: typeof import('element-plus/es')['ElAvatar']
|
|
17
|
+
ElBadge: typeof import('element-plus/es')['ElBadge']
|
|
18
18
|
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
|
|
19
19
|
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
|
|
20
20
|
ElButton: typeof import('element-plus/es')['ElButton']
|
|
@@ -44,6 +44,7 @@ declare module 'vue' {
|
|
|
44
44
|
ElImageViewer: typeof import('element-plus/es')['ElImageViewer']
|
|
45
45
|
ElInput: typeof import('element-plus/es')['ElInput']
|
|
46
46
|
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
|
|
47
|
+
ElLink: typeof import('element-plus/es')['ElLink']
|
|
47
48
|
ElMain: typeof import('element-plus/es')['ElMain']
|
|
48
49
|
ElMenu: typeof import('element-plus/es')['ElMenu']
|
|
49
50
|
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
|
@@ -71,81 +72,12 @@ declare module 'vue' {
|
|
|
71
72
|
ElTag: typeof import('element-plus/es')['ElTag']
|
|
72
73
|
ElTooltip: typeof import('element-plus/es')['ElTooltip']
|
|
73
74
|
ElTransfer: typeof import('element-plus/es')['ElTransfer']
|
|
75
|
+
ElTree: typeof import('element-plus/es')['ElTree']
|
|
74
76
|
ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
|
|
75
77
|
ElUpload: typeof import('element-plus/es')['ElUpload']
|
|
76
78
|
ElWatermark: typeof import('element-plus/es')['ElWatermark']
|
|
77
|
-
RouterLink: typeof import('vue-router')['RouterLink']
|
|
78
|
-
RouterView: typeof import('vue-router')['RouterView']
|
|
79
79
|
}
|
|
80
80
|
export interface GlobalDirectives {
|
|
81
81
|
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
// For TSX support
|
|
86
|
-
declare global {
|
|
87
|
-
const ElAlert: (typeof import("element-plus/es"))["ElAlert"];
|
|
88
|
-
const ElAside: (typeof import("element-plus/es"))["ElAside"];
|
|
89
|
-
const ElAvatar: (typeof import("element-plus/es"))["ElAvatar"];
|
|
90
|
-
const ElBreadcrumb: (typeof import("element-plus/es"))["ElBreadcrumb"];
|
|
91
|
-
const ElBreadcrumbItem: (typeof import("element-plus/es"))["ElBreadcrumbItem"];
|
|
92
|
-
const ElButton: (typeof import("element-plus/es"))["ElButton"];
|
|
93
|
-
const ElCard: (typeof import("element-plus/es"))["ElCard"];
|
|
94
|
-
const ElCheckbox: (typeof import("element-plus/es"))["ElCheckbox"];
|
|
95
|
-
const ElCheckboxGroup: (typeof import("element-plus/es"))["ElCheckboxGroup"];
|
|
96
|
-
const ElCol: (typeof import("element-plus/es"))["ElCol"];
|
|
97
|
-
const ElCollapse: (typeof import("element-plus/es"))["ElCollapse"];
|
|
98
|
-
const ElCollapseItem: (typeof import("element-plus/es"))["ElCollapseItem"];
|
|
99
|
-
const ElColorPicker: (typeof import("element-plus/es"))["ElColorPicker"];
|
|
100
|
-
const ElContainer: (typeof import("element-plus/es"))["ElContainer"];
|
|
101
|
-
const ElDatePicker: (typeof import("element-plus/es"))["ElDatePicker"];
|
|
102
|
-
const ElDescriptions: (typeof import("element-plus/es"))["ElDescriptions"];
|
|
103
|
-
const ElDescriptionsItem: (typeof import("element-plus/es"))["ElDescriptionsItem"];
|
|
104
|
-
const ElDialog: (typeof import("element-plus/es"))["ElDialog"];
|
|
105
|
-
const ElDivider: (typeof import("element-plus/es"))["ElDivider"];
|
|
106
|
-
const ElDrawer: (typeof import("element-plus/es"))["ElDrawer"];
|
|
107
|
-
const ElDropdown: (typeof import("element-plus/es"))["ElDropdown"];
|
|
108
|
-
const ElDropdownItem: (typeof import("element-plus/es"))["ElDropdownItem"];
|
|
109
|
-
const ElDropdownMenu: (typeof import("element-plus/es"))["ElDropdownMenu"];
|
|
110
|
-
const ElEmpty: (typeof import("element-plus/es"))["ElEmpty"];
|
|
111
|
-
const ElFooter: (typeof import("element-plus/es"))["ElFooter"];
|
|
112
|
-
const ElForm: (typeof import("element-plus/es"))["ElForm"];
|
|
113
|
-
const ElFormItem: (typeof import("element-plus/es"))["ElFormItem"];
|
|
114
|
-
const ElHeader: (typeof import("element-plus/es"))["ElHeader"];
|
|
115
|
-
const ElIcon: (typeof import("element-plus/es"))["ElIcon"];
|
|
116
|
-
const ElImageViewer: (typeof import("element-plus/es"))["ElImageViewer"];
|
|
117
|
-
const ElInput: (typeof import("element-plus/es"))["ElInput"];
|
|
118
|
-
const ElInputNumber: (typeof import("element-plus/es"))["ElInputNumber"];
|
|
119
|
-
const ElMain: (typeof import("element-plus/es"))["ElMain"];
|
|
120
|
-
const ElMenu: (typeof import("element-plus/es"))["ElMenu"];
|
|
121
|
-
const ElMenuItem: (typeof import("element-plus/es"))["ElMenuItem"];
|
|
122
|
-
const ElOption: (typeof import("element-plus/es"))["ElOption"];
|
|
123
|
-
const ElPagination: (typeof import("element-plus/es"))["ElPagination"];
|
|
124
|
-
const ElPopconfirm: (typeof import("element-plus/es"))["ElPopconfirm"];
|
|
125
|
-
const ElPopover: (typeof import("element-plus/es"))["ElPopover"];
|
|
126
|
-
const ElProgress: (typeof import("element-plus/es"))["ElProgress"];
|
|
127
|
-
const ElRadio: (typeof import("element-plus/es"))["ElRadio"];
|
|
128
|
-
const ElRadioButton: (typeof import("element-plus/es"))["ElRadioButton"];
|
|
129
|
-
const ElRadioGroup: (typeof import("element-plus/es"))["ElRadioGroup"];
|
|
130
|
-
const ElResult: (typeof import("element-plus/es"))["ElResult"];
|
|
131
|
-
const ElRow: (typeof import("element-plus/es"))["ElRow"];
|
|
132
|
-
const ElScrollbar: (typeof import("element-plus/es"))["ElScrollbar"];
|
|
133
|
-
const ElSegmented: (typeof import("element-plus/es"))["ElSegmented"];
|
|
134
|
-
const ElSelect: (typeof import("element-plus/es"))["ElSelect"];
|
|
135
|
-
const ElSkeleton: (typeof import("element-plus/es"))["ElSkeleton"];
|
|
136
|
-
const ElSpace: (typeof import("element-plus/es"))["ElSpace"];
|
|
137
|
-
const ElSubMenu: (typeof import("element-plus/es"))["ElSubMenu"];
|
|
138
|
-
const ElSwitch: (typeof import("element-plus/es"))["ElSwitch"];
|
|
139
|
-
const ElTable: (typeof import("element-plus/es"))["ElTable"];
|
|
140
|
-
const ElTableColumn: (typeof import("element-plus/es"))["ElTableColumn"];
|
|
141
|
-
const ElTabPane: (typeof import("element-plus/es"))["ElTabPane"];
|
|
142
|
-
const ElTabs: (typeof import("element-plus/es"))["ElTabs"];
|
|
143
|
-
const ElTag: (typeof import("element-plus/es"))["ElTag"];
|
|
144
|
-
const ElTooltip: (typeof import("element-plus/es"))["ElTooltip"];
|
|
145
|
-
const ElTransfer: (typeof import("element-plus/es"))["ElTransfer"];
|
|
146
|
-
const ElTreeSelect: (typeof import("element-plus/es"))["ElTreeSelect"];
|
|
147
|
-
const ElUpload: (typeof import("element-plus/es"))["ElUpload"];
|
|
148
|
-
const ElWatermark: (typeof import("element-plus/es"))["ElWatermark"];
|
|
149
|
-
const RouterLink: (typeof import("vue-router"))["RouterLink"];
|
|
150
|
-
const RouterView: (typeof import("vue-router"))["RouterView"];
|
|
151
|
-
}
|
package/vite.config.ts
CHANGED
|
@@ -28,6 +28,8 @@ export interface AdminViteConfigOptions {
|
|
|
28
28
|
optimizeDependencies?: string[];
|
|
29
29
|
/** 静态资源构建输出目录。 */
|
|
30
30
|
outputDirectory?: string;
|
|
31
|
+
/** 自动组件声明输出位置,外部宿主默认不写入依赖包。 */
|
|
32
|
+
componentDts?: string | false;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
/** 创建管理端宿主 Vite 配置。 */
|
|
@@ -109,7 +111,7 @@ export function defineAdminViteConfig(options: AdminViteConfigOptions = {}) {
|
|
|
109
111
|
plugins: createVitePlugins(viteEnv, {
|
|
110
112
|
sourcePatterns,
|
|
111
113
|
autoImportDts: false,
|
|
112
|
-
componentDts: false,
|
|
114
|
+
componentDts: options.componentDts ?? false,
|
|
113
115
|
iconDirectories: [resolve(coreSourceRoot, "assets/icons")]
|
|
114
116
|
}),
|
|
115
117
|
build: {
|