765bug,上架关联组件时搜索功能
This commit is contained in:
parent
52c1850cfb
commit
636318536b
|
@ -477,6 +477,8 @@
|
|||
:render="(item) => item.title"
|
||||
@change="handleChangeOther"
|
||||
@selectChange="handleSelectChangeOther"
|
||||
show-search
|
||||
:filter-option="filterOptionTransfer"
|
||||
/>
|
||||
</div>
|
||||
</a-modal>
|
||||
|
@ -927,7 +929,7 @@
|
|||
mockDataOther.value.push({
|
||||
key: val.id,
|
||||
title: val.name,
|
||||
description: val.id,
|
||||
description: val.name,
|
||||
})
|
||||
})
|
||||
})
|
||||
|
@ -948,7 +950,7 @@
|
|||
mockDataOther.value.push({
|
||||
key: val.id,
|
||||
title: val.name,
|
||||
description: val.id,
|
||||
description: val.name,
|
||||
})
|
||||
})
|
||||
})
|
||||
|
@ -978,6 +980,11 @@
|
|||
console.log('targetSelectedKeys: ', targetSelectedKeys, sourceSelectedKeys)
|
||||
}
|
||||
|
||||
const filterOptionTransfer = (inputValue, option) => {
|
||||
console.log(option, 'option')
|
||||
return option.description.indexOf(inputValue) > -1
|
||||
}
|
||||
|
||||
const handleOk = (e) => {
|
||||
console.log(e)
|
||||
visibleAssociatedApplicationOther.value = false
|
||||
|
|
Loading…
Reference in New Issue