!52 sync code.

Merge pull request !52 from lihong/dev
This commit is contained in:
openharmony_ci
2021-10-13 09:01:10 +00:00
committed by Gitee
3 changed files with 15 additions and 3 deletions
+7 -3
View File
@@ -203,7 +203,7 @@ export const COMPONENT_MAP: any = {
Progress: {
atomic: true,
attrs: [
'value', 'color', 'cricularStyle'
'value', 'color', 'cricularStyle', 'circularStyle'
]
},
Rect: {
@@ -287,6 +287,10 @@ export const COMPONENT_MAP: any = {
atomic: true,
attrs: ['checked', 'onChange']
},
Web: {
atomic: true,
attrs: ['pagestart', 'pagefinish', 'error','message', 'reload']
},
GeometryView: {
atomic: true
},
@@ -335,11 +339,11 @@ export const COMPONENT_MAP: any = {
},
Menu: {
children: ['Option'],
attrs: ['show', 'showPosition'],
attrs: ['show', 'showPosition', 'fontColor', 'fontSize', 'fontWeight', 'fontFamily'],
},
Option: {
parents: ['Menu'],
attrs: [],
attrs: ['fontColor', 'fontSize', 'fontWeight', 'fontFamily'],
},
};
+7
View File
@@ -65,6 +65,7 @@ export function processUISyntax(program: ts.Program, ut = false): Function {
pagesDir = path.resolve(path.dirname(node.fileName));
if (process.env.compiler === BUILD_ON) {
if (!ut && (path.basename(node.fileName) === 'app.ets.ts' || !/\.ets\.ts$/.test(node.fileName))) {
node = ts.visitEachChild(node, processResourceNode, context);
return node;
}
collectComponents(node);
@@ -102,6 +103,12 @@ export function processUISyntax(program: ts.Program, ut = false): Function {
}
return ts.visitEachChild(node, processAllNodes, context);
}
function processResourceNode(node: ts.Node): ts.Node {
if (isResource(node)) {
node = processResourceData(node as ts.CallExpression);
}
return ts.visitEachChild(node, processResourceNode, context);
}
function validateSourceFileNode(node: ts.SourceFile): void {
if (program) {
node = ts.visitEachChild(node, validateAllNodes, context);
+1
View File
@@ -4,6 +4,7 @@
"allowJs": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"importsNotUsedAsValues": "preserve",
"noImplicitAny": false,
"noUnusedLocals": false,
"noUnusedParameters": false,