ant design 默认单选框样式
2.修改后ant多选框样式
ui非让改 没办法只能自己动手了,话不多说,看代码项目
代码
css要放在全局css
// 多选框样式开始
.selectAloneStyle .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-state {
max-width: 40px;
position: absolute;
left: 15px;
}
.selectAloneStyle .ant-select-item-option-content {
position: relative;
left: 40px;
overflow: visible!important;
overflow-x: visible!important;
max-width: 70%!important;
width: 70%!important;
}
.selectAloneStyle .ant-select-border {
width: 20px;
position: absolute;
left: -40px;
height: 20px;
border: 1px solid #ccc;
top: 0;
}
ant design 多选框样式修改
最新推荐文章于 2024-11-18 16:29:11 发布