From 85c4d1fb039df7a0f9284ce68de3e873f8345771 Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 18 Jan 2023 12:14:58 +0800 Subject: [PATCH] perf: aotu imports --- yudao-ui-admin-vue3/build/vite/optimize.ts | 1 + .../src/types/auto-components.d.ts | 10 ++++++++ yudao-ui-admin-vue3/src/views/Error/403.vue | 3 --- yudao-ui-admin-vue3/src/views/Error/404.vue | 3 --- yudao-ui-admin-vue3/src/views/Error/500.vue | 3 --- yudao-ui-admin-vue3/src/views/Home/Index.vue | 5 ---- yudao-ui-admin-vue3/src/views/Home/Index2.vue | 4 --- .../src/views/Login/components/LoginForm.vue | 15 +---------- .../views/Login/components/LoginFormTitle.vue | 1 - .../src/views/Login/components/MobileForm.vue | 3 --- .../src/views/Login/components/QrCodeForm.vue | 3 --- .../views/Login/components/RegisterForm.vue | 4 +-- .../src/views/Login/components/useLogin.ts | 2 +- .../src/views/Profile/Index.vue | 2 -- .../views/Profile/components/BasicInfo.vue | 2 +- .../views/Profile/components/ProfileUser.vue | 1 - .../src/views/Profile/components/ResetPwd.vue | 6 ++--- .../views/Profile/components/UserAvatar.vue | 2 -- .../views/Profile/components/UserSocial.vue | 2 -- .../src/views/Redirect/Redirect.vue | 3 --- .../src/views/bpm/form/form.data.ts | 1 - .../src/views/bpm/form/index.vue | 3 +-- .../src/views/bpm/group/group.data.ts | 1 - .../src/views/bpm/group/index.vue | 5 ++-- .../src/views/bpm/model/index.vue | 4 +-- .../src/views/bpm/model/model.data.ts | 1 - .../src/views/bpm/processInstance/index.vue | 1 - .../src/views/bpm/task/done/done.data.ts | 1 - .../src/views/bpm/task/done/index.vue | 1 - .../src/views/bpm/task/todo/done.data.ts | 1 - .../src/views/bpm/task/todo/index.vue | 1 - .../infra/apiAccessLog/apiAccessLog.data.ts | 1 - .../src/views/infra/apiAccessLog/index.vue | 1 - .../infra/apiErrorLog/apiErrorLog.data.ts | 1 - .../src/views/infra/apiErrorLog/index.vue | 1 - .../src/views/infra/codegen/EditTable.vue | 3 --- .../src/views/infra/codegen/codegen.data.ts | 1 - .../codegen/components/BasicInfoForm.vue | 3 +-- .../codegen/components/CloumInfoForm.vue | 2 +- .../infra/codegen/components/ImportTable.vue | 2 -- .../infra/codegen/components/Preview.vue | 3 --- .../src/views/infra/codegen/index.vue | 2 -- .../src/views/infra/config/config.data.ts | 1 - .../src/views/infra/config/index.vue | 3 +-- .../dataSourceConfig/dataSourceConfig.data.ts | 1 - .../views/infra/dataSourceConfig/index.vue | 3 +-- .../src/views/infra/dbDoc/index.vue | 2 -- .../src/views/infra/druid/index.vue | 3 --- .../views/infra/fileConfig/fileConfig.data.ts | 1 - .../src/views/infra/fileConfig/index.vue | 13 +--------- .../src/views/infra/fileList/fileList.data.ts | 1 - .../src/views/infra/fileList/index.vue | 4 +-- .../src/views/infra/job/JobLog.vue | 1 - .../src/views/infra/job/index.vue | 6 +---- .../src/views/infra/job/job.data.ts | 1 - .../src/views/infra/job/jobLog.data.ts | 1 - .../src/views/infra/redis/index.vue | 11 -------- .../src/views/infra/server/index.vue | 3 --- .../src/views/infra/skywalking/index.vue | 3 --- .../src/views/infra/swagger/index.vue | 3 --- .../src/views/infra/webSocket/index.vue | 3 --- .../src/views/pay/app/app.data.ts | 1 - .../src/views/pay/app/index.vue | 3 +-- .../src/views/pay/merchant/index.vue | 3 +-- .../src/views/pay/merchant/merchant.data.ts | 1 - .../src/views/pay/order/index.vue | 1 - .../src/views/pay/order/order.data.ts | 1 - .../src/views/pay/refund/index.vue | 1 - .../src/views/pay/refund/refund.data.ts | 1 - .../src/views/system/dept/dept.data.ts | 1 - .../src/views/system/dept/index.vue | 4 +-- .../src/views/system/dict/dict.data.ts | 1 - .../src/views/system/dict/dict.type.ts | 1 - .../src/views/system/dict/index.vue | 4 +-- .../views/system/errorCode/errorCode.data.ts | 1 - .../src/views/system/errorCode/index.vue | 3 +-- .../src/views/system/loginlog/index.vue | 1 - .../views/system/loginlog/loginLog.data.ts | 1 - .../src/views/system/menu/index.vue | 16 +----------- .../src/views/system/menu/menu.data.ts | 1 - .../src/views/system/notice/index.vue | 4 +-- .../src/views/system/notice/notice.data.ts | 1 - .../views/system/oauth2/client/client.data.ts | 1 - .../src/views/system/oauth2/client/index.vue | 4 +-- .../src/views/system/oauth2/token/index.vue | 1 - .../views/system/oauth2/token/token.data.ts | 1 - .../src/views/system/operatelog/index.vue | 1 - .../system/operatelog/operatelog.data.ts | 1 - .../src/views/system/post/index.vue | 3 +-- .../src/views/system/post/post.data.ts | 1 - .../src/views/system/role/index.vue | 14 ++--------- .../src/views/system/role/role.data.ts | 1 - .../src/views/system/sensitiveWord/index.vue | 4 +-- .../sensitiveWord/sensitiveWord.data.ts | 1 - .../src/views/system/sms/smsChannel/index.vue | 3 +-- .../system/sms/smsChannel/sms.channel.data.ts | 1 - .../src/views/system/sms/smsLog/index.vue | 1 - .../views/system/sms/smsLog/sms.log.data.ts | 1 - .../views/system/sms/smsTemplate/index.vue | 4 +-- .../sms/smsTemplate/sms.template.data.ts | 1 - .../src/views/system/tenant/index.vue | 4 +-- .../src/views/system/tenant/tenant.data.ts | 3 ++- .../src/views/system/tenantPackage/index.vue | 5 ++-- .../tenantPackage/tenantPackage.data.ts | 1 - .../src/views/system/user/index.vue | 25 ++----------------- .../src/views/system/user/user.data.ts | 1 - .../views/visualization/jmreport/index.vue | 2 -- 107 files changed, 50 insertions(+), 265 deletions(-) diff --git a/yudao-ui-admin-vue3/build/vite/optimize.ts b/yudao-ui-admin-vue3/build/vite/optimize.ts index 583daa93b..b3df9058d 100644 --- a/yudao-ui-admin-vue3/build/vite/optimize.ts +++ b/yudao-ui-admin-vue3/build/vite/optimize.ts @@ -21,6 +21,7 @@ const include = [ 'vxe-table/es/style', 'web-storage-cache', 'element-plus', + 'element-plus/es', 'element-plus/es/locale/lang/zh-cn', 'element-plus/es/locale/lang/en', '@iconify/iconify', diff --git a/yudao-ui-admin-vue3/src/types/auto-components.d.ts b/yudao-ui-admin-vue3/src/types/auto-components.d.ts index c298c5d47..0106ea8f7 100644 --- a/yudao-ui-admin-vue3/src/types/auto-components.d.ts +++ b/yudao-ui-admin-vue3/src/types/auto-components.d.ts @@ -22,6 +22,16 @@ declare module '@vue/runtime-core' { Echart: typeof import('./../components/Echart/src/Echart.vue')['default'] Editor: typeof import('./../components/Editor/src/Editor.vue')['default'] ElButton: typeof import('element-plus/es')['ElButton'] + ElCard: typeof import('element-plus/es')['ElCard'] + ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] + ElCol: typeof import('element-plus/es')['ElCol'] + ElDivider: typeof import('element-plus/es')['ElDivider'] + ElForm: typeof import('element-plus/es')['ElForm'] + ElFormItem: typeof import('element-plus/es')['ElFormItem'] + ElInput: typeof import('element-plus/es')['ElInput'] + ElLink: typeof import('element-plus/es')['ElLink'] + ElRow: typeof import('element-plus/es')['ElRow'] + ElSkeleton: typeof import('element-plus/es')['ElSkeleton'] Error: typeof import('./../components/Error/src/Error.vue')['default'] Form: typeof import('./../components/Form/src/Form.vue')['default'] Highlight: typeof import('./../components/Highlight/src/Highlight.vue')['default'] diff --git a/yudao-ui-admin-vue3/src/views/Error/403.vue b/yudao-ui-admin-vue3/src/views/Error/403.vue index 67bab9d0a..a22162209 100644 --- a/yudao-ui-admin-vue3/src/views/Error/403.vue +++ b/yudao-ui-admin-vue3/src/views/Error/403.vue @@ -2,9 +2,6 @@ diff --git a/yudao-ui-admin-vue3/src/views/infra/fileConfig/fileConfig.data.ts b/yudao-ui-admin-vue3/src/views/infra/fileConfig/fileConfig.data.ts index 732e7a6ec..40ee7a859 100644 --- a/yudao-ui-admin-vue3/src/views/infra/fileConfig/fileConfig.data.ts +++ b/yudao-ui-admin-vue3/src/views/infra/fileConfig/fileConfig.data.ts @@ -1,4 +1,3 @@ -import { reactive } from 'vue' import { useI18n } from '@/hooks/web/useI18n' import { required } from '@/utils/formRules' import { DICT_TYPE } from '@/utils/dict' diff --git a/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue b/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue index 227efab29..c1f42c2fc 100644 --- a/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue +++ b/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue @@ -159,18 +159,7 @@ diff --git a/yudao-ui-admin-vue3/src/views/infra/skywalking/index.vue b/yudao-ui-admin-vue3/src/views/infra/skywalking/index.vue index 561a19d86..4c02f5336 100644 --- a/yudao-ui-admin-vue3/src/views/infra/skywalking/index.vue +++ b/yudao-ui-admin-vue3/src/views/infra/skywalking/index.vue @@ -4,8 +4,5 @@ diff --git a/yudao-ui-admin-vue3/src/views/infra/swagger/index.vue b/yudao-ui-admin-vue3/src/views/infra/swagger/index.vue index 5d4697c1a..72a826e61 100644 --- a/yudao-ui-admin-vue3/src/views/infra/swagger/index.vue +++ b/yudao-ui-admin-vue3/src/views/infra/swagger/index.vue @@ -4,9 +4,6 @@ diff --git a/yudao-ui-admin-vue3/src/views/infra/webSocket/index.vue b/yudao-ui-admin-vue3/src/views/infra/webSocket/index.vue index 4820204a0..1e7c5c9f3 100644 --- a/yudao-ui-admin-vue3/src/views/infra/webSocket/index.vue +++ b/yudao-ui-admin-vue3/src/views/infra/webSocket/index.vue @@ -56,9 +56,6 @@