|
@@ -0,0 +1,80 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <div class="side-wp">
|
|
|
|
|
+ <lay-menu class="menu-wp" v-model:selected-key="selectedKey" theme="light" v-model:openKeys="openKeys4" :tree="true">
|
|
|
|
|
+ <lay-menu-item id="1">
|
|
|
|
|
+ <template #title>
|
|
|
|
|
+ <lay-icon type="layui-icon-console" />
|
|
|
|
|
+ 控制中心
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </lay-menu-item>
|
|
|
|
|
+ <lay-sub-menu id="2">
|
|
|
|
|
+ <template #title>
|
|
|
|
|
+ <lay-icon type="layui-icon-set" />
|
|
|
|
|
+ 系统管理
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <lay-menu-item id="3">
|
|
|
|
|
+ <span class="child-menu">页面管理</span>
|
|
|
|
|
+ </lay-menu-item>
|
|
|
|
|
+ <lay-menu-item id="4">
|
|
|
|
|
+ <span class="child-menu">用户管理</span>
|
|
|
|
|
+ </lay-menu-item>
|
|
|
|
|
+ <lay-menu-item id="5">
|
|
|
|
|
+ <span class="child-menu">组织管理</span>
|
|
|
|
|
+ </lay-menu-item>
|
|
|
|
|
+ </lay-sub-menu>
|
|
|
|
|
+ </lay-menu>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script lang="ts" setup>
|
|
|
|
|
+import { ref } from "vue";
|
|
|
|
|
+
|
|
|
|
|
+const openKeys4 = ref(["2"]);
|
|
|
|
|
+const selectedKey = ref("1");
|
|
|
|
|
+</script>
|
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
|
+.side-wp {
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ border-right: 1px solid rgba(0, 0, 0, 0.1);
|
|
|
|
|
+ .menu-wp {
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+ width: auto;
|
|
|
|
|
+ }
|
|
|
|
|
+ :deep(.layui-nav-tree) {
|
|
|
|
|
+ .layui-this {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ a {
|
|
|
|
|
+ background-color: rgb(232, 252, 247) !important;
|
|
|
|
|
+ border-right: 2px solid rgb(28, 175, 131) !important;
|
|
|
|
|
+ &::after {
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ width: 8px;
|
|
|
|
|
+ height: 8px;
|
|
|
|
|
+ z-index: 1;
|
|
|
|
|
+ transform: rotate(45deg) translateY(-50%);
|
|
|
|
|
+ transform-origin: center;
|
|
|
|
|
+ border-top: 1px solid rgb(28, 175, 131) !important;
|
|
|
|
|
+ border-right: 1px solid rgb(28, 175, 131) !important;
|
|
|
|
|
+ right: 20px;
|
|
|
|
|
+ top: 50%;
|
|
|
|
|
+ }
|
|
|
|
|
+ span,
|
|
|
|
|
+ i {
|
|
|
|
|
+ color: rgb(28, 175, 131) !important;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .layui-nav-child {
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .child-menu {
|
|
|
|
|
+ padding-left: 14px;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|