基于vue3.0和element-plus的组件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.0 KiB

2 years ago
<template>
2 years ago
<Index :menus="menus" @updatePwd="pwd => console.log(pwd)"></Index>
2 years ago
</template>
<script lang="ts" setup>
2 years ago
import { reactive, onMounted, ref } from "vue";
2 years ago
import { useStore } from "vuex";
2 years ago
import { Index } from "noob";
2 years ago
const store = useStore();
2 years ago
const menus = [
2 years ago
{
2 years ago
title: "主页", path: "home", icon: ""
2 years ago
},
{
2 years ago
title: "通用", path: "base", icon: "", children: [
{ title: "表格", path: "table", icon: "" },
{ title: "表单", path: "form", icon: "" },
]
2 years ago
},
{
2 years ago
title: "工具", path: "tool", icon: "", children: [
{ title: "终端", path: "terminal", icon: "" },
{ title: "颜色", path: "color", icon: "" },
]
2 years ago
}
2 years ago
]
2 years ago
2 years ago
onMounted(() => { });
2 years ago
</script>
2 years ago
<style lang="scss">
2 years ago
body {
font-size: 14px;
font-family: "Microsoft YaHei";
width: 100%;
height: 100%;
overflow: hidden;
padding: 0px;
margin: 0px;
}
2 years ago
::v-deep .no-padding .el-dialog__body {
background-color: black;
}
2 years ago
</style>