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
1bb2b90a
Commit
1bb2b90a
authored
Feb 27, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加标签
parent
b90b9421
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+12
-1
index.jsx
src/view/Manage/Tag/index.jsx
+2
-2
No files found.
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
1bb2b90a
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Form
,
Spin
,
Input
,
Descriptions
,
Space
,
Button
}
from
'antd'
;
import
{
DownOutlined
,
UpOutlined
}
from
'@ant-design/icons'
;
import
Tag
from
'../../Tag'
;
import
MetadataInfo
from
'./MetadataInfo'
;
import
{
dispatch
}
from
'../../../../model'
;
...
...
@@ -239,7 +240,17 @@ const AssetAction = (props) => {
</
Space
>
</
div
>
}
<
div
style=
{
{
padding
:
10
}
}
>
<
Descriptions
column=
{
1
}
>
<
Descriptions
.
Item
label=
'标签'
style=
{
{
paddingBottom
:
0
}
}
>
{
(
currentAction
===
'add'
||
currentAction
===
'edit'
)?<
Tag
styleType=
'complex'
id=
{
id
}
/>:<
Tag
id=
{
id
}
/>
}
</
Descriptions
.
Item
>
</
Descriptions
>
</
div
>
<
div
style=
{
{
flex
:
1
,
...
...
src/view/Manage/Tag/index.jsx
View file @
1bb2b90a
...
...
@@ -105,7 +105,7 @@ const TagColumn = (props) => {
e
.
preventDefault
();
handleClose
(
index
);
}
}
style=
{
{
margin
Top
:
5
}
}
style=
{
{
margin
Bottom
:
5
}
}
color=
{
item
.
type
===
'public'
?
'#2db7f5'
:
'volcano'
}
>
{
item
.
name
||
''
}
...
...
@@ -114,7 +114,7 @@ const TagColumn = (props) => {
})
}
</
div
>
<
div
style=
{
{
marginTop
:
5
}
}
>
<
div
>
<
Button
size=
'small'
type=
'text'
...
...
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