基于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.

43 lines
1.2 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, Views } from "noob-mengyxu";
2 years ago
const store = useStore();
2 years ago
const { buff, dictionary, config, permission, role, status, log } = Views.menus;
2 years ago
const menus = [
2 years ago
{
2 years ago
i18n: "menu.home", path: "home", icon: "HomeFilled"
2 years ago
},
{
2 years ago
i18n: "menu.operator", path: "operator", icon: "Platform", children: [
buff, dictionary, config, permission, role, status, log
2 years ago
]
2 years ago
},
{
2 years ago
i18n: "menu.base", path: "base", icon: "House", children: [
{ i18n: "menu.table", path: "table", icon: "List" },
{ i18n: "menu.form", path: "form", icon: "Postcard" },
]
},
{
i18n: "menu.tool", path: "tool", icon: "Tools", children: [
{ i18n: "menu.terminal", path: "terminal", icon: "Platform" },
{ i18n: "menu.color", path: "color", icon: "MagicStick" },
2 years ago
]
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
// ::v-deep .no-padding .el-dialog__body {
// background-color: black;
// }
2 years ago
</style>