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

Table selectedRowKeys的类型问题

Open raythunder opened this issue 3 years ago • 1 comments

Basic Info

What are the similar cases of this feature

现在的类型是string[]。ts环境下,如果我的key值属性是数字类型。那数据渲染和数据提交时,就要做额外的数据类型转换。这里的类型不能为number[]吗

What problem does this feature solve?

selectedRowKeys 也可以绑定数字类型的数组

raythunder avatar May 17 '22 03:05 raythunder

@raythunder 这个可以扩展支持下。如果是ts检验警告,可以先加个 as string[] 或者 ignore 处理下

flsion avatar May 18 '22 07:05 flsion