Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-system
/
micro-portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 48a616ee
authored
Nov 11, 2020
by
冒粤蓉
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
improve css
1 parent
ecbd5e02
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
33 deletions
src/App.vue
src/components/DesktopLeftSider/Sub/NavInfoCard.vue
src/components/DesktopTopSider/Sub/UserButton.vue
src/utils/globalAnt/ant.js
src/App.vue
View file @
48a616e
<
template
>
<a-config-provider
:locale=
"zhCN"
>
<div
id=
"app"
>
<keep-alive>
<div>
<dashboard
v-if=
"hasToken"
></dashboard>
<login
v-else
></login>
<div
id=
"app"
>
<keep-alive>
<div>
<dashboard
v-if=
"hasToken"
></dashboard>
<login
v-else
></login>
<!-- 全局loading提示 -->
<loading
v-if=
"showLoading"
></loading>
</div>
</keep-alive>
</div>
</a-config-provider>
<!-- 全局loading提示 -->
<loading
v-if=
"showLoading"
></loading>
</div>
</keep-alive>
</div>
</
template
>
<
script
>
...
...
src/components/DesktopLeftSider/Sub/NavInfoCard.vue
View file @
48a616e
<
template
>
<div>
<div
class=
"info-card"
:class=
"
{ infoActive: !isNavFilterActive }">
<!--
<DownOutlined
class=
"arrow-icon"
@
click=
"downClicked"
/>
-->
<div
class=
"info-card-content"
:style=
"
{width: collapsed? '80px' : '100%'}">
<DownOutlined
class=
"arrow-icon"
@
click=
"downClicked"
/>
<!-- :style="
{width: collapsed? '80px' : '100%'}" -->
<div
class=
"info-card-content"
>
<!-- 用户卡片头像:缩小时点击会出现用户信息 v-if="collapsed" -->
<!--
<a-popover
placement=
"right"
v-if=
"collapsed"
>
<template
v-slot:content
>
...
...
@@ -28,11 +29,12 @@
</div>
</div>
</div>
<!-- 菜单搜索 -->
<div
class=
"search-menu"
:class=
"{ navActive: isNavFilterActive }"
>
<div
class=
"search-menu"
:class=
"{ navActive: isNavFilterActive }"
@
click=
"upClicked"
>
<a-input
class=
"search-menu-input"
v-model:value=
"value"
placeholder=
"菜单搜索
"
/>
<UpCircleOutlined
class=
"icon-arrow"
@
click=
"upClicked"
/>
v-model:value=
"value"
:disabled=
"true"
placeholder=
"
"
/>
<UpCircleOutlined
class=
"icon-arrow"
/>
</div>
</div>
</template>
...
...
@@ -108,14 +110,19 @@ export default {
border
:
1px
solid
#E5E5E5
;
border-radius
:
4px
;
border-color
:
rgba
(
0
,
0
,
0
,
0.1
);
background-color
:
#1a3051
;
background-color
:
#1a3051
!important
;
cursor
:
pointer
!important
;
&:hover
{
border-color
:
#465562
!important
;
}
}
}
.icon-arrow
{
margin-left
:
-30px
;
transform
:
scale
(
1.4
)
;
color
:
#fff
;
}
.icon-arrow
{
cursor
:
pointer
;
margin-left
:
-85px
;
transform
:
scale
(
1.4
)
;
color
:
#fff
;
}
.navActive
{
...
...
src/components/DesktopTopSider/Sub/UserButton.vue
View file @
48a616e
<
template
>
<div
class=
"pop-over"
>
<a-popover
title=
""
trigger=
"click"
>
<!--
<span
class=
"nav-top-text portal-user-name"
>
{{
userName
}}
</span>
-->
<!--
<a-popover
title=
""
trigger=
"click"
>
<template
v-slot:content
>
<div
@
click=
"logout"
class=
"pop-over-item"
>
登出
</div>
</
template
>
<span
class=
"portal-user-name"
>
{{userName}}
</span>
<a-avatar
class=
"top-nav-right-btn avatar-btn"
:size=
"35"
>
</
template
>
-->
<a-avatar
class=
"avatar-btn"
:size=
"35"
>
<
template
v-slot:icon
>
<UserOutlined
/>
</
template
>
</a-avatar>
</a-popover>
<span
class=
"nav-top-text log-out"
>
退出
</span>
<!-- </a-popover> -->
</div>
</template>
...
...
@@ -54,21 +55,31 @@ export default {
@import
'styles/common.less'
;
@import
'styles/variables.less'
;
.pop-over-item
{
cursor
:
pointer
;
&:active,
&:hover
{
color
:
@
defaultLightBlueColor
;
}
}
.nav-top-text
{
color
:
#666
;
}
.portal-user-name
{
vertical-align
:
middle
;
margin-right
:
10px
;
color
:
#666
;
}
.log-out
{
cursor
:
pointer
;
margin-right
:
30px
;
&:hover
{
color
:
@
defaultTextColor
;
}
}
.avatar-btn
{
opacity
:
.8
;
background-color
:
@
defaultLightBlueColor
;
margin-right
:
10px
;
}
</
style
>
\ No newline at end of file
src/utils/globalAnt/ant.js
View file @
48a616e
...
...
@@ -12,8 +12,7 @@ import {
Dropdown
,
Spin
,
Breadcrumb
,
Empty
,
ConfigProvider
,
Empty
}
from
"ant-design-vue"
;
const
ant
=
{
...
...
@@ -37,7 +36,6 @@ const ant = {
Vue
.
component
(
Spin
.
name
,
Spin
);
Vue
.
component
(
Breadcrumb
.
name
,
Breadcrumb
);
Vue
.
component
(
Empty
.
name
,
Empty
);
Vue
.
component
(
ConfigProvider
.
name
,
ConfigProvider
);
},
};
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment