Tdesign-React 组件 Card 实现头部固定,内容区单独可滚动


效果图对比

.deployPanelLeft .t-card__header {
position: sticky !important;
top: 0;
background: #fff;
z-index: 1;
overflow-y: auto; /* 内容区滚动 */
}

Tdesign-React 组件 Card 实现头部固定,内容区单独可滚动
效果图对比
.deployPanelLeft .t-card__header {
position: sticky !important;
top: 0;
background: #fff;
z-index: 1;
overflow-y: auto; /* 内容区滚动 */
}