Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
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
zhaochengxiang
szse
Commits
27024f93
Commit
27024f93
authored
Mar 09, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整资产样式
parent
9c123670
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
30 deletions
+36
-30
index.less
src/index.less
+15
-10
AssetDirectory.jsx
src/view/Manage/AssetManage/Component/AssetDirectory.jsx
+13
-10
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+1
-1
AssetTree.jsx
src/view/Manage/AssetManage/Component/AssetTree.jsx
+3
-5
AssetTree.less
src/view/Manage/AssetManage/Component/AssetTree.less
+2
-2
Separate.jsx
src/view/Manage/AssetManage/Component/Separate.jsx
+2
-2
No files found.
src/index.less
View file @
27024f93
...
@@ -219,7 +219,7 @@ tr.drop-over-upward td {
...
@@ -219,7 +219,7 @@ tr.drop-over-upward td {
}
}
.m-common {
.m-common {
margin: 2
4
px 15px;
margin: 2
0
px 15px;
}
}
.mx-common {
.mx-common {
...
@@ -236,20 +236,20 @@ tr.drop-over-upward td {
...
@@ -236,20 +236,20 @@ tr.drop-over-upward td {
}
}
.my-common {
.my-common {
margin-top: 2
4
px;
margin-top: 2
0
px;
margin-bottom: 2
4
px;
margin-bottom: 2
0
px;
}
}
.mt-common {
.mt-common {
margin-top: 2
4
px;
margin-top: 2
0
px;
}
}
.mb-common {
.mb-common {
margin-bottom: 2
4
px;
margin-bottom: 2
0
px;
}
}
.p-common {
.p-common {
padding: 2
4
px 15px;
padding: 2
0
px 15px;
}
}
.px-common {
.px-common {
...
@@ -266,16 +266,16 @@ tr.drop-over-upward td {
...
@@ -266,16 +266,16 @@ tr.drop-over-upward td {
}
}
.py-common {
.py-common {
padding-top: 2
4
px;
padding-top: 2
0
px;
padding-bottom: 2
4
px;
padding-bottom: 2
0
px;
}
}
.pt-common {
.pt-common {
padding-top: 2
4
px;
padding-top: 2
0
px;
}
}
.pb-common {
.pb-common {
padding-bottom: 2
4
px;
padding-bottom: 2
0
px;
}
}
.py-compact-common {
.py-compact-common {
...
@@ -352,4 +352,8 @@ tr.drop-over-upward td {
...
@@ -352,4 +352,8 @@ tr.drop-over-upward td {
}
}
}
}
}
}
}
.yy-card-head {
min-height: 40px !important;
}
}
\ No newline at end of file
src/view/Manage/AssetManage/Component/AssetDirectory.jsx
View file @
27024f93
...
@@ -8,6 +8,7 @@ import AttributeRelationModal from "./AttributeRelationModal";
...
@@ -8,6 +8,7 @@ import AttributeRelationModal from "./AttributeRelationModal";
import
FilterElementModal
from
'./FilterElementModal'
;
import
FilterElementModal
from
'./FilterElementModal'
;
import
{
showNotifaction
}
from
'../../../../util'
;
import
{
showNotifaction
}
from
'../../../../util'
;
import
{
MoreSvg
}
from
'./AssetSvg'
;
import
{
MoreSvg
}
from
'./AssetSvg'
;
import
Separate
from
'./Separate'
;
import
record
from
'../Assets/record.png'
;
import
record
from
'../Assets/record.png'
;
import
'./AssetDirectory.less'
;
import
'./AssetDirectory.less'
;
...
@@ -120,18 +121,20 @@ const AssetDirectory = (props) => {
...
@@ -120,18 +121,20 @@ const AssetDirectory = (props) => {
>
>
<
div
style=
{
{
flex
:
1
,
overflow
:
'hidden'
}
}
>
<
div
style=
{
{
flex
:
1
,
overflow
:
'hidden'
}
}
>
<
div
>
<
div
>
<
div
className=
'mb-common'
>
<
div
className=
'mb-common
flex
'
>
<
Paragraph
>
<
Paragraph
style=
{
{
flex
:
1
,
overflow
:
'hidden'
}
}
>
<
Tooltip
title=
{
dir
?.
name
||
''
}
>
<
Tooltip
title=
{
dir
?.
name
||
''
}
>
<
Text
className=
'title-color'
>
<
Text
className=
'title-color'
ellipsis=
{
true
}
>
名称
:
名称
:
<
Text
className=
'text-color'
>
{
dir
?.
name
||
''
}
</
Text
>
<
Text
className=
'text-color'
>
{
dir
?.
name
||
''
}
</
Text
>
</
Text
>
</
Text
>
</
Tooltip
>
</
Tooltip
>
</
Paragraph
>
<
Separate
width=
{
10
}
background=
'#fff'
/>
<
Paragraph
style=
{
{
flex
:
1
,
overflow
:
'hidden'
}
}
>
<
Tooltip
title=
{
dir
?.
code
||
''
}
>
<
Tooltip
title=
{
dir
?.
code
||
''
}
>
<
Text
className=
'title-color'
>
<
Text
className=
'title-color'
ellipsis=
{
true
}
>
编号
:
编号
:
<
Text
className=
'text-color'
>
{
dir
?.
code
||
''
}
</
Text
>
<
Text
className=
'text-color'
>
{
dir
?.
code
||
''
}
</
Text
>
</
Text
>
</
Text
>
</
Tooltip
>
</
Tooltip
>
...
@@ -141,7 +144,7 @@ const AssetDirectory = (props) => {
...
@@ -141,7 +144,7 @@ const AssetDirectory = (props) => {
<
Paragraph
>
<
Paragraph
>
<
Tooltip
title=
{
dir
?.
desc
||
''
}
>
<
Tooltip
title=
{
dir
?.
desc
||
''
}
>
<
Text
className=
'title-color'
ellipsis=
{
true
}
>
<
Text
className=
'title-color'
ellipsis=
{
true
}
>
描述
:
描述
:
<
Text
className=
'text-color'
>
{
dir
?.
desc
||
''
}
</
Text
>
<
Text
className=
'text-color'
>
{
dir
?.
desc
||
''
}
</
Text
>
</
Text
>
</
Text
>
</
Tooltip
>
</
Tooltip
>
...
@@ -152,7 +155,7 @@ const AssetDirectory = (props) => {
...
@@ -152,7 +155,7 @@ const AssetDirectory = (props) => {
<
Paragraph
>
<
Paragraph
>
<
Tooltip
title=
{
dir
?.
remarks
||
''
}
>
<
Tooltip
title=
{
dir
?.
remarks
||
''
}
>
<
Text
className=
'title-color'
ellipsis=
{
true
}
>
<
Text
className=
'title-color'
ellipsis=
{
true
}
>
备注
:
备注
:
<
Text
className=
'text-color'
>
{
dir
?.
remarks
||
''
}
</
Text
>
<
Text
className=
'text-color'
>
{
dir
?.
remarks
||
''
}
</
Text
>
</
Text
>
</
Text
>
</
Tooltip
>
</
Tooltip
>
...
@@ -190,7 +193,7 @@ const AssetDirectory = (props) => {
...
@@ -190,7 +193,7 @@ const AssetDirectory = (props) => {
flexDirection
:
'column'
,
flexDirection
:
'column'
,
alignItems
:
'center'
,
alignItems
:
'center'
,
justifyContent
:
'center'
,
justifyContent
:
'center'
,
marginBottom
:
58
,
marginBottom
:
42
,
}
}
}
}
>
>
<
MoreSvg
style=
{
{
width
:
20
,
height
:
20
,
marginBottom
:
5
}
}
/>
<
MoreSvg
style=
{
{
width
:
20
,
height
:
20
,
marginBottom
:
5
}
}
/>
...
...
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
27024f93
...
@@ -514,7 +514,7 @@ const AssetTable = (props) => {
...
@@ -514,7 +514,7 @@ const AssetTable = (props) => {
if
(
fullScreen
)
{
if
(
fullScreen
)
{
scrollY
=
'calc(100vh - 182px - 80px)'
;
scrollY
=
'calc(100vh - 182px - 80px)'
;
}
else
if
(
reference
===
AssetManageReference
)
{
}
else
if
(
reference
===
AssetManageReference
)
{
scrollY
=
'calc(100vh - 182px - 1
39
px - 15px - 80px)'
;
scrollY
=
'calc(100vh - 182px - 1
23
px - 15px - 80px)'
;
}
else
if
(
reference
===
AssetBrowseReference
||
reference
===
ResourceBrowseReference
)
{
}
else
if
(
reference
===
AssetBrowseReference
||
reference
===
ResourceBrowseReference
)
{
scrollY
=
'calc(100vh - 182px - 102px - 15px - 80px)'
;
scrollY
=
'calc(100vh - 182px - 102px - 15px - 80px)'
;
}
else
if
(
reference
===
AssetRecycleReference
)
{
}
else
if
(
reference
===
AssetRecycleReference
)
{
...
...
src/view/Manage/AssetManage/Component/AssetTree.jsx
View file @
27024f93
...
@@ -555,7 +555,6 @@ const AssetTree = (props) => {
...
@@ -555,7 +555,6 @@ const AssetTree = (props) => {
index
>
-
1
?
(
index
>
-
1
?
(
<
span
<
span
className=
{
isRootLeaf
?
'title-color'
:
'text-color'
}
className=
{
isRootLeaf
?
'title-color'
:
'text-color'
}
style=
{
{
fontWeight
:
isRootLeaf
?
'bold'
:
''
}
}
>
>
{
beforeStr
}
{
beforeStr
}
<
span
className=
"site-tree-search-value"
>
{
keyword
}
</
span
>
<
span
className=
"site-tree-search-value"
>
{
keyword
}
</
span
>
...
@@ -564,7 +563,6 @@ const AssetTree = (props) => {
...
@@ -564,7 +563,6 @@ const AssetTree = (props) => {
)
:
(
)
:
(
<
span
<
span
className=
{
isRootLeaf
?
'title-color'
:
'text-color'
}
className=
{
isRootLeaf
?
'title-color'
:
'text-color'
}
style=
{
{
fontWeight
:
isRootLeaf
?
'bold'
:
''
}
}
>
{
item
.
text
}
</
span
>
>
{
item
.
text
}
</
span
>
);
);
if
(
item
.
children
)
{
if
(
item
.
children
)
{
...
@@ -586,7 +584,7 @@ const AssetTree = (props) => {
...
@@ -586,7 +584,7 @@ const AssetTree = (props) => {
<
div
<
div
className=
'flex px-2 btn-group'
className=
'flex px-2 btn-group'
style=
{
{
style=
{
{
height
:
6
0
,
height
:
4
0
,
alignItems
:
'center'
,
alignItems
:
'center'
,
justifyContent
:
'space-around'
,
justifyContent
:
'space-around'
,
}
}
}
}
...
@@ -611,14 +609,14 @@ const AssetTree = (props) => {
...
@@ -611,14 +609,14 @@ const AssetTree = (props) => {
</
div
>
</
div
>
)
}
)
}
bordered=
{
false
}
bordered=
{
false
}
bodyStyle=
{
{
padding
:
'
24
px 15px'
}
}
bodyStyle=
{
{
padding
:
'
10
px 15px'
}
}
headStyle=
{
{
padding
:
0
}
}
headStyle=
{
{
padding
:
0
}
}
style=
{
{
width
:
'100%'
}
}
style=
{
{
width
:
'100%'
}
}
>
>
<
Spin
spinning=
{
loading
}
>
<
Spin
spinning=
{
loading
}
>
<
Input
<
Input
value=
{
keyword
}
value=
{
keyword
}
style=
{
{
marginBottom
:
24
}
}
style=
{
{
marginBottom
:
10
}
}
onChange=
{
(
e
)
=>
{
onChange
(
e
)
}
}
onChange=
{
(
e
)
=>
{
onChange
(
e
)
}
}
/>
/>
<
Tree
<
Tree
...
...
src/view/Manage/AssetManage/Component/AssetTree.less
View file @
27024f93
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
}
}
.yy-tree{
.yy-tree{
height: calc(100vh - @header-height - 30px -
60px - 104
px) !important;
height: calc(100vh - @header-height - 30px -
40px - 62
px) !important;
overflow: auto !important;
overflow: auto !important;
}
}
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
.asset-tree-read-only {
.asset-tree-read-only {
.yy-tree {
.yy-tree {
height: calc(100vh - @header-height - 30px -
104
px) !important;;
height: calc(100vh - @header-height - 30px -
62
px) !important;;
overflow: auto !important;
overflow: auto !important;
}
}
}
}
...
...
src/view/Manage/AssetManage/Component/Separate.jsx
View file @
27024f93
const
Separate
=
(
props
)
=>
{
const
Separate
=
(
props
)
=>
{
const
{
width
=
'100%'
,
height
=
'100%'
}
=
props
;
const
{
width
=
'100%'
,
height
=
'100%'
,
background
=
'#f0f2f5'
}
=
props
;
return
(
return
(
<
div
style=
{
{
width
,
height
,
background
:
'#f0f2f5'
}
}
/>
<
div
style=
{
{
width
,
height
,
background
}
}
/>
)
)
}
}
...
...
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