mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
fix(data-table): utils.createClassObject bug
This commit is contained in:
parent
0b687014cc
commit
eeaec5f090
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user