tdesign-react icon indicating copy to clipboard operation
tdesign-react copied to clipboard

表格无法传递自定义style和className属性

Open partical opened this issue 4 years ago • 4 comments

Describe Framework

tdesign-react

Describe Environment

chrome

Describe the bug 表格组件无法识别style和className属性,导致无法设置内联样式以及自定义className。

partical avatar Jan 04 '22 02:01 partical

【说明】BaseTable API中没有提供style和className 【建议】BaseTableCol中有className的api,看下是否满足需求

yunfeic avatar Jan 04 '22 11:01 yunfeic

【说明】BaseTable API中没有提供style和className 【建议】BaseTableCol中有className的api,看下是否满足需求

一般非特殊情况,原生的 html 属性还是要支持透传到组件的最外层 dom 上的,class、style 只是最常用的属性,其他的也需要。 之前 api 没提出来以为默认会这么处理,因为 vue 是天然支持透传的,后面其他组件也慢慢完善一下吧

honkinglin avatar Jan 05 '22 08:01 honkinglin

嗯,支持下

yunfeic avatar Jan 05 '22 08:01 yunfeic

https://github.com/Tencent/tdesign-react/releases/tag/0.23.0 fixed

honkinglin avatar Jan 13 '22 14:01 honkinglin