是否可以使用本机脚本设置对话框警报的样式?

问题描述 投票:0回答:1

我正在使用nativescript vue.js广告中的应用程序工作,我有一个警报框,例如,[[我想设置'按摩'属性的样式以更改文本颜色。

我该怎么做?

这里是代码段

alert({ message: "alerts saeved", okButtonText: "close" });

谢谢!    
vue.js nativescript
1个回答
0
投票
您可以通过在组件的CSS中将颜色设置为Label来更改消息的颜色

Label { color: red; // this color should be applied to message in dialog }

© www.soinside.com 2019 - 2024. All rights reserved.