diff --git a/api/@internal/component/ets/middle_class.d.ts b/api/@internal/component/ets/middle_class.d.ts index 6470485b21e0afefcdc48c33a5d8011c3fcd0e85..adad7410a1fd41cc46380f309ee2a7f55e65b15a 100644 --- a/api/@internal/component/ets/middle_class.d.ts +++ b/api/@internal/component/ets/middle_class.d.ts @@ -1247,7 +1247,7 @@ declare class TSProgressAttribute extends CommonMethod { * @systemapi * @since 8 */ - create(object: { value: number; total?: number; style?: ProgressStyle }): ProgressAttribute; + create(options: ProgressOptions): ProgressAttribute; /** * Used for TS compiler. * @ignore diff --git a/api/@internal/component/ets/progress.d.ts b/api/@internal/component/ets/progress.d.ts index a0ba3f6ca0bd05f475ac92ec79cfa29989236059..9f1855b8dd4b5e8ae8c0b7426cd39b0fe11fab70 100644 --- a/api/@internal/component/ets/progress.d.ts +++ b/api/@internal/component/ets/progress.d.ts @@ -13,6 +13,78 @@ * limitations under the License. */ +/** + * Defines the option of Progress. + * @since 7 + */ + declare interface ProgressOptions { + /** + * Sets the value of Progress. + * @since 7 + */ + value: number; + + /** + * Sets the total of Progress. + * @since 7 + */ + total?: number; + + /** + * Sets the style of Progress. + * @since 7 + * @deprecated since 8 + */ + style?: ProgressStyle + + /** + * Sets the type of Progress. + * @since 8 + */ + type?: ProgressType +} + +/** + * Type of progress bar + * @since 8 + */ +declare enum ProgressType { + /** + * Linear progress bar style. + * @devices phone, tablet, car. + * @since 8 + */ + Linear, + + /** + * Ring progress bar. + * @devices phone, tablet, car. + * @since 8 + */ + Ring, + + /** + * Eclipse progress bar. + * @devices phone, tablet, car. + * @since 8 + */ + Eclipse, + + /** + * ScaleRing progress bar. + * @devices phone, tablet, car. + * @since 8 + */ + ScaleRing, + + /** + * Capsule progress bar. + * @devices phone, tablet, car. + * @since 8 + */ + Capsule, +} + /** * Defines style options for progress component. * @since 8 @@ -82,7 +154,7 @@ interface ProgressInterface { * Called when the progress bar is set. * @since 7 */ - (object: { value: number; total?: number; style?: ProgressStyle }): ProgressAttribute; + (options: ProgressOptions): ProgressAttribute; } /**