1.0.3 • Published 4 years ago
@vue-interface/merge-classes v1.0.3
MergeClasses
A mixing that adds the mergeClasses() method to the Vue instance. Can pass an
object or a string in the arguments, and the will all be merged together in a
JSON object that can be passed to a class
attribute in a Vue component.
mergeClasses(...classes)
Example
mergeClasses('a', {
b: 2
}, 'c');
// Returns
{
'a': true,
'b': 2,
'c': true
}