From fda7f249ae291c63a2c6c13394a5aa1ebea2bc82 Mon Sep 17 00:00:00 2001 From: jiangdayuan Date: Fri, 6 Jun 2025 10:11:56 +0800 Subject: [PATCH] add stepper api for arkts1.2 Signed-off-by: jiangdayuan Change-Id: Iac821d922b00343d4741a70a95b6f80371c9d13f --- api/@internal/component/ets/stepper.d.ts | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/api/@internal/component/ets/stepper.d.ts b/api/@internal/component/ets/stepper.d.ts index fc536b6f9e..c98dd1f726 100644 --- a/api/@internal/component/ets/stepper.d.ts +++ b/api/@internal/component/ets/stepper.d.ts @@ -23,27 +23,27 @@ import { CommonMethod } from './common' /*** endif */ /** - * Declare the StepperOptionalIndex. + * Declare the StepperOptions. * - * @interface StepperOptionalIndex + * @interface StepperOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 - * @arkts 1.2 + * @arkts 1.1&1.2 */ -interface StepperOptionalIndex { +interface StepperOptions { /** - * Get stepper index. + * Set the stepper index. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 - * @arkts 1.2 + * @arkts 1.1&1.2 */ - index?: number + index?: number; } /** @@ -99,20 +99,19 @@ interface StepperInterface { * @atomicservice * @since 11 */ - (value?: { index?: number }): StepperAttribute; - /** * Called when the stepper component is used. * - * @param { StepperOptionalIndex } value + * Anonymous Object Rectification. + * @param { StepperOptions } value * @returns { StepperAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 - * @arkts 1.2 + * @arkts 1.1&1.2 */ - (value?: StepperOptionalIndex): StepperAttribute; + (value?: StepperOptions): StepperAttribute; } /** -- Gitee