From 37555dad6aa32c28a07bce2b01e2ddf756f06efe Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Wed, 30 Jul 2025 14:27:12 +0300 Subject: [PATCH] A bug in plugins Signed-off-by: Alexander Gorshenev --- arkoala-arkts/arkui/sdk/component/button.ets | 4 ++-- arkoala-arkts/arkui/sdk/component/column.ets | 4 ++-- arkoala-arkts/arkui/sdk/component/text.ets | 4 ++-- arkoala-arkts/trivial/user/src/ets/page1.ets | 10 ++++++++++ 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/arkoala-arkts/arkui/sdk/component/button.ets b/arkoala-arkts/arkui/sdk/component/button.ets index f6ab79aa2f..8d53b3a92a 100644 --- a/arkoala-arkts/arkui/sdk/component/button.ets +++ b/arkoala-arkts/arkui/sdk/component/button.ets @@ -180,8 +180,8 @@ export class ArkButtonStyle extends ArkCommonMethodStyle implements ButtonAttrib @memo @ComponentBuilder -export function Button( +export declare function Button( label: ButtonOptions | ResourceStr, options?: ButtonOptions, @memo content_?: () => void, -): ButtonAttribute { throw new Error("")} +): ButtonAttribute diff --git a/arkoala-arkts/arkui/sdk/component/column.ets b/arkoala-arkts/arkui/sdk/component/column.ets index 194eac7139..3c6a839770 100644 --- a/arkoala-arkts/arkui/sdk/component/column.ets +++ b/arkoala-arkts/arkui/sdk/component/column.ets @@ -73,8 +73,8 @@ export class ArkColumnStyle extends ArkCommonMethodStyle implements ColumnAttrib @memo @ComponentBuilder -export function Column( +export declare function Column( options?: ColumnOptions | ColumnOptionsV2, @memo content_?: () => void, -): ColumnAttribute { throw new Error("")} +): ColumnAttribute diff --git a/arkoala-arkts/arkui/sdk/component/text.ets b/arkoala-arkts/arkui/sdk/component/text.ets index 9dabc878c7..5f400a4cc5 100644 --- a/arkoala-arkts/arkui/sdk/component/text.ets +++ b/arkoala-arkts/arkui/sdk/component/text.ets @@ -381,8 +381,8 @@ export declare class TextController { @memo @ComponentBuilder -export function Text( +export declare function Text( content?: string | Resource, value?: TextOptions, @memo content_?: () => void, -): TextAttribute { throw new Error("")} +): TextAttribute diff --git a/arkoala-arkts/trivial/user/src/ets/page1.ets b/arkoala-arkts/trivial/user/src/ets/page1.ets index f8a14506a5..3dc23e1441 100644 --- a/arkoala-arkts/trivial/user/src/ets/page1.ets +++ b/arkoala-arkts/trivial/user/src/ets/page1.ets @@ -25,6 +25,16 @@ struct TestConsume { @Consume('BigYearNumber') @Watch('changeBackgroundColor') state: number @State @Watch('changeBackgroundColor') @Watch('inc') anotherState: number = 10000 + @Builder + myBuilder(): void { + Column() { + Button('') { + Text("CONTEXT") + }.height(50).width(200) + } + } + + build() { Button(`Consume: ` + this.state) .width(200).height(100) -- Gitee