修改flex组件没有参数时树上名称不对问题

Signed-off-by: peter <zhuzijia@huawei.com>
Change-Id: I29f4f79ea1fcd3eb5853b0462257626c4fc84e5f
This commit is contained in:
peter
2022-03-23 18:43:14 +08:00
parent 3eea574be0
commit 9e69538f7f
@@ -47,6 +47,7 @@ void JSFlexImpl::Create(const JSCallbackInfo& info)
LOGI("No input args, use default row setting");
RefPtr<RowComponent> row =
AceType::MakeRefPtr<OHOS::Ace::RowComponent>(FlexAlign::FLEX_START, FlexAlign::STRETCH, children);
row->SetInspectorTag("FlexComponentV2");
ViewStackProcessor::GetInstance()->Push(row);
return;
}
@@ -54,6 +55,7 @@ void JSFlexImpl::Create(const JSCallbackInfo& info)
LOGW("arg is not a object, use default row setting");
RefPtr<RowComponent> row =
AceType::MakeRefPtr<OHOS::Ace::RowComponent>(FlexAlign::FLEX_START, FlexAlign::STRETCH, children);
row->SetInspectorTag("FlexComponentV2");
ViewStackProcessor::GetInstance()->Push(row);
return;
}