无线电蚂蚁设计的自定义图标

时间:2020-02-26 07:55:25

标签: reactjs antd

有人可以帮助我,如何更改ant Design表中的复选框之类的图标单选。这是我的表格代码

<Table 
  rowSelection = {{
    type: "radio",
    buttonStyle: "solid",
    selectedRowKeys: this.state.keys,
    onChange: this.onRowKeysChange
  }}
  title = {() => < b > Classes < /b>} 
  bordered 
  components={this.components} 
  columns={columnsSegment2Active} 
  size="middle" 
  dataSource={this.state.data8} 
  loading={this.state.loading}/ >

1 个答案:

答案 0 :(得分:0)

要将单选按钮的圆形更改为正方形,请添加以下CSS

.ant-radio-inner, .ant-radio-inner:after{
  border-radius: 0!important;
}
.ant-radio-inner:after{
  border: none!important;
}

检查stackblitz实现Here