shentao/vue-multiselect

Allow a custom (modifier) class for multiselect

Open

#667 创建于 2018年3月13日

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

描述

Hi! I love how multiselect is built using BEM, which nicely matches with our workflow.

However we have several variations of multiselect on our site, and we already have two different styles for these dropdowns. The only possibility I have now is to add styling based on inheritance (eg wrap it in a div), which is kind of anti-BEM ;)

I would prefer to be able to pass a custom prop or option that allows for an additional modifier, so that the base class "multiselect" would become "multiselect multiselect--filter" for example.

贡献者指南