Skip to content

TableColumnData 的 title 定义是 string | RenderFunction,但是 TableColumn 组件只接收 string #3473

@ahtcbweb

Description

@ahtcbweb

{ title: () => h(unifiedSet, { placeholder: '成本', onConfirm: (value) => { if (value.trim() !== '') { fillColumn('cost', value); } }, }) as unknown as string, dataIndex: 'cost', minWidth: 160, },

上面的 TableColumnData 定义,title 传入vNode 渲染,控制台始终报警提示:title 只接收 string 类型,尝试修改组件和 Props 定义也没有效果 ~ 但是这段代码是可以正常工作的!

TableColumnData 的 title 定义是 string | RenderFunction,但是 TableColumn 组件只接收 string

"@arco-design/web-vue": "^2.55.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions