shentao/vue-multiselect

Accessing `getOptionLabel` within the "tag" slot

オープン

#739 opened on 2018/06/02

 (7 件のコメント) (4 件のリアクション) (0 人の担当者)JavaScript (994 件のフォーク)batch import
enhancementgood first issue

Repository metrics

Stars
 (6,559 個のスター)
PR merge metrics
 (30d に merged 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?

コントリビューターガイド