新建合并请求-分支下拉搜索

This commit is contained in:
caishi 2022-04-29 09:24:05 +08:00
parent 4cd25cffc7
commit 51d028336f
1 changed files with 4 additions and 2 deletions

View File

@ -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>