mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-20 15:14:04 -04:00
修改flex组件没有参数时树上名称不对问题
Signed-off-by: peter <zhuzijia@huawei.com> Change-Id: I29f4f79ea1fcd3eb5853b0462257626c4fc84e5f
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user