mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 03:55:23 -04:00
Bugfix: fixed the tabContent's children transform
Signed-off-by: laibo102 <laibo2@huawei.com> Change-Id: Ic7f6b388426a73f2b71f1453c2cece878909af12
This commit is contained in:
@@ -827,10 +827,9 @@ function processTabContent(node: ts.ExpressionStatement, innerCompStatements: ts
|
||||
ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier(TABCONTENT_COMPONENT),
|
||||
ts.factory.createIdentifier(COMPONENT_POP_FUNCTION)), undefined, []));
|
||||
const tabAttrs: ts.Statement[] = [];
|
||||
if (TabContentBody) {
|
||||
const TabContentBodyChild = TabContentBody.statements[0] as ts.ExpressionStatement;
|
||||
if (TabContentBody && TabContentBody.statements.length) {
|
||||
const newTabContentChildren: ts.Statement[] = [];
|
||||
processInnerComponent(TabContentBodyChild, newTabContentChildren, log);
|
||||
processComponentChild(TabContentBody, newTabContentChildren, log);
|
||||
tabContentCreation = ts.factory.createExpressionStatement(
|
||||
ts.factory.createCallExpression(ts.factory.createPropertyAccessExpression(
|
||||
ts.factory.createIdentifier(TABCONTENT_COMPONENT), ts.factory.createIdentifier(COMPONENT_CREATE_FUNCTION)),
|
||||
|
||||
Reference in New Issue
Block a user