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
0f8b66c9
Commit
0f8b66c9
authored
Aug 22, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式调整
parent
966fe9e8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
13 deletions
+9
-13
index.jsx
src/view/Manage/AssetBrowse/index.jsx
+1
-1
index.less
src/view/Manage/AssetBrowse/index.less
+1
-1
AssetTree.jsx
src/view/Manage/AssetManage/Component/AssetTree.jsx
+4
-9
FilterElementModal.jsx
src/view/Manage/AssetManage/Component/FilterElementModal.jsx
+3
-2
No files found.
src/view/Manage/AssetBrowse/index.jsx
View file @
0f8b66c9
...
@@ -84,7 +84,7 @@ const AssetBrowse = (props) => {
...
@@ -84,7 +84,7 @@ const AssetBrowse = (props) => {
<
div
className=
'flex'
style=
{
{
flex
:
1
,
height
:
'100%'
,
overflow
:
'hidden'
}
}
>
<
div
className=
'flex'
style=
{
{
flex
:
1
,
height
:
'100%'
,
overflow
:
'hidden'
}
}
>
{
{
expandRelation
&&
<
React
.
Fragment
>
expandRelation
&&
<
React
.
Fragment
>
<
div
style=
{
{
flex
:
1
,
height
:
'100%'
,
overflow
:
'hidden'
}
}
>
<
div
style=
{
{
flex
:
'none'
,
width
:
450
,
height
:
'100%'
,
overflow
:
'hidden'
}
}
>
<
RelationContainer
reference=
{
reference
}
nodeParams=
{
nodeParams
}
onChange=
{
onRelationChange
}
resize=
{
resizeRelation
}
dirs=
{
dirs
}
/>
<
RelationContainer
reference=
{
reference
}
nodeParams=
{
nodeParams
}
onChange=
{
onRelationChange
}
resize=
{
resizeRelation
}
dirs=
{
dirs
}
/>
</
div
>
</
div
>
<
Separate
width=
{
15
}
/>
<
Separate
width=
{
15
}
/>
...
...
src/view/Manage/AssetBrowse/index.less
View file @
0f8b66c9
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
align-items: center;
align-items: center;
background: #f2f5fc;
background: #f2f5fc;
position: absolute;
position: absolute;
left:
calc(50% + 7.5px)
;
left:
465px
;
top: calc(50% - 40px);
top: calc(50% - 40px);
width: 12px;
width: 12px;
height: 80px;
height: 80px;
...
...
src/view/Manage/AssetManage/Component/AssetTree.jsx
View file @
0f8b66c9
import
React
,
{
useEffect
,
useState
,
useRef
}
from
'react'
;
import
React
,
{
useEffect
,
useState
,
useRef
}
from
'react'
;
import
{
Card
,
Spin
,
Tooltip
,
Tree
,
Modal
,
AutoComplete
,
Select
,
Button
,
Menu
,
Dropdown
}
from
'antd'
;
import
{
Card
,
Spin
,
Tooltip
,
Tree
,
Modal
,
AutoComplete
,
Select
,
Button
,
Menu
,
Dropdown
,
Space
}
from
'antd'
;
import
{
ReloadOutlined
,
SettingOutlined
,
UnorderedListOutlined
}
from
'@ant-design/icons'
;
import
{
ReloadOutlined
,
SettingOutlined
,
UnorderedListOutlined
}
from
'@ant-design/icons'
;
import
{
useContextMenu
,
Menu
as
RcMenu
,
Item
as
RcItem
}
from
"react-contexify"
;
import
{
useContextMenu
,
Menu
as
RcMenu
,
Item
as
RcItem
}
from
"react-contexify"
;
import
LocalStorage
from
'local-storage'
;
import
LocalStorage
from
'local-storage'
;
...
@@ -609,12 +609,9 @@ const AssetTree = (props) => {
...
@@ -609,12 +609,9 @@ const AssetTree = (props) => {
<
Card
<
Card
className=
'asset-tree'
className=
'asset-tree'
title=
{
title=
{
<
div
<
Space
className=
'flex'
style=
{
{
style=
{
{
height
:
57
,
height
:
57
,
alignItems
:
'center'
,
justifyContent
:
'space-between'
,
padding
:
'0 15px'
padding
:
'0 15px'
}
}
}
}
>
>
...
@@ -641,11 +638,9 @@ const AssetTree = (props) => {
...
@@ -641,11 +638,9 @@ const AssetTree = (props) => {
</
Tooltip
>
</
Tooltip
>
</
Dropdown
>
</
Dropdown
>
<
Tooltip
title=
"刷新目录"
>
<
Tooltip
title=
"刷新目录"
>
<
ReloadOutlined
className=
'default'
onClick=
{
refreshTree
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
,
flex
:
1
}
}
/>
<
ReloadOutlined
className=
'default'
onClick=
{
refreshTree
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
</
Tooltip
>
</
Tooltip
>
<
div
style=
{
{
flex
:
1
,
width
:
32
}
}
></
div
>
</
Space
>
<
div
style=
{
{
flex
:
1
,
width
:
32
}
}
></
div
>
</
div
>
}
}
bordered=
{
false
}
bordered=
{
false
}
bodyStyle=
{
{
padding
:
'10px 15px'
}
}
bodyStyle=
{
{
padding
:
'10px 15px'
}
}
...
...
src/view/Manage/AssetManage/Component/FilterElementModal.jsx
View file @
0f8b66c9
...
@@ -155,11 +155,12 @@ const FilterElementModal = (props) => {
...
@@ -155,11 +155,12 @@ const FilterElementModal = (props) => {
return
(
return
(
<
Modal
<
Modal
forceRender
destroyOnClose
centered
visible=
{
visible
}
visible=
{
visible
}
title=
{
type
===
'global'
?
'资产目录浏览管理'
:
'可见列设置'
}
title=
{
type
===
'global'
?
'资产目录浏览管理'
:
'可见列设置'
}
width=
{
520
}
width=
{
520
}
onCancel=
{
cancel
}
onCancel=
{
cancel
}
bodyStyle=
{
{
padding
:
'15px 15px 0px 15px'
,
maxHeight
:
'80vh'
}
}
footer=
{
[
footer=
{
[
<
Button
<
Button
key=
"0"
key=
"0"
...
@@ -185,7 +186,7 @@ const FilterElementModal = (props) => {
...
@@ -185,7 +186,7 @@ const FilterElementModal = (props) => {
style=
{
{
marginLeft
:
'auto'
}
}
style=
{
{
marginLeft
:
'auto'
}
}
/>
/>
</
div
>
</
div
>
<
div
className=
'mt-3'
style=
{
{
maxHeight
:
450
,
overflow
:
'auto'
}
}
>
<
div
>
{
{
(
typesOfElements
||
[]).
map
((
typeOfElements
,
index
)
=>
{
(
typesOfElements
||
[]).
map
((
typeOfElements
,
index
)
=>
{
const
_type
=
typeOfElements
.
type
||
''
;
const
_type
=
typeOfElements
.
type
||
''
;
...
...
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