From 293c45bae93ab731798c0f9f7601e6a24a604287 Mon Sep 17 00:00:00 2001 From: yuxiaofei9 Date: Wed, 25 Jun 2025 19:26:41 +0800 Subject: [PATCH] =?UTF-8?q?[feate]=E9=AB=98=E7=BA=A7=E7=BB=84=E4=BB=B6Swip?= =?UTF-8?q?eRefresher/SplitLayout1.2=E8=AF=AD=E6=B3=95=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yuxiaofei9 --- api/@ohos.arkui.advanced.SplitLayout.d.ets | 41 +++++++++++++------ api/@ohos.arkui.advanced.SwipeRefresher.d.ets | 30 +++++++++++--- 2 files changed, 53 insertions(+), 18 deletions(-) diff --git a/api/@ohos.arkui.advanced.SplitLayout.d.ets b/api/@ohos.arkui.advanced.SplitLayout.d.ets index d32452e04f..0544d4f482 100644 --- a/api/@ohos.arkui.advanced.SplitLayout.d.ets +++ b/api/@ohos.arkui.advanced.SplitLayout.d.ets @@ -17,10 +17,12 @@ * @file * @kit ArkUI */ - - - - +/*** if arkts 1.2 */ +import { ResourceStr } from './arkui/component/units'; +import { State, Prop } from './arkui/stateManagement/decorator'; +import { Component } from './arkui/component/customComponent'; +import { BuilderParam, Builder } from './arkui/component/builder'; +/*** endif */ /** * Declare SplitLayout.The SplitLayout is used for upper and lower graphic layouts. @@ -31,7 +33,8 @@ * Declare SplitLayout.The SplitLayout is used for upper and lower graphic layouts. * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ @Component export declare struct SplitLayout { @@ -46,9 +49,10 @@ export declare struct SplitLayout { * @type { container: () => void }. * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - @BuilderParam container: () => void; + @BuilderParam container: () => void; /** * Image in the layout. @@ -61,7 +65,8 @@ export declare struct SplitLayout { * @type { ResourceStr }. * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ @State mainImage: ResourceStr; @@ -76,7 +81,8 @@ export declare struct SplitLayout { * @type { ResourceStr }. * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ @Prop primaryText: ResourceStr; @@ -91,7 +97,8 @@ export declare struct SplitLayout { * @type { ?ResourceStr }. * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ @Prop secondaryText?: ResourceStr; @@ -106,7 +113,17 @@ export declare struct SplitLayout { * @type { ?ResourceStr }. * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ @Prop tertiaryText?: ResourceStr; -} \ No newline at end of file + + /** + * The method to build component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + @Builder build(): void; +} diff --git a/api/@ohos.arkui.advanced.SwipeRefresher.d.ets b/api/@ohos.arkui.advanced.SwipeRefresher.d.ets index 25e3b6a78d..38e115e87d 100644 --- a/api/@ohos.arkui.advanced.SwipeRefresher.d.ets +++ b/api/@ohos.arkui.advanced.SwipeRefresher.d.ets @@ -17,6 +17,12 @@ * @file * @kit ArkUI */ +/*** if arkts 1.2 */ +import { ResourceStr } from './arkui/component/units'; +import { Prop } from './arkui/stateManagement/decorator'; +import { Component } from './arkui/component/customComponent'; +import { Builder } from './arkui/component/builder'; +/*** endif */ /** * Declare component SwipeRefresher @@ -27,7 +33,8 @@ * Declare component SwipeRefresher * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ @Component export declare struct SwipeRefresher { @@ -39,12 +46,13 @@ export declare struct SwipeRefresher { */ /** * Sets the content when loading. - * @type { string } + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - @Prop content?: string; + @Prop content?: ResourceStr; /** * Whether the component is loading. @@ -57,7 +65,17 @@ export declare struct SwipeRefresher { * type { boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ @Prop isLoading: boolean; -} \ No newline at end of file + + /** + * The method to build component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + @Builder build(): void; +} -- Gitee