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
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
21 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
>
<
template
>
<a-config-provider
:locale=
"zhCN"
>
<div
id=
"app"
>
<div
id=
"app"
>
<keep-alive>
<keep-alive>
<div>
<div>
...
@@ -11,7 +10,6 @@
...
@@ -11,7 +10,6 @@
</div>
</div>
</keep-alive>
</keep-alive>
</div>
</div>
</a-config-provider>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
src/components/DesktopLeftSider/Sub/NavInfoCard.vue
View file @
48a616e
<
template
>
<
template
>
<div>
<div>
<div
class=
"info-card"
:class=
"
{ infoActive: !isNavFilterActive }">
<div
class=
"info-card"
:class=
"
{ infoActive: !isNavFilterActive }">
<!--
<DownOutlined
class=
"arrow-icon"
@
click=
"downClicked"
/>
-->
<DownOutlined
class=
"arrow-icon"
@
click=
"downClicked"
/>
<div
class=
"info-card-content"
:style=
"
{width: collapsed? '80px' : '100%'}">
<!-- :style="
{width: collapsed? '80px' : '100%'}" -->
<div
class=
"info-card-content"
>
<!-- 用户卡片头像:缩小时点击会出现用户信息 v-if="collapsed" -->
<!-- 用户卡片头像:缩小时点击会出现用户信息 v-if="collapsed" -->
<!--
<a-popover
placement=
"right"
v-if=
"collapsed"
>
<!--
<a-popover
placement=
"right"
v-if=
"collapsed"
>
<template
v-slot:content
>
<template
v-slot:content
>
...
@@ -28,11 +29,12 @@
...
@@ -28,11 +29,12 @@
</div>
</div>
</div>
</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"
<a-input
class=
"search-menu-input"
v-model:value=
"value"
placeholder=
"菜单搜索
"
/>
v-model:value=
"value"
:disabled=
"true"
placeholder=
"
"
/>
<UpCircleOutlined
class=
"icon-arrow"
@
click=
"upClicked"
/>
<UpCircleOutlined
class=
"icon-arrow"
/>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -108,14 +110,19 @@ export default {
...
@@ -108,14 +110,19 @@ export default {
border
:
1px
solid
#E5E5E5
;
border
:
1px
solid
#E5E5E5
;
border-radius
:
4px
;
border-radius
:
4px
;
border-color
:
rgba
(
0
,
0
,
0
,
0.1
);
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
{
.icon-arrow
{
margin-left
:
-30px
;
cursor
:
pointer
;
margin-left
:
-85px
;
transform
:
scale
(
1.4
);
transform
:
scale
(
1.4
);
color
:
#fff
;
color
:
#fff
;
}
}
}
.navActive
{
.navActive
{
...
...
src/components/DesktopTopSider/Sub/UserButton.vue
View file @
48a616e
<
template
>
<
template
>
<div
class=
"pop-over"
>
<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
>
<template
v-slot:content
>
<div
@
click=
"logout"
class=
"pop-over-item"
>
登出
</div>
<div
@
click=
"logout"
class=
"pop-over-item"
>
登出
</div>
</
template
>
</
template
>
-->
<span
class=
"portal-user-name"
>
{{userName}}
</span>
<a-avatar
class=
"avatar-btn"
:size=
"35"
>
<a-avatar
class=
"top-nav-right-btn avatar-btn"
:size=
"35"
>
<
template
v-slot:icon
>
<
template
v-slot:icon
>
<UserOutlined
/>
<UserOutlined
/>
</
template
>
</
template
>
</a-avatar>
</a-avatar>
</a-popover>
<span
class=
"nav-top-text log-out"
>
退出
</span>
<!-- </a-popover> -->
</div>
</div>
</template>
</template>
...
@@ -54,21 +55,31 @@ export default {
...
@@ -54,21 +55,31 @@ export default {
@import
'styles/common.less'
;
@import
'styles/common.less'
;
@import
'styles/variables.less'
;
@import
'styles/variables.less'
;
.pop-over-item
{
.pop-over-item
{
cursor
:
pointer
;
&:active,
&:active,
&:hover
{
&:hover
{
color
:
@
defaultLightBlueColor
;
color
:
@
defaultLightBlueColor
;
}
}
}
}
.nav-top-text
{
color
:
#666
;
}
.portal-user-name
{
.portal-user-name
{
vertical-align
:
middle
;
vertical-align
:
middle
;
margin-right
:
10px
;
margin-right
:
10px
;
color
:
#666
;
}
.log-out
{
cursor
:
pointer
;
margin-right
:
30px
;
&:hover
{
color
:
@
defaultTextColor
;
}
}
}
.avatar-btn
{
.avatar-btn
{
opacity
:
.8
;
opacity
:
.8
;
background-color
:
@
defaultLightBlueColor
;
background-color
:
@
defaultLightBlueColor
;
margin-right
:
10px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/utils/globalAnt/ant.js
View file @
48a616e
...
@@ -12,8 +12,7 @@ import {
...
@@ -12,8 +12,7 @@ import {
Dropdown
,
Dropdown
,
Spin
,
Spin
,
Breadcrumb
,
Breadcrumb
,
Empty
,
Empty
ConfigProvider
,
}
from
"ant-design-vue"
;
}
from
"ant-design-vue"
;
const
ant
=
{
const
ant
=
{
...
@@ -37,7 +36,6 @@ const ant = {
...
@@ -37,7 +36,6 @@ const ant = {
Vue
.
component
(
Spin
.
name
,
Spin
);
Vue
.
component
(
Spin
.
name
,
Spin
);
Vue
.
component
(
Breadcrumb
.
name
,
Breadcrumb
);
Vue
.
component
(
Breadcrumb
.
name
,
Breadcrumb
);
Vue
.
component
(
Empty
.
name
,
Empty
);
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