!13443 De-anonymous for counter, data_panel, gauge, image and text_clock

Merge pull request !13443 from 李游/jiongfeng_counter
This commit is contained in:
openharmony_ci 2024-09-21 11:26:04 +00:00 committed by Gitee
commit feae451597
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 336 additions and 6 deletions

View File

@ -163,7 +163,18 @@ declare class CounterAttribute extends CommonMethod<CounterAttribute> {
* @atomicservice
* @since 11
*/
onInc(event: () => void): CounterAttribute;
/**
* Listen to the event that the value increases.
*
* @param { VoidCallback } event
* @returns { CounterAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 14
*/
onInc(event: VoidCallback): CounterAttribute;
/**
* Listens to the number decrease event.
@ -203,7 +214,18 @@ declare class CounterAttribute extends CommonMethod<CounterAttribute> {
* @atomicservice
* @since 11
*/
onDec(event: () => void): CounterAttribute;
/**
* Listens to the number decrease event.
*
* @param { VoidCallback } event
* @returns { CounterAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 14
*/
onDec(event: VoidCallback): CounterAttribute;
/**
* Indicates whether the decrease button of counter component is available or not.

View File

@ -132,7 +132,7 @@ declare enum DataPanelType {
* @atomicservice
* @since 11
*/
declare type ColorStop = {
declare interface ColorStop {
/**
* Color property.
* @type { ResourceColor } color - the color value.

View File

@ -18,6 +18,126 @@
* @kit ArkUI
*/
/**
* Defines Gauge constructor options.
*
* @interface GaugeOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 14
*/
interface GaugeOptions {
/**
* Set current data value.
*
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
* Set current data value.
*
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
* Set current data value.
*
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
* Set current data value.
*
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
value: number;
/**
* Set current segment minimum value.
*
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
* Set current segment minimum value.
*
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
* Set current segment minimum value.
*
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
* Set current segment minimum value.
*
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
min?: number;
/**
* Set current segment maximum value.
*
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
* Set current segment maximum value.
*
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
* Set current segment maximum value.
*
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
* Set current segment maximum value.
*
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
max?: number;
}
/**
* Defines the Gauge component.
*
@ -99,7 +219,18 @@ interface GaugeInterface {
* @atomicservice
* @since 11
*/
(options: { value: number; min?: number; max?: number }): GaugeAttribute;
/**
* Called when the gauge component is used.
*
* @param { GaugeOptions } options - Gauge options.
* @returns { GaugeAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 14
*/
(options: GaugeOptions): GaugeAttribute;
}
/**

View File

@ -465,6 +465,91 @@ interface ImageInterface {
(src: PixelMap | ResourceStr | DrawableDescriptor, imageAIOptions: ImageAIOptions): ImageAttribute;
}
/**
* Defines source size of image.
*
* @interface ImageSourceSize
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 14
*/
interface ImageSourceSize {
/**
* Set width.
*
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
* Set width.
*
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
* Set width.
*
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
* Set width.
*
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
width: number;
/**
* Set height.
*
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
* Set height.
*
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
* Set height.
*
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
* Set height.
*
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
height: number;
}
/**
* @extends CommonMethod<ImageAttribute>
* @syscap SystemCapability.ArkUI.ArkUI.Full
@ -916,7 +1001,19 @@ declare class ImageAttribute extends CommonMethod<ImageAttribute> {
* @atomicservice
* @since 11
*/
sourceSize(value: { width: number; height: number }): ImageAttribute;
/**
* Specifies the picture decoding size.
* The original picture is decoded into a picture of a specified size. The unit of the number type is px.
*
* @param { ImageSourceSize } value - Image source size.
* @returns { ImageAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 14
*/
sourceSize(value: ImageSourceSize): ImageAttribute;
/**
* Sets the synchronous or asynchronous mode for image loading.

View File

@ -159,6 +159,72 @@ declare interface TextClockConfiguration extends CommonConfiguration<TextClockCo
timeValue: number;
}
/**
* Options to construct TextClock component.
*
* @interface TextClockOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 14
*/
declare interface TextClockOptions {
/**
* Time zone offset.
*
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
* Time zone offset.
*
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
* Time zone offset.
*
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
timeZoneOffset?: number;
/**
* TextClock controller.
*
* @type { ?TextClockController }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
* TextClock controller.
*
* @type { ?TextClockController }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
* TextClock controller.
*
* @type { ?TextClockController }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
controller?: TextClockController
}
/**
* TextClock component, which provides the text clock capability.
*
@ -222,7 +288,21 @@ interface TextClockInterface {
* @atomicservice
* @since 11
*/
(options?: { timeZoneOffset?: number; controller?: TextClockController }): TextClockAttribute;
/**
* Construct the text clock component.
* Specifies the current time zone.
* The valid value is an integer ranging from - 14 to 12,
* Where a negative value indicates the eastern time zone, for example, -8.
*
* @param { TextClockOptions } [options] - TextClock options.
* @returns { TextClockAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 14
*/
(options?: TextClockOptions): TextClockAttribute;
}
/**