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
f1989b9b
Commit
f1989b9b
authored
Mar 15, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改svg选中样式
parent
9ae16bc5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
22 deletions
+22
-22
index.less
src/index.less
+2
-2
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+2
-2
AssetTree.jsx
src/view/Manage/AssetManage/Component/AssetTree.jsx
+5
-5
ImportActionTable.jsx
src/view/Manage/Model/Component/ImportActionTable.jsx
+3
-3
ModelTree.jsx
src/view/Manage/Model/Component/ModelTree.jsx
+10
-10
No files found.
src/index.less
View file @
f1989b9b
...
...
@@ -301,7 +301,7 @@ tr.drop-over-upward td {
}
.anticon {
&
:not(.customStyle)
{
&
.default
{
svg {
fill: @icon-color !important;
}
...
...
@@ -313,7 +313,7 @@ tr.drop-over-upward td {
}
}
&.
anticon-
disable {
&.disable {
svg {
fill: @icon-disable-color !important;
}
...
...
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
f1989b9b
...
...
@@ -362,12 +362,12 @@ const AssetAction = (props) => {
type=
'text'
style=
{
{
padding
:
0
}
}
onClick=
{
()
=>
{
onFoldButtonClick
(
attribute
,
false
)
}
}
icon=
{
<
DownOutlined
/>
}
icon=
{
<
DownOutlined
className=
'default'
/>
}
/>
:
<
Button
type=
'text'
style=
{
{
padding
:
0
}
}
onClick=
{
()
=>
{
onFoldButtonClick
(
attribute
,
true
)
}
}
icon=
{
<
UpOutlined
/>
}
icon=
{
<
UpOutlined
className=
'default'
/>
}
/>
)
}
...
...
src/view/Manage/AssetManage/Component/AssetTree.jsx
View file @
f1989b9b
...
...
@@ -595,21 +595,21 @@ const AssetTree = (props) => {
}
}
>
<
Tooltip
title=
"新增目录"
>
<
PlusOutlined
className=
{
(
currentDirType
===
'custom-root'
||
currentDirType
===
'custom'
)?
'
anticon-disable'
:
'
'
}
onClick=
{
addDir
}
style=
{
{
fontSize
:
16
,
cursor
:
(
currentDirType
===
'custom-root'
||
currentDirType
===
'custom'
)?
'not-allowed'
:
'pointer'
}
}
/>
<
PlusOutlined
className=
{
(
currentDirType
===
'custom-root'
||
currentDirType
===
'custom'
)?
'
disable'
:
'default
'
}
onClick=
{
addDir
}
style=
{
{
fontSize
:
16
,
cursor
:
(
currentDirType
===
'custom-root'
||
currentDirType
===
'custom'
)?
'not-allowed'
:
'pointer'
}
}
/>
</
Tooltip
>
<
Tooltip
title=
"刷新目录"
>
<
ReloadOutlined
onClick=
{
refreshTree
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
<
ReloadOutlined
className=
'default'
onClick=
{
refreshTree
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
</
Tooltip
>
<
Tooltip
title=
"导入目录"
>
<
ImportOutlined
className=
{
(
currentDirType
===
'custom-root'
||
currentDirType
===
'custom'
)?
'#
anticon-disable'
:
'
'
}
onClick=
{
importDir
}
style=
{
{
fontSize
:
16
,
cursor
:(
currentDirType
===
'custom-root'
||
currentDirType
===
'custom'
)?
'not-allowed'
:
'pointer'
}
}
/>
<
ImportOutlined
className=
{
(
currentDirType
===
'custom-root'
||
currentDirType
===
'custom'
)?
'#
disable'
:
'default
'
}
onClick=
{
importDir
}
style=
{
{
fontSize
:
16
,
cursor
:(
currentDirType
===
'custom-root'
||
currentDirType
===
'custom'
)?
'not-allowed'
:
'pointer'
}
}
/>
</
Tooltip
>
<
Dropdown
overlay=
{
exportMenu
}
placement=
"bottomCenter"
>
<
Tooltip
title=
"导出目录"
>
<
ExportOutlined
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
<
ExportOutlined
className=
'default'
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
</
Tooltip
>
</
Dropdown
>
<
Tooltip
title=
"自定义目录"
>
<
SettingOutlined
onClick=
{
customDir
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
<
SettingOutlined
className=
'default'
onClick=
{
customDir
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
</
Tooltip
>
</
div
>
)
}
...
...
src/view/Manage/Model/Component/ImportActionTable.jsx
View file @
f1989b9b
...
...
@@ -968,7 +968,7 @@ const ImportActionTable = (props) => {
className='mr-3'
size='small'
type='text'
icon={record.needAttention ? <HeartFilled
className='customStyle'
style={{ color: 'red' }} /> : <HeartOutlined />}
icon={record.needAttention ? <HeartFilled style={{ color: 'red' }} /> : <HeartOutlined />}
onClick={(event) => {
event.stopPropagation();
if (record.needAttention === null) {
...
...
@@ -992,7 +992,7 @@ const ImportActionTable = (props) => {
className='mr-3'
size='small'
type='text'
icon={<PlusOutlined />}
icon={<PlusOutlined
className='default'
/>}
onClick={(event) => {
event.stopPropagation();
insertToFront(record);
...
...
@@ -1003,7 +1003,7 @@ const ImportActionTable = (props) => {
className='mr-3'
size='small'
type='text'
icon={<DeleteOutlined
className='customStyle'
style={{ color: 'red' }} />}
icon={<DeleteOutlined style={{ color: 'red' }} />}
onClick={(event) => {
event.stopPropagation();
remove(record);
...
...
src/view/Manage/Model/Component/ModelTree.jsx
View file @
f1989b9b
...
...
@@ -444,41 +444,41 @@ const ModelTree = (props) => {
>
<
Dropdown
overlay=
{
exportMenu
}
placement=
"bottomLeft"
>
<
Tooltip
title=
"视角"
>
<
UnorderedListOutlined
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
<
UnorderedListOutlined
className=
'default'
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
</
Tooltip
>
</
Dropdown
>
{
viewSelectedKey
===
'dir'
&&
(
<
Tooltip
title=
"新增目录"
className=
'ml-2'
>
<
PlusOutlined
onClick=
{
add
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
<
PlusOutlined
className=
'default'
onClick=
{
add
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
</
Tooltip
>
)
}
{
viewSelectedKey
===
'dir'
&&
(
<
Tooltip
title=
"修改目录"
className=
'ml-2'
>
<
EditOutlined
onClick=
{
update
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
<
EditOutlined
className=
'default'
onClick=
{
update
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
</
Tooltip
>
)
}
{
viewSelectedKey
===
'dir'
&&
(
<
Tooltip
title=
"存量模型导入"
className=
'ml-2'
>
<
ImportOutlined
onClick=
{
()
=>
{
importStockModel
&&
importStockModel
()
}
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
<
ImportOutlined
className=
'default'
onClick=
{
()
=>
{
importStockModel
&&
importStockModel
()
}
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
</
Tooltip
>
)
}
<
Tooltip
title=
"刷新目录"
className=
'ml-2'
>
<
Button
type=
'text'
icon=
{
<
ReloadOutlined
/>
}
size=
'small'
onClick=
{
refresh
}
/>
<
Button
type=
'text'
icon=
{
<
ReloadOutlined
className=
'default'
/>
}
size=
'small'
onClick=
{
refresh
}
/>
</
Tooltip
>
{
(
viewSelectedKey
===
'dir'
)
&&
!
isSetRootId
&&
(
<
Dropdown
overlay=
{
syncMenu
}
placement=
"bottomLeft"
>
<
Tooltip
title=
"同步目录"
className=
'ml-2'
>
<
SyncOutlined
className=
'ml-2'
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
<
SyncOutlined
className=
'
default'
className=
'
ml-2'
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
</
Tooltip
>
</
Dropdown
>
)
...
...
@@ -487,7 +487,7 @@ const ModelTree = (props) => {
{
(
viewSelectedKey
===
'dir'
)
&&
isSetRootId
&&
(
<
Tooltip
title=
"同步目录"
className=
'ml-2'
>
<
Button
type=
'text'
icon=
{
<
SyncOutlined
/>
}
size=
'small'
onClick=
{
sync
}
/>
<
Button
type=
'text'
icon=
{
<
SyncOutlined
className=
'default'
/>
}
size=
'small'
onClick=
{
sync
}
/>
</
Tooltip
>
)
}
...
...
@@ -495,7 +495,7 @@ const ModelTree = (props) => {
{
viewSelectedKey
===
'dir'
&&
(
<
Tooltip
title=
"上移目录"
className=
'ml-2'
>
<
ArrowUpOutlined
onClick=
{
()
=>
{
moveNode
(
-
1
);
}
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
<
ArrowUpOutlined
className=
'default'
onClick=
{
()
=>
{
moveNode
(
-
1
);
}
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
</
Tooltip
>
)
}
...
...
@@ -503,7 +503,7 @@ const ModelTree = (props) => {
{
viewSelectedKey
===
'dir'
&&
(
<
Tooltip
title=
"下移目录"
className=
'ml-2'
>
<
ArrowDownOutlined
onClick=
{
()
=>
{
moveNode
(
1
);
}
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
<
ArrowDownOutlined
className=
'default'
onClick=
{
()
=>
{
moveNode
(
1
);
}
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
</
Tooltip
>
)
}
...
...
@@ -511,7 +511,7 @@ const ModelTree = (props) => {
{
viewSelectedKey
===
'dir'
&&
(
<
Tooltip
title=
"删除目录"
className=
'ml-2'
>
<
DeleteOutlined
onClick=
{
deleteNode
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
<
DeleteOutlined
className=
'default'
onClick=
{
deleteNode
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
</
Tooltip
>
)
}
...
...
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