@liujitcn/kratos-admin-core 0.0.20 → 0.0.21
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 +2 -2
- package/dist/package/declarations/src/api/base/language.d.ts +8 -0
- package/dist/package/declarations/src/components/Dialog/ProDialog.vue.d.ts +1 -0
- package/dist/package/declarations/src/components/LocaleSwitch/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/index.d.ts +2 -0
- package/dist/package/declarations/src/locales/index.d.ts +63 -0
- package/dist/package/declarations/src/modules/index.d.ts +7 -2
- package/dist/package/declarations/src/request.d.ts +1 -0
- package/dist/package/declarations/src/routers/modules/staticRouter.d.ts +1 -0
- package/dist/package/declarations/src/rpc/base/v1/config.d.ts +2 -0
- package/dist/package/declarations/src/rpc/base/v1/language.d.ts +26 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_dict.d.ts +79 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_translation.d.ts +102 -0
- package/dist/package/declarations/src/stores/interface/index.d.ts +2 -0
- package/dist/package/declarations/src/stores/runtime.d.ts +1 -0
- package/dist/package/declarations/src/utils/dict.d.ts +2 -2
- package/dist/package/declarations/src/utils/index.d.ts +1 -1
- package/dist/package/declarations/src/utils/oauthProvider.d.ts +2 -0
- package/dist/package/declarations/src/utils/passwordStrength.d.ts +0 -7
- package/dist/package/src/App.vue +10 -1
- package/dist/package/src/api/base/language.ts +20 -0
- package/dist/package/src/api/base/oauth.ts +0 -1
- package/dist/package/src/api/system/auth.ts +0 -1
- package/dist/package/src/bootstrap.ts +57 -2
- package/dist/package/src/components/CronExpression/index.vue +80 -82
- package/dist/package/src/components/Dialog/FormDialog.vue +9 -4
- package/dist/package/src/components/Dialog/ProDialog.vue +10 -4
- package/dist/package/src/components/Dict/index.vue +5 -2
- package/dist/package/src/components/ECharts/config/index.ts +6 -1
- package/dist/package/src/components/ErrorMessage/index.vue +3 -1
- package/dist/package/src/components/ImportExcel/index.vue +29 -18
- package/dist/package/src/components/LocaleSwitch/index.vue +28 -0
- package/dist/package/src/components/PasswordStrength/index.vue +8 -5
- package/dist/package/src/components/ProForm/components/DynamicList.vue +8 -3
- package/dist/package/src/components/ProForm/components/KvList.vue +14 -6
- package/dist/package/src/components/ProTable/components/ColSetting.vue +7 -5
- package/dist/package/src/components/ProTable/components/TableColumn.vue +2 -1
- package/dist/package/src/components/ProTable/index.vue +36 -11
- package/dist/package/src/components/SearchForm/components/SearchFormItem.vue +9 -4
- package/dist/package/src/components/SearchForm/index.vue +6 -3
- package/dist/package/src/components/SelectFilter/index.vue +4 -1
- package/dist/package/src/components/SelectIcon/index.vue +8 -4
- package/dist/package/src/components/TreeFilter/index.vue +14 -6
- package/dist/package/src/components/Upload/File.vue +18 -13
- package/dist/package/src/components/Upload/Files.vue +22 -15
- package/dist/package/src/components/Upload/Img.vue +14 -11
- package/dist/package/src/components/Upload/Imgs.vue +15 -12
- package/dist/package/src/components/WangEditor/index.vue +12 -4
- package/dist/package/src/directives/modules/copy.ts +2 -1
- package/dist/package/src/hooks/useDownload.ts +3 -2
- package/dist/package/src/hooks/useHandleData.ts +5 -4
- package/dist/package/src/hooks/useTheme.ts +2 -1
- package/dist/package/src/hooks/useTime.ts +11 -2
- package/dist/package/src/index.ts +2 -0
- package/dist/package/src/layouts/components/Header/ToolBarRight.vue +2 -0
- package/dist/package/src/layouts/components/Header/components/AssemblySize.vue +8 -6
- package/dist/package/src/layouts/components/Header/components/Avatar.vue +11 -9
- package/dist/package/src/layouts/components/Header/components/Breadcrumb.vue +10 -2
- package/dist/package/src/layouts/components/Header/components/Fullscreen.vue +4 -2
- package/dist/package/src/layouts/components/Header/components/InfoDialog.vue +6 -3
- package/dist/package/src/layouts/components/Header/components/PasswordDialog.vue +6 -3
- package/dist/package/src/layouts/components/Header/components/SearchMenu.vue +5 -3
- package/dist/package/src/layouts/components/Header/components/ThemeSetting.vue +3 -1
- package/dist/package/src/layouts/components/Tabs/components/MoreButton.vue +9 -7
- package/dist/package/src/layouts/components/ThemeDrawer/index.vue +27 -24
- package/dist/package/src/locales/README.md +15 -0
- package/dist/package/src/locales/en-US.json +258 -0
- package/dist/package/src/locales/es-ES.json +258 -0
- package/dist/package/src/locales/fr-FR.json +258 -0
- package/dist/package/src/locales/index.ts +223 -0
- package/dist/package/src/locales/ja-JP.json +258 -0
- package/dist/package/src/locales/ko-KR.json +258 -0
- package/dist/package/src/locales/zh-CN.json +258 -0
- package/dist/package/src/locales/zh-TW.json +258 -0
- package/dist/package/src/modules/index.ts +7 -2
- package/dist/package/src/modules/kratosAdmin.ts +19 -1
- package/dist/package/src/request.ts +8 -1
- package/dist/package/src/routers/index.ts +4 -1
- package/dist/package/src/routers/modules/dynamicRouter.ts +3 -2
- package/dist/package/src/routers/modules/staticRouter.ts +8 -4
- package/dist/package/src/rpc/base/v1/config.ts +2 -0
- package/dist/package/src/rpc/base/v1/language.ts +37 -0
- package/dist/package/src/rpc/system/admin/v1/base_dict.ts +81 -0
- package/dist/package/src/rpc/system/admin/v1/base_translation.ts +117 -0
- package/dist/package/src/stores/interface/index.ts +2 -0
- package/dist/package/src/stores/modules/config.ts +5 -1
- package/dist/package/src/stores/modules/user.ts +2 -1
- package/dist/package/src/stores/runtime.ts +1 -0
- package/dist/package/src/utils/color.ts +5 -4
- package/dist/package/src/utils/dict.ts +27 -4
- package/dist/package/src/utils/eleValidate.ts +3 -2
- package/dist/package/src/utils/errorHandler.ts +9 -8
- package/dist/package/src/utils/index.ts +7 -6
- package/dist/package/src/utils/oauthProvider.ts +15 -10
- package/dist/package/src/utils/passwordCrypto.ts +3 -2
- package/dist/package/src/utils/passwordStrength.ts +1 -16
- package/dist/package/src/utils/request.ts +13 -8
- package/dist/package/src/views/error/403.vue +3 -1
- package/dist/package/src/views/error/404.vue +3 -1
- package/dist/package/src/views/error/500.vue +3 -1
- package/dist/package/src/views/error/pending.vue +5 -2
- package/dist/package/src/views/login/components/LoginForm.vue +53 -27
- package/dist/package/src/views/login/index.scss +6 -0
- package/dist/package/src/views/login/index.vue +2 -0
- package/dist/package/types/generated/auto-imports.d.ts +129 -111
- package/dist/package/types/generated/components.d.ts +67 -67
- package/package.json +3 -1
- package/types/generated/auto-imports.d.ts +129 -111
- package/types/generated/components.d.ts +67 -67
- package/vite.config.ts +8 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-form ref="loginFormRef" :model="loginForm" :rules="loginRules" size="large">
|
|
3
3
|
<el-form-item prop="tenant_code">
|
|
4
|
-
<el-input v-model="loginForm.tenant_code" placeholder="
|
|
4
|
+
<el-input v-model="loginForm.tenant_code" :placeholder="t('core.login.tenantCode')">
|
|
5
5
|
<template #prefix>
|
|
6
6
|
<el-icon class="el-input__icon">
|
|
7
7
|
<office-building />
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</el-input>
|
|
11
11
|
</el-form-item>
|
|
12
12
|
<el-form-item prop="user_name">
|
|
13
|
-
<el-input v-model="loginForm.user_name" placeholder="
|
|
13
|
+
<el-input v-model="loginForm.user_name" :placeholder="t('core.login.userName')">
|
|
14
14
|
<template #prefix>
|
|
15
15
|
<el-icon class="el-input__icon">
|
|
16
16
|
<user />
|
|
@@ -19,7 +19,13 @@
|
|
|
19
19
|
</el-input>
|
|
20
20
|
</el-form-item>
|
|
21
21
|
<el-form-item prop="password">
|
|
22
|
-
<el-input
|
|
22
|
+
<el-input
|
|
23
|
+
v-model="loginForm.password"
|
|
24
|
+
type="password"
|
|
25
|
+
:placeholder="t('core.login.password')"
|
|
26
|
+
show-password
|
|
27
|
+
autocomplete="new-password"
|
|
28
|
+
>
|
|
23
29
|
<template #prefix>
|
|
24
30
|
<el-icon class="el-input__icon">
|
|
25
31
|
<lock />
|
|
@@ -29,7 +35,11 @@
|
|
|
29
35
|
</el-form-item>
|
|
30
36
|
<el-form-item v-if="!isBehaviorCaptcha" prop="captcha_code">
|
|
31
37
|
<div class="captcha-row">
|
|
32
|
-
<el-input
|
|
38
|
+
<el-input
|
|
39
|
+
v-model="loginForm.captcha_code"
|
|
40
|
+
:placeholder="t('core.login.captcha')"
|
|
41
|
+
@keyup.enter="handleLogin(loginFormRef)"
|
|
42
|
+
>
|
|
33
43
|
<template #prefix>
|
|
34
44
|
<el-icon class="el-input__icon">
|
|
35
45
|
<Key />
|
|
@@ -41,7 +51,7 @@
|
|
|
41
51
|
class="captcha-image"
|
|
42
52
|
:style="{ width: captchaImageWidth }"
|
|
43
53
|
:src="captcha_base64"
|
|
44
|
-
alt="
|
|
54
|
+
:alt="t('core.login.captchaAlt')"
|
|
45
55
|
@load="handleCaptchaImageLoad"
|
|
46
56
|
@click="getCaptcha"
|
|
47
57
|
/>
|
|
@@ -49,28 +59,35 @@
|
|
|
49
59
|
</el-form-item>
|
|
50
60
|
</el-form>
|
|
51
61
|
<div class="login-btn">
|
|
52
|
-
<el-button :icon="CircleClose" round size="large" @click="resetForm(loginFormRef)">
|
|
53
|
-
<el-button
|
|
54
|
-
|
|
62
|
+
<el-button :icon="CircleClose" round size="large" @click="resetForm(loginFormRef)">{{ t("common.action.reset") }}</el-button>
|
|
63
|
+
<el-button
|
|
64
|
+
:icon="UserFilled"
|
|
65
|
+
round
|
|
66
|
+
size="large"
|
|
67
|
+
type="primary"
|
|
68
|
+
:loading="loading || oauthTicketLoading"
|
|
69
|
+
@click="handleLogin(loginFormRef)"
|
|
70
|
+
>
|
|
71
|
+
{{ t("common.action.login") }}
|
|
55
72
|
</el-button>
|
|
56
73
|
</div>
|
|
57
74
|
<div v-if="oauthProviders.length" class="oauth-login">
|
|
58
75
|
<div class="oauth-divider">
|
|
59
|
-
<span
|
|
76
|
+
<span>{{ t("core.login.otherMethods") }}</span>
|
|
60
77
|
</div>
|
|
61
78
|
<div class="oauth-provider-list">
|
|
62
79
|
<el-tooltip
|
|
63
80
|
v-for="provider in oauthProviders"
|
|
64
81
|
:key="provider.provider"
|
|
65
|
-
:content="provider.
|
|
82
|
+
:content="provider.nameKey.includes('.') ? t(provider.nameKey) : provider.nameKey"
|
|
66
83
|
placement="top"
|
|
67
84
|
:trigger="['hover', 'focus']"
|
|
68
85
|
>
|
|
69
86
|
<button
|
|
70
87
|
class="oauth-provider-button"
|
|
71
88
|
type="button"
|
|
72
|
-
:aria-label="provider.
|
|
73
|
-
:title="provider.
|
|
89
|
+
:aria-label="provider.nameKey.includes('.') ? t(provider.nameKey) : provider.nameKey"
|
|
90
|
+
:title="provider.nameKey.includes('.') ? t(provider.nameKey) : provider.nameKey"
|
|
74
91
|
:disabled="oauthTicketLoading || oauthLoadingProvider === provider.provider"
|
|
75
92
|
@click="handleOauthLogin(provider)"
|
|
76
93
|
>
|
|
@@ -133,6 +150,7 @@ import { PASSWORD_CRYPTO_SCENE, encryptPassword } from "../../../utils/passwordC
|
|
|
133
150
|
import { useConfigStore } from "../../../stores/modules/config";
|
|
134
151
|
import { Click as GoCaptchaClick, Rotate as GoCaptchaRotate, Slide as GoCaptchaSlide } from "go-captcha-vue";
|
|
135
152
|
import "go-captcha-vue/dist/style.css";
|
|
153
|
+
import { useLocaleStore } from "../../../locales";
|
|
136
154
|
|
|
137
155
|
const router = useRouter();
|
|
138
156
|
const route = useRoute();
|
|
@@ -141,6 +159,7 @@ const configStore = useConfigStore();
|
|
|
141
159
|
const dictStore = useDictStore();
|
|
142
160
|
const tabsStore = useTabsStore();
|
|
143
161
|
const keepAliveStore = useKeepAliveStore();
|
|
162
|
+
const { t } = useLocaleStore();
|
|
144
163
|
|
|
145
164
|
/** 登录表单实例类型。 */
|
|
146
165
|
type FormInstance = InstanceType<typeof ElForm>;
|
|
@@ -150,12 +169,12 @@ const defaultCaptchaImageWidth = 96;
|
|
|
150
169
|
const captchaImageWidth = ref(`${defaultCaptchaImageWidth}px`);
|
|
151
170
|
const behaviorDialogVisible = ref(false);
|
|
152
171
|
const behaviorLoading = ref(false);
|
|
153
|
-
const loginRules =
|
|
154
|
-
tenant_code: [{ required: true, message: "
|
|
155
|
-
user_name: [{ required: true, message: "
|
|
156
|
-
password: [{ required: true, message: "
|
|
157
|
-
captcha_code: [{ required: true, message: "
|
|
158
|
-
});
|
|
172
|
+
const loginRules = computed(() => ({
|
|
173
|
+
tenant_code: [{ required: true, message: t("core.login.tenantCode"), trigger: "blur" }],
|
|
174
|
+
user_name: [{ required: true, message: t("core.login.userName"), trigger: "blur" }],
|
|
175
|
+
password: [{ required: true, message: t("core.login.password"), trigger: "blur" }],
|
|
176
|
+
captcha_code: [{ required: true, message: t("core.login.captcha"), trigger: "blur" }]
|
|
177
|
+
}));
|
|
159
178
|
|
|
160
179
|
const loading = ref(false);
|
|
161
180
|
const oauthLoadingProvider = ref("");
|
|
@@ -245,7 +264,9 @@ const behaviorCaptchaSource = reactive({
|
|
|
245
264
|
thumbHeight: 60,
|
|
246
265
|
thumbSize: 150
|
|
247
266
|
});
|
|
248
|
-
const behaviorCaptchaDisplayHeight = computed(() =>
|
|
267
|
+
const behaviorCaptchaDisplayHeight = computed(() =>
|
|
268
|
+
Math.round((behaviorCaptchaSource.height * behaviorCaptchaDisplayWidth) / behaviorCaptchaSource.width)
|
|
269
|
+
);
|
|
249
270
|
const behaviorCaptchaScaleX = computed(() => behaviorCaptchaDisplayWidth / behaviorCaptchaSource.width);
|
|
250
271
|
const behaviorCaptchaScaleY = computed(() => behaviorCaptchaDisplayHeight.value / behaviorCaptchaSource.height);
|
|
251
272
|
const rotateCaptchaScale = computed(() => rotateCaptchaDisplaySize / behaviorCaptchaSource.width);
|
|
@@ -260,10 +281,12 @@ const toDisplayCaptchaY = (value: number) => Math.round(value * behaviorCaptchaS
|
|
|
260
281
|
const toDisplayRotateSize = (value: number) => Math.round(value * rotateCaptchaScale.value);
|
|
261
282
|
|
|
262
283
|
/** 将前端展示 X 坐标换算回服务端原始坐标。 */
|
|
263
|
-
const toOriginalCaptchaX = (value: number) =>
|
|
284
|
+
const toOriginalCaptchaX = (value: number) =>
|
|
285
|
+
Math.min(behaviorCaptchaSource.width, Math.max(0, Math.round(value / behaviorCaptchaScaleX.value)));
|
|
264
286
|
|
|
265
287
|
/** 将前端展示 Y 坐标换算回服务端原始坐标。 */
|
|
266
|
-
const toOriginalCaptchaY = (value: number) =>
|
|
288
|
+
const toOriginalCaptchaY = (value: number) =>
|
|
289
|
+
Math.min(behaviorCaptchaSource.height, Math.max(0, Math.round(value / behaviorCaptchaScaleY.value)));
|
|
267
290
|
const slideCaptchaConfig = computed(() => ({
|
|
268
291
|
width: behaviorCaptchaDisplayWidth,
|
|
269
292
|
height: behaviorCaptchaDisplayHeight.value,
|
|
@@ -273,7 +296,7 @@ const slideCaptchaConfig = computed(() => ({
|
|
|
273
296
|
verticalPadding: 0,
|
|
274
297
|
horizontalPadding: 0,
|
|
275
298
|
iconSize: 20,
|
|
276
|
-
title: "
|
|
299
|
+
title: t("core.login.behaviorPuzzle")
|
|
277
300
|
}));
|
|
278
301
|
const clickCaptchaConfig = computed(() => ({
|
|
279
302
|
width: behaviorCaptchaDisplayWidth,
|
|
@@ -283,10 +306,10 @@ const clickCaptchaConfig = computed(() => ({
|
|
|
283
306
|
showTheme: false,
|
|
284
307
|
verticalPadding: 0,
|
|
285
308
|
horizontalPadding: 0,
|
|
286
|
-
buttonText: "
|
|
309
|
+
buttonText: t("core.login.behaviorConfirm"),
|
|
287
310
|
iconSize: 20,
|
|
288
311
|
dotSize: 20,
|
|
289
|
-
title: "
|
|
312
|
+
title: t("core.login.behaviorClick")
|
|
290
313
|
}));
|
|
291
314
|
const rotateCaptchaConfig = computed(() => ({
|
|
292
315
|
width: behaviorCaptchaDisplayWidth,
|
|
@@ -296,7 +319,7 @@ const rotateCaptchaConfig = computed(() => ({
|
|
|
296
319
|
verticalPadding: 0,
|
|
297
320
|
horizontalPadding: 0,
|
|
298
321
|
iconSize: 20,
|
|
299
|
-
title: "
|
|
322
|
+
title: t("core.login.behaviorRotate")
|
|
300
323
|
}));
|
|
301
324
|
const slideCaptchaEvents = {
|
|
302
325
|
refresh: () => getCaptcha(),
|
|
@@ -307,7 +330,10 @@ const clickCaptchaEvents = {
|
|
|
307
330
|
refresh: () => getCaptcha(),
|
|
308
331
|
close: () => closeBehaviorCaptcha(),
|
|
309
332
|
confirm: (dots: ClickCaptchaPoint[], reset: () => void) =>
|
|
310
|
-
verifyBehaviorCaptcha(
|
|
333
|
+
verifyBehaviorCaptcha(
|
|
334
|
+
JSON.stringify(dots.map(dot => ({ x: toOriginalCaptchaX(dot.x), y: toOriginalCaptchaY(dot.y) }))),
|
|
335
|
+
reset
|
|
336
|
+
)
|
|
311
337
|
};
|
|
312
338
|
const rotateCaptchaEvents = {
|
|
313
339
|
refresh: () => getCaptcha(),
|
|
@@ -402,7 +428,7 @@ const finishLogin = async () => {
|
|
|
402
428
|
await navigateTo(router, getLoginRedirectPath());
|
|
403
429
|
ElNotification({
|
|
404
430
|
title: getTimeState(),
|
|
405
|
-
message: "
|
|
431
|
+
message: t("core.login.welcome"),
|
|
406
432
|
type: "success",
|
|
407
433
|
duration: 3000
|
|
408
434
|
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<div class="login-container flx-center">
|
|
3
3
|
<div class="login-box">
|
|
4
4
|
<SwitchDark class="dark" />
|
|
5
|
+
<LocaleSwitch class="locale" />
|
|
5
6
|
<div class="login-left">
|
|
6
7
|
<img class="login-left-img" :src="backgroundUrl" alt="login" />
|
|
7
8
|
</div>
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from "vue";
|
|
21
22
|
import LoginForm from "./components/LoginForm.vue";
|
|
22
23
|
import SwitchDark from "../../components/SwitchDark/index.vue";
|
|
24
|
+
import LocaleSwitch from "../../components/LocaleSwitch/index.vue";
|
|
23
25
|
import { useConfigStore } from "../../stores/modules/config";
|
|
24
26
|
|
|
25
27
|
const configStore = useConfigStore();
|
|
@@ -6,119 +6,137 @@
|
|
|
6
6
|
// biome-ignore lint: disable
|
|
7
7
|
export {}
|
|
8
8
|
declare global {
|
|
9
|
-
const ArrowDown: typeof import(
|
|
10
|
-
const ArrowRight: typeof import(
|
|
11
|
-
const ArrowUp: typeof import(
|
|
12
|
-
const Camera: typeof import(
|
|
13
|
-
const CircleCheck: typeof import(
|
|
14
|
-
const CircleClose: typeof import(
|
|
15
|
-
const CirclePlus: typeof import(
|
|
16
|
-
const Delete: typeof import(
|
|
17
|
-
const Document: typeof import(
|
|
18
|
-
const Download: typeof import(
|
|
19
|
-
const Edit: typeof import(
|
|
20
|
-
const EditPen: typeof import(
|
|
21
|
-
const EffectScope: typeof import(
|
|
22
|
-
const ElConfigProvider: typeof import(
|
|
23
|
-
const ElLoading: typeof import(
|
|
24
|
-
const ElMessage: typeof import(
|
|
25
|
-
const ElMessageBox: typeof import(
|
|
26
|
-
const ElNotification: typeof import(
|
|
27
|
-
const ElTable: typeof import(
|
|
28
|
-
const ElTree: typeof import(
|
|
29
|
-
const Expand: typeof import(
|
|
30
|
-
const Female: typeof import(
|
|
31
|
-
const Fold: typeof import(
|
|
32
|
-
const Goods: typeof import(
|
|
33
|
-
const InfoFilled: typeof import(
|
|
34
|
-
const List: typeof import(
|
|
35
|
-
const Male: typeof import(
|
|
36
|
-
const Moon: typeof import(
|
|
37
|
-
const Operation: typeof import(
|
|
38
|
-
const Phone: typeof import(
|
|
39
|
-
const Plus: typeof import(
|
|
40
|
-
const Position: typeof import(
|
|
41
|
-
const QuestionFilled: typeof import(
|
|
42
|
-
const Refresh: typeof import(
|
|
43
|
-
const RefreshLeft: typeof import(
|
|
44
|
-
const Search: typeof import(
|
|
45
|
-
const Sunny: typeof import(
|
|
46
|
-
const Switch: typeof import(
|
|
47
|
-
const Tickets: typeof import(
|
|
48
|
-
const Timer: typeof import(
|
|
49
|
-
const User: typeof import(
|
|
50
|
-
const UserFilled: typeof import(
|
|
51
|
-
const Van: typeof import(
|
|
52
|
-
const View: typeof import(
|
|
53
|
-
const Wallet: typeof import(
|
|
54
|
-
const computed: typeof import(
|
|
55
|
-
const createApp: typeof import(
|
|
56
|
-
const customRef: typeof import(
|
|
57
|
-
const defineAsyncComponent: typeof import(
|
|
58
|
-
const defineComponent: typeof import(
|
|
59
|
-
const effectScope: typeof import(
|
|
60
|
-
const formContextKey: typeof import(
|
|
61
|
-
const formItemContextKey: typeof import(
|
|
62
|
-
const getCurrentInstance: typeof import(
|
|
63
|
-
const getCurrentScope: typeof import(
|
|
64
|
-
const getCurrentWatcher: typeof import(
|
|
65
|
-
const h: typeof import(
|
|
66
|
-
const inject: typeof import(
|
|
67
|
-
const isProxy: typeof import(
|
|
68
|
-
const isReactive: typeof import(
|
|
69
|
-
const isReadonly: typeof import(
|
|
70
|
-
const isRef: typeof import(
|
|
71
|
-
const isShallow: typeof import(
|
|
72
|
-
const markRaw: typeof import(
|
|
73
|
-
const nextTick: typeof import(
|
|
74
|
-
const onActivated: typeof import(
|
|
75
|
-
const onBeforeMount: typeof import(
|
|
76
|
-
const onBeforeRouteLeave: typeof import(
|
|
77
|
-
const onBeforeRouteUpdate: typeof import(
|
|
78
|
-
const onBeforeUnmount: typeof import(
|
|
79
|
-
const onBeforeUpdate: typeof import(
|
|
80
|
-
const onDeactivated: typeof import(
|
|
81
|
-
const onErrorCaptured: typeof import(
|
|
82
|
-
const onMounted: typeof import(
|
|
83
|
-
const onRenderTracked: typeof import(
|
|
84
|
-
const onRenderTriggered: typeof import(
|
|
85
|
-
const onScopeDispose: typeof import(
|
|
86
|
-
const onServerPrefetch: typeof import(
|
|
87
|
-
const onUnmounted: typeof import(
|
|
88
|
-
const onUpdated: typeof import(
|
|
89
|
-
const onWatcherCleanup: typeof import(
|
|
90
|
-
const provide: typeof import(
|
|
91
|
-
const reactive: typeof import(
|
|
92
|
-
const readonly: typeof import(
|
|
93
|
-
const ref: typeof import(
|
|
94
|
-
const resolveComponent: typeof import(
|
|
95
|
-
const shallowReactive: typeof import(
|
|
96
|
-
const shallowReadonly: typeof import(
|
|
97
|
-
const shallowRef: typeof import(
|
|
98
|
-
const toRaw: typeof import(
|
|
99
|
-
const toRef: typeof import(
|
|
100
|
-
const toRefs: typeof import(
|
|
101
|
-
const toValue: typeof import(
|
|
102
|
-
const triggerRef: typeof import(
|
|
103
|
-
const unref: typeof import(
|
|
104
|
-
const useAttrs: typeof import(
|
|
105
|
-
const useCssModule: typeof import(
|
|
106
|
-
const useCssVars: typeof import(
|
|
107
|
-
const useId: typeof import(
|
|
108
|
-
const useLink: typeof import(
|
|
109
|
-
const useModel: typeof import(
|
|
110
|
-
const useRoute: typeof import(
|
|
111
|
-
const useRouter: typeof import(
|
|
112
|
-
const useSlots: typeof import(
|
|
113
|
-
const useTemplateRef: typeof import(
|
|
114
|
-
const watch: typeof import(
|
|
115
|
-
const watchEffect: typeof import(
|
|
116
|
-
const watchPostEffect: typeof import(
|
|
117
|
-
const watchSyncEffect: typeof import(
|
|
9
|
+
const ArrowDown: typeof import("@element-plus/icons-vue").ArrowDown;
|
|
10
|
+
const ArrowRight: typeof import("@element-plus/icons-vue").ArrowRight;
|
|
11
|
+
const ArrowUp: typeof import("@element-plus/icons-vue").ArrowUp;
|
|
12
|
+
const Camera: typeof import("@element-plus/icons-vue").Camera;
|
|
13
|
+
const CircleCheck: typeof import("@element-plus/icons-vue").CircleCheck;
|
|
14
|
+
const CircleClose: typeof import("@element-plus/icons-vue").CircleClose;
|
|
15
|
+
const CirclePlus: typeof import("@element-plus/icons-vue").CirclePlus;
|
|
16
|
+
const Delete: typeof import("@element-plus/icons-vue").Delete;
|
|
17
|
+
const Document: typeof import("@element-plus/icons-vue").Document;
|
|
18
|
+
const Download: typeof import("@element-plus/icons-vue").Download;
|
|
19
|
+
const Edit: typeof import("@element-plus/icons-vue").Edit;
|
|
20
|
+
const EditPen: typeof import("@element-plus/icons-vue").EditPen;
|
|
21
|
+
const EffectScope: typeof import("vue").EffectScope;
|
|
22
|
+
const ElConfigProvider: typeof import("element-plus").ElConfigProvider;
|
|
23
|
+
const ElLoading: typeof import("element-plus").ElLoading;
|
|
24
|
+
const ElMessage: typeof import("element-plus").ElMessage;
|
|
25
|
+
const ElMessageBox: typeof import("element-plus").ElMessageBox;
|
|
26
|
+
const ElNotification: typeof import("element-plus").ElNotification;
|
|
27
|
+
const ElTable: typeof import("element-plus").ElTable;
|
|
28
|
+
const ElTree: typeof import("element-plus").ElTree;
|
|
29
|
+
const Expand: typeof import("@element-plus/icons-vue").Expand;
|
|
30
|
+
const Female: typeof import("@element-plus/icons-vue").Female;
|
|
31
|
+
const Fold: typeof import("@element-plus/icons-vue").Fold;
|
|
32
|
+
const Goods: typeof import("@element-plus/icons-vue").Goods;
|
|
33
|
+
const InfoFilled: typeof import("@element-plus/icons-vue").InfoFilled;
|
|
34
|
+
const List: typeof import("@element-plus/icons-vue").List;
|
|
35
|
+
const Male: typeof import("@element-plus/icons-vue").Male;
|
|
36
|
+
const Moon: typeof import("@element-plus/icons-vue").Moon;
|
|
37
|
+
const Operation: typeof import("@element-plus/icons-vue").Operation;
|
|
38
|
+
const Phone: typeof import("@element-plus/icons-vue").Phone;
|
|
39
|
+
const Plus: typeof import("@element-plus/icons-vue").Plus;
|
|
40
|
+
const Position: typeof import("@element-plus/icons-vue").Position;
|
|
41
|
+
const QuestionFilled: typeof import("@element-plus/icons-vue").QuestionFilled;
|
|
42
|
+
const Refresh: typeof import("@element-plus/icons-vue").Refresh;
|
|
43
|
+
const RefreshLeft: typeof import("@element-plus/icons-vue").RefreshLeft;
|
|
44
|
+
const Search: typeof import("@element-plus/icons-vue").Search;
|
|
45
|
+
const Sunny: typeof import("@element-plus/icons-vue").Sunny;
|
|
46
|
+
const Switch: typeof import("@element-plus/icons-vue").Switch;
|
|
47
|
+
const Tickets: typeof import("@element-plus/icons-vue").Tickets;
|
|
48
|
+
const Timer: typeof import("@element-plus/icons-vue").Timer;
|
|
49
|
+
const User: typeof import("@element-plus/icons-vue").User;
|
|
50
|
+
const UserFilled: typeof import("@element-plus/icons-vue").UserFilled;
|
|
51
|
+
const Van: typeof import("@element-plus/icons-vue").Van;
|
|
52
|
+
const View: typeof import("@element-plus/icons-vue").View;
|
|
53
|
+
const Wallet: typeof import("@element-plus/icons-vue").Wallet;
|
|
54
|
+
const computed: typeof import("vue").computed;
|
|
55
|
+
const createApp: typeof import("vue").createApp;
|
|
56
|
+
const customRef: typeof import("vue").customRef;
|
|
57
|
+
const defineAsyncComponent: typeof import("vue").defineAsyncComponent;
|
|
58
|
+
const defineComponent: typeof import("vue").defineComponent;
|
|
59
|
+
const effectScope: typeof import("vue").effectScope;
|
|
60
|
+
const formContextKey: typeof import("element-plus").formContextKey;
|
|
61
|
+
const formItemContextKey: typeof import("element-plus").formItemContextKey;
|
|
62
|
+
const getCurrentInstance: typeof import("vue").getCurrentInstance;
|
|
63
|
+
const getCurrentScope: typeof import("vue").getCurrentScope;
|
|
64
|
+
const getCurrentWatcher: typeof import("vue").getCurrentWatcher;
|
|
65
|
+
const h: typeof import("vue").h;
|
|
66
|
+
const inject: typeof import("vue").inject;
|
|
67
|
+
const isProxy: typeof import("vue").isProxy;
|
|
68
|
+
const isReactive: typeof import("vue").isReactive;
|
|
69
|
+
const isReadonly: typeof import("vue").isReadonly;
|
|
70
|
+
const isRef: typeof import("vue").isRef;
|
|
71
|
+
const isShallow: typeof import("vue").isShallow;
|
|
72
|
+
const markRaw: typeof import("vue").markRaw;
|
|
73
|
+
const nextTick: typeof import("vue").nextTick;
|
|
74
|
+
const onActivated: typeof import("vue").onActivated;
|
|
75
|
+
const onBeforeMount: typeof import("vue").onBeforeMount;
|
|
76
|
+
const onBeforeRouteLeave: typeof import("vue-router").onBeforeRouteLeave;
|
|
77
|
+
const onBeforeRouteUpdate: typeof import("vue-router").onBeforeRouteUpdate;
|
|
78
|
+
const onBeforeUnmount: typeof import("vue").onBeforeUnmount;
|
|
79
|
+
const onBeforeUpdate: typeof import("vue").onBeforeUpdate;
|
|
80
|
+
const onDeactivated: typeof import("vue").onDeactivated;
|
|
81
|
+
const onErrorCaptured: typeof import("vue").onErrorCaptured;
|
|
82
|
+
const onMounted: typeof import("vue").onMounted;
|
|
83
|
+
const onRenderTracked: typeof import("vue").onRenderTracked;
|
|
84
|
+
const onRenderTriggered: typeof import("vue").onRenderTriggered;
|
|
85
|
+
const onScopeDispose: typeof import("vue").onScopeDispose;
|
|
86
|
+
const onServerPrefetch: typeof import("vue").onServerPrefetch;
|
|
87
|
+
const onUnmounted: typeof import("vue").onUnmounted;
|
|
88
|
+
const onUpdated: typeof import("vue").onUpdated;
|
|
89
|
+
const onWatcherCleanup: typeof import("vue").onWatcherCleanup;
|
|
90
|
+
const provide: typeof import("vue").provide;
|
|
91
|
+
const reactive: typeof import("vue").reactive;
|
|
92
|
+
const readonly: typeof import("vue").readonly;
|
|
93
|
+
const ref: typeof import("vue").ref;
|
|
94
|
+
const resolveComponent: typeof import("vue").resolveComponent;
|
|
95
|
+
const shallowReactive: typeof import("vue").shallowReactive;
|
|
96
|
+
const shallowReadonly: typeof import("vue").shallowReadonly;
|
|
97
|
+
const shallowRef: typeof import("vue").shallowRef;
|
|
98
|
+
const toRaw: typeof import("vue").toRaw;
|
|
99
|
+
const toRef: typeof import("vue").toRef;
|
|
100
|
+
const toRefs: typeof import("vue").toRefs;
|
|
101
|
+
const toValue: typeof import("vue").toValue;
|
|
102
|
+
const triggerRef: typeof import("vue").triggerRef;
|
|
103
|
+
const unref: typeof import("vue").unref;
|
|
104
|
+
const useAttrs: typeof import("vue").useAttrs;
|
|
105
|
+
const useCssModule: typeof import("vue").useCssModule;
|
|
106
|
+
const useCssVars: typeof import("vue").useCssVars;
|
|
107
|
+
const useId: typeof import("vue").useId;
|
|
108
|
+
const useLink: typeof import("vue-router").useLink;
|
|
109
|
+
const useModel: typeof import("vue").useModel;
|
|
110
|
+
const useRoute: typeof import("vue-router").useRoute;
|
|
111
|
+
const useRouter: typeof import("vue-router").useRouter;
|
|
112
|
+
const useSlots: typeof import("vue").useSlots;
|
|
113
|
+
const useTemplateRef: typeof import("vue").useTemplateRef;
|
|
114
|
+
const watch: typeof import("vue").watch;
|
|
115
|
+
const watchEffect: typeof import("vue").watchEffect;
|
|
116
|
+
const watchPostEffect: typeof import("vue").watchPostEffect;
|
|
117
|
+
const watchSyncEffect: typeof import("vue").watchSyncEffect;
|
|
118
118
|
}
|
|
119
119
|
// for type re-export
|
|
120
120
|
declare global {
|
|
121
121
|
// @ts-ignore
|
|
122
|
-
export type {
|
|
123
|
-
|
|
122
|
+
export type {
|
|
123
|
+
Component,
|
|
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");
|
|
124
142
|
}
|