mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 01:11:35 +00:00
!13443 De-anonymous for counter, data_panel, gauge, image and text_clock
Merge pull request !13443 from 李游/jiongfeng_counter
This commit is contained in:
commit
feae451597
26
api/@internal/component/ets/counter.d.ts
vendored
26
api/@internal/component/ets/counter.d.ts
vendored
@ -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.
|
||||
|
2
api/@internal/component/ets/data_panel.d.ts
vendored
2
api/@internal/component/ets/data_panel.d.ts
vendored
@ -132,7 +132,7 @@ declare enum DataPanelType {
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
*/
|
||||
declare type ColorStop = {
|
||||
declare interface ColorStop {
|
||||
/**
|
||||
* Color property.
|
||||
* @type { ResourceColor } color - the color value.
|
||||
|
133
api/@internal/component/ets/gauge.d.ts
vendored
133
api/@internal/component/ets/gauge.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
99
api/@internal/component/ets/image.d.ts
vendored
99
api/@internal/component/ets/image.d.ts
vendored
@ -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.
|
||||
|
82
api/@internal/component/ets/text_clock.d.ts
vendored
82
api/@internal/component/ets/text_clock.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user