fix(components): [table] el-table__placeholder class disappear(#9527) (#9529)

This commit is contained in:
wiidede
2022-08-30 22:49:45 -05:00
committed by GitHub
parent d7709b0ecf
commit a8a556d0ea

View File

@@ -122,7 +122,6 @@ function useRender<T>(
}
let originRenderCell = column.renderCell
const hasTreeColumnValue = hasTreeColumn.value
// TODO: 这里的实现调整
if (column.type === 'expand') {
// 对于展开行renderCell 不允许配置的。在上一步中已经设置过,这里需要简单封装一下。
@@ -151,7 +150,7 @@ function useRender<T>(
children = originRenderCell(data)
}
const shouldCreatePlaceholder =
hasTreeColumnValue && data.cellIndex === 0
hasTreeColumn.value && data.cellIndex === 0
const prefix = treeCellPrefix(data, shouldCreatePlaceholder)
const props = {
class: 'cell',