Commit 1bb2b90a by zhaochengxiang

增加标签

parent b90b9421
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,
......
......@@ -105,7 +105,7 @@ const TagColumn = (props) => {
e.preventDefault();
handleClose(index);
}}
style={{ marginTop: 5 }}
style={{ marginBottom: 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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment