Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
admin
Commits
f297a5b4
提交
f297a5b4
authored
5月 26, 2023
作者:
ZhangLingKun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
功能:样式优化
上级
c948769b
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
25 行增加
和
15 行删除
+25
-15
index.html
index.html
+1
-1
logo.png
src/assets/icon/logo.png
+0
-0
logo_big.png
src/assets/icon/logo_big.png
+0
-0
index.tsx
src/assets/theme/index.tsx
+2
-2
index.scss
src/components/layout/index.scss
+15
-6
index.tsx
src/components/layout/menu/index.tsx
+1
-1
index.scss
src/components/layout/title/index.scss
+1
-1
index.tsx
src/components/layout/title/index.tsx
+5
-4
没有找到文件。
index.html
浏览文件 @
f297a5b4
...
...
@@ -2,7 +2,7 @@
<html
lang=
"zh-Hans"
>
<head>
<meta
charset=
"UTF-8"
/>
<link
rel=
"icon"
type=
"image/svg+xml"
href=
"/src/assets/icon/logo.svg"
/>
<link
rel=
"icon"
type=
"image/svg+xml"
href=
'/src/assets/icon/logo_big.png'
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<title>
云享飞-管理平台
</title>
</head>
...
...
src/assets/icon/logo.png
0 → 100644
浏览文件 @
f297a5b4
7.0 KB
src/assets/icon/logo_big.png
0 → 100644
浏览文件 @
f297a5b4
差异被折叠。
点击展开。
src/assets/theme/index.tsx
浏览文件 @
f297a5b4
import
{
Empty
,
theme
}
from
'antd'
;
import
{
Empty
}
from
'antd'
;
import
React
from
'react'
;
export
const
themeConfig
=
{
algorithm
:
[
theme
.
compactAlgorithm
],
algorithm
:
[
],
// theme.compactAlgorithm
token
:
{
// fontSize: 12,
},
...
...
src/components/layout/index.scss
浏览文件 @
f297a5b4
$page-background
:
#F6F7FB
;
//$page-background: #F6F7FB;
$page-background
:
#f0f2f5
;
.layout-view
{
position
:
fixed
;
top
:
0
;
...
...
@@ -47,6 +48,10 @@ $page-background: #F6F7FB;
background
:
transparent
;
//font-size: 14px;
}
.ant-layout-sider-children
{
border-radius
:
10px
;
overflow
:
hidden
;
}
.ant-menu-item
{
transform
:
translateX
(
10px
);
...
...
@@ -111,9 +116,10 @@ $page-background: #F6F7FB;
}
.logo-text
{
min-width
:
100px
;
font-size
:
18px
;
//
color: #ffffff;
text-align
:
center
;
color
:
#ffffff
;
text-align
:
left
;
animation
:
fadeIn
0
.618s
ease-in-out
;
animation-fill-mode
:
forwards
;
font-family
:
YouSheBiaoTiHei
;
...
...
@@ -150,13 +156,14 @@ $page-background: #F6F7FB;
.user-company
{
font-size
:
12px
;
font-weight
:
600
;
//
color: #ffffff;
color
:
#ffffff
;
}
.user-name
{
font-size
:
12px
;
font-weight
:
normal
;
color
:
#7f828a
;
//color: #7f828a;
color
:
#F6F7FB
;
}
}
...
...
@@ -164,7 +171,8 @@ $page-background: #F6F7FB;
margin-right
:
10px
;
width
:
24px
;
height
:
24px
;
border
:
1px
solid
#1677ff
;
border
:
1px
solid
#ffffff
;
//border:1px solid #1677ff;
border-radius
:
2px
;
padding
:
0
;
line-height
:
normal
;
...
...
@@ -172,6 +180,7 @@ $page-background: #F6F7FB;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
color
:
#ffffff
;
}
}
...
...
src/components/layout/menu/index.tsx
浏览文件 @
f297a5b4
...
...
@@ -35,7 +35,7 @@ export function MenuView() {
};
// 递归将路由转换为侧边栏数据
const
getItem
=
(
routerList
:
RouteObjectType
[])
=>
{
const
list
:
Array
<
MenuItem
>
=
routerList
.
map
((
i
,
j
)
=>
{
const
list
:
Array
<
MenuItem
>
=
routerList
.
map
((
i
)
=>
{
if
(
i
.
children
?.
length
)
{
return
{
label
:
i
.
meta
?.
title
,
...
...
src/components/layout/title/index.scss
浏览文件 @
f297a5b4
...
...
@@ -5,7 +5,7 @@
height
:
20px
;
fill
:
currentColor
;
transform
:
translateY
(
-3px
);
//
color: #fff;
color
:
#fff
;
}
.hamburger.is-active
{
...
...
src/components/layout/title/index.tsx
浏览文件 @
f297a5b4
...
...
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
import
{
Header
}
from
'antd/es/layout/layout'
;
import
{
DownOutlined
,
UpOutlined
}
from
'@ant-design/icons'
;
import
{
Button
,
Dropdown
,
MenuProps
,
Modal
}
from
'antd'
;
import
Logo
from
'../../../assets/icon/logo
.sv
g'
;
import
Logo
from
'../../../assets/icon/logo
_big.pn
g'
;
import
'./index.scss'
;
export
function
TitleView
()
{
...
...
@@ -38,7 +38,8 @@ export function TitleView() {
return
(
<
Header
style=
{
{
background
:
'#ffffff'
,
// background: '#ffffff',
background
:
'linear-gradient(137deg,#0165d0,#18a2fe)'
,
height
:
40
,
padding
:
'0 10px'
,
position
:
'relative'
,
...
...
@@ -71,8 +72,8 @@ export function TitleView() {
arrow
>
<
div
className=
'user-action'
>
<
UpOutlined
style=
{
{
fontSize
:
10
,
color
:
'#
8287A0
'
}
}
/>
<
DownOutlined
style=
{
{
fontSize
:
10
,
color
:
'#
8287A0
'
}
}
/>
<
UpOutlined
style=
{
{
fontSize
:
10
,
color
:
'#
ffffff
'
}
}
/>
<
DownOutlined
style=
{
{
fontSize
:
10
,
color
:
'#
ffffff
'
}
}
/>
</
div
>
</
Dropdown
>
</
div
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论