Merge pull request '修改相关issue的代码提交' (#44) from caishi/forgeplus-react:feature_router into feature_router

This commit is contained in:
jasder 2021-09-03 17:18:20 +08:00
commit b6ed5d79e7
7 changed files with 10 additions and 11 deletions

View File

@ -6,6 +6,7 @@ CopyTool.defaultProps = {
afterText: '复制成功', //
className: '', //svgclass
inputId: 'copyText', //ID
timeOut:true, //beforeText
};
@ -21,14 +22,11 @@ function CopyTool({ beforeText, afterText, className , inputId , timeOut }) {
console.error("您的CopyTool未设置正确的inputId");
return;
}
const range = document.createRange(); // range
window.getSelection().removeAllRanges(); //selection
range.selectNode(copyEle); //
window.getSelection().addRange(range); //
copyEle.select(); //
if (document.execCommand('copy')) {
document.execCommand('copy');
}
setTitle(afterText);
if(timeOut){
setTimeout(function(){

View File

@ -53,7 +53,7 @@ export default (({ user , img, name, time, focusStatus, is_current_user, login ,
is_current_user ?
<Button type="default">当前用户</Button>
:
<FocusButton is_watch={focusStatus} id={login} successFunc={successFunc}/>
<FocusButton is_watch={focusStatus} id={login} successFunc={successFunc} notReset={true}/>
}
</div>
</Div>

View File

@ -9,9 +9,9 @@ function Modals({title,children,btn,onCancel,visible}) {
onCancel={onCancel}
title={title}
width={"520px"}
className="deleteBox"
footer={btn}
centered={true}
wrapClassName={"deleteBox"}
>
{children}
</Modal>

View File

@ -1,4 +1,5 @@
.deleteBox{
z-index: 1033;
.ant-modal-close-x{
font-size: 17px!important;
}

View File

@ -362,7 +362,7 @@ class NewHeader extends Component {
})
}
// let search_url = settings && settings.common && settings.common.search;
let search_url = settings && settings.common && settings.common.search;
let notice_url = settings && settings.common && settings.common.notice;
return (
<div className="newHeaders" id="nHeader">
@ -427,7 +427,7 @@ class NewHeader extends Component {
</div>
<div className="head-right">
{/* {search_url ? this.SearchInput(openSearch,search_url):""} */}
<HeadSearch {...this.props}/>
{ search_url && <HeadSearch {...this.props}/>}
{
current_user && (current_user.main_site || current_user.login) && (settings && settings.add && settings.add.length>0)?
<Dropdown overlay={this.addMenu(settings && settings.add)} placement="bottomRight">

View File

@ -8,7 +8,7 @@ function Invite({code,className}) {
<div className={className}>
<span className="font-16 color-grey-6">邀请码</span>
<div>
<span id="devitecode">{code}</span>
<input value={code} id="devitecode" style={{width:"62px",border:"none",cursor:"default"}} readOnly/>
<CopyTool timeOut={true} beforeText={<p className="edu-txt-center">可以通过邀请码邀请成员加入项目<br/>点击复制邀请码</p>} className="ml8 font-16" inputId="devitecode"/>
</div>
</div>

View File

@ -114,7 +114,7 @@ class MilepostDetail extends Component {
this.setState({
data: result.data,
issues: result.data.issues,
search_count: result.data.search_count,
search_count: params.status_type ==="1" ? result.data.open_issues_count : result.data.close_issues_count,
isSpin: false
})
}