new*_*per 2 reactjs antd ant-design-pro
我正在将 antd 表用于 reactjs 应用程序。
我在这里创建了Sandbox供您进行更改。谁能帮我制作带有圆角边框的行,如下图所示?
我曾尝试添加 rowClassName={() => "rowClassName1"}与边框相关的 css,但边框不会显示。
试试这个方法,
.rowClassName1 td:first-child {
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
}
.rowClassName1 td:last-child {
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
}
Run Code Online (Sandbox Code Playgroud)
工作演示:- https://codesandbox.io/s/antd-table-rounded-border-row-forked-9u4x9?file=/src/App.js
| 归档时间: |
|
| 查看次数: |
1007 次 |
| 最近记录: |