:global {
.ant-input .ant-input-disabled {
background-color: transparent;
cursor: default;
}
.ant-input[disabled] {
background-color: transparent;
cursor: default;
}
.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {
background-color: transparent;
cursor: default;
}
.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector input {
cursor: default;
}
}
又一次需要设置antd中Input和Select组件在disable下的样式,真的太麻烦了,尤其是去掉那个“禁用”的标志,找了半天才发现,原来是要设置cursor