Skip to content

Commit

Permalink
chore: add @element-plus/icons-vue and @vueuse/core (#71)
Browse files Browse the repository at this point in the history
* Update package.json

add @element-plus/icons-vue and @vueuse/core

* Update BaseSide.vue

---------

Co-authored-by: 云游君 <[email protected]>
  • Loading branch information
atorber and YunYouJun authored Nov 22, 2024
1 parent f6e1654 commit 7ebadbf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@vueuse/core": "^10.11.1",
"element-plus": "^2.8.8",
"vue": "^3.5.13"
"vue": "^3.4.21"
},
"devDependencies": {
"@iconify-json/ep": "^1.2.1",
Expand Down
15 changes: 7 additions & 8 deletions src/components/layouts/BaseSide.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<template>
<el-menu
default-active="2"
default-active="1"
class="el-menu-vertical-demo"
:collapse="isCollapse"
@open="handleOpen"
@close="handleClose"
>
Expand Down Expand Up @@ -41,12 +40,12 @@

<script lang="ts" setup>
import { ref } from "vue";
import {
Location,
Document,
Menu as IconMenu,
Setting,
} from "@element-plus/icons-vue";
// import {
// Location,
// Document,
// Menu as IconMenu,
// Setting,
// } from "@element-plus/icons-vue";
const isCollapse = ref(true);
const handleOpen = (key: string, keyPath: string[]) => {
Expand Down

0 comments on commit 7ebadbf

Please sign in to comment.