有时候我们需要改变antd的原始样式不生效,less中使用:global修改
eg:修改modal的样式
.childModalWrap {
:global {
.am-modal-content {
.am-modal-body {
max-height: 70vh;
overflow-y: scroll;
}
.am-modal-title {
font-size: 1rem;
}
}
}
}