-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
DataTable 组件是否可以加入单选模式(radio) #3056
Comments
会考虑,优先级暂时不是很高,欢迎 PR Will do, however priority is not high. PR is welcomed. |
table 有个bug 设置了固定表头maxHeight,水平滚动条不显示,导致table数据显示不全 |
给个复现? |
这很容易,在官方文档table组件位置随便这个demo或者自己写一个,吧table放在在一个有限大小的div里面,比如这样
|
刚又发现table一个bug,没有给table设置maxHeight固定表头,这个table依然放在一个高度和宽度都比table小的父容器里面,这时table会有垂直滚动条和水平滚动条,这没问题,但是只有垂直滚动条滚到下面才能看到水平滚动条 |
另外再提一个tree懒加载的一个bug,配置了expand-on-click,如果用户点击的这个节点还没有加载数据会报错 |
还有就是 issue 的讨论最好单独开,不要混在其他的 issue 里,不然很可能被漏掉 |
这种情况不被看作 bug,必须要设定 scroll-x |
* feat(datatable): add `single` prop to datatable #3056 * test(datatable): add `single` prop test case * fix: `single` test case * docs: add english changelog * test(data-table): accomplish `single` prop test case * feat: change checkout to radio * Update src/data-table/src/TableParts/Body.tsx Co-authored-by: 07akioni <07akioni2@gmail.com>
closed in #3209 |
This function solves the problem (这个功能解决的问题)
There'a a scene, we only want to select single row of data-table.
有这样一个场景:我们使用DataTable有且只需要选择一行。
现在 type只有'selection' | 'expand'两个选择,使用selection会在TableHeader出现全选checkbox,这个并不是我们需要的
Expected API (期望的 API)
DataTableColumn Properties
type: 'selection' | 'expand' | 'radio'
The text was updated successfully, but these errors were encountered: