mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 16:43:34 -04:00
@@ -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'],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"allowJs": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
"importsNotUsedAsValues": "preserve",
|
||||
"noImplicitAny": false,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
|
||||
Reference in New Issue
Block a user