shentao/vue-multiselect

Accessing `getOptionLabel` within the "tag" slot

Open

#739 创建于 2018年6月2日

在 GitHub 查看
 (7 评论) (4 反应) (0 负责人)JavaScript (6,559 star) (994 fork)batch import
enhancementgood first issue

描述

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?

贡献者指南

Accessing `getOptionLabel` within the "tag" slot · shentao/vue-multiselect#739 | Good First Issue