|
@@ -1,12 +1,16 @@
|
|
|
-import { RouterView } from 'vue-router'
|
|
|
|
|
|
|
+
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
|
|
+import { RouterView } from 'vue-router'
|
|
|
|
|
+import {ref} from 'vue'
|
|
|
import {
|
|
import {
|
|
|
BellFilled,
|
|
BellFilled,
|
|
|
ArrowRightBold,
|
|
ArrowRightBold,
|
|
|
Menu as IconMenu,
|
|
Menu as IconMenu,
|
|
|
Location,
|
|
Location,
|
|
|
Setting,
|
|
Setting,
|
|
|
|
|
+ Search
|
|
|
} from '@element-plus/icons-vue'
|
|
} from '@element-plus/icons-vue'
|
|
|
|
|
+let searchWord=ref('')
|
|
|
const handleOpen = (key: string, keyPath: string[]) => {
|
|
const handleOpen = (key: string, keyPath: string[]) => {
|
|
|
console.log(key, keyPath)
|
|
console.log(key, keyPath)
|
|
|
}
|
|
}
|
|
@@ -19,9 +23,18 @@ const handleClose = (key: string, keyPath: string[]) => {
|
|
|
<template>
|
|
<template>
|
|
|
<div class="common-layout">
|
|
<div class="common-layout">
|
|
|
<el-container>
|
|
<el-container>
|
|
|
- <el-aside width="200px">
|
|
|
|
|
|
|
+ <el-aside width="200px" style="background:#fff">
|
|
|
|
|
+ <div class="reset-ipt">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+
|
|
|
|
|
+ v-model="searchWord"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ placeholder="搜索菜单..."
|
|
|
|
|
+ :suffix-icon="Search"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
<el-menu
|
|
<el-menu
|
|
|
- style="height:100%"
|
|
|
|
|
|
|
+
|
|
|
active-text-color="#ffd04b"
|
|
active-text-color="#ffd04b"
|
|
|
background-color="#000000"
|
|
background-color="#000000"
|
|
|
class="el-menu-vertical-demo"
|
|
class="el-menu-vertical-demo"
|
|
@@ -125,9 +138,23 @@ const handleClose = (key: string, keyPath: string[]) => {
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
+<style lang="scss">
|
|
|
|
|
+ .reset-ipt{
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ background:#000;
|
|
|
|
|
+ padding:12px 16px;
|
|
|
|
|
+ .el-input__wrapper{
|
|
|
|
|
+ box-shadow: none;
|
|
|
|
|
+ background:#374151;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+</style>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .el-menu{
|
|
|
|
|
+ height:calc(100% - 56px);
|
|
|
|
|
+ }
|
|
|
.common-layout{
|
|
.common-layout{
|
|
|
height:100%;
|
|
height:100%;
|
|
|
.el-container{
|
|
.el-container{
|