fix(data-table): utils.createClassObject bug

This commit is contained in:
07akioni 2020-01-04 21:05:07 +08:00
parent 0b687014cc
commit eeaec5f090

View File

@ -10,6 +10,7 @@ export const createClassObject = function createClassObject (classString) {
if (typeof classString === 'string') {
return classString.split(' ').filter(className => className).reduce((classObject, className) => {
classObject[className] = true
return classObject
}, {})
}
return classString