-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Table] ellipsisTitle优先级低于ellipsis,与预期不符 #1404
Comments
👋 @cong-min,感谢给 TDesign 提出了 issue。 |
|
任何人都可以处理此问题。 |
认领 @chaishi |
Vue2 已合并 issue 先别关,还有 Vue3 和 React,问题相同。需要有缘人处理 |
如果 #1408 的处理是符合预期的,ellipsis的描述应该需要修改,ellipsis配置并不会控制表头的文字是否省略了。 例如:ellipsisTitle不配置,则为默认值undefined。ellipsis配置为true和false表头文字都是省略的 但如果是按照当前ellipsis描述才是符合预期的,应该是判断ellipsisTitle是否配置了,没有配置则取ellipsis的值吧 const isEllipsis = (ellipsis: BaseTableCol['ellipsis'], ellipsisTitle: BaseTableCol['ellipsisTitle']) => {
if (ellipsisTitle === undefined) {
return ellipsis;
}
if (ellipsisTitle !== false && ellipsisTitle !== null) {
return true;
}
return false;
}; |
ellipsis配置会影响表头,走的是第一个逻辑 |
但是目前的现象是,ellipsis设置为false。表头还是会省略哦 |
|
已经提了pr了,粗心了 |
resolved in new change see here |
已在 0.48.3 版本修复 |
tdesign-vue 版本
0.46.2
重现链接
No response
重现步骤
文档中描述 ellipsisTitle 优先级高于ellipsis (预期),
而实际上当 ellipsis 为 false,ellipsisTitle 为 true 时并不能生效:
tdesign-vue/src/table/hooks/useTableHeader.tsx
Line 62 in a6f5d35
期望结果
No response
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: