We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fccd82 commit d8285c5Copy full SHA for d8285c5
src/platforms/weex/runtime/modules/class.js
@@ -44,6 +44,8 @@ function makeClassList (data: VNodeData): Array<string> {
44
classList.push.apply(classList, dataClass)
45
} else if (isObject(dataClass)) {
46
classList.push.apply(classList, Object.keys(dataClass).filter(className => dataClass[className]))
47
+ } else if (typeof dataClass === 'string') {
48
+ classList.push.apply(classList, dataClass.trim().split(/\s+/))
49
}
50
return classList
51
0 commit comments