Skip to content

cl-table 使用 cl-image时,formatter后的数据失效 #166

@DaChuanHaiyanZhang

Description

@DaChuanHaiyanZhang

``const Table = useTable({
{
label: t('Preview'),
prop: 'previewImage',
minWidth: 100,
component: { name: 'custom-image' },
formatter(row, column, cellValue, index) {
const url = cellValue ? ${cellValue}&width=60&height=60&crop=center : '';
return url;
}
},
})

理想状态是 图片的地址为 url+&width=60&height=60&crop=center
但是实际上是原始数据,未更新

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions