diff --git a/compiler/build_declarations_file.js b/compiler/build_declarations_file.js index c878c97..3709837 100644 --- a/compiler/build_declarations_file.js +++ b/compiler/build_declarations_file.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -28,7 +28,7 @@ const addTSAttributeSet = ['AlphabetIndexer', 'Animator', 'Badge', 'Blank', 'But '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']; + 'Toggle', 'Video', 'Web', 'XComponent', 'RichText', 'RemoteWindow']; generateTargetFile(process.argv[2], process.argv[3]); function generateTargetFile(filePath, output) { diff --git a/compiler/components/remote_window.json b/compiler/components/remote_window.json new file mode 100644 index 0000000..27c57b3 --- /dev/null +++ b/compiler/components/remote_window.json @@ -0,0 +1,7 @@ +{ + "name": "RemoteWindow", + "atomic": true, + "attrs": [ + "WindowAnimationTarget" + ] +} \ No newline at end of file diff --git a/compiler/tsconfig.json b/compiler/tsconfig.json index 4da94c4..f538393 100644 --- a/compiler/tsconfig.json +++ b/compiler/tsconfig.json @@ -62,6 +62,7 @@ "Rating", "Rect", "Refresh", + "RemoteWindow", "Row", "RowSplit", "RichText", @@ -371,6 +372,11 @@ "type": "RefreshAttribute", "instance": "RefreshInstance" }, + { + "name": "RemoteWindow", + "type": "RemoteWindowAttribute", + "instance": "RemoteWindowInstance" + }, { "name": "Row", "type": "RowAttribute",