Comments (4)
http://ant.design/components/table/#demo-expand
ant design 里的做法是图标单独一列。
from table.
场景有点不太一样,antd 里的这个是通过 expandedRowRender
,会触发 expandIconAsCell
这里的是直接通过数据里的层级关系 data.i.children.i.children...
来渲染,直接加 {indentText}{expandIcon}
在内容前面
而且这种数据自带层级的,如果把图标全放在第一列会不会比较奇怪
from table.
from table.
现在解决方案是给没有 children
的节点增加占位的 icon,现在样式看起来很奇怪,是的,aba 和 aca 真的是对齐的
from table.
Related Issues (20)
- antd table,已经设置了 scroll={{x:true}} ,但是有的时候表格显示正常,有的时候内容会撑出去,把整个页面给撑开 HOT 1
- 没有设置 `title` 的列,展示时表头变成了 `td`,应该是 `th` HOT 5
- 【咨询】请问rc-table 虚拟列表支持row动态高度吗
- flex布局时,resize窗口,表格无法自动适应
- Feature Request: Add Hierarchical Lines to Expandable Row RC Table
- 能否提供一个类似elementui table 树形数据与懒加载 的API
- npm run compile error !!! How to build component? HOT 1
- 虚拟滚动时,table getRowKey 索引index 为undefined
- 更复杂的分组表头 HOT 5
- 虚拟滚动时,固定列阴影消失 HOT 2
- VirtualTable 虚拟列表如何处理 load more?
- SSR with Nextjs14+
- Tailwind customization table
- Option to scroll smooth to row in scrollTo function HOT 1
- 虚拟滚动时,当数据源发生变更时,横向滚动被重置
- rc-table show fixed column shadown as expected when viewport zoom in/out with some width
- scroll更新时不能滚动 HOT 1
- fixFooter 判断不准确,导致 Summary 组件的 fixed 为 'top' 不符合预期
- expandedRowRender and colspan
- onScroll 事件的属性 firefox 和 chrome 表现不一致 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from table.