Commit 496ba422 by 林家欣

bootstrap5.0导航

parent d40257b3
...@@ -10,6 +10,6 @@ ...@@ -10,6 +10,6 @@
<style> <style>
.container-fluid{ .container-fluid{
padding: 0; padding: 0 !important;
} }
</style> </style>
...@@ -2,25 +2,23 @@ ...@@ -2,25 +2,23 @@
<header> <header>
<div class="logo"></div> <div class="logo"></div>
<nav class="navbar navbar-expand-lg navbar-light bg-light"> <nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar</a> <a class="navbar-brand" href="#">Navbar</a>
<button <button
class="navbar-toggler" class="navbar-toggler"
type="button" type="button"
data-toggle="collapse" data-bs-toggle="collapse"
data-target="#navbarSupportedContent" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-expanded="false"
aria-label="Toggle navigation" aria-label="Toggle navigation"
> >
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto"> <ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item active"> <li class="nav-item">
<a class="nav-link" href="#" <a class="nav-link active" aria-current="page" href="#">Home</a>
>Home <span class="sr-only">(current)</span></a
>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="#">Link</a> <a class="nav-link" href="#">Link</a>
...@@ -31,28 +29,36 @@ ...@@ -31,28 +29,36 @@
href="#" href="#"
id="navbarDropdown" id="navbarDropdown"
role="button" role="button"
data-toggle="dropdown" data-bs-toggle="dropdown"
aria-expanded="false" aria-expanded="false"
> >
Dropdown Dropdown
</a> </a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown"> <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Action</a> <li><a class="dropdown-item" href="#">Action</a></li>
<a class="dropdown-item" href="#">Another action</a> <li><a class="dropdown-item" href="#">Another action</a></li>
<div class="dropdown-divider"></div> <li><hr class="dropdown-divider" /></li>
<li>
<a class="dropdown-item" href="#">Something else here</a> <a class="dropdown-item" href="#">Something else here</a>
</div> </li>
</ul>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a <a class="nav-link disabled">Disabled</a>
class="nav-link disabled"
href="#"
tabindex="-1"
aria-disabled="true"
>Disabled</a
>
</li> </li>
</ul> </ul>
<form class="d-flex">
<input
class="form-control me-2"
type="search"
placeholder="Search"
aria-label="Search"
/>
<button class="btn btn-outline-success" type="submit">
Search
</button>
</form>
</div>
</div> </div>
</nav> </nav>
<div class="user"></div> <div class="user"></div>
...@@ -64,6 +70,7 @@ export default { ...@@ -64,6 +70,7 @@ export default {
data() { data() {
return {}; return {};
}, },
created() {},
}; };
</script> </script>
......
<template> <template>
<el-container> <div>
<el-container>
<el-header>
<Header></Header> <Header></Header>
</el-header>
<el-main>
<router-view></router-view> <router-view></router-view>
</el-main>
<el-footer>
<Footer></Footer> <Footer></Footer>
</el-footer> </div>
</el-container>
</el-container>
</template> </template>
<script> <script>
import Header from "./layout/header.vue" import Header from "./layout/header.vue";
// import Footer from "./layout/footer.vue" // import Footer from "./layout/footer.vue"
export default { export default {
components: { components: {
Header, Header,
}, },
...@@ -25,17 +17,13 @@ ...@@ -25,17 +17,13 @@
return { return {
userName: "", userName: "",
sidebarNav: [], sidebarNav: [],
} };
}, },
computed: { computed: {},
}, methods: {},
methods: { created() {},
}, mounted() {},
created() { };
},
mounted() {
}
}
</script> </script>
<style lang="scss"> <style lang="scss">
......
...@@ -44,7 +44,6 @@ Vue.use(Clipboard) ...@@ -44,7 +44,6 @@ Vue.use(Clipboard)
// Vuex // Vuex
import storage from "./utils/storage.js" import storage from "./utils/storage.js"
Vue.prototype.$storage = storage Vue.prototype.$storage = storage
Vue.prototype.$ = $
// ngprogress // ngprogress
import NProgress from "nprogress"; import NProgress from "nprogress";
......
...@@ -27,11 +27,11 @@ module.exports = { ...@@ -27,11 +27,11 @@ module.exports = {
modules: false, //启动css Modules modules: false, //启动css Modules
extract: process.env.NODE_ENV === "production", //css分离插件 extract: process.env.NODE_ENV === "production", //css分离插件
loaderOptions: { loaderOptions: {
css:{ css: {
localIdentName:"[path]-[name]-[local]-[hash:base64:5]", localIdentName: "[path]-[name]-[local]-[hash:base64:5]",
camelCase:true, camelCase: true,
}, },
sass:{ sass: {
data: `@import "@/assets/css/_style.scss";` data: `@import "@/assets/css/_style.scss";`
} }
} }
...@@ -51,8 +51,8 @@ module.exports = { ...@@ -51,8 +51,8 @@ module.exports = {
host: "0.0.0.0", // 全部 host: "0.0.0.0", // 全部
https: false, https: false,
open: false, open: false,
compress:true, compress: true,
disableHostCheck:true, disableHostCheck: true,
proxy: { proxy: {
"/api": { "/api": {
target: process.env.VUE_APP_HOST_URL, // 原地址 target: process.env.VUE_APP_HOST_URL, // 原地址
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment