arco-design-vue icon indicating copy to clipboard operation
arco-design-vue copied to clipboard

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

Open ahtcbweb opened this issue 8 months ago • 0 comments

{ 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",

ahtcbweb avatar Mar 15 '25 04:03 ahtcbweb