Commit 1bb2b90a by zhaochengxiang

增加标签

parent b90b9421
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { Form, Spin, Input, Descriptions, Space, Button } from 'antd'; import { Form, Spin, Input, Descriptions, Space, Button } from 'antd';
import { DownOutlined, UpOutlined } from '@ant-design/icons'; import { DownOutlined, UpOutlined } from '@ant-design/icons';
import Tag from '../../Tag';
import MetadataInfo from './MetadataInfo'; import MetadataInfo from './MetadataInfo';
import { dispatch } from '../../../../model'; import { dispatch } from '../../../../model';
...@@ -239,7 +240,17 @@ const AssetAction = (props) => { ...@@ -239,7 +240,17 @@ const AssetAction = (props) => {
</Space> </Space>
</div> </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 <div
style={{ style={{
flex: 1, flex: 1,
......
...@@ -105,7 +105,7 @@ const TagColumn = (props) => { ...@@ -105,7 +105,7 @@ const TagColumn = (props) => {
e.preventDefault(); e.preventDefault();
handleClose(index); handleClose(index);
}} }}
style={{ marginTop: 5 }} style={{ marginBottom: 5 }}
color={item.type==='public'?'#2db7f5':'volcano'} color={item.type==='public'?'#2db7f5':'volcano'}
> >
{ item.name||'' } { item.name||'' }
...@@ -114,7 +114,7 @@ const TagColumn = (props) => { ...@@ -114,7 +114,7 @@ const TagColumn = (props) => {
}) })
} }
</div> </div>
<div style={{ marginTop: 5 }}> <div>
<Button <Button
size='small' size='small'
type='text' 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