diff --git a/api/@ohos.arkui.advanced.ProgressButton.d.ets b/api/@ohos.arkui.advanced.ProgressButton.d.ets index af298952447b72390d373b7e4a9f34219e77de3b..21b32653bc474f8b8770b5bee44aa7649df7316c 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