add on focus change

This commit is contained in:
王劲鹏
2021-05-27 14:00:19 +08:00
committed by osborn
parent 2782552b41
commit 6f5174df60
6 changed files with 21 additions and 2 deletions

View File

@@ -90,6 +90,8 @@ v8::Local<v8::Value> Variant2JS(QVariant variant) {
jsValue = array;
} else if (variant.type() == QVariant::Int) {
jsValue = v8::Number::New(isolate, variant.toDouble());
} else if (variant.type() == QVariant::Bool) {
jsValue = v8::Boolean::New(isolate, variant.toBool());
} else if (variant.type() == QVariant::Invalid) {
jsValue = v8::Undefined(isolate);
}