fix: 解决所有icon的引入路径问题

This commit is contained in:
MTrun
2021-12-20 16:39:19 +08:00
parent 45884a2918
commit 07eabd8869
11 changed files with 88 additions and 40 deletions
+2 -1
View File
@@ -8,7 +8,8 @@
<script lang="ts" setup>
import { openDoc } from '@/utils'
import { DocumentText as DocumentTextIcon } from '@vicons/ionicons5'
import { icon } from '@/plugins'
const { DocumentTextIcon } = icon.ionicons5
const handleClick = () => {
openDoc()
+2 -1
View File
@@ -15,10 +15,11 @@
<script lang="ts" setup>
import { useLangStore } from '@/store/modules/langStore/langStore'
import { Language as LanguageIcon } from '@vicons/ionicons5'
import { langList } from '@/settings/designSetting'
import { LangEnum } from '@/enums/styleEnum'
import { icon } from '@/plugins'
const { LanguageIcon } = icon.ionicons5
const langStore = useLangStore()
const options = langList
+2 -2
View File
@@ -10,8 +10,8 @@
<script lang="ts" setup>
import { useDesignStore } from '@/store/modules/designStore/designStore'
import { setHtmlTheme } from '@/utils'
import { Moon as MoonIcon, Sunny as SunnyIcon } from '@vicons/ionicons5'
import { icon } from '@/plugins'
const { MoonIcon, SunnyIcon } = icon.ionicons5
const designStore = useDesignStore()
// 改变样式
+3 -6
View File
@@ -24,12 +24,9 @@ import { h, ref } from 'vue'
import { NAvatar, NText } from 'naive-ui'
import { renderIcon } from '@/utils'
import { openDoc, logout } from '@/utils'
import {
Person as PersonIcon,
LogOutOutline as LogOutOutlineIcon,
DocumentText as DocumentTextIcon,
ChatboxEllipses as ChatboxEllipsesIcon
} from '@vicons/ionicons5'
import { icon } from '@/plugins'
const { DocumentTextIcon, ChatboxEllipsesIcon, PersonIcon, LogOutOutlineIcon } = icon.ionicons5
const imageUrl = 'https://www.naiveui.com/assets/naivelogo.93278402.svg'