forked from Gitlink/forgeplus-react
代码库根目录增加commit信息的提示
This commit is contained in:
parent
c7aae77629
commit
786702815f
|
@ -283,12 +283,18 @@ class CoderRootDirectory extends Component{
|
|||
const columns = [
|
||||
{
|
||||
dataIndex: 'name',
|
||||
width:"100%",
|
||||
width:"40%",
|
||||
render: (text,item) => (
|
||||
<a onClick={()=>this.goToSubRoot(item.path)}>
|
||||
<i className={ item.type === "file" ? "iconfont icon-wenjia font-15 color-green-file mr5":"iconfont icon-wenjian1 color-green-file font-15 mr5"}></i>{text}
|
||||
</a>
|
||||
),
|
||||
},{
|
||||
dataIndex:"commit",
|
||||
width:"60%",
|
||||
render:(text,item)=>(
|
||||
item && item.message ? <span>{item.message}</span> :""
|
||||
)
|
||||
}
|
||||
];
|
||||
const title = () =>{
|
||||
|
|
|
@ -352,6 +352,8 @@
|
|||
}
|
||||
.branch-wrapper a > span{
|
||||
position: relative;
|
||||
min-height: 20px;
|
||||
display: block;
|
||||
}
|
||||
.branch-wrapper a.active > span::after{
|
||||
position: absolute;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React , { useState, useEffect } from 'react';
|
||||
import { AutoComplete } from 'antd';
|
||||
import styled from 'styled-components';
|
||||
import { AutoComplete } from 'antd';
|
||||
|
||||
import './version.css';
|
||||
|
||||
|
@ -26,7 +26,14 @@ export default ()=>{
|
|||
<p className="font-16 color-grey-3 mb15">创建发行版</p>
|
||||
<div>
|
||||
<SelectDiv>
|
||||
<AutoComplete placeholder="标记一个标签"></AutoComplete>
|
||||
<div className="tagComplete">
|
||||
<i className="iconfont icon-biaoqian3 font-14 color-grey-8"></i>
|
||||
<AutoComplete
|
||||
placeholder="标记一个版本"
|
||||
|
||||
></AutoComplete>
|
||||
<i className="iconfont icon-jiantou9 color-grey-8 font-14 ml5"></i>
|
||||
</div>
|
||||
<span>@</span>
|
||||
</SelectDiv>
|
||||
<p className="font-13 color-grey-8">选择一个已经存在的标签,或者在发布时新建一个标签</p>
|
||||
|
|
|
@ -169,7 +169,7 @@
|
|||
.ver-middle{
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* new */
|
||||
.versionForm{
|
||||
flex:1;
|
||||
padding-right: 30px;
|
||||
|
@ -185,4 +185,19 @@
|
|||
background-color: #F1F8FF;
|
||||
margin-bottom: 22px;
|
||||
color: #333;
|
||||
}
|
||||
.tagComplete{
|
||||
border:1px solid #d9d9d9;
|
||||
padding:0px 10px;
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 240px;
|
||||
}
|
||||
.tagComplete .ant-select{
|
||||
flex: 1;
|
||||
}
|
||||
.tagComplete .ant-select-auto-complete.ant-select .ant-input{
|
||||
border:none!important;
|
||||
background-color: #fff!important;
|
||||
}
|
Loading…
Reference in New Issue