From 71e287e774483fa3e0d4cce10a701c6cdb006b60 Mon Sep 17 00:00:00 2001 From: sunqi Date: Thu, 31 Jul 2025 09:08:15 +0000 Subject: [PATCH] =?UTF-8?q?Swiper=E7=BB=84=E4=BB=B6=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E5=BC=8F=E8=8A=82=E7=82=B9=E6=9E=84=E5=BB=BA=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: sunqi --- api/arkui/FrameNode.static.d.ets | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/api/arkui/FrameNode.static.d.ets b/api/arkui/FrameNode.static.d.ets index 22843b16f5..bd4afec144 100644 --- a/api/arkui/FrameNode.static.d.ets +++ b/api/arkui/FrameNode.static.d.ets @@ -734,6 +734,16 @@ export declare abstract class TypedFrameNode extends FrameNode { * @since 20 */ export declare namespace typeNode { + /** + * Create a FrameNode. Overload for createNode functions. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + overload createNode { + createSwiperNode + } + /** * Define the Column type of FrameNode. * @@ -968,6 +978,45 @@ export declare namespace typeNode { */ export function createFlexNode(context: UIContext, nodeType: 'Flex'): Flex; + /** + * Define the Swiper type of FrameNode. + * + * @extends TypedFrameNode + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + abstract class SwiperFrameNode extends TypedFrameNode { + /** + * Initialize Swiper FrameNode. + * + * @param { SwiperController } [controller] - The controller for swiper. + * @returns { SwiperAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + abstract initialize(controller?: SwiperController): SwiperAttribute; + } + + /** + * Define the FrameNode type for Swiper. + * + * @typedef { SwiperFrameNode } Swiper + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + type Swiper = SwiperFrameNode; + + /** + * Create a FrameNode of Swiper type. + * + * @param { UIContext } context - uiContext used to create the FrameNode. + * @param { 'Swiper' } nodeType - node type. + * @returns { Swiper } - Return Swiper type FrameNode. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + export function createSwiperNode(context: UIContext, nodeType: 'Swiper'): Swiper; + /** * Define the RelativeContainer type of FrameNode. * -- Gitee