Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

多选自定义不生效 #332

Open
Sharang-heng opened this issue Jan 30, 2023 · 0 comments
Open

多选自定义不生效 #332

Sharang-heng opened this issue Jan 30, 2023 · 0 comments

Comments

@Sharang-heng
Copy link

源码中有render属性
export interface ArtColumnDynamicPart {
/** 自定义取数方法 /
getValue?(row: any, rowIndex: number): any;
/
* 自定义渲染方法 /
render?(value: any, row: any, rowIndex: number): ReactNode;
/
* 自定义的获取单元格 props 的方法 /
getCellProps?(value: any, row: any, rowIndex: number): CellProps;
/
* 自定义的获取单元格 SpanRect 方法 /
getSpanRect?(value: any, row: any, rowIndex: number): SpanRect;
}
export interface ArtColumn extends ArtColumnStaticPart, ArtColumnDynamicPart {
/
* 该列的子节点 */
children?: ArtColumn[];
}

但是实际使用时不生效,不打印111
checkboxColumn: {
width: 30,
render(value, row, rowIndex) {
console.log(111)
return

1

},
},

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant