add title & ok label

This commit is contained in:
王劲鹏
2021-04-22 11:48:22 +08:00
committed by osborn
parent 70cf4acd5b
commit dda16db50a
2 changed files with 14 additions and 2 deletions

View File

@@ -94,6 +94,9 @@ void DoricModalPlugin::alert(QString jsValueString, QString callbackId) {
window->setProperty("plugin", QString::number((qint64)this));
window->setProperty("callbackId", callbackId);
window->setProperty("title", titleVal.toString());
window->setProperty("okLabel", okBtn.toString());
QQuickWindow *parentWindow =
getContext()->getRootNode()->getRootView()->window();