Skip to content

表格的columns 支持 传递ref类型 或者 暴露支持修改columns的函数 #195

@zmcode

Description

@zmcode

需要增强的组件/模块

PlusTable

描述

Type 'PlusColumn[] | { [x: string]: any; label?: string | undefined; prop: string; width?: string | number | undefined; minWidth?: string | number | undefined; editable?: boolean | undefined; ... 30 more ...; fieldChildrenSlot?: ((option?: OptionsRow<...> | undefined) => any) | undefined; }[]' is not assignable to type 'PlusColumn[] | undefined'.ts(2322)

The expected type comes from property 'columns' which is declared here on type 'Partial<{ columns: PlusColumn[]; headerCellStyle: Partial | Partial<(data: { row: any[]; rowIndex: number; column: TableColumnCtx<any[]>; columnIndex: number; }) => CSSProperties>; ... 17 more ...; editable: boolean | ... 1 more ... | "dblclick"; }> & Omit<...> & Record<...>'

image
image

额外留言(可选)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    has workaroundA workaround has been found to avoid the problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions