notification.open({
message: 'xxx',
description: `xxxx`,
duration: 5,
style: {
width: 600,
fontSize: 'larger',
fontWeight: 'bold',
},
})
实现:
3.1 用css,可以添加className
3.2 项目里用less,样式添加都是html ,所以在notification添加‘style.xx’无效,解决方式:hi姐在style属性里添加样式,并且写成驼峰模式。参考样式属性及相关值:
CSSProperties
参考: