mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-30 10:18:02 +08:00
chore(components): [table] filter out invalid className (#6717)
* chore(components): [table] filter out invalid className * chore(components): [table] modify codes by comments
This commit is contained in:
parent
e179ee6960
commit
1db4ae09ac
@ -98,7 +98,7 @@ function useStyles<T>(props: Partial<TableBodyProps<T>>) {
|
||||
)
|
||||
}
|
||||
classes.push(ns.e('cell'))
|
||||
return classes.join(' ')
|
||||
return classes.filter((className) => Boolean(className)).join(' ')
|
||||
}
|
||||
const getSpan = (
|
||||
row: T,
|
||||
|
@ -109,7 +109,7 @@ function useStyle<T>(props: TableHeaderProps<T>) {
|
||||
|
||||
classes.push(ns.e('cell'))
|
||||
|
||||
return classes.join(' ')
|
||||
return classes.filter((className) => Boolean(className)).join(' ')
|
||||
}
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user