From 5e66ea247696290c2518c7f3a92ba1d94cff8773 Mon Sep 17 00:00:00 2001 From: quguiren Date: Fri, 29 Aug 2025 09:02:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E7=BA=A7=E7=BB=84=E4=BB=B6ProgressBut?= =?UTF-8?q?ton=E6=B7=BB=E5=8A=A0=E8=B7=A8=E5=B9=B3=E5=8F=B0=E6=A0=87?= =?UTF-8?q?=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: quguiren --- api/@ohos.arkui.advanced.ProgressButton.d.ets | 95 ++++++++++++++++++- 1 file changed, 94 insertions(+), 1 deletion(-) diff --git a/api/@ohos.arkui.advanced.ProgressButton.d.ets b/api/@ohos.arkui.advanced.ProgressButton.d.ets index af29895244..21b32653bc 100644 --- a/api/@ohos.arkui.advanced.ProgressButton.d.ets +++ b/api/@ohos.arkui.advanced.ProgressButton.d.ets @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023-2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2025 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 @@ -29,6 +29,13 @@ * @atomicservice * @since 11 */ +/** + * Declare Component ProgressButton + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ @Component export declare struct ProgressButton { /** @@ -44,6 +51,14 @@ export declare struct ProgressButton { * @atomicservice * @since 11 */ + /** + * Sets the ProgressButton progress. + * @type { number }. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ @Prop progress: number; /** @@ -82,6 +97,14 @@ export declare struct ProgressButton { * @atomicservice * @since 11 */ + /** + * Sets the ProgressButton progressButtonWidth. + * @type { ?Length }. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ progressButtonWidth?: Length; /** @@ -97,6 +120,14 @@ export declare struct ProgressButton { * @atomicservice * @since 11 */ + /** + * Sets the ProgressButton clickCallback. + * @type { () => void }. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ clickCallback: () => void; /** @@ -112,6 +143,14 @@ export declare struct ProgressButton { * @atomicservice * @since 11 */ + /** + * Sets the ProgressButton enable state. + * @type { boolean }. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ @Prop enable: boolean; /** @@ -122,6 +161,15 @@ export declare struct ProgressButton { * @atomicservice * @since 18 */ + /** + * Set Color options of the ProgressButton. + * + * @type { ?ProgressButtonColorOptions } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ @Prop colorOptions?: ProgressButtonColorOptions; /** @@ -144,6 +192,15 @@ export declare struct ProgressButton { * @atomicservice * @since 18 */ +/** + * Declare Color options of the ProgressButton. + * + * @interface ProgressButtonColorOptions + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ export declare interface ProgressButtonColorOptions { /** @@ -154,6 +211,15 @@ export declare interface ProgressButtonColorOptions { * @atomicservice * @since 18 */ + /** + * Set progress color of the ProgressButton. + * + * @type { ?ResourceColor }. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ progressColor?: ResourceColor; /** @@ -164,6 +230,15 @@ export declare interface ProgressButtonColorOptions { * @atomicservice * @since 18 */ + /** + * Set border color of the ProgressButton. + * + * @type { ?ResourceColor }. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ borderColor?: ResourceColor; /** @@ -174,6 +249,15 @@ export declare interface ProgressButtonColorOptions { * @atomicservice * @since 18 */ + /** + * Set text color of the ProgressButton. + * + * @type { ?ResourceColor }. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ textColor?: ResourceColor; /** @@ -184,5 +268,14 @@ export declare interface ProgressButtonColorOptions { * @atomicservice * @since 18 */ + /** + * Set background color of the ProgressButton. + * + * @type { ?ResourceColor }. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ backgroundColor?: ResourceColor; } \ No newline at end of file -- Gitee