ant-design-vue中a-button,设置的样式是“primary”。但不是蓝色。
解决方法:重新自定义样式
参考链接:
https://www.jianshu.com/p/0b2fde46c761
HTML:
<a-buttonclass="c-button-primary"type="primary"style="margin-top: 20px":disabled="a <= b ? true : false"@click="nextStep">下一步</a-button>
style样式设置
.c-button-primary {color: #fff;background-color: #0960bd;border-color: #0960bd;
}
.c-button-primary:hover {color: #fff;background-color: #004496;border-color: #004496;
}