diff --git a/internal/vite-config/src/config/application.ts b/internal/vite-config/src/config/application.ts index 19c7f881976a31f0604362f31aa81299730f26e5..53679464091d8232a25b9996054566e705a4f6b3 100644 --- a/internal/vite-config/src/config/application.ts +++ b/internal/vite-config/src/config/application.ts @@ -31,13 +31,6 @@ function defineApplicationConfig(defineOptions: DefineOptions = {}) { const pathResolve = (pathname: string) => resolve(root, '.', pathname); const applicationConfig: UserConfig = { - optimizeDeps: { - include: [ - '@iconify/iconify', - 'ant-design-vue/es/locale/zh_CN', - 'ant-design-vue/es/locale/en_US', - ], - }, resolve: { alias: [ { diff --git a/src/components/Application/src/search/AppSearchModal.vue b/src/components/Application/src/search/AppSearchModal.vue index 1540ac6e3d05cc25aded7702d46f86cb34dc78c6..2b8eb9c4b7a907de14319270f6d5bba2182bc544 100644 --- a/src/components/Application/src/search/AppSearchModal.vue +++ b/src/components/Application/src/search/AppSearchModal.vue @@ -61,7 +61,7 @@ import { computed, unref, ref, watch, nextTick } from 'vue'; import { SearchOutlined } from '@ant-design/icons-vue'; import AppSearchFooter from './AppSearchFooter.vue'; - import Icon from '/@/components/Icon'; + import { Icon } from '/@/components/Icon'; // @ts-ignore import vClickOutside from '/@/directives/clickOutside'; import { useDesign } from '/@/hooks/web/useDesign'; diff --git a/src/components/ContextMenu/src/ContextMenu.vue b/src/components/ContextMenu/src/ContextMenu.vue index a2028f5c5c638ef369139b1ab08b0ce38962c9ae..078077bb4f78681395ac10b127faf26ae7eaabfe 100644 --- a/src/components/ContextMenu/src/ContextMenu.vue +++ b/src/components/ContextMenu/src/ContextMenu.vue @@ -2,7 +2,7 @@ import type { ContextMenuItem, ItemContentProps, Axis } from './typing'; import type { FunctionalComponent, CSSProperties, PropType } from 'vue'; import { defineComponent, nextTick, onMounted, computed, ref, unref, onUnmounted } from 'vue'; - import Icon from '/@/components/Icon'; + import { Icon } from '/@/components/Icon'; import { Menu, Divider } from 'ant-design-vue'; const prefixCls = 'context-menu'; diff --git a/src/components/Cropper/src/CropperAvatar.vue b/src/components/Cropper/src/CropperAvatar.vue index 9f14bc497f699760e6a387b752a64f832bcd4ce5..8c4aae863b6f3dbcc5d176ab4721eae70c9332d4 100644 --- a/src/components/Cropper/src/CropperAvatar.vue +++ b/src/components/Cropper/src/CropperAvatar.vue @@ -45,7 +45,7 @@ import { useMessage } from '/@/hooks/web/useMessage'; import { useI18n } from '/@/hooks/web/useI18n'; import type { ButtonProps } from '/@/components/Button'; - import Icon from '/@/components/Icon'; + import { Icon } from '/@/components/Icon'; const props = { width: { type: [String, Number], default: '200px' }, diff --git a/src/components/Icon/index.ts b/src/components/Icon/index.ts index 01e7d2361c39fe04c7c564ef8a7ce4b5ac74875f..0e719adfd852a89ca7033a4bef38283889ae882e 100644 --- a/src/components/Icon/index.ts +++ b/src/components/Icon/index.ts @@ -3,5 +3,3 @@ import SvgIcon from './src/SvgIcon.vue'; import IconPicker from './src/IconPicker.vue'; export { Icon, IconPicker, SvgIcon }; - -export default Icon; diff --git a/src/components/Menu/src/components/MenuItemContent.vue b/src/components/Menu/src/components/MenuItemContent.vue index 99a835db63c696889d01f5b3a7b2f4d2fd2c590c..607df93b4a61abf1f5fe69fde59cc38ef16d7cbe 100644 --- a/src/components/Menu/src/components/MenuItemContent.vue +++ b/src/components/Menu/src/components/MenuItemContent.vue @@ -7,7 +7,7 @@