forked from Gitlink/forgeplus-react
新建合并请求-分支下拉搜索
This commit is contained in:
parent
4cd25cffc7
commit
51d028336f
|
@ -349,11 +349,11 @@ class CreateMerge extends Component {
|
|||
if(result){
|
||||
if(cate === "pull"){
|
||||
this.setState({
|
||||
pullBranch:result.data.branches
|
||||
pullBranches:result.data.branches
|
||||
})
|
||||
}else{
|
||||
this.setState({
|
||||
mergeBranch:result.data.branches
|
||||
mergeBranches:result.data.branches
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -403,6 +403,7 @@ class CreateMerge extends Component {
|
|||
dropdownMatchSelectWidth={false}
|
||||
dropdownClassName="overlihide"
|
||||
onSearch={(e)=>this.changePullValue(e,"pull")}
|
||||
filterOption={(input,option)=>option}
|
||||
>
|
||||
{this.renderBrances(pullBranches)}
|
||||
</Select>
|
||||
|
@ -432,6 +433,7 @@ class CreateMerge extends Component {
|
|||
dropdownMatchSelectWidth={false}
|
||||
dropdownClassName="overlihide"
|
||||
onSearch={(e)=>this.changePullValue(e,"merge")}
|
||||
filterOption={(input,option)=>option}
|
||||
>
|
||||
{this.renderBrances(mergeBranches)}
|
||||
</Select>
|
||||
|
|
Loading…
Reference in New Issue