add msg text

This commit is contained in:
王劲鹏
2021-04-22 14:00:56 +08:00
committed by osborn
parent d47fa2bb7d
commit abccec1321
3 changed files with 18 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ void DoricModalPlugin::alert(QString jsValueString, QString callbackId) {
window->setProperty("callbackId", callbackId);
window->setProperty("title", titleVal.toString());
window->setProperty("msg", msgVal.toString());
window->setProperty("okLabel", okBtn.toString());
QQuickWindow *parentWindow =
@@ -148,6 +149,7 @@ void DoricModalPlugin::confirm(QString jsValueString, QString callbackId) {
window->setProperty("callbackId", callbackId);
window->setProperty("title", titleVal.toString());
window->setProperty("msg", msgVal.toString());
window->setProperty("okLabel", okBtn.toString());
window->setProperty("cancelLabel", cancelBtn.toString());