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 合并指标
 (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?

贡献者指南