shentao/vue-multiselect

Accessing `getOptionLabel` within the "tag" slot

開放

#739 建立於 2018年6月2日

 (7 則留言) (4 個反應) (0 位負責人)JavaScript (994 個分叉)batch import
enhancementgood first issue

倉庫指標

星標
 (6,559 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Right now the tag slot receives the currently selected option, the search text and the remove method to remove the option. However, it would be useful to take advantage of the existing getOptionLabel method to display the option label.

Is it possible to pass the getOptionLabel, or possibly its result (the actual label) to the slot? Or am I doing something wrong?

貢獻者指南