Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1
Commits
496ba422
Commit
496ba422
authored
Sep 27, 2021
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bootstrap5.0导航
parent
d40257b3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
96 additions
and
102 deletions
+96
-102
index.html
public/index.html
+1
-1
App.vue
src/App.vue
+1
-1
header.vue
src/components/layout/header.vue
+58
-51
main.vue
src/components/main.vue
+22
-34
main.js
src/main.js
+0
-1
vue.config.js
vue.config.js
+14
-14
No files found.
public/index.html
View file @
496ba422
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"referrer"
content=
"never"
>
<meta
name=
"referrer"
content=
"never"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<!-- <link rel="shortcut icon" href="/favicon.ico"/> -->
<!-- <link rel="shortcut icon" href="/favicon.ico"/> -->
<title>
中国物品编码中心
</title>
<title>
中国物品编码中心
</title>
</head>
</head>
...
...
src/App.vue
View file @
496ba422
...
@@ -10,6 +10,6 @@
...
@@ -10,6 +10,6 @@
<
style
>
<
style
>
.container-fluid
{
.container-fluid
{
padding
:
0
;
padding
:
0
!important
;
}
}
</
style
>
</
style
>
src/components/layout/header.vue
View file @
496ba422
...
@@ -2,57 +2,63 @@
...
@@ -2,57 +2,63 @@
<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"
>
<a
class=
"navbar-brand"
href=
"#"
>
Navbar
</a>
<div
class=
"container-fluid"
>
<button
<a
class=
"navbar-brand"
href=
"#"
>
Navbar
</a>
class=
"navbar-toggler"
<button
type=
"button"
class=
"navbar-toggler"
data-toggle=
"collapse"
type=
"button"
data-target=
"#navbarSupportedContent"
data-bs-toggle=
"collapse"
aria-controls=
"navbarSupportedContent"
data-bs-target=
"#navbarSupportedContent"
aria-expanded=
"false"
aria-controls=
"navbarSupportedContent"
aria-label=
"Toggle navigation"
aria-expanded=
"false"
>
aria-label=
"Toggle navigation"
<span
class=
"navbar-toggler-icon"
></span>
>
</button>
<span
class=
"navbar-toggler-icon"
></span>
</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
class=
"nav-item"
>
</li>
<a
class=
"nav-link"
href=
"#"
>
Link
</a>
<li
class=
"nav-item"
>
</li>
<a
class=
"nav-link"
href=
"#"
>
Link
</a>
<li
class=
"nav-item dropdown"
>
</li>
<a
<li
class=
"nav-item dropdown"
>
class=
"nav-link dropdown-toggle"
<a
href=
"#"
class=
"nav-link dropdown-toggle"
id=
"navbarDropdown"
href=
"#"
role=
"button"
id=
"navbarDropdown"
data-bs-toggle=
"dropdown"
role=
"button"
aria-expanded=
"false"
data-toggle=
"dropdown"
>
aria-expanded=
"false"
Dropdown
>
</a>
Dropdown
<ul
class=
"dropdown-menu"
aria-labelledby=
"navbarDropdown"
>
</a>
<li><a
class=
"dropdown-item"
href=
"#"
>
Action
</a></li>
<div
class=
"dropdown-menu"
aria-labelledby=
"navbarDropdown"
>
<li><a
class=
"dropdown-item"
href=
"#"
>
Another action
</a></li>
<a
class=
"dropdown-item"
href=
"#"
>
Action
</a>
<li><hr
class=
"dropdown-divider"
/></li>
<a
class=
"dropdown-item"
href=
"#"
>
Another action
</a>
<li>
<div
class=
"dropdown-divider"
></div>
<a
class=
"dropdown-item"
href=
"#"
>
Something else here
</a>
<a
class=
"dropdown-item"
href=
"#"
>
Something else here
</a>
</li>
</div>
</ul>
</li>
</li>
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
<a
<a
class=
"nav-link disabled"
>
Disabled
</a>
class=
"nav-link disabled"
</li>
href=
"#"
</ul>
tabindex=
"-1"
<form
class=
"d-flex"
>
aria-disabled=
"true"
<input
>
Disabled
</a
class=
"form-control me-2"
>
type=
"search"
</li>
placeholder=
"Search"
</ul>
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
>
...
...
src/components/main.vue
View file @
496ba422
<
template
>
<
template
>
<el-container>
<div>
<el-container>
<Header></Header>
<el-header>
<router-view></router-view>
<Header></Header>
<Footer></Footer>
</el-header>
</div>
<el-main>
<router-view></router-view>
</el-main>
<el-footer>
<Footer></Footer>
</el-footer>
</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
,
},
},
data
()
{
data
()
{
return
{
return
{
userName
:
""
,
userName
:
""
,
sidebarNav
:
[],
sidebarNav
:
[],
}
};
},
},
computed
:
{
computed
:
{},
},
methods
:
{},
methods
:
{
created
()
{},
},
mounted
()
{},
created
()
{
};
},
mounted
()
{
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
...
...
src/main.js
View file @
496ba422
...
@@ -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"
;
...
...
vue.config.js
View file @
496ba422
...
@@ -9,7 +9,7 @@ const resolve = dir => {
...
@@ -9,7 +9,7 @@ const resolve = dir => {
const
BASE_URL
=
process
.
env
.
NODE_ENV
===
"production"
const
BASE_URL
=
process
.
env
.
NODE_ENV
===
"production"
?
"/"
?
"/"
:
"/"
:
"/"
module
.
exports
=
{
module
.
exports
=
{
publicPath
:
BASE_URL
,
//根路径
publicPath
:
BASE_URL
,
//根路径
outputDir
:
"dist"
,
//打包目录
outputDir
:
"dist"
,
//打包目录
...
@@ -27,32 +27,32 @@ module.exports = {
...
@@ -27,32 +27,32 @@ 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";`
}
}
}
}
},
},
configureWebpack
:
{
configureWebpack
:
{
plugins
:
[
plugins
:
[
new
webpack
.
ProvidePlugin
({
new
webpack
.
ProvidePlugin
({
$
:
'jquery'
,
$
:
'jquery'
,
jQuery
:
'jquery'
,
jQuery
:
'jquery'
,
'window.jQuery'
:
'jquery'
,
'window.jQuery'
:
'jquery'
,
Popper
:
[
'popper.js'
,
'default'
]
Popper
:
[
'popper.js'
,
'default'
]
})
})
]
]
},
},
devServer
:
{
devServer
:
{
port
:
"8090"
,
port
:
"8090"
,
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
,
// 原地址
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment