[英]quasar notify - How to change close button color?
在撰写本文时,Notify 的 API 没有提供自定义closeBtn
颜色的选项。 解决方法是创建一个动作并设置偏好颜色:
return Notify.create({
type: "positive",
timeout: 0,
html: true,
message: "the message",
textColor: "white",
actions: [
{
label: 'Close', color: 'white', handler: () => undefined
}
]
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.