Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openApi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hj
openApi
Commits
2e4eac7a
Commit
2e4eac7a
authored
Apr 14, 2022
by
hangjun83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端 样式更改
parent
0a618642
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
300 additions
and
345 deletions
+300
-345
front/src/views/Main.vue
front/src/views/Main.vue
+300
-345
No files found.
front/src/views/Main.vue
View file @
2e4eac7a
...
@@ -3,31 +3,24 @@
...
@@ -3,31 +3,24 @@
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"main"
:class=
"
{ 'main-hide-text': shrink }">
<div
class=
"main"
:class=
"
{ 'main-hide-text': shrink }">
<!-- 左侧菜单 -->
<!-- 左侧菜单 -->
<div
<div
:class=
"`sidebar-menu-content side-bar-menu-theme-$
{menuTheme}`" :style="{
:class=
"`sidebar-menu-content side-bar-menu-theme-$
{menuTheme}`"
:style="{
width: shrink ? '60px' : menuWidth + 'px',
width: shrink ? '60px' : menuWidth + 'px',
overflow: shrink ? 'visible' : 'auto',
overflow: shrink ? 'visible' : 'auto',
}"
}">
>
<shrinkable-menu
:shrink=
"shrink"
@
on-change=
"handleSubmenuChange"
:theme=
"menuTheme"
:before-push=
"beforePush"
:menu-list=
"menuList"
>
<shrinkable-menu
<div
slot=
"top"
class=
"logo-content"
v-if=
"showLogo || fixNav"
>
:shrink=
"shrink"
<Icon
type=
"ios-game-controller-b"
size=
"100"
></Icon>
@
on-change=
"handleSubmenuChange"
<img
v-show=
"!shrink && menuTheme == 'light' && mainTheme != 'darkMode'"
src=
"@/assets/logo-black.png"
/>
:theme=
"menuTheme"
<img
v-show=
"shrink"
src=
"@/assets/logo-min.png"
key=
"min-logo"
/>
:before-push=
"beforePush"
</div>
:menu-list=
"menuList"
>
</shrinkable-menu>
</shrinkable-menu>
</div>
</div>
<!-- 右上顶部导航条 -->
<!-- 右上顶部导航条 -->
<div
<div
:class=
"`main-header-content fix-nav-$
{fixNav}`" :style="{
:class=
"`main-header-content fix-nav-$
{fixNav}`"
:style="{
paddingLeft: navPaddingLeft,
paddingLeft: navPaddingLeft,
}"
}">
>
<div
:class=
"`main-header header-theme-$
{navTheme}`">
<div
:class=
"`main-header header-theme-$
{navTheme}`">
<div
class=
"header-left"
>
<div
class=
"header-left"
>
<!-- 固定图标 -->
<!-- 固定图标 -->
...
@@ -35,46 +28,18 @@
...
@@ -35,46 +28,18 @@
<span
style=
'font-size:22px;font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;'
>
System
</span>
<span
style=
'font-size:22px;font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;'
>
System
</span>
</div>
</div>
<!-- 收缩图标 -->
<!-- 收缩图标 -->
<div
<div
class=
"header-navicon-content header-action"
@
click=
"toggleClick"
v-if=
"showFold"
>
class=
"header-navicon-content header-action"
<Icon
custom=
"iconfont icon-menu-unfold"
size=
"20"
v-show=
"this.shrink"
/>
@
click=
"toggleClick"
<Icon
custom=
"iconfont icon-menu-fold"
size=
"20"
v-show=
"!this.shrink"
/>
v-if=
"showFold"
>
<Icon
custom=
"iconfont icon-menu-unfold"
size=
"20"
v-show=
"this.shrink"
/>
<Icon
custom=
"iconfont icon-menu-fold"
size=
"20"
v-show=
"!this.shrink"
/>
</div>
</div>
<div
class=
"header-middle-content"
>
<div
class=
"header-middle-content"
>
<!-- 顶部菜单 -->
<!-- 顶部菜单 -->
<div
v-if=
"navType == 1"
>
<div
v-if=
"navType == 1"
>
<navMenu
<navMenu
:theme=
"navTheme"
:currNav=
"currNav"
:navList=
"navList"
@
on-click=
"selectNav"
:sliceNum=
"sliceNum"
:showIcon=
"showNavMenuIcon"
/>
:theme=
"navTheme"
:currNav=
"currNav"
:navList=
"navList"
@
on-click=
"selectNav"
:sliceNum=
"sliceNum"
:showIcon=
"showNavMenuIcon"
/>
</div>
</div>
<!-- 下拉菜单 -->
<!-- 下拉菜单 -->
<div
v-if=
"navType == 2"
>
<div
v-if=
"navType == 2"
>
<navApp
<navApp
currType=
"tabs"
placement=
"bottom-start"
:currNavTitle=
"currNavTitle"
:currNav=
"currNav"
:navList=
"navList"
:type=
"navShowType"
:theme=
"navTheme"
@
on-click=
"selectNav"
/>
currType=
"tabs"
placement=
"bottom-start"
:currNavTitle=
"currNavTitle"
:currNav=
"currNav"
:navList=
"navList"
:type=
"navShowType"
:theme=
"navTheme"
@
on-click=
"selectNav"
/>
</div>
</div>
<!-- 面包导航 -->
<!-- 面包导航 -->
<div
class=
"main-breadcrumb"
v-if=
"navType == 3"
>
<div
class=
"main-breadcrumb"
v-if=
"navType == 3"
>
...
@@ -84,13 +49,7 @@
...
@@ -84,13 +49,7 @@
</div>
</div>
<!-- 顶部右侧按钮 -->
<!-- 顶部右侧按钮 -->
<div
class=
"header-right-content"
>
<div
class=
"header-right-content"
>
<navApp
<navApp
:currNav=
"currNav"
:navList=
"navList"
:type=
"navShowType"
@
on-click=
"selectNav"
v-if=
"navType == 3"
/>
:currNav=
"currNav"
:navList=
"navList"
:type=
"navShowType"
@
on-click=
"selectNav"
v-if=
"navType == 3"
/>
<full-screen
v-model=
"isFullScreen"
@
on-change=
"fullscreenChange"
/>
<full-screen
v-model=
"isFullScreen"
@
on-change=
"fullscreenChange"
/>
<message-tip
/>
<message-tip
/>
<user
/>
<user
/>
...
@@ -98,22 +57,16 @@
...
@@ -98,22 +57,16 @@
</div>
</div>
</div>
</div>
<!-- Tags 标签 -->
<!-- Tags 标签 -->
<div
<div
class=
"nav-tags"
:style=
"
{
class=
"nav-tags"
:style=
"
{
paddingLeft: shrink ? '60px' : menuWidth + 'px',
paddingLeft: shrink ? '60px' : menuWidth + 'px',
}"
}">
>
<tags-page-opened
:pageTagsList=
"pageTagsList"
v-if=
"showTags"
/>
<tags-page-opened
:pageTagsList=
"pageTagsList"
v-if=
"showTags"
/>
</div>
</div>
<!-- 页面部分 -->
<!-- 页面部分 -->
<div
<div
class=
"single-page-content"
:style=
"
{
class=
"single-page-content"
:style=
"
{
left: shrink ? '60px' : menuWidth + 'px',
left: shrink ? '60px' : menuWidth + 'px',
top: showTags ? '100px' : '60px',
top: showTags ? '100px' : '60px',
}"
}">
>
<div
class=
"single-page"
>
<div
class=
"single-page"
>
<keep-alive
:include=
"cachePage"
>
<keep-alive
:include=
"cachePage"
>
<router-view
/>
<router-view
/>
...
@@ -126,7 +79,7 @@
...
@@ -126,7 +79,7 @@
</div>
</div>
<!-- 全局加载动画 -->
<!-- 全局加载动画 -->
<circleLoading
class=
"loading-position"
v-show=
"loading"
/>
<circleLoading
class=
"loading-position"
v-show=
"loading"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -143,6 +96,7 @@ import Footer from "./main-components/footer.vue";
...
@@ -143,6 +96,7 @@ import Footer from "./main-components/footer.vue";
import
circleLoading
from
"
@/views/my-components/xboot/circle-loading.vue
"
;
import
circleLoading
from
"
@/views/my-components/xboot/circle-loading.vue
"
;
import
util
from
"
@/libs/util.js
"
;
import
util
from
"
@/libs/util.js
"
;
import
XIcon
from
'
./my-components/xboot/x-icon/x-icon.vue
'
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -156,6 +110,7 @@ export default {
...
@@ -156,6 +110,7 @@ export default {
user
,
user
,
Footer
,
Footer
,
circleLoading
,
circleLoading
,
XIcon
,
},
},
data
()
{
data
()
{
return
{
return
{
...
...
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