diff --git a/compiler/build_declarations_file.js b/compiler/build_declarations_file.js index 4301cf682b03d1c0fa09e5ebd6ef27d21ed51ef7..32e8933ba7180486fc1142920d3ed66f4238abe1 100644 --- a/compiler/build_declarations_file.js +++ b/compiler/build_declarations_file.js @@ -24,14 +24,14 @@ const addTSAttributeSet = ['AlphabetIndexer', 'Animator', 'Badge', 'Blank', 'But 'Canvas', 'Checkbox', 'CheckboxGroup', 'Circle', 'Column', 'ColumnSplit', 'Counter', 'DataPanel', 'DatePicker', 'Divider', 'Ellipse', 'Flex', 'FormComponent', 'Gauge', 'Grid', 'GridItem', 'GridContainer', 'Image', 'ImageAnimator', 'IndicatorComponent', 'LazyVGridLayout', 'Line', - 'List', 'ListItem', 'ListItemGroup', 'LoadingProgress', 'Marquee', 'Navigation', - 'Navigator', 'Panel', 'Path', 'PatternLock', 'Piece', 'PluginComponent', 'Polygon', 'Polyline', 'Progress', + 'List', 'ListItem', 'ListItemGroup', 'LoadingProgress', 'Marquee', 'Navigation', 'Navigator', + 'Panel', 'Path', 'PatternLock', 'Piece', 'PluginComponent', 'Polygon', 'Polyline', 'Progress', 'QRCode', 'Radio', 'Rating', 'Rect', 'Refresh', 'Row', 'RowSplit', 'Scroll', 'ScrollBar', 'Search', 'Select', 'Shape', 'Sheet', 'Slider', 'Span', 'Stack', 'Stepper', 'StepperItem', 'Swiper', 'TabContent', 'Tabs', 'Text', 'TextArea', 'TextClock', 'TextInput', 'TextPicker', 'TextTimer', 'Toggle', 'Video', 'Web', 'XComponent', 'RichText', 'RemoteWindow', 'WaterFlow', 'FlowItem', 'ImageSpan', - 'RootScene', 'Screen', 'WindowScene', 'EffectComponent', 'RichEditor', 'ArcSwiper' , 'ArcScrollBar', - 'ArcList', 'ArcListItem', 'ArcAlphabetIndexer']; + 'RootScene', 'Screen', 'WindowScene', 'EffectComponent', 'RichEditor', 'ArcAlphabetIndexer', 'ArcList', + 'ArcListItem', 'ArcSwiper', 'ArcScrollBar']; generateTargetFile(process.argv[2], process.argv[3]); function generateTargetFile(filePath, output) { diff --git a/compiler/components/grid.json b/compiler/components/grid.json index 19559328e831828da93fd9e0c25ae284cb749b85..da18505591a2f7a0f9234aa51e350e9548d8e56a 100644 --- a/compiler/components/grid.json +++ b/compiler/components/grid.json @@ -9,6 +9,6 @@ "onScrollBarUpdate", "enableScrollInteraction", "fadingEdge", "onScrollStart", "onScroll", "onScrollStop", "onWillScroll", "onDidScroll", "cachedCount", "nestedScroll", "friction", "alignItems", "onReachStart", "onReachEnd", "onScrollFrameBegin", "flingSpeedLimit", - "clipContent", "backToTop", "focusWrapMode", "syncLoad", "onWillStopDragging" + "clipContent", "backToTop", "focusWrapMode", "onWillStopDragging", "syncLoad" ] } diff --git a/compiler/components/list.json b/compiler/components/list.json index aff74ca6dd8a2e68df8ddf3bee567e89d94a853b..c2c3a827954fe6c195d2bb6ac4b7fc15e6de68d6 100644 --- a/compiler/components/list.json +++ b/compiler/components/list.json @@ -9,6 +9,6 @@ "alignListItem", "nestedScroll", "friction", "contentStartOffset", "contentEndOffset", "childrenMainSize", "maintainVisibleContentPosition", "onScrollFrameBegin", "onScrollStart", "onScrollVisibleContentChange", "flingSpeedLimit", "clipContent", "onWillScroll", "onDidScroll", "scrollBarColor", "scrollBarWidth", "backToTop", - "stackFromEnd", "focusWrapMode", "syncLoad", "onWillStopDragging" + "stackFromEnd", "focusWrapMode", "onWillStopDragging", "syncLoad" ] } diff --git a/compiler/components/water_flow.json b/compiler/components/water_flow.json index 300375772838708d482f70be67745c93d2d38469..2d64dea5dc98bba2e4c96c1ee4ddb86e5edf70b6 100644 --- a/compiler/components/water_flow.json +++ b/compiler/components/water_flow.json @@ -32,7 +32,7 @@ "onDidScroll", "clipContent", "backToTop", - "syncLoad", - "onWillStopDragging" + "onWillStopDragging", + "syncLoad" ] } diff --git a/compiler/main.js b/compiler/main.js index 20bfe3e929cebf21f41ef8a026df572349056e77..e62353a7a9a0e10b4ee7e76f7d436592c7cf8a20 100644 --- a/compiler/main.js +++ b/compiler/main.js @@ -995,6 +995,9 @@ function isPartialUpdate(metadata, moduleType) { if (item.name === 'Api11ArkTSCheckMode' && item.value === 'DoArkTSCheckInCompatibleModeInApi11') { partialUpdateConfig.standardArkTSLinter = false; } + if (item.name === 'ArkoalaPlugin' && item.value === 'true') { + projectConfig.useArkoala = true; + } if (item.name === 'ArkTSVersion') { partialUpdateConfig.arkTSVersion = item.value; } @@ -1007,9 +1010,6 @@ function isPartialUpdate(metadata, moduleType) { if (item.name === 'SkipArkTSStaticBlocksCheck' && item.value === 'true') { partialUpdateConfig.skipArkTSStaticBlocksCheck = true; } - if (item.name === 'ArkoalaPlugin' && item.value === 'true') { - projectConfig.useArkoala = true; - } if (item.name === 'UseTsHar' && item.value === 'true' && moduleType === 'har') { projectConfig.useTsHar = true; } diff --git a/compiler/test/test.js b/compiler/test/test.js index 46911fdc9633601f3b3bd582704478abadd470d4..901b03e9ea99d7a23f993b98480ee06fbcac5fbd 100644 --- a/compiler/test/test.js +++ b/compiler/test/test.js @@ -73,14 +73,14 @@ function processIntermediateTS(content, filePath, afterProcess) { 'etsAnnotationsEnable': true }); } - const etsFilePath = filePath.replace('.ts', '.ets') + const etsFilePath = filePath.replace('.ts', '.ets'); fs.writeFileSync(etsFilePath, afterProcess.content); processModule(etsCheckerCompilerOptions, etsFilePath); sourceFile = ModuleSourceFile.getSourceFiles().find((element) => element.moduleId.includes(etsFilePath)); result = generateIntermediateContent(sourceFile); fs.unlinkSync(etsFilePath); projectConfig.processTs = false; - return result + return result; } function expectActual(name, filePath, checkError = false) { diff --git a/compiler/tsconfig.esm.json b/compiler/tsconfig.esm.json index fb496acd6b08eef082e9ca61b9eb4895d6307cdc..9b0e05d83ad60b52524ba5cb4ce30387c510b892 100755 --- a/compiler/tsconfig.esm.json +++ b/compiler/tsconfig.esm.json @@ -278,9 +278,9 @@ "RichEditor", "Component3D", "ContainerSpan", + "ArcAlphabetIndexer", "ArcSwiper", "ArcScrollBar", - "ArcAlphabetIndexer", ], "extend": { "decorator": ["Extend", "AnimatableExtend"], diff --git a/compiler/tsconfig.json b/compiler/tsconfig.json index 98511d6236690a1015c23b7ed6085c4e73182bfc..7b5d6ed6e40c60573b9051837d7df6316a84d690 100644 --- a/compiler/tsconfig.json +++ b/compiler/tsconfig.json @@ -287,9 +287,9 @@ "RichEditor", "Component3D", "ContainerSpan", + "ArcAlphabetIndexer", "ArcSwiper", "ArcScrollBar", - "ArcAlphabetIndexer", ], "extend": { "decorator": ["Extend", "AnimatableExtend"], diff --git "a/compiler/\345\246\202\344\275\225\346\226\260\345\242\236\346\210\226\344\277\256\346\224\271\347\273\204\344\273\266\346\214\207\345\257\274\350\247\204\350\214\203.md" "b/compiler/\345\246\202\344\275\225\346\226\260\345\242\236\346\210\226\344\277\256\346\224\271\347\273\204\344\273\266\346\214\207\345\257\274\350\247\204\350\214\203.md" index ace8130613bd4926b2891a277540b5c58fb4101b..57865b510fad14b9a9eb9dee1ecc2b89f344f73d 100644 --- "a/compiler/\345\246\202\344\275\225\346\226\260\345\242\236\346\210\226\344\277\256\346\224\271\347\273\204\344\273\266\346\214\207\345\257\274\350\247\204\350\214\203.md" +++ "b/compiler/\345\246\202\344\275\225\346\226\260\345\242\236\346\210\226\344\277\256\346\224\271\347\273\204\344\273\266\346\214\207\345\257\274\350\247\204\350\214\203.md" @@ -8,11 +8,7 @@ #### **说明:** -``` -通用属性是指在 -``` - -**`common.d.ts`** 文件中 **`CommonMethod`** 类定义的属性,这些属性可以修饰**自定义组件**或**系统组件**。 +通用属性是指在 **`common.d.ts`** 文件中 **`CommonMethod`** 类定义的属性,这些属性可以修饰**自定义组件**或**系统组件**。 ##### **变更与同步要求**