修改ant-design-vue的switch样式,去除顿顿的样式
::v-deep .ant-switch:not(.ant-switch-disabled):active::before,
::v-deep .ant-switch:not(.ant-switch-disabled):active::after {
width: 18px;
}
::v-deep .ant-switch {
width: 18px;
}
::v-deep .ant-switch::after {
transition-timing-function: linear;
}
/deep/ .ant-layout-footer {
display: none;
height: 0;
padding: 0;
}
::v-deep .ant-pro-basicLayout-content {
margin: 0;
box-sizing: border-box;
background-color: #fbfafa;
}
::v-deep .ant-switch::after{
transition-duration: 0.03s !important;
box-shadow:none !important;
}
::v-deep .ant-switch{
--antd-wave-shadow-color: transparent!important;
}
::v-deep .ant-switch::after{
transition-duration: 0.01s !important;
}
第二种解决方案
// ant-switch覆盖
::v-deep .ant-switch::after {
transition-timing-function: linear;
}
::v-deep .ant-switch::after{
transition-duration: 0.02s !important;
box-shadow:none !important;
}
::v-deep .ant-switch{
--antd-wave-shadow-color: transparent!important;
}
::v-deep .ant-switch::after{
width: 18px !important;
height: 18px !important;
transition-duration: 0.01s !important;
}
::v-deep .ant-switch-small::after{
width: 12px !important;
height: 12px !important;
}