Skip to content

Commit 9d7dc1d

Browse files
committed
fix: import ep icon from icons-vue
1 parent 7ebadbf commit 9d7dc1d

File tree

3 files changed

+59
-12
lines changed

3 files changed

+59
-12
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
},
1414
"dependencies": {
1515
"@element-plus/icons-vue": "^2.3.1",
16-
"@vueuse/core": "^10.11.1",
16+
"@vueuse/core": "^11.3.0",
1717
"element-plus": "^2.8.8",
18-
"vue": "^3.4.21"
18+
"vue": "^3.5.13"
1919
},
2020
"devDependencies": {
2121
"@iconify-json/ep": "^1.2.1",

pnpm-lock.yaml

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/layouts/BaseSide.vue

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
>
88
<el-sub-menu index="1">
99
<template #title>
10-
<el-icon><location /></el-icon>
10+
<el-icon>
11+
<Location />
12+
</el-icon>
1113
<span>Navigator One</span>
1214
</template>
1315
<el-menu-item-group>
@@ -24,28 +26,34 @@
2426
</el-sub-menu>
2527
</el-sub-menu>
2628
<el-menu-item index="2">
27-
<el-icon><icon-menu /></el-icon>
29+
<el-icon>
30+
<IconMenu />
31+
</el-icon>
2832
<template #title>Navigator Two</template>
2933
</el-menu-item>
3034
<el-menu-item index="3" disabled>
31-
<el-icon><document /></el-icon>
35+
<el-icon>
36+
<Document />
37+
</el-icon>
3238
<template #title>Navigator Three</template>
3339
</el-menu-item>
3440
<el-menu-item index="4">
35-
<el-icon><setting /></el-icon>
41+
<el-icon>
42+
<Setting />
43+
</el-icon>
3644
<template #title>Navigator Four</template>
3745
</el-menu-item>
3846
</el-menu>
3947
</template>
4048

4149
<script lang="ts" setup>
4250
import { ref } from "vue";
43-
// import {
44-
// Location,
45-
// Document,
46-
// Menu as IconMenu,
47-
// Setting,
48-
// } from "@element-plus/icons-vue";
51+
import {
52+
Location,
53+
Document,
54+
Menu as IconMenu,
55+
Setting,
56+
} from "@element-plus/icons-vue";
4957
5058
const isCollapse = ref(true);
5159
const handleOpen = (key: string, keyPath: string[]) => {

0 commit comments

Comments
 (0)