;
-
+
/**
* Sets the scale start and end animator of the image displayed before the custom builder preview is displayed.
*
@@ -20555,10 +20558,10 @@ declare interface ContextMenuOptions {
* @arkts 1.1&1.2
*/
arrowOffset?: Length;
-
+
/**
* The preview content of context menu.
- *
+ *
* @type { ?(MenuPreviewMode | CustomBuilder) }
* @default MenuPreviewMode.NONE
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -20696,7 +20699,7 @@ declare interface ContextMenuOptions {
* @arkts 1.1&1.2
*/
aboutToDisappear?: () => void;
-
+
/**
* The margin of menu's layoutRegion.
*
@@ -20709,7 +20712,7 @@ declare interface ContextMenuOptions {
* @arkts 1.1&1.2
*/
layoutRegionMargin?: Margin;
-
+
/**
* The preview animator options.
*
@@ -21111,7 +21114,7 @@ declare class ProgressMask {
* @arkts 1.1&1.2
*/
updateColor(value: ResourceColor): void;
-
+
/**
* Enable the breathe animation of mask.
*
@@ -21529,7 +21532,7 @@ declare interface ClickEffect {
/**
* Set scale number.
* This default scale is same as the scale of click effect level.
- *
+ *
* NOTE:
*
This parameter works based on the setting of ClickEffectLevel.
*
If level is set to ClickEffectLevel.LIGHT, the default value is 0.90.
@@ -21774,7 +21777,7 @@ declare interface MenuElement {
/**
* Defines the attribute modifier.
- *
+ *
* @interface AttributeModifier
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -21782,7 +21785,7 @@ declare interface MenuElement {
*/
/**
* Defines the attribute modifier.
- *
+ *
* @interface AttributeModifier
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -21793,7 +21796,7 @@ declare interface AttributeModifier {
/**
* Defines the normal update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -21801,7 +21804,7 @@ declare interface AttributeModifier {
*/
/**
* Defines the normal update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -21812,7 +21815,7 @@ declare interface AttributeModifier {
/**
* Defines the pressed update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -21820,7 +21823,7 @@ declare interface AttributeModifier {
*/
/**
* Defines the pressed update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -21831,7 +21834,7 @@ declare interface AttributeModifier {
/**
* Defines the focused update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -21839,7 +21842,7 @@ declare interface AttributeModifier {
*/
/**
* Defines the focused update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -21850,7 +21853,7 @@ declare interface AttributeModifier {
/**
* Defines the disabled update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -21858,7 +21861,7 @@ declare interface AttributeModifier {
*/
/**
* Defines the disabled update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -21869,7 +21872,7 @@ declare interface AttributeModifier {
/**
* Defines the selected update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -21877,7 +21880,7 @@ declare interface AttributeModifier {
*/
/**
* Defines the selected update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -21960,7 +21963,7 @@ declare interface AttributeModifier {
}
/**
* Defines the content modifier.
- *
+ *
* @interface ContentModifier
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -21972,7 +21975,7 @@ declare interface ContentModifier {
/**
* Defining applyContent function.
- *
+ *
* @returns { WrappedBuilder<[T]> }
* Component attribute class, which is used to distinguish different information required by different components
* after content areas are customized, for example, ButtonConfiguration for the Button component and
@@ -21999,7 +22002,7 @@ declare interface ContentModifier {
/**
* Defines the common configuration.
- *
+ *
* @interface CommonConfiguration
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22008,7 +22011,7 @@ declare interface ContentModifier {
* @arkts 1.1&1.2
*/
declare interface CommonConfiguration {
-
+
/**
* If the value is true, the contentModifier is available and can respond to operations such as triggerChange.
* If it is set to false, triggerChange operations are not responded.
@@ -22024,7 +22027,7 @@ declare interface CommonConfiguration {
/**
* Obtains the contentModifier instance object
- *
+ *
* @type { ContentModifier }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22496,7 +22499,7 @@ declare interface DragInteractionOptions {
* @arkts 1.1&1.2
*/
isMultiSelectionEnabled?: boolean;
-
+
/**
* Define whether to execute animation before preview floating.
*
@@ -22601,7 +22604,7 @@ declare interface InvertOptions {
/**
* Defines the low value of threshold
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22609,7 +22612,7 @@ declare interface InvertOptions {
*/
/**
* Defines the low value of threshold
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22621,7 +22624,7 @@ declare interface InvertOptions {
/**
* Defines the high value of threshold
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22629,7 +22632,7 @@ declare interface InvertOptions {
*/
/**
* Defines the high value of threshold
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22641,7 +22644,7 @@ declare interface InvertOptions {
/**
* Defines the threshold
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22649,7 +22652,7 @@ declare interface InvertOptions {
*/
/**
* Defines the threshold
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22658,10 +22661,10 @@ declare interface InvertOptions {
* @arkts 1.1&1.2
*/
threshold: number;
-
+
/**
*Defines the threshold range
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22669,7 +22672,7 @@ declare interface InvertOptions {
*/
/**
*Defines the threshold range
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22682,7 +22685,7 @@ declare interface InvertOptions {
/**
* Import the CircleShape type object for common method.
- *
+ *
* @typedef { import('../api/@ohos.arkui.shape').CircleShape } CircleShape
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22694,7 +22697,7 @@ declare type CircleShape = import('../api/@ohos.arkui.shape').CircleShape;
/**
* Import the EllipseShape type object for common method.
- *
+ *
* @typedef { import('../api/@ohos.arkui.shape').EllipseShape } EllipseShape
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22706,7 +22709,7 @@ declare type EllipseShape = import('../api/@ohos.arkui.shape').EllipseShape;
/**
* Import the PathShape type object for common method.
- *
+ *
* @typedef { import('../api/@ohos.arkui.shape').PathShape } PathShape
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22718,7 +22721,7 @@ declare type PathShape = import('../api/@ohos.arkui.shape').PathShape;
/**
* Import the RectShape type object for common method.
- *
+ *
* @typedef { import('../api/@ohos.arkui.shape').RectShape } RectShape
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -22946,7 +22949,8 @@ declare class CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width(value: Length): T;
/**
@@ -23004,7 +23008,8 @@ declare class CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
height(value: Length): T;
/**
@@ -23023,7 +23028,7 @@ declare class CommonMethod {
* @arkts 1.1&1.2
*/
height(heightValue: Length | LayoutPolicy): T;
-
+
/**
* Sets the drawModifier of the current component.
*
@@ -23433,7 +23438,7 @@ declare class CommonMethod {
* @arkts 1.1&1.2
*/
safeAreaPadding(paddingValue: Padding | LengthMetrics | LocalizedPadding): T;
-
+
/**
* Outer Margin.
*
@@ -23528,7 +23533,7 @@ declare class CommonMethod {
/**
* Add a background for the component.
- *
+ *
* Anonymous Object Rectification.
* @param { CustomBuilder } builder
* @param { BackgroundOptions } options
@@ -23700,7 +23705,7 @@ declare class CommonMethod {
* @arkts 1.1&1.2
*/
backgroundImage(src: ResourceStr | PixelMap, options?: BackgroundImageOptions): T;
-
+
/**
* Background image size
*
@@ -24699,7 +24704,7 @@ declare class CommonMethod {
onClick(event: (event: ClickEvent) => void): T;
/**
- * Trigger a click event when a click is clicked, move distance should smaller than distanceThreshold.
+ * Trigger a click event when a click is clicked, move distance should smaller than distanceThreshold.
*
* NOTE:
*
If the distanceThreshold value specified is less than or equal to 0 vp, it will be converted to the default value.
@@ -24779,7 +24784,7 @@ declare class CommonMethod {
* @since 20
*/
onAccessibilityHoverTransparent(callback: AccessibilityTransparentCallback): T;
-
+
/**
* Set hover effect.
*
@@ -24987,7 +24992,7 @@ declare class CommonMethod {
* Components that have default interaction logic, such as Button and TextInput, are focusable by default. Other
* components, such as Text and Image, are not focusable by default. Only focusable components can trigger a focus
* event.
- *
+ *
* @param { boolean } value
* @returns { T }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -25023,7 +25028,7 @@ declare class CommonMethod {
* @arkts 1.1&1.2
*/
tabStop(isTabStop: boolean): T;
-
+
/**
* Trigger a event when got focus.
*
@@ -28984,7 +28989,7 @@ declare class CommonMethod {
/**
* Add a blendMode effect to the current component.Cannot be used together with the blendMode interface.
- *
+ *
* @param { BlendMode | Blender } effect - When the effect type is BlendMode type, define Different hybrid modes.
* When the effect type is Blender type, Define the corresponding blending effect.
* @param { BlendApplyType } [type] - Different blend apply type
@@ -29531,7 +29536,7 @@ declare class CommonMethod {
* @since 10
*/
/**
- * Binds a modal page to the component, whose visibility is subject to the isShow settings.
+ * Bind content cover
*
* @param { boolean } isShow - true means display content, false means hide content.
* @param { CustomBuilder } builder - the content to be displayed.
@@ -29540,25 +29545,11 @@ declare class CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
bindContentCover(isShow: boolean, builder: CustomBuilder, type?: ModalTransition): T;
- /**
- * Binds a modal page to the component, whose visibility is subject to the isShow settings.
- *
- * @param { boolean | Bindable} isShow - true means display content, false means hide content.
- * @param { CustomBuilder } builder - the content to be displayed.
- * @param { ModalTransition } [type] - transition type.
- * @returns { T }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- bindContentCover(isShow: boolean | Bindable, builder: CustomBuilder, type?: ModalTransition): T;
-
/**
* Bind content cover
*
@@ -29580,24 +29571,10 @@ declare class CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
- */
- bindContentCover(isShow: boolean , builder: CustomBuilder, options?: ContentCoverOptions): T;
-
- /**
- * Bind content cover
- *
- * @param { boolean | Bindable } isShow - true means display content, false means hide content.
- * @param { CustomBuilder } builder - the content to be displayed.
- * @param { ContentCoverOptions } [options] - options of content cover.
- * @returns { T }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- bindContentCover(isShow: boolean | Bindable, builder: CustomBuilder, options?: ContentCoverOptions): T;
+ bindContentCover(isShow: boolean, builder: CustomBuilder, options?: ContentCoverOptions): T;
/**
* Binds a sheet page to the component, whose visibility is subject to the isShow settings.
@@ -29620,25 +29597,11 @@ declare class CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
bindSheet(isShow: boolean, builder: CustomBuilder, options?: SheetOptions): T;
- /**
- * Bind sheet
- *
- * @param { boolean | Bindable} isShow - true means display sheet, false means hide sheet.
- * @param { CustomBuilder } builder - the sheet to be displayed.
- * @param { SheetOptions } [options] - options of sheet.
- * @returns { T } - template type
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- bindSheet(isShow: boolean | Bindable, builder: CustomBuilder, options?: SheetOptions): T;
-
/**
* Sets styles for component state.
*
@@ -30020,7 +29983,7 @@ declare class CommonMethod {
* Sets the accessibility text.
* When a component does not contain a text attribute, you can use this API to set an accessibility
* text attribute, so that accessibility services can announce the specified content for the component.
- *
+ *
* @param { string } value - set accessibility text, default value is "".
* @returns { T }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -30031,7 +29994,7 @@ declare class CommonMethod {
* @arkts 1.1&1.2
*/
accessibilityText(value: string): T;
-
+
/**
* Sets accessibility next focus id
* @param { string } nextId - set component next accessibility focus id
@@ -30044,7 +30007,7 @@ declare class CommonMethod {
* @arkts 1.1&1.2
*/
accessibilityNextFocusId(nextId: string): T;
-
+
/**
* Sets the accessibility default foucs flag
* @param { boolean } focus - if the component is accessibility default focus,focus set true
@@ -30057,7 +30020,7 @@ declare class CommonMethod {
* @arkts 1.1&1.2
*/
accessibilityDefaultFocus(focus: boolean): T;
-
+
/**
* Sets accessibility same page mode
* @param { AccessibilitySamePageMode } pageMode - accessibility same page mode
@@ -30102,7 +30065,7 @@ declare class CommonMethod {
* @arkts 1.1&1.2
*/
accessibilityText(text: Resource): T;
-
+
/**
* Sets accessibility role,role indicates the custom type of the component
* @param { AccessibilityRoleType } role - set accessibility component type
@@ -30191,7 +30154,7 @@ declare class CommonMethod {
/**
* Sets accessibilityDescription
- *
+ *
* with support for resource references using Resource.
* This property provides additional context or explanation for the component,
* helping users understand the action or function it performs.
@@ -30733,7 +30696,7 @@ interface CommonInterface {
*/
/**
* Constructor
- *
+ *
* @returns { CommonAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
@@ -30750,7 +30713,7 @@ interface CommonInterface {
*/
/**
* Constructor
- *
+ *
* @returns { CommonAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -30914,7 +30877,7 @@ declare interface OverlayOptions {
* @arkts 1.1&1.2
*/
align?: Alignment;
-
+
/**
* Defines offset type.
*
@@ -31913,7 +31876,7 @@ declare interface LinearGradientBlurOptions {
/**
* Define motion blur anchor coordinates.
- *
+ *
* @interface MotionBlurAnchor
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -31946,7 +31909,7 @@ declare interface MotionBlurAnchor {
/**
* Define motion blur options.
- *
+ *
* @interface MotionBlurOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -31967,7 +31930,7 @@ declare interface MotionBlurOptions {
radius: number;
/**
* Define motion blur anchor coordinates.
- *
+ *
* @type { MotionBlurAnchor }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
@@ -32318,7 +32281,7 @@ declare interface Layoutable {
* @arkts 1.1&1.2
*/
getPadding() : DirectionalEdgesT,
-
+
/**
* Obtains the border width of the child component.
*
@@ -32503,7 +32466,7 @@ declare interface SizeResult {
* @arkts 1.1&1.2
*/
declare interface MeasureResult extends SizeResult {
-
+
}
/**
@@ -32600,19 +32563,6 @@ declare type RouterPageInfo = uiObserver.RouterPageInfo;
*/
declare type UIContext = import('../api/@ohos.arkui.UIContext').UIContext;
-/**
- * UIContext.
- *
- * @typedef { _UIContext } UIContext
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @stagemodelonly
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
-export type UIContext = _UIContext;
-
/**
* DrawContext
*
@@ -32624,19 +32574,6 @@ export type UIContext = _UIContext;
*/
declare type DrawContext = import('../api/arkui/Graphics').DrawContext;
-/**
- * DrawContext.
- *
- * @typedef { _DrawContext } DrawContext
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @stagemodelonly
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
-export type DrawContext = _DrawContext;
-
/**
* VisualEffect
*
@@ -32867,7 +32804,7 @@ declare class CustomComponentV2 extends BaseCustomComponent {
/**
* Invoked when a reusable custom component managed by state management V2
* is taken from the reuse pool and reinserted into the node tree.
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
@@ -33057,7 +32994,7 @@ declare class BaseCustomComponent extends CommonAttribute {
/**
* The onWillApplyTheme function is a custom hook to get active theme object from the context
- *
+ *
* @param { Theme } theme - Custom theme init params.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -33066,7 +33003,7 @@ declare class BaseCustomComponent extends CommonAttribute {
*/
/**
* The onWillApplyTheme function is a custom hook to get active theme object from the context, it is migrated from class CustomComponent.
- *
+ *
* @param { Theme } theme - Custom theme init params.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -33147,7 +33084,7 @@ declare class BaseCustomComponent extends CommonAttribute {
* Invoked each time the page is displayed, for example, during page redirection.
* When the application is switched to the foreground.
* It works only for the custom components decorated by **@Entry**.
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
@@ -33155,7 +33092,7 @@ declare class BaseCustomComponent extends CommonAttribute {
* Invoked each time the page is displayed, for example, during page redirection.
* When the application is switched to the foreground.
* It works only for the custom components decorated by **@Entry**.
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
@@ -33164,7 +33101,7 @@ declare class BaseCustomComponent extends CommonAttribute {
* Invoked each time the page is displayed, for example, during page redirection.
* When the application is switched to the foreground.
* It works only for the custom components decorated by **@Entry**.
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
@@ -33174,7 +33111,7 @@ declare class BaseCustomComponent extends CommonAttribute {
* Invoked each time the page is displayed, for example, during page redirection.
* When the application is switched to the foreground.
* It works only for the custom components decorated by **@Entry**.
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
@@ -33186,7 +33123,7 @@ declare class BaseCustomComponent extends CommonAttribute {
* Invoked each time the page is hidden, for example, during page redirection.
* When the application is switched to the background.
* It works only for the custom components decorated by **@Entry**.
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
@@ -33194,7 +33131,7 @@ declare class BaseCustomComponent extends CommonAttribute {
* Invoked each time the page is hidden, for example, during page redirection.
* When the application is switched to the background.
* It works only for the custom components decorated by **@Entry**.
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
@@ -33203,7 +33140,7 @@ declare class BaseCustomComponent extends CommonAttribute {
* Invoked each time the page is hidden, for example, during page redirection.
* When the application is switched to the background.
* It works only for the custom components decorated by **@Entry**.
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
@@ -33213,7 +33150,7 @@ declare class BaseCustomComponent extends CommonAttribute {
* Invoked each time the page is hidden, for example, during page redirection.
* When the application is switched to the background.
* It works only for the custom components decorated by **@Entry**.
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
@@ -33290,6 +33227,7 @@ declare class BaseCustomComponent extends CommonAttribute {
*/
onFormRecover?(statusData: string): void;
+
/**
* onBackPress Method
*
@@ -33297,7 +33235,7 @@ declare class BaseCustomComponent extends CommonAttribute {
* It works only for the custom components decorated by @Entry.
* The value **true** means that the page executes its own return logic.
* And **false** (default) means that the default return logic is used.
- *
+ *
* @returns { void | boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
@@ -33309,7 +33247,7 @@ declare class BaseCustomComponent extends CommonAttribute {
* It works only for the custom components decorated by @Entry.
* The value **true** means that the page executes its own return logic.
* And **false** (default) means that the default return logic is used.
- *
+ *
* @returns { void | boolean } true means that the page itself processes the return logic.
* false means that the default return logic is used.
* If no value is returned, the default return logic is used.
@@ -33324,7 +33262,7 @@ declare class BaseCustomComponent extends CommonAttribute {
* It works only for the custom components decorated by @Entry.
* The value **true** means that the page executes its own return logic.
* And **false** (default) means that the default return logic is used.
- *
+ *
* @returns { void | boolean } true means that the page itself processes the return logic.
* false means that the default return logic is used.
* If no value is returned, the default return logic is used.
@@ -33338,7 +33276,7 @@ declare class BaseCustomComponent extends CommonAttribute {
* It works only for the custom components decorated by @Entry.
* The value **true** means that the page executes its own return logic.
* And **false** (default) means that the default return logic is used.
- *
+ *
* @returns { void | boolean } true means that the page itself processes the return logic.
* false means that the default return logic is used.
* If no value is returned, the default return logic is used.
@@ -33466,7 +33404,7 @@ declare class BaseCustomComponent extends CommonAttribute {
* @since 18
*/
queryNavDestinationInfo(): NavDestinationInfo | undefined;
-
+
/**
* Queries the information about the nearest **NavDestination** component
* in the navigation stack for a custom component.
@@ -33482,7 +33420,7 @@ declare class BaseCustomComponent extends CommonAttribute {
/**
* Queries the **Navigation** information of this custom component.
- *
+ *
* @returns { NavigationInfo | undefined } The navigation information, or undefined if it is not available
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -33491,7 +33429,7 @@ declare class BaseCustomComponent extends CommonAttribute {
*/
/**
* Queries the **Navigation** information of this custom component.
- *
+ *
* @returns { NavigationInfo | undefined } The navigation information, or undefined if it is not available
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -33752,7 +33690,7 @@ declare interface CaretOffset {
* @arkts 1.1&1.2
*/
x: number;
-
+
/**
* Get the y of the relative position.
*
@@ -33832,7 +33770,7 @@ declare abstract class TextContentControllerBase {
* the return value contains the position information relative to the component.
*
The location information in the return value is the location of the caret relative to the editable component.
*
- *
+ *
* @returns { CaretOffset } index and relative position of the CaretOffset.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -33881,7 +33819,7 @@ declare abstract class TextContentControllerBase {
/**
* Get the lines number of the text content.
* The getTextContentLineCount type is used to obtain the number of lines of the edited text.
- *
+ *
* @returns { number } Text content line count
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -34111,8 +34049,8 @@ declare class ScrollableCommonMethod extends CommonMethod {
/**
* Sets the nested scrolling options.
*
- * @param { NestedScrollOptions } value - Nested scrolling options.
- * @returns { T }
+ * @param { NestedScrollOptions } value - options for nested scrolling.
+ * @returns { T }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
@@ -34125,7 +34063,7 @@ declare class ScrollableCommonMethod extends CommonMethod {
* Sets whether to support scroll gestures.
*
* @param { boolean } value - Whether to support scroll gestures.
Default value: true
- * @returns { T }
+ * @returns { T }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
@@ -34138,7 +34076,7 @@ declare class ScrollableCommonMethod extends CommonMethod {
* Sets the friction coefficient.
*
* @param { number | Resource } value - Friction coefficient.
- * @returns { T }
+ * @returns { T }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
@@ -34270,7 +34208,7 @@ declare class ScrollableCommonMethod extends CommonMethod {
/**
* Sets the content clipping area for this scrollable component.
- *
+ *
* @param { ContentClipMode | RectShape } clip - A value from enum ContentClipMode or a customized clip rect.
* @returns { T }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -34293,10 +34231,10 @@ declare class ScrollableCommonMethod extends CommonMethod {
* @arkts 1.1&1.2
*/
digitalCrownSensitivity(sensitivity: Optional): T;
-
+
/**
* Sets whether to enable the back-to-top feature for a scrollable component when the status bar is touched.
- *
+ *
* @param { boolean } backToTop - Whether to enable the back-to-top feature for a scrollable component when the status bar is touched.
*
Default value: false
* @returns { T }
@@ -34337,14 +34275,14 @@ declare class ScrollResult {
* @param { number } scrollOffset - offset this frame will scroll, which may or may not be reached.
* @param { ScrollState } scrollState - current scroll state.
* @param { ScrollSource } scrollSource - source of current scroll.
- * @returns { void | ScrollResult } the remain offset for the scrollable,
+ * @returns { void | ScrollResult } the remain offset for the scrollable,
* same as scrollOffset when no ScrollResult is returned.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
-declare type OnWillScrollCallback =
+declare type OnWillScrollCallback =
(scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource) => void | ScrollResult;
/**
@@ -34520,8 +34458,9 @@ declare class DynamicNode {
* @since 20
*/
onMove(handler: Optional, eventHandler: ItemDragEventHandler): T;
-
- /**
+}
+
+/**
* Define DynamicNode.
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -34558,7 +34497,6 @@ declare interface DynamicNode {
*/
onMove(handler: Optional, eventHandler: ItemDragEventHandler): this;
}
-}
/**
* Define EdgeEffect Options.
@@ -34662,7 +34600,7 @@ declare class ChildrenMainSize {
*
* @param { number } childDefaultSize - default main size, in vp. If the main axis is vertical, it indicates height.
* If the main axis is horizontal, it indicates width.
- * @throws { BusinessError } 401 - Parameter error. Possible causes:
+ * @throws { BusinessError } 401 - Parameter error. Possible causes:
*
1. Mandatory parameters are left unspecified.
*
2. Incorrect parameters types.
*
3. Parameter verification failed.
@@ -34679,7 +34617,7 @@ declare class ChildrenMainSize {
*
* @param { number } value - default main size, in vp. If the main axis is vertical, it indicates height.
* If the main axis is horizontal, it indicates width.
- * @throws { BusinessError } 401 - Parameter error. Possible causes:
+ * @throws { BusinessError } 401 - Parameter error. Possible causes:
*
1. Mandatory parameters are left unspecified.
*
2. Incorrect parameters types.
*
3. Parameter verification failed.
@@ -34710,7 +34648,7 @@ declare class ChildrenMainSize {
* @param { number } start - Zero-based index at which to start changing the children main size.
* @param { number } [deleteCount] - Indicating the number of children main size to remove from start.
* @param { Array } [childrenSize] - Add the new children main size, beginning from start.
- * @throws { BusinessError } 401 - Parameter error. Possible causes:
+ * @throws { BusinessError } 401 - Parameter error. Possible causes:
*
1. Mandatory parameters are left unspecified.
*
2. Incorrect parameters types.
*
3. Parameter verification failed.
@@ -34730,7 +34668,7 @@ declare class ChildrenMainSize {
*
* @param { number } index - index of child to be updated.
* @param { number } childSize - new section options.
- * @throws { BusinessError } 401 - Parameter error. Possible causes:
+ * @throws { BusinessError } 401 - Parameter error. Possible causes:
*
1. Mandatory parameters are left unspecified.
*
2. Incorrect parameters types.
*
3. Parameter verification failed.
@@ -34907,6 +34845,17 @@ declare interface LightSource {
* @since 12
*/
declare function wrapBuilder(builder: (...args: Args) => void): WrappedBuilder;
+/**
+ * Defining wrapBuilder function.
+ * @param { function } builder
+ * @returns { WrappedBuilder }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare function wrapBuilder>(builder: (args: Args) => void): WrappedBuilder;
/**
* The WrappedBuilder object is also a template class.
@@ -34956,6 +34905,39 @@ declare class WrappedBuilder {
}
+
+/**
+ * Defines the WrappedBuilder class.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare class WrappedBuilder> {
+
+ /**
+ * @type { function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ builder: (args: Args) => void;
+
+ /**
+ * @param { function } builder
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(builder: (args: Args) => void);
+}
+
+
/**
* Defines the overall animation parameters of the keyframe animation.
*
@@ -35187,7 +35169,7 @@ export type Callback = (data: T) => V;
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
-declare type HoverCallback = (isHover: boolean, event: HoverEvent) => void
+declare type HoverCallback = (isHover: boolean, event: HoverEvent) => void;
/**
* Defines the callback type used in accessibility hover events.
@@ -35330,7 +35312,7 @@ declare interface UICommonEvent {
/**
* Set or reset the callback is triggered when component uninstallation disappears.
- *
+ *
* @param { Callback | undefined } callback - The callback will be triggered when component uninstallation disappears. If set undefined will reset the target callback.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -35379,7 +35361,7 @@ declare interface UICommonEvent {
/**
* Set or reset the callback which is triggered when has a hover event.
- *
+ *
* @param { HoverCallback | undefined } callback - The callback will be triggered when has a hover event. If set undefined will reset the target callback.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -35521,7 +35503,7 @@ declare interface UIGestureEvent {
* @since 12
*/
addGesture(gesture: GestureHandler, priority?: GesturePriority, mask?: GestureMask): void;
-
+
/**
* Add a gesture bound to the component.
*
@@ -35586,7 +35568,7 @@ declare interface UIGestureEvent {
/**
* Defines the gesture modifier.
- *
+ *
* @interface GestureModifier
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -35597,7 +35579,7 @@ declare interface UIGestureEvent {
declare interface GestureModifier {
/**
* Defines the gesture update function.
- *
+ *
* @param { UIGestureEvent } event
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -35782,7 +35764,7 @@ declare enum HoverModeAreaType {
/**
* Defines a range of dates.
- *
+ *
* @interface DateRange
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -35834,7 +35816,7 @@ declare interface TerminationInfo {
* @arkts 1.2
*/
code: number;
-
+
/**
* Defines the additional termination information.
*
@@ -35901,15 +35883,3 @@ export declare interface Bindable {
* @arkts 1.2
*/
export declare function $$(value: T): Bindable;
-
-/**
- * Apply style function on this CommonMethod.
- *
- * @param { T } this
- * @param { CustomStyles } customStyles
- * @returns { T }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 20
- * @arkts 1.2
- */
-export declare function applyStyles(this: T, customStyles: CustomStyles): T;
diff --git a/api/@internal/component/ets/component3d.d.ts b/api/@internal/component/ets/component3d.d.ts
index fce5aa306e..bb6051b8e6 100644
--- a/api/@internal/component/ets/component3d.d.ts
+++ b/api/@internal/component/ets/component3d.d.ts
@@ -106,6 +106,7 @@ declare interface SceneOptions {
* @atomicservice
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
+ * @component
*/
interface Component3DInterface {
/**
diff --git a/api/@internal/component/ets/custom_dialog_controller.d.ts b/api/@internal/component/ets/custom_dialog_controller.d.ts
index ad2578e930..49daae0666 100644
--- a/api/@internal/component/ets/custom_dialog_controller.d.ts
+++ b/api/@internal/component/ets/custom_dialog_controller.d.ts
@@ -24,14 +24,12 @@ import {
DismissReason, BackgroundBlurStyleOptions, BackgroundEffectOptions
} from './common';
import { CustomBuilder } from './builder';
-import { ExtendableComponent } from './extendableComponent';
import { DialogAlignment } from './alertDialog';
import { Offset, ResourceColor, Dimension, BorderRadiuses, EdgeWidths, EdgeColors, EdgeStyles } from './units';
import { BorderStyle } from './enums';
import { LengthMetrics } from '../Graphics';
import { LevelMode, LevelOrder, ImmersiveMode } from '../../@ohos.promptAction';
import { CustomBuilder } from './builder';
-import { DismissDialogAction } from './actionSheet';
/*** endif */
/**
@@ -89,14 +87,14 @@ declare interface CustomDialogControllerOptions {
/**
* Custom builder function.
*
- * @type { CustomBuilder | ExtendableComponent }
+ * @type { CustomBuilder }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
- builder: CustomBuilder | ExtendableComponent;
+ builder: CustomBuilder;
/**
* Defines the cancel function.
@@ -713,7 +711,8 @@ declare interface CustomDialogControllerOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DismissDialogAction {
/**
@@ -723,7 +722,8 @@ declare interface DismissDialogAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dismiss: Callback;
@@ -734,7 +734,8 @@ declare interface DismissDialogAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
reason: DismissReason;
}
@@ -855,7 +856,7 @@ declare class CustomDialogController {
* @since 11
*/
close();
-
+
/**
* Closes the custom pop-up window. If the window is closed, the window does not take effect.
*
diff --git a/api/@internal/component/ets/date_picker.d.ts b/api/@internal/component/ets/date_picker.d.ts
index 6065059382..d3e463b4db 100644
--- a/api/@internal/component/ets/date_picker.d.ts
+++ b/api/@internal/component/ets/date_picker.d.ts
@@ -19,7 +19,7 @@
*/
/*** if arkts 1.2 */
-import { CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, Callback, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, BackgroundBlurStyleOptions, BackgroundEffectOptions, Optional, DateTimeOptions, Bindable } from './common'
+import { CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, Callback, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, BackgroundBlurStyleOptions, BackgroundEffectOptions, Optional, DateTimeOptions } from './common'
import { ResourceColor, Offset, VoidCallback } from './units'
import { DialogAlignment } from './alertDialog'
import { CrownSensitivity } from './enums'
@@ -300,29 +300,13 @@ declare interface DatePickerOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
selected?: Date;
-
- /**
- * Specifies the date selector check date or time selector check time.
- *
- * @type { ?(Date | Bindable) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- selected?: Date | Bindable;
/**
- * Date columns to be displayed.
- *
- * NOTE:
- *
In DatePickerDialog, with showTime=true, this parameter has no effect and the default three columns for year,
- *
month, and day are displayed.
- *
+ * Defines the mode of the date picker.
*
* @type { ?DatePickerMode }
* @default DatePickerMode.DATE - which means to display three columns: year, month, and day.
@@ -672,7 +656,7 @@ declare class DatePickerAttribute extends CommonMethod {
*/
enableHapticFeedback(enable: Optional): DatePickerAttribute;
- /**
+/**
* Can scroll loop if true is set, on the contrary it can not.
*
* @param { Optional } isLoop
@@ -805,7 +789,7 @@ declare interface DatePickerDialogOptions extends DatePickerOptions {
/**
* Whether to display the lunar calendar switch.
* The value true means to display the lunar calendar switch, and false means the opposite.
- *
+ *
* @type { ?boolean } value - indicates whether to show the switch to display the lunar.
* @default false
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -846,7 +830,7 @@ declare interface DatePickerDialogOptions extends DatePickerOptions {
*
With showTime=true, the mode parameter has no effect and the default three columns for year,
*
month, and day are displayed.
*
- *
+ *
* @type { ?boolean }
* @default false
* @syscap SystemCapability.ArkUI.ArkUI.Full
diff --git a/api/@internal/component/ets/ellipse.d.ts b/api/@internal/component/ets/ellipse.d.ts
index 4f9cd5433e..a9db624f8b 100644
--- a/api/@internal/component/ets/ellipse.d.ts
+++ b/api/@internal/component/ets/ellipse.d.ts
@@ -68,7 +68,7 @@ interface EllipseOptions {
* @atomicservice
* @since 11
*/
- /**
+/**
* Set width.
* Anonymous Object Rectification.
*
@@ -90,6 +90,18 @@ interface EllipseOptions {
* @since 20
*/
width?: Length;
+ /**
+ * Set width.
+ *
+ * @type { ?(string | number) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ width?: string | number;
/**
* Set height.
@@ -125,7 +137,7 @@ interface EllipseOptions {
* @atomicservice
* @since 11
*/
- /**
+/**
* Set height.
* Anonymous Object Rectification.
*
@@ -147,6 +159,18 @@ interface EllipseOptions {
* @since 20
*/
height?: Length;
+ /**
+ * Set height.
+ *
+ * @type { ?(string | number) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ height?: string | number;
}
/**
diff --git a/api/@internal/component/ets/embedded_component.d.ts b/api/@internal/component/ets/embedded_component.d.ts
index 1dca4bf8ee..192c8ff325 100644
--- a/api/@internal/component/ets/embedded_component.d.ts
+++ b/api/@internal/component/ets/embedded_component.d.ts
@@ -51,7 +51,7 @@ interface EmbeddedComponentInterface {
loader: import('../api/@ohos.app.ability.Want').default,
type: EmbeddedType
): EmbeddedComponentAttribute;
-
+
/**
* Construct the EmbeddedComponent.
* Called when the EmbeddedComponent is used.
@@ -120,7 +120,7 @@ declare class EmbeddedComponentAttribute extends CommonMethod): EmbeddedComponentAttribute;
-
+
/**
* Called when the provider of the embedded UI is terminated.
*
diff --git a/api/@internal/component/ets/enums.d.ts b/api/@internal/component/ets/enums.d.ts
index 8f3321da74..77bf76895d 100644
--- a/api/@internal/component/ets/enums.d.ts
+++ b/api/@internal/component/ets/enums.d.ts
@@ -18,10 +18,6 @@
* @kit ArkUI
*/
-/*** if arkts 1.2 */
-import curves from '../../@ohos.curves';
-/*** endif */
-
/**
* common enum of the checkbox shape
*
@@ -1888,7 +1884,8 @@ declare enum AnimationStatus {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum Curve {
/**
@@ -1919,7 +1916,8 @@ declare enum Curve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Linear,
@@ -1951,7 +1949,8 @@ declare enum Curve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Ease,
@@ -1983,7 +1982,8 @@ declare enum Curve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
EaseIn,
@@ -2015,7 +2015,8 @@ declare enum Curve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
EaseOut,
@@ -2047,7 +2048,8 @@ declare enum Curve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
EaseInOut,
@@ -2079,7 +2081,8 @@ declare enum Curve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FastOutSlowIn,
@@ -2111,7 +2114,8 @@ declare enum Curve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
LinearOutSlowIn,
@@ -2143,7 +2147,8 @@ declare enum Curve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FastOutLinearIn,
@@ -2175,7 +2180,8 @@ declare enum Curve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ExtremeDeceleration,
@@ -2207,7 +2213,8 @@ declare enum Curve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Sharp,
@@ -2239,7 +2246,8 @@ declare enum Curve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Rhythm,
@@ -2271,7 +2279,8 @@ declare enum Curve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Smooth,
@@ -2303,24 +2312,12 @@ declare enum Curve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Friction,
}
-/**
- * enum Curve.
- *
- * @typedef { curves.Curve } Curve
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
-export type Curve = curves.Curve;
-
/**
* Sets the state before and after the animation starts.
*
@@ -9182,7 +9179,8 @@ declare enum XComponentType {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
* @deprecated since 20
*/
NODE,
diff --git a/api/@internal/component/ets/folder_stack.d.ts b/api/@internal/component/ets/folder_stack.d.ts
index 6a2747be6a..3755d672b2 100644
--- a/api/@internal/component/ets/folder_stack.d.ts
+++ b/api/@internal/component/ets/folder_stack.d.ts
@@ -199,7 +199,7 @@ declare type OnFoldStatusChangeCallback = (event: OnFoldStatusChangeInfo) => voi
/**
* Callback when onHoverStatusChange.
- *
+ *
* Anonymous Object Rectification
* @typedef { function } OnHoverStatusChangeCallback
* @param { HoverEventParam } param - hover event param
diff --git a/api/@internal/component/ets/gesture.d.ts b/api/@internal/component/ets/gesture.d.ts
index 46e684bbe9..c9e761e808 100644
--- a/api/@internal/component/ets/gesture.d.ts
+++ b/api/@internal/component/ets/gesture.d.ts
@@ -2777,7 +2777,7 @@ declare class PanGestureOptions {
* @since arkts {'1.1':'18','1.2':'20'}
* @arkts 1.1&1.2
*/
- getDistance(): number;
+ getDistance(): number;
}
/**
diff --git a/api/@internal/component/ets/grid.d.ts b/api/@internal/component/ets/grid.d.ts
index efd47c1af2..101b1dbd6f 100644
--- a/api/@internal/component/ets/grid.d.ts
+++ b/api/@internal/component/ets/grid.d.ts
@@ -1283,7 +1283,7 @@ declare class GridAttribute extends ScrollableCommonMethod {
*/
alignItems(alignment: Optional): GridAttribute;
- /**
+ /**
* Sets the focus wrap mode of the grid.
*
* @param { Optional } mode - the focus wrap mode of the grid.
diff --git a/api/@internal/component/ets/image.d.ts b/api/@internal/component/ets/image.d.ts
index c93f0dce8a..72d7e101d4 100644
--- a/api/@internal/component/ets/image.d.ts
+++ b/api/@internal/component/ets/image.d.ts
@@ -20,6 +20,7 @@
/*** if arkts 1.2 */
import image from '../../@ohos.multimedia.image';
+import drawing from '../../@ohos.graphics.drawing';
import matrix4 from '../../@ohos.matrix4'
import { BusinessError } from '../../@ohos.base';
import { DrawableDescriptor } from '../../@ohos.arkui.drawableDescriptor';
@@ -27,7 +28,7 @@ import { ImageAIOptions, ImageAnalyzerConfig } from './imageCommon';
import { ResourceStr, ResourceColor, ColorFilter, EdgeWidths, ColorMetrics } from './units';
import { ImageFit, ImageRepeat, CopyOptions } from './enums';
import { Resource } from '../../global/resource';
-import { CommonMethod, PointLightStyle, PixelMap } from './common'
+import { CommonMethod, PointLightStyle, PixelMap } from './common';
/*** endif */
/**
@@ -57,6 +58,18 @@ declare type DrawableDescriptor = import ('../api/@ohos.arkui.drawableDescriptor
*/
declare type DrawingColorFilter = import('../api/@ohos.graphics.drawing').default.ColorFilter;
+/**
+ * Import the DrawingColorFilter type object for image color filter setting.
+ *
+ * @typedef { drawing.ColorFilter } DrawingColorFilter
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare type DrawingColorFilter = drawing.ColorFilter;
+
/**
* Enumerates all the levels available for the image resolution quality.
*
@@ -87,7 +100,19 @@ declare type ResolutionQuality = image.ResolutionQuality;
* @atomicservice
* @since 12
*/
-declare type DrawingLattice = import('../api/@ohos.graphics.drawing').default.Lattice;
+declare type DrawingLattice = import('../api/@ohos.graphics.drawing').default.Lattice;
+
+/**
+ * Lattice for dividing an image into grids.
+ *
+ * @typedef { drawing.Lattice } DrawingLattice
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare type DrawingLattice = drawing.Lattice;
/**
* Object matrix used for setting image transformations.
@@ -980,7 +1005,7 @@ declare class ImageAttribute extends CommonMethod {
* NOTE:
*
This attribute does not take effect when the parameter type of the component is AnimatedDrawableDescriptor.
*
- *
+ *
* @param { string | Resource | PixelMap } value - Placeholder image displayed during loading, Default value is null.
* @returns { ImageAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1125,7 +1150,8 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fillColor(value: ResourceColor): ImageAttribute;
@@ -1144,7 +1170,8 @@ declare class ImageAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fillColor(color: ResourceColor | ColorContent): ImageAttribute;
@@ -1591,7 +1618,8 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colorFilter(value: ColorFilter | DrawingColorFilter): ImageAttribute;
@@ -2281,7 +2309,7 @@ declare class ImageAttribute extends CommonMethod {
*
* If image loading takes a long time, follow the steps in [Reducing the Loading Time of Preset Images]{@link
* https://developer.huawei.com/consumer/en/doc/best-practices/bpta-texture-compression-improve-performance}
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
@@ -2464,7 +2492,7 @@ declare interface ImageError {
* @since arkts {'1.1':'11','1.2':'20'}
* @arkts 1.1&1.2
*/
- message: string
+ message: string;
/**
* Business Error.
@@ -2526,7 +2554,8 @@ declare interface ResizableOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
lattice?: DrawingLattice;
}
diff --git a/api/@internal/component/ets/image_animator.d.ts b/api/@internal/component/ets/image_animator.d.ts
index 32f8826119..c980a6cc31 100644
--- a/api/@internal/component/ets/image_animator.d.ts
+++ b/api/@internal/component/ets/image_animator.d.ts
@@ -20,7 +20,6 @@
/*** if arkts 1.2 */
import { Resource } from "../../global/resource";
-import image from '../../@ohos.multimedia.image'
import { CommonMethod, PixelMap } from './common'
import { AnimationStatus,FillMode } from './enums'
/*** endif */
diff --git a/api/@internal/component/ets/line.d.ts b/api/@internal/component/ets/line.d.ts
index 278f936daa..e94638a40e 100644
--- a/api/@internal/component/ets/line.d.ts
+++ b/api/@internal/component/ets/line.d.ts
@@ -104,6 +104,18 @@ interface LineOptions {
* @since 20
*/
width?: Length;
+ /**
+ * Width of the rectangle where the line resides.
+ *
+ * @type { ?(string | number) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ width?: string | number;
/**
* Height of the rectangle where the line resides.
@@ -161,6 +173,18 @@ interface LineOptions {
* @since 20
*/
height?: Length;
+ /**
+ * Height of the rectangle where the line resides.
+ *
+ * @type { ?(string | number) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ height?: string | number;
}
/**
diff --git a/api/@internal/component/ets/list.d.ts b/api/@internal/component/ets/list.d.ts
index 1f4439f34f..278f4e9041 100644
--- a/api/@internal/component/ets/list.d.ts
+++ b/api/@internal/component/ets/list.d.ts
@@ -871,7 +871,7 @@ declare class ListScroller extends Scroller {
* @param { number } index - Index of the ListItemGroup in List.
* @param { number } indexInGroup - Index of the ListItem in ListItemGroup.
* @returns { RectResult } Returns the size and position.
- * @throws { BusinessError } 401 - Parameter error. Possible causes:
+ * @throws { BusinessError } 401 - Parameter error. Possible causes:
*
1. Mandatory parameters are left unspecified.
*
2. Incorrect parameters types.
*
3. Parameter verification failed.
@@ -892,11 +892,11 @@ declare class ListScroller extends Scroller {
* visible in the display area. Otherwise, the value is considered invalid.
*
- When index or indexInGroup is set to an invalid value, the returned size and position are both 0.
*
- *
+ *
* @param { number } index - Index of the list item group in the list.
* @param { number } indexInGroup - Index of the list item in the list item group.
* @returns { RectResult } - Size of the list item in the list item group and its position relative to the list.
- * @throws { BusinessError } 401 - Parameter error. Possible causes:
+ * @throws { BusinessError } 401 - Parameter error. Possible causes:
*
1. Mandatory parameters are left unspecified.
*
2. Incorrect parameters types.
*
3. Parameter verification failed.
@@ -916,7 +916,7 @@ declare class ListScroller extends Scroller {
* @param { number } indexInGroup - Index of the ListItem in ListItemGroup.
* @param { boolean } smooth - If true, scroll to index item with animation. If false, scroll to index item without animation.
* @param { ScrollAlign } align - Sets the alignment mode of a specified index.
- * @throws { BusinessError } 401 - Parameter error. Possible causes:
+ * @throws { BusinessError } 401 - Parameter error. Possible causes:
*
1. Mandatory parameters are left unspecified.
*
2. Incorrect parameters types.
*
3. Parameter verification failed.
@@ -939,7 +939,7 @@ declare class ListScroller extends Scroller {
* @param { boolean } smooth - Whether to enable the smooth animation for scrolling to the item with the specified index.
* The value true means to enable that the smooth animation, and false means the opposite.
Default value: false
* @param { ScrollAlign } align - How the list item to scroll to is aligned with the container.
Default value: ScrollAlign.START
- * @throws { BusinessError } 401 - Parameter error. Possible causes:
+ * @throws { BusinessError } 401 - Parameter error. Possible causes:
*
1. Mandatory parameters are left unspecified.
*
2. Incorrect parameters types.
*
3. Parameter verification failed.
@@ -956,7 +956,7 @@ declare class ListScroller extends Scroller {
* Collapse all listItem.
*
* @param { CloseSwipeActionOptions } options - Options of close Swipe items.
- * @throws { BusinessError } 401 - Parameter error. Possible causes:
+ * @throws { BusinessError } 401 - Parameter error. Possible causes:
*
1. Mandatory parameters are left unspecified.
*
2. Incorrect parameters types.
*
3. Parameter verification failed.
@@ -971,9 +971,9 @@ declare class ListScroller extends Scroller {
* NOTE:
*
- A ListScroller must be bound to the List component.
*
- *
+ *
* @param { CloseSwipeActionOptions } options - Callback events for collapsing list items in the EXPANDED state.
- * @throws { BusinessError } 401 - Parameter error. Possible causes:
+ * @throws { BusinessError } 401 - Parameter error. Possible causes:
*
1. Mandatory parameters are left unspecified.
*
2. Incorrect parameters types.
*
3. Parameter verification failed.
@@ -1018,7 +1018,7 @@ declare class ListScroller extends Scroller {
* NOTE:
*
- The default value of the universal attribute clip is true for the List component.
*
- *
+ *
* @interface ListOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -1700,7 +1700,7 @@ declare class ListAttribute extends ScrollableCommonMethod {
* To produce a bounce effect when there is less than one screen of content,
* use the options parameter of the edgeEffect attribute.
*
- *
+ *
* @param { EdgeEffect } value - Effect used when the scroll boundary is reached. The spring and shadow effects are supported.
*
Default value: EdgeEffect.Spring
* @param { EdgeEffectOptions } options - Whether to enable the scroll effect when the component content is smaller than the component itself.
@@ -2271,7 +2271,7 @@ declare class ListAttribute extends ScrollableCommonMethod {
*/
/**
* Triggered when a child component enters or leaves the list display area.
- *
+ *
* @param { function } event
* @returns { ListAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -2452,7 +2452,7 @@ declare class ListAttribute extends ScrollableCommonMethod {
/**
* Triggered when a list item is deleted.
- *
+ *
* @param { function } event
* @returns { ListAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
diff --git a/api/@internal/component/ets/list_item.d.ts b/api/@internal/component/ets/list_item.d.ts
index 914f1fd993..e5149aa593 100644
--- a/api/@internal/component/ets/list_item.d.ts
+++ b/api/@internal/component/ets/list_item.d.ts
@@ -19,7 +19,7 @@
*/
/*** if arkts 1.2 */
-import { CommonMethod, Bindable } from './common';
+import { CommonMethod } from './common';
import { CustomBuilder } from './builder'
import { Length } from './units';
import { ComponentContent } from '../ComponentContent'
@@ -814,25 +814,11 @@ declare class ListItemAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
selected(value: boolean): ListItemAttribute;
- /**
- * Called when judging whether it is selected.
- * This parameter supports $$ for two-way binding of variables.
- *
- * @param { boolean | Bindable } value - if the listItem is selected.
- * @returns { ListItemAttribute } the attribute of the listItem.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- selected(value: boolean | Bindable): ListItemAttribute;
-
/**
* Sets the action item that appears when the list item slides in the cross axis direction of the list.
*
diff --git a/api/@internal/component/ets/marquee.d.ts b/api/@internal/component/ets/marquee.d.ts
index 12e53cdcfd..59633f19a9 100644
--- a/api/@internal/component/ets/marquee.d.ts
+++ b/api/@internal/component/ets/marquee.d.ts
@@ -831,7 +831,7 @@ declare class MarqueeAttribute extends CommonMethod {
* use the Text component's TextOverflow.MARQUEE as a substitute.
*
The text is scrolled only when its width exceeds the width of the Marquee component.
*
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
diff --git a/api/@internal/component/ets/menu_item.d.ts b/api/@internal/component/ets/menu_item.d.ts
index cef058daa7..06db50f9ec 100644
--- a/api/@internal/component/ets/menu_item.d.ts
+++ b/api/@internal/component/ets/menu_item.d.ts
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2022-2025 Huawei Device Co., Ltd.
+ * Copyright (c) 2022-2023 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
@@ -20,7 +20,7 @@
/*** if arkts 1.2 */
import { ResourceStr, Font, ResourceColor } from './units';
-import { CommonMethod, Bindable } from './common';
+import { CommonMethod } from './common';
import { CustomBuilder } from './builder';
import { SymbolGlyphModifier } from '../../arkui/SymbolGlyphModifier';
/*** endif */
@@ -335,24 +335,11 @@ declare class MenuItemAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
selected(value: boolean): MenuItemAttribute;
- /**
- * Setting whether menuItem is selected.
- *
- * @param { boolean | undefined | Bindable } value
- * @returns { MenuItemAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- selected(value: boolean | undefined | Bindable): MenuItemAttribute;
-
-
/**
* Whether the relevant check icon is displayed when a menu item is selected.
*
diff --git a/api/@internal/component/ets/nav_destination.d.ts b/api/@internal/component/ets/nav_destination.d.ts
index f6040426a0..4755ea17c1 100644
--- a/api/@internal/component/ets/nav_destination.d.ts
+++ b/api/@internal/component/ets/nav_destination.d.ts
@@ -826,7 +826,7 @@ declare class NavDestinationAttribute extends CommonMethod>): NavDestinationAttribute;
- /**
- * Invoked when pop to the navDestination with result.
- *
- * @param {Optional>} callback - Indicates callback when pop to the navDestination with result.
- * @returns {NavDestinationAttribute}
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- onResult(callback: Optional>): NavDestinationAttribute;
-
/**
* Sets the mode of the **NavDestination** component. Dynamic modification is not supported.
*
@@ -1037,7 +1024,7 @@ declare class NavDestinationAttribute extends CommonMethod
- *
+ *
* @param { ResourceStr | PixelMap | SymbolGlyphModifier } icon - Icon of the back button on the title bar.
* @param { ResourceStr } accessibilityText - Accessibility text for the back button.
*
Default value: **back** when the system language is English.
@@ -1049,7 +1036,7 @@ declare class NavDestinationAttribute extends CommonMethod): NavDestinationAttribute;
-
+
/**
* Invoked before sub-components of NavDestination are created.
*
diff --git a/api/@internal/component/ets/navigation.d.ts b/api/@internal/component/ets/navigation.d.ts
index fed6196de3..7c22809437 100644
--- a/api/@internal/component/ets/navigation.d.ts
+++ b/api/@internal/component/ets/navigation.d.ts
@@ -2903,24 +2903,11 @@ declare class NavigationAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
navBarWidth(value: Length): NavigationAttribute;
- /**
-
- * Sets the width of navigation bar.
- *
- * @param { Length | Bindable } value
- * @returns { NavigationAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- navBarWidth(value: Length | Bindable): NavigationAttribute;
-
/**
* Sets the position of the navigation bar. This attribute takes effect
* only when the **Navigation** component is split.
diff --git a/api/@internal/component/ets/particle.d.ts b/api/@internal/component/ets/particle.d.ts
index 3aadd35654..c09f0f9755 100644
--- a/api/@internal/component/ets/particle.d.ts
+++ b/api/@internal/component/ets/particle.d.ts
@@ -19,7 +19,7 @@
*/
/*** if arkts 1.2 */
-import { LengthMetrics, SizeT, PositionT } from '../../arkui/Graphics'
+import { LengthMetrics, SizeT, PositionT } from '../../arkui/Graphics';
import { VP, ResourceStr,Dimension,ResourceColor } from './units'
import { ImageFit, Curve } from './enums'
import { ICurve, CommonMethod } from './common'
@@ -65,7 +65,7 @@ declare interface VelocityOptions {
*/
/**
* Particle speed.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticleTuple }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -93,7 +93,7 @@ declare interface VelocityOptions {
*/
/**
* Angle of particle's direction.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticleTuple }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -135,7 +135,7 @@ declare interface AccelerationOptions<
*/
/**
* Speed property options.
- *
+ *
* Anonymous Object Rectification.
* @type { ?ParticlePropertyOptions }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -162,7 +162,7 @@ declare interface AccelerationOptions<
*/
/**
* Angle property options.
- *
+ *
* Anonymous Object Rectification.
* @type { ?ParticlePropertyOptions }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -326,7 +326,7 @@ interface ParticleOptions<
*/
/**
* Particle velocity.
- *
+ *
* Anonymous Object Rectification.
* @type { ?VelocityOptions }
* @default {speed:[0,0];angle:[0,0]}
@@ -356,7 +356,7 @@ interface ParticleOptions<
*/
/**
* Particle acceleration.
- *
+ *
* Anonymous Object Rectification.
* @type { ?AccelerationOptions }
* @default {speed:{range:[0,0]};angle:{range:[0,0]}}
@@ -571,7 +571,7 @@ interface ImageParticleParameters {
*/
/**
* Particle image size.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticleTuple }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -735,7 +735,7 @@ interface EmitterProperty {
* @since 20
* @arkts 1.1&1.2
*/
- annulusRegion?: ParticleAnnulusRegion;
+ annulusRegion?: ParticleAnnulusRegion;
}
/**
@@ -765,7 +765,7 @@ interface EmitterParticleOptions {
*/
/**
* Particle type.
- *
+ *
* Anonymous Object Rectification.
* @type { PARTICLE }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -791,7 +791,7 @@ interface EmitterParticleOptions {
*/
/**
* Particle config.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticleConfigs[PARTICLE] }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -818,7 +818,7 @@ interface EmitterParticleOptions {
*/
/**
* Particle count.
- *
+ *
* Anonymous Object Rectification.
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -847,7 +847,7 @@ interface EmitterParticleOptions {
*/
/**
* Particle lifetime.
- *
+ *
* Anonymous Object Rectification.
* @type { ?number }
* @default 1000
@@ -871,7 +871,7 @@ interface EmitterParticleOptions {
/**
* Particle lifetimeRange,value range [0, ∞).
* when lifetimeRange>lifetime,minimum lifetime is 0.
- *
+ *
* Anonymous Object Rectification.
* @type { ?number }
* @default 0
@@ -991,7 +991,7 @@ interface EmitterOptions {
*/
/**
* Set particle config.
- *
+ *
* Anonymous Object Rectification.
* @type { EmitterParticleOptions }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1064,7 +1064,7 @@ interface EmitterOptions {
* Position of emitter.
* The first element means X-axis location.
* The second element means the Y-axis location.
- *
+ *
* Anonymous Object Rectification.
* @type { ?ParticleTuple }
* @default [0,0]
@@ -1100,7 +1100,7 @@ interface EmitterOptions {
* Size of emitter.
* The first element means emitter width.
* The second element means emitter height.
- *
+ *
* Anonymous Object Rectification.
* @type { ?ParticleTuple }
* @default ['100%','100%']
@@ -1266,7 +1266,7 @@ interface ParticlePropertyUpdaterConfigs {
*/
/**
* Random effect of particle updater.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticleTuple }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1303,7 +1303,8 @@ interface ParticlePropertyUpdaterConfigs {
* @since 20
* @arkts 1.2
*/
-declare type ParticlePropertyUpdaterConfigs = undefined | ParticleTuple | Array>;
+declare type ParticlePropertyUpdaterConfigs = undefined | ParticleTuple | Array>;
+
/**
* Defines the particle updater options.
@@ -1332,7 +1333,7 @@ interface ParticleUpdaterOptions {
*/
/**
* Particle updater type.
- *
+ *
* Anonymous Object Rectification.
* @type { UPDATER }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1359,7 +1360,7 @@ interface ParticleUpdaterOptions {
*/
/**
* Particle updater configuration.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticlePropertyUpdaterConfigs[UPDATER] }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1434,7 +1435,7 @@ interface ParticleColorOptions {
*/
/**
* Red component of particle color.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticleTuple }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1462,7 +1463,7 @@ interface ParticleColorOptions {
*/
/**
* Green component of particle color.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticleTuple }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1490,7 +1491,7 @@ interface ParticleColorOptions {
*/
/**
* Blue component of particle color.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticleTuple }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1518,7 +1519,7 @@ interface ParticleColorOptions {
*/
/**
* Opacity component of particle color.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticleTuple }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1557,7 +1558,7 @@ interface ParticleColorUpdaterOptions {
*/
/**
* Color updater.
- *
+ *
* Anonymous Object Rectification.
* @type { UPDATER }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1584,7 +1585,7 @@ interface ParticleColorUpdaterOptions {
*/
/**
* Color updater configuration.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticleColorPropertyUpdaterConfigs[UPDATER] }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1664,7 +1665,7 @@ interface ParticlePropertyOptions {
*/
/**
* Initial range, within which the initial value are randomly generated.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticleTuple }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1693,7 +1694,7 @@ interface ParticlePropertyOptions {
*/
/**
* Particle property updater.
- *
+ *
* Anonymous Object Rectification.
* @type { ?ParticleUpdaterOptions }
* @default {type:UPDATER.NONE;config:ParticlePropertyUpdaterConfigs[UPDATER.NONE]}
@@ -1793,7 +1794,7 @@ interface ParticleColorPropertyUpdaterConfigs {
*/
/**
* Random effect of particle color property updater.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticleColorOptions }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1867,7 +1868,7 @@ interface ParticleColorPropertyOptions {
*/
/**
* Initial color range, within which the initial color is randomly generated.
- *
+ *
* Anonymous Object Rectification.
* @type { ParticleTuple }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -1907,7 +1908,7 @@ interface ParticleColorPropertyOptions {
*/
/**
* Particle color property updater.
- *
+ *
* Anonymous Object Rectification.
* @type { ?ParticleColorUpdaterOptions }
* @default {type:UPDATER.NONE;config:ParticleColorPropertyUpdaterConfigs[UPDATER.NONE]}
@@ -2112,7 +2113,7 @@ interface Particles<
*/
/**
* Array of particles.
- *
+ *
* Anonymous Object Rectification.
* @type { Array> }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -2170,8 +2171,7 @@ interface Particles {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
interface ParticleInterface {
/**
@@ -2195,7 +2195,7 @@ interface ParticleInterface {
*/
/**
* create a particle array.
- *
+ *
* Anonymous Object Rectification.
* @param { Particles } particles - Array of particles.
@@ -2222,20 +2222,24 @@ interface ParticleInterface {
ACC_ANGLE_UPDATER,
SPIN_UPDATER
>): ParticleAttribute;
+}
- /**
+/**
* create a particle array.
- *
- * @param { Particles } particles - Array of particles.
- * @returns { ParticleAttribute } Returns the particle attribute.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- (particles: Particles): ParticleAttribute;
-}
+ *
+ * @param { Particles } particles - Array of particles.
+ * @returns { ParticleAttribute } Returns the particle attribute.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+//@memo
+//@ComponentBuilder
+export declare function Particle(
+ particles: Particles
+): ParticleAttribute;
/**
* Enumerates the particle types.
@@ -2360,7 +2364,7 @@ declare enum ParticleEmitterShape {
* @since 20
* @arkts 1.1&1.2
*/
- ANNULUS = 'annulus',
+ ANNULUS = 'annulus',
}
/**
@@ -2526,7 +2530,7 @@ declare class ParticleAttribute extends CommonMethod {
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
- emitter(value : Array) : ParticleAttribute;
+ emitter(value: Array): ParticleAttribute;
}
/**
@@ -2687,9 +2691,9 @@ declare enum DisturbanceFieldShape {
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
- RECT,
+ RECT = 0,
- /**
+ /**
* Shape circle.
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -2698,7 +2702,7 @@ declare enum DisturbanceFieldShape {
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
- CIRCLE,
+ CIRCLE = 1,
/**
* Shape eclipse.
@@ -2709,7 +2713,7 @@ declare enum DisturbanceFieldShape {
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
- ELLIPSE
+ ELLIPSE = 2
}
diff --git a/api/@internal/component/ets/path.d.ts b/api/@internal/component/ets/path.d.ts
index af9beaf1e7..6cf77a744f 100644
--- a/api/@internal/component/ets/path.d.ts
+++ b/api/@internal/component/ets/path.d.ts
@@ -85,6 +85,17 @@ declare interface PathOptions {
* @since 20
*/
width?: Length;
+ /**
+ * Width option.
+ * @type { ?(number | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ width?: number | string;
/**
* Height option.
@@ -137,6 +148,17 @@ declare interface PathOptions {
* @since 20
*/
height?: Length;
+ /**
+ * Height option.
+ * @type { ?(number | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ height?: number | string;
/**
* Commands option.
@@ -189,6 +211,17 @@ declare interface PathOptions {
* @since 20
*/
commands?: ResourceStr;
+ /**
+ * Commands option.
+ * @type { ?string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ commands?: string
}
/**
@@ -417,6 +450,19 @@ declare class PathAttribute extends CommonShapeMethod {
* @since 20
*/
commands(value: ResourceStr): PathAttribute;
+ /**
+ * Called when the command string drawn by the path is set.
+ *
+ * @param { string } value
+ * @returns { PathAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ commands(value: string): PathAttribute;
}
/**
diff --git a/api/@internal/component/ets/pattern_lock.d.ts b/api/@internal/component/ets/pattern_lock.d.ts
index 3512f08dae..36a2b0141d 100644
--- a/api/@internal/component/ets/pattern_lock.d.ts
+++ b/api/@internal/component/ets/pattern_lock.d.ts
@@ -130,7 +130,7 @@ declare interface CircleStyleOptions {
* @since arkts {'1.1':'15','1.2':'20'}
* @arkts 1.1&1.2
*/
- enableForeground?: boolean;
+ enableForeground?: boolean;
}
/**
@@ -648,7 +648,7 @@ declare class PatternLockAttribute extends CommonMethod {
* @since 12
*/
onDotConnect(callback: import('../api/@ohos.base').Callback): PatternLockAttribute;
-
+
/**
* Called when connecting to a grid dot.
* @param { Callback } callback - A callback instance used when connection to a grid dot.
@@ -660,7 +660,7 @@ declare class PatternLockAttribute extends CommonMethod {
* @arkts 1.2
*/
onDotConnect(callback: Callback): PatternLockAttribute;
-
+
/**
* Sets the background circle style for the dots in a grid when they are in the activated state.
*
diff --git a/api/@internal/component/ets/polygon.d.ts b/api/@internal/component/ets/polygon.d.ts
index 589a025455..c0f4426467 100644
--- a/api/@internal/component/ets/polygon.d.ts
+++ b/api/@internal/component/ets/polygon.d.ts
@@ -69,7 +69,7 @@ declare interface PolygonOptions {
* @atomicservice
* @since 11
*/
- /**
+/**
* Polygon width.
* Anonymous Object Rectification.
*
@@ -91,6 +91,18 @@ declare interface PolygonOptions {
* @since 20
*/
width?: Length;
+ /**
+ * Polygon width.
+ *
+ * @type { ?(string | number) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ width?: string | number;
/**
* Polygon height.
@@ -126,7 +138,7 @@ declare interface PolygonOptions {
* @atomicservice
* @since 11
*/
- /**
+/**
* Polygon height.
* Anonymous Object Rectification.
*
@@ -148,6 +160,18 @@ declare interface PolygonOptions {
* @since 20
*/
height?: Length;
+ /**
+ * Polygon height.
+ *
+ * @type { ?(string | number) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ height?: string | number
}
/**
diff --git a/api/@internal/component/ets/polyline.d.ts b/api/@internal/component/ets/polyline.d.ts
index f6937400d1..924ddd3d60 100644
--- a/api/@internal/component/ets/polyline.d.ts
+++ b/api/@internal/component/ets/polyline.d.ts
@@ -69,7 +69,7 @@ declare interface PolylineOptions {
* @atomicservice
* @since 11
*/
- /**
+/**
* Polyline width.
* Anonymous Object Rectification.
*
@@ -91,6 +91,18 @@ declare interface PolylineOptions {
* @since 20
*/
width?: Length;
+ /**
+ * Polyline width.
+ *
+ * @type { ?(string | number) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ width?: string | number;
/**
* Polyline height.
@@ -126,7 +138,7 @@ declare interface PolylineOptions {
* @atomicservice
* @since 11
*/
- /**
+/**
* Polyline height.
* Anonymous Object Rectification.
*
@@ -148,6 +160,18 @@ declare interface PolylineOptions {
* @since 20
*/
height?: Length;
+ /**
+ * Polyline height.
+ *
+ * @type { ?(string | number) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ height?: string | number
}
/**
--
Gitee
From dced2aa8fe23f9a5ec58fd2b35d908aedec9a0c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=83=A1=E6=B8=85=E4=BA=91?=
Date: Tue, 5 Aug 2025 17:38:17 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E5=BC=BA=E5=9F=BASDK=E6=95=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 胡清云
---
api/@internal/component/ets/progress.d.ts | 12 +++
api/@internal/component/ets/qrcode.d.ts | 14 +++
api/@internal/component/ets/radio.d.ts | 22 +---
api/@internal/component/ets/rating.d.ts | 16 +--
api/@internal/component/ets/refresh.d.ts | 14 +--
api/@internal/component/ets/rich_editor.d.ts | 98 +++--------------
api/@internal/component/ets/rich_text.d.ts | 15 +--
api/@internal/component/ets/search.d.ts | 28 ++---
api/@internal/component/ets/select.d.ts | 44 ++------
api/@internal/component/ets/shape.d.ts | 101 ++++++++++++++++--
api/@internal/component/ets/sidebar.d.ts | 35 +-----
api/@internal/component/ets/slider.d.ts | 18 +---
api/@internal/component/ets/span.d.ts | 28 +++++
.../component/ets/state_management.d.ts | 2 +-
api/@internal/component/ets/stepper.d.ts | 2 +-
.../component/ets/styled_string.d.ts | 12 ++-
api/@internal/component/ets/swiper.d.ts | 18 +---
api/@internal/component/ets/symbol_span.d.ts | 14 +--
api/@internal/component/ets/symbolglyph.d.ts | 95 ++++++++--------
api/@internal/component/ets/tab_content.d.ts | 6 +-
api/@internal/component/ets/tabs.d.ts | 19 +---
api/@internal/component/ets/text.d.ts | 4 +-
api/@internal/component/ets/text_clock.d.ts | 21 +++-
api/@internal/component/ets/text_input.d.ts | 17 +--
api/@internal/component/ets/text_timer.d.ts | 3 +-
api/@internal/component/ets/time_picker.d.ts | 15 +--
26 files changed, 304 insertions(+), 369 deletions(-)
diff --git a/api/@internal/component/ets/progress.d.ts b/api/@internal/component/ets/progress.d.ts
index 9b2aca0d3a..576a6af377 100644
--- a/api/@internal/component/ets/progress.d.ts
+++ b/api/@internal/component/ets/progress.d.ts
@@ -1043,6 +1043,18 @@ declare interface CapsuleStyleOptions extends ScanEffectOptions, CommonProgressS
*/
content?: ResourceStr;
+ /**
+ * Set the text content.
+ *
+ * @type { ?string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ content?: string;
+
/**
* Set the text style.
*
diff --git a/api/@internal/component/ets/qrcode.d.ts b/api/@internal/component/ets/qrcode.d.ts
index 6d177af95a..3e0f544a6c 100644
--- a/api/@internal/component/ets/qrcode.d.ts
+++ b/api/@internal/component/ets/qrcode.d.ts
@@ -111,6 +111,20 @@ interface QRCodeInterface {
* @arkts 1.1&1.2
*/
(value: ResourceStr): QRCodeAttribute;
+
+ /**
+ * Called when a QR code is set.
+ *
+ * @param { string } value
+ * @returns { QRCodeAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ (value: string): QRCodeAttribute;
}
/**
diff --git a/api/@internal/component/ets/radio.d.ts b/api/@internal/component/ets/radio.d.ts
index 5cfb6276a3..8e59814975 100644
--- a/api/@internal/component/ets/radio.d.ts
+++ b/api/@internal/component/ets/radio.d.ts
@@ -19,7 +19,7 @@
*/
/*** if arkts 1.2 */
-import { CommonMethod, ContentModifier, CommonConfiguration, Callback, Bindable } from './common';
+import { CommonMethod, ContentModifier, CommonConfiguration, Callback } from './common';
import { CustomBuilder } from './builder';
import { ResourceColor } from './units';
/*** endif */
@@ -454,7 +454,8 @@ declare class RadioAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
checked(value: boolean): RadioAttribute;
@@ -467,24 +468,11 @@ declare class RadioAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
checked(isChecked: Optional): RadioAttribute;
- /**
- * Called when the radio box is selected.
- *
- * @param { boolean | undefined | Bindable } isChecked
- * @returns { RadioAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- checked(isChecked: boolean | undefined | Bindable): RadioAttribute;
-
/**
* Called when the radio box selection status changes.
*
diff --git a/api/@internal/component/ets/rating.d.ts b/api/@internal/component/ets/rating.d.ts
index d90b13c9de..30eac91d95 100644
--- a/api/@internal/component/ets/rating.d.ts
+++ b/api/@internal/component/ets/rating.d.ts
@@ -82,19 +82,6 @@ declare interface RatingOptions {
*/
rating: number;
- /**
- * Rating option.
- *
- * @type { number | undefined | Bindable }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- rating: number | undefined | Bindable;
-
/**
* Indicator option.
*
@@ -137,8 +124,7 @@ declare interface RatingOptions {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 18
*/
indicator?: boolean
}
diff --git a/api/@internal/component/ets/refresh.d.ts b/api/@internal/component/ets/refresh.d.ts
index 5338ff255a..dd06bb2131 100644
--- a/api/@internal/component/ets/refresh.d.ts
+++ b/api/@internal/component/ets/refresh.d.ts
@@ -19,7 +19,7 @@
*/
/*** if arkts 1.2 */
-import { Callback, Optional, CommonMethod, Bindable } from './common'
+import { Callback, Optional, CommonMethod } from './common'
import { CustomBuilder } from './builder'
import { ResourceStr } from './units'
import { ComponentContent } from '../ComponentContent'
@@ -226,18 +226,6 @@ interface RefreshOptions {
* @since 11
*/
refreshing: boolean;
- /**
- * Whether the current component is being refreshed.
- * This parameter supports $$ for two-way binding of variables.
- *
- * @type { boolean | Bindable }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- refreshing: boolean | Bindable;
/**
* Distance to the top of the parent component from the component that
diff --git a/api/@internal/component/ets/rich_editor.d.ts b/api/@internal/component/ets/rich_editor.d.ts
index 5551288878..3de89f9ce6 100644
--- a/api/@internal/component/ets/rich_editor.d.ts
+++ b/api/@internal/component/ets/rich_editor.d.ts
@@ -21,7 +21,7 @@
/*** if arkts 1.2 */
import { ShadowOptions, ClickEvent, SelectionOptions, CommonMethod, Callback, HapticFeedbackMode, RectResult, HoverEvent, PixelMap } from './common';
import { CustomBuilder } from './builder';
-import { ResourceColor, Length, ResourceStr, Dimension, Margin, BorderRadiuses, Font, VoidCallback } from './units';
+import { ResourceColor, Length, ResourceStr, Dimension, Margin, BorderRadiuses, Font } from './units';
import { FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, ResponseType, CopyOptions, BarState } from './enums';
import { DecorationStyleInterface, StyledString, MutableStyledString } from './styledString';
import { Resource } from './../../../api/global/resource';
@@ -773,21 +773,10 @@ declare interface PasteEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
preventDefault?: Callback;
-
- /**
- * Override system paste event.
- *
- * @type { ?VoidCallback }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- preventDefault?: VoidCallback;
}
/**
@@ -3125,22 +3114,11 @@ declare interface SelectionMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDisappear?: Callback;
- /**
- * Callback function when the selection menu disappears.
- *
- * @type { ?VoidCallback }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- onDisappear?: VoidCallback;
-
/**
* Menu type, default value is MenuType.SELECTION_MENU.
*
@@ -3467,7 +3445,7 @@ declare class RichEditorController extends RichEditorBaseController {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'11','1.2':'20'}
* @arkts 1.1&1.2
*/
addTextSpan(content: ResourceStr, options?: RichEditorTextSpanOptions): number;
@@ -3746,7 +3724,7 @@ declare class RichEditorStyledStringController extends RichEditorBaseController
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
getStyledString(): MutableStyledString;
@@ -3820,23 +3798,11 @@ declare class RichEditorAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onReady(callback: Callback): RichEditorAttribute;
- /**
- * Called when on ready.
- *
- * @param { VoidCallback } callback - The triggered function when rich editor is ready.
- * @returns { RichEditorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- onReady(callback: VoidCallback): RichEditorAttribute;
-
/**
* Called when the content is selected.
*
@@ -4013,23 +3979,11 @@ declare class RichEditorAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDeleteComplete(callback: Callback): RichEditorAttribute;
- /**
- * Notify that the deletion has been completed
- *
- * @param { VoidCallback } callback - The triggered function when text content has been deleted.
- * @returns { RichEditorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- onDeleteComplete(callback: VoidCallback): RichEditorAttribute;
-
/**
* Allow replication.
*
@@ -4467,21 +4421,10 @@ declare interface CutEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
preventDefault?: Callback;
-
- /**
- * Prevent system cut event.
- *
- * @type { ?VoidCallback }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- preventDefault?: VoidCallback;
}
/**
@@ -4501,21 +4444,10 @@ declare interface CopyEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
preventDefault?: Callback;
-
- /**
- * Prevent system cut event.
- *
- * @type { ?VoidCallback }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- preventDefault?: VoidCallback;
}
/**
diff --git a/api/@internal/component/ets/rich_text.d.ts b/api/@internal/component/ets/rich_text.d.ts
index e11c5718fd..6b2c6044f3 100644
--- a/api/@internal/component/ets/rich_text.d.ts
+++ b/api/@internal/component/ets/rich_text.d.ts
@@ -82,21 +82,10 @@ interface RichTextInterface {
* @returns { RichTextAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
- * @since 20
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(content: string | Resource): RichTextAttribute;
-
- /**
- * Set value.
- *
- * @param { string } content
- * @returns { RichTextAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 20
- * @arkts 1.2
- */
- (content: string): RichTextAttribute;
}
/**
diff --git a/api/@internal/component/ets/search.d.ts b/api/@internal/component/ets/search.d.ts
index b7c4d4dab0..0310563898 100644
--- a/api/@internal/component/ets/search.d.ts
+++ b/api/@internal/component/ets/search.d.ts
@@ -402,21 +402,11 @@ declare interface SearchOptions {
* @type { ?ResourceStr }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'18', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
value?: ResourceStr;
- /**
- * Text input in the search text box.
- *
- * @type { ?(string | Bindable)}
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- value?: string | Bindable;
-
/**
* Text displayed when there is no input.
*
@@ -804,7 +794,7 @@ interface CancelButtonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
interface CancelButtonSymbolOptions {
@@ -837,7 +827,7 @@ interface CancelButtonSymbolOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
icon?: SymbolGlyphModifier;
@@ -929,7 +919,7 @@ declare class SearchAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
searchButton(value: ResourceStr, option?: SearchButtonOptions): SearchAttribute;
@@ -1645,7 +1635,7 @@ declare class SearchAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
maxLength(value: number): SearchAttribute;
@@ -1810,7 +1800,7 @@ declare class SearchAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'18', '1.2':'20'}
* @arkts 1.1&1.2
*/
minFontScale(scale: Optional): SearchAttribute;
@@ -1846,7 +1836,7 @@ declare class SearchAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'18', '1.2':'20'}
* @arkts 1.1&1.2
*/
maxFontScale(scale: Optional): SearchAttribute;
@@ -2137,7 +2127,7 @@ declare class SearchAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'20', '1.2':'20'}
* @arkts 1.1&1.2
*/
autoCapitalizationMode(mode: AutoCapitalizationMode): SearchAttribute;
diff --git a/api/@internal/component/ets/select.d.ts b/api/@internal/component/ets/select.d.ts
index d465cbfba7..acd8b58221 100644
--- a/api/@internal/component/ets/select.d.ts
+++ b/api/@internal/component/ets/select.d.ts
@@ -123,7 +123,7 @@ declare interface SelectOption {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
symbolIcon?: SymbolGlyphModifier;
@@ -363,7 +363,7 @@ declare type OnSelectCallback = (index: number, selectStr: string) => void;
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'18','1.2':'20'}
* @arkts 1.1&1.2
*/
declare interface MenuOutlineOptions {
@@ -374,7 +374,7 @@ declare interface MenuOutlineOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'18','1.2':'20'}
* @arkts 1.1&1.2
*/
width?: Dimension | EdgeOutlineWidths;
@@ -386,7 +386,7 @@ declare interface MenuOutlineOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'18','1.2':'20'}
* @arkts 1.1&1.2
*/
color?: ResourceColor | EdgeColors;
@@ -443,7 +443,8 @@ declare class SelectAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
selected(value: number | Resource): SelectAttribute;
@@ -455,24 +456,11 @@ declare class SelectAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
selected(numCount: Optional): SelectAttribute;
- /**
- * Sets the serial number of the select item, starting from 0.
- *
- * @param { number | Resource | undefined | Bindable | Bindable } numCount - the serial number of the select item.
- * @returns { SelectAttribute } the attribute of the select.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- selected(numCount: number | Resource | undefined | Bindable | Bindable): SelectAttribute;
-
-
/**
* Sets the text display of the select button itself.
*
@@ -510,23 +498,11 @@ declare class SelectAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
value(resStr: Optional): SelectAttribute;
- /**
- * Sets the text display of the select button itself.
- *
- * @param { ResourceStr | undefined | Bindable | Bindable } resStr - the text display of the select button itself.
- * @returns { SelectAttribute } the attribute of the select.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- value(resStr: ResourceStr | undefined | Bindable | Bindable): SelectAttribute;
-
/**
* Sets the text properties of the select button itself.
*
diff --git a/api/@internal/component/ets/shape.d.ts b/api/@internal/component/ets/shape.d.ts
index 3daac18378..52f08c6535 100644
--- a/api/@internal/component/ets/shape.d.ts
+++ b/api/@internal/component/ets/shape.d.ts
@@ -91,10 +91,22 @@ declare interface ViewportRect {
* @form
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
x?: Length;
+ /**
+ * Viewport X coordinate.
+ *
+ * @type { ?(number | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ x?: number | string;
+
/**
* Viewport Y coordinate.
*
@@ -149,10 +161,22 @@ declare interface ViewportRect {
* @form
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
y?: Length;
+ /**
+ * Viewport Y coordinate.
+ *
+ * @type { ?(number | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ y?: number | string;
+
/**
* Viewport width.
*
@@ -207,10 +231,22 @@ declare interface ViewportRect {
* @form
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
width?: Length;
+ /**
+ * Viewport width.
+ *
+ * @type { ?(number | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ width?: number | string;
+
/**
* Viewport height.
*
@@ -265,9 +301,21 @@ declare interface ViewportRect {
* @form
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
height?: Length;
+
+ /**
+ * Viewport height.
+ *
+ * @type { ?(number | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ height?: number | string
}
/**
@@ -605,10 +653,23 @@ declare class ShapeAttribute extends CommonMethod {
* @form
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
strokeDashOffset(value: Length): ShapeAttribute;
+ /**
+ * Called when the offset of the starting point of border drawing is set.
+ *
+ * @param { number | string } value
+ * @returns { ShapeAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ strokeDashOffset(value: number | string): ShapeAttribute;
+
/**
* Called when the gap of the border is set.
*
@@ -793,10 +854,23 @@ declare class ShapeAttribute extends CommonMethod {
* @form
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
strokeMiterLimit(value: Length): ShapeAttribute;
+ /**
+ * Called when the limit value for drawing acute angles as oblique angles is set.
+ *
+ * @param { number | string } value
+ * @returns { ShapeAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ strokeMiterLimit(value: number | string): ShapeAttribute;
+
/**
* Called when the opacity of the border is set.
*
@@ -927,10 +1001,23 @@ declare class ShapeAttribute extends CommonMethod {
* @form
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
strokeWidth(value: Length): ShapeAttribute;
+ /**
+ * Called when the width of the border is set.
+ *
+ * @param { number | string } value
+ * @returns { ShapeAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ strokeWidth(value: number | string): ShapeAttribute;
+
/**
* Called when setting whether anti aliasing is on.
*
diff --git a/api/@internal/component/ets/sidebar.d.ts b/api/@internal/component/ets/sidebar.d.ts
index d60a3cd145..9633659be0 100644
--- a/api/@internal/component/ets/sidebar.d.ts
+++ b/api/@internal/component/ets/sidebar.d.ts
@@ -21,7 +21,7 @@
/*** if arkts 1.2 */
import { Resource } from '../../global/resource'
import { Length, ResourceColor, Dimension } from './units'
-import { CommonMethod, PixelMap, Bindable } from './common'
+import { CommonMethod, PixelMap } from './common'
/*** endif */
/**
@@ -709,23 +709,11 @@ declare class SideBarContainerAttribute extends CommonMethod } value
- * @returns { SideBarContainerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- showSideBar(value: boolean | Bindable): SideBarContainerAttribute;
-
/**
* Callback controlButton function when setting the style of button
*
@@ -844,24 +832,11 @@ declare class SideBarContainerAttribute extends CommonMethod } value
- * @returns { SideBarContainerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- sideBarWidth(value: number | Bindable): SideBarContainerAttribute;
-
/**
* Sets the min length of sidebar.
* default value is 200vp.
diff --git a/api/@internal/component/ets/slider.d.ts b/api/@internal/component/ets/slider.d.ts
index f436818e19..7ea67b90fa 100644
--- a/api/@internal/component/ets/slider.d.ts
+++ b/api/@internal/component/ets/slider.d.ts
@@ -19,7 +19,7 @@
*/
/*** if arkts 1.2 */
-import { CommonMethod, CommonConfiguration, ContentModifier, Optional, Bindable } from './common';
+import { CommonMethod, CommonConfiguration, ContentModifier, Optional } from './common';
import { Axis, CrownSensitivity } from './enums';
import { ResourceStr, ResourceColor, Length, Dimension, SizeOptions } from './units';
import { CircleAttribute } from './circle';
@@ -479,23 +479,11 @@ declare interface SliderOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
value?: number;
- /**
- * Current value of Slider.
- *
- * @type { ?(number| undefined | Bindable) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- value?: number | undefined | Bindable;
-
/**
* Sets the min value of Slider.
*
diff --git a/api/@internal/component/ets/span.d.ts b/api/@internal/component/ets/span.d.ts
index 268ab1f2e0..e48191b63e 100644
--- a/api/@internal/component/ets/span.d.ts
+++ b/api/@internal/component/ets/span.d.ts
@@ -450,6 +450,20 @@ declare class SpanAttribute {
*/
fontWeight(value: number | FontWeight | ResourceStr): SpanAttribute;
+ /**
+ * Called when the font weight is set.
+ *
+ * @param { number | FontWeight | string } value
+ * @returns { SpanAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ fontWeight(value: number | FontWeight | string): SpanAttribute;
+
/**
* Called when the font list of text is set.
*
@@ -594,6 +608,20 @@ declare class SpanAttribute {
*/
letterSpacing(value: number | ResourceStr): SpanAttribute;
+ /**
+ * Called when the distance between text fonts is set.
+ *
+ * @param { number | string } value
+ * @returns { SpanAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ letterSpacing(value: number | string): SpanAttribute;
+
/**
* Called when the type of letter in the text font is set.
*
diff --git a/api/@internal/component/ets/state_management.d.ts b/api/@internal/component/ets/state_management.d.ts
index 9edb4e29fa..526c14cbd7 100644
--- a/api/@internal/component/ets/state_management.d.ts
+++ b/api/@internal/component/ets/state_management.d.ts
@@ -186,7 +186,7 @@ declare class Storage {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @since 20
- * @arkts 1.2
+ * @arkts 1.1&1.2
*/
set(key: string, val: Object | undefined | null): void;
diff --git a/api/@internal/component/ets/stepper.d.ts b/api/@internal/component/ets/stepper.d.ts
index 59d4b0fc0f..a1611c0ff2 100644
--- a/api/@internal/component/ets/stepper.d.ts
+++ b/api/@internal/component/ets/stepper.d.ts
@@ -121,7 +121,7 @@ interface StepperInterface {
* @crossplatform
* @atomicservice
* @since 20
- * @arkts 1.2
+ * @arkts 1.1&1.2
*/
(value?: StepperOptions): StepperAttribute;
}
diff --git a/api/@internal/component/ets/styled_string.d.ts b/api/@internal/component/ets/styled_string.d.ts
index fddcab7a30..c7b9da8a63 100644
--- a/api/@internal/component/ets/styled_string.d.ts
+++ b/api/@internal/component/ets/styled_string.d.ts
@@ -1825,7 +1825,8 @@ declare class ImageAttachment {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly colorFilter?: ColorFilterType;
}
@@ -1908,7 +1909,8 @@ declare interface ResourceImageAttachmentOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colorFilter?: ColorFilterType;
@@ -2004,7 +2006,8 @@ declare interface ImageAttachmentInterface {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colorFilter?: ColorFilterType;
}
@@ -2028,7 +2031,8 @@ declare type AttachmentType = ImageAttachmentInterface | ResourceImageAttachment
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type ColorFilterType = ColorFilter | DrawingColorFilter;
diff --git a/api/@internal/component/ets/swiper.d.ts b/api/@internal/component/ets/swiper.d.ts
index cb232e2c34..02b2edc588 100644
--- a/api/@internal/component/ets/swiper.d.ts
+++ b/api/@internal/component/ets/swiper.d.ts
@@ -20,7 +20,7 @@
/*** if arkts 1.2 */
import { IndicatorComponentController } from './indicatorcomponent';
-import { CommonMethod, Callback, ICurve, Optional, Bindable } from './common';
+import { CommonMethod, Callback, ICurve, Optional } from './common';
import { EdgeEffect, Curve, PageFlipMode } from './enums';
import { Length, LengthMetrics, VoidCallback, ResourceColor, VP, Font } from './units';
/*** endif */
@@ -1604,22 +1604,10 @@ declare class SwiperAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
index(value: number): SwiperAttribute;
- /**
- * Called when the index value of the displayed subcomponent is set in the container.
- *
- * @param { number | Bindable } value
- * @returns { SwiperAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- index(value: number | Bindable): SwiperAttribute;
/**
* Called when setting whether the subcomponent plays automatically.
diff --git a/api/@internal/component/ets/symbol_span.d.ts b/api/@internal/component/ets/symbol_span.d.ts
index f1636d725e..94d5836b74 100644
--- a/api/@internal/component/ets/symbol_span.d.ts
+++ b/api/@internal/component/ets/symbol_span.d.ts
@@ -81,7 +81,7 @@ interface SymbolSpanInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
(value: Resource): SymbolSpanAttribute;
@@ -141,7 +141,7 @@ declare class SymbolSpanAttribute {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
fontSize(value: number | string | Resource): SymbolSpanAttribute;
@@ -173,7 +173,7 @@ declare class SymbolSpanAttribute {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
fontColor(value: Array): SymbolSpanAttribute;
@@ -205,7 +205,7 @@ declare class SymbolSpanAttribute {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
fontWeight(value: number | FontWeight | string): SymbolSpanAttribute;
@@ -237,7 +237,7 @@ declare class SymbolSpanAttribute {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
effectStrategy(value: SymbolEffectStrategy): SymbolSpanAttribute;
@@ -269,7 +269,7 @@ declare class SymbolSpanAttribute {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
renderingStrategy(value: SymbolRenderingStrategy): SymbolSpanAttribute;
@@ -291,7 +291,7 @@ declare class SymbolSpanAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
attributeModifier(modifier: AttributeModifier): SymbolSpanAttribute;
diff --git a/api/@internal/component/ets/symbolglyph.d.ts b/api/@internal/component/ets/symbolglyph.d.ts
index b84160bd92..b54b9c95bd 100644
--- a/api/@internal/component/ets/symbolglyph.d.ts
+++ b/api/@internal/component/ets/symbolglyph.d.ts
@@ -49,7 +49,7 @@ import { CommonMethod,Optional } from "./common";
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
interface SymbolGlyphInterface {
@@ -80,7 +80,7 @@ interface SymbolGlyphInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
(value?: Resource): SymbolGlyphAttribute;
@@ -110,7 +110,7 @@ interface SymbolGlyphInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare enum SymbolRenderingStrategy {
@@ -135,7 +135,7 @@ declare enum SymbolRenderingStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
SINGLE = 0,
@@ -187,7 +187,7 @@ declare enum SymbolRenderingStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
MULTIPLE_OPACITY = 2,
@@ -217,7 +217,7 @@ declare enum SymbolRenderingStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare enum SymbolEffectStrategy {
@@ -242,7 +242,7 @@ declare enum SymbolEffectStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
NONE = 0,
@@ -268,7 +268,7 @@ declare enum SymbolEffectStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
SCALE = 1,
@@ -294,7 +294,7 @@ declare enum SymbolEffectStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
HIERARCHICAL = 2,
@@ -336,7 +336,7 @@ declare enum EffectDirection {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
DOWN = 0,
@@ -355,7 +355,7 @@ declare enum EffectDirection {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
UP = 1,
@@ -378,7 +378,7 @@ declare enum EffectDirection {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare enum EffectScope {
@@ -397,7 +397,7 @@ declare enum EffectScope {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
LAYER = 0,
@@ -416,7 +416,7 @@ declare enum EffectScope {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
WHOLE = 1,
@@ -439,7 +439,7 @@ declare enum EffectScope {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare enum EffectFillStyle {
@@ -458,7 +458,7 @@ declare enum EffectFillStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
CUMULATIVE = 0,
@@ -478,7 +478,7 @@ declare enum EffectFillStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
ITERATIVE = 1,
@@ -499,7 +499,7 @@ declare enum EffectFillStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare class SymbolEffect {
@@ -522,7 +522,7 @@ declare class SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare class ScaleSymbolEffect extends SymbolEffect {
@@ -545,7 +545,7 @@ declare class ScaleSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
constructor(scope?: EffectScope, direction?: EffectDirection);
@@ -567,7 +567,7 @@ declare class ScaleSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
scope?: EffectScope;
@@ -589,7 +589,7 @@ declare class ScaleSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
direction?: EffectDirection;
@@ -612,7 +612,7 @@ declare class ScaleSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare class HierarchicalSymbolEffect extends SymbolEffect {
@@ -633,7 +633,7 @@ declare class HierarchicalSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
constructor(fillStyle?: EffectFillStyle);
@@ -655,7 +655,7 @@ declare class HierarchicalSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
fillStyle?: EffectFillStyle;
@@ -678,7 +678,7 @@ declare class HierarchicalSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare class AppearSymbolEffect extends SymbolEffect {
@@ -699,7 +699,7 @@ declare class AppearSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
constructor(scope?: EffectScope);
@@ -721,7 +721,7 @@ declare class AppearSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
scope?: EffectScope;
@@ -744,7 +744,7 @@ declare class AppearSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare class DisappearSymbolEffect extends SymbolEffect {
@@ -765,7 +765,7 @@ declare class DisappearSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
constructor(scope?: EffectScope);
@@ -787,7 +787,7 @@ declare class DisappearSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
scope?: EffectScope;
@@ -810,7 +810,7 @@ declare class DisappearSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare class BounceSymbolEffect extends SymbolEffect {
@@ -833,7 +833,7 @@ declare class BounceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
constructor(scope?: EffectScope, direction?: EffectDirection);
@@ -855,7 +855,7 @@ declare class BounceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
scope?: EffectScope;
@@ -877,7 +877,7 @@ declare class BounceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
direction?: EffectDirection;
@@ -900,7 +900,7 @@ declare class BounceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare class ReplaceSymbolEffect extends SymbolEffect {
@@ -921,7 +921,7 @@ declare class ReplaceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
constructor(scope?: EffectScope);
@@ -943,7 +943,7 @@ declare class ReplaceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
scope?: EffectScope;
@@ -956,7 +956,8 @@ declare class ReplaceSymbolEffect extends SymbolEffect {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12', '1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class PulseSymbolEffect extends SymbolEffect {
}
@@ -1051,7 +1052,7 @@ declare class QuickReplaceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare class SymbolGlyphAttribute extends CommonMethod {
@@ -1082,7 +1083,7 @@ declare class SymbolGlyphAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
fontSize(value: number | string | Resource): SymbolGlyphAttribute;
@@ -1114,7 +1115,7 @@ declare class SymbolGlyphAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
fontColor(value: Array): SymbolGlyphAttribute;
@@ -1157,7 +1158,7 @@ declare class SymbolGlyphAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
fontWeight(value: number | FontWeight | string): SymbolGlyphAttribute;
@@ -1190,7 +1191,7 @@ declare class SymbolGlyphAttribute extends CommonMethod {
* @form
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
+ * @since arkts {'1.1':'12', '1.2':'20'}
*/
effectStrategy(value: SymbolEffectStrategy): SymbolGlyphAttribute;
@@ -1221,7 +1222,7 @@ declare class SymbolGlyphAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
renderingStrategy(value: SymbolRenderingStrategy): SymbolGlyphAttribute;
@@ -1308,7 +1309,7 @@ declare class SymbolGlyphAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'18', '1.2':'20'}
* @arkts 1.1&1.2
*/
minFontScale(scale: Optional): SymbolGlyphAttribute;
@@ -1330,7 +1331,7 @@ declare class SymbolGlyphAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'18', '1.2':'20'}
* @arkts 1.1&1.2
*/
maxFontScale(scale: Optional): SymbolGlyphAttribute;
diff --git a/api/@internal/component/ets/tab_content.d.ts b/api/@internal/component/ets/tab_content.d.ts
index 56eb3f714a..27ba0daee7 100644
--- a/api/@internal/component/ets/tab_content.d.ts
+++ b/api/@internal/component/ets/tab_content.d.ts
@@ -713,7 +713,7 @@ declare interface TabBarIconStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
declare class TabBarSymbol {
@@ -734,7 +734,7 @@ declare class TabBarSymbol {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
normal: SymbolGlyphModifier;
@@ -756,7 +756,7 @@ declare class TabBarSymbol {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
selected?: SymbolGlyphModifier;
diff --git a/api/@internal/component/ets/tabs.d.ts b/api/@internal/component/ets/tabs.d.ts
index a5c460d779..194cc95eb5 100644
--- a/api/@internal/component/ets/tabs.d.ts
+++ b/api/@internal/component/ets/tabs.d.ts
@@ -19,7 +19,7 @@
*/
/*** if arkts 1.2 */
-import { BackgroundBlurStyleOptions, BackgroundEffectOptions, BlurStyle, Callback, CommonMethod, Optional, TranslateOptions, DividerStyle, Bindable } from './common';
+import { BackgroundBlurStyleOptions, BackgroundEffectOptions, BlurStyle, Callback, CommonMethod, Optional, TranslateOptions, DividerStyle } from './common';
import { EdgeEffect, PageFlipMode } from './enums';
import { Dimension, Length, ResourceColor } from './units';
/*** endif */
@@ -546,20 +546,10 @@ declare interface TabsOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
index?: number;
- /**
- * Set the index of the currently displayed tab.
- *
- * @type { ?(number | Bindable) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- index?: number | Bindable;
/**
* Set the Tabs controller.
@@ -595,7 +585,8 @@ declare interface TabsOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
barModifier?: CommonModifier
}
diff --git a/api/@internal/component/ets/text.d.ts b/api/@internal/component/ets/text.d.ts
index 2b0b4ee144..68aa2227b1 100644
--- a/api/@internal/component/ets/text.d.ts
+++ b/api/@internal/component/ets/text.d.ts
@@ -464,7 +464,7 @@ declare class TextAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
minFontScale(scale: number | Resource): TextAttribute;
@@ -498,7 +498,7 @@ declare class TextAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
+ * @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
maxFontScale(scale: number | Resource): TextAttribute;
diff --git a/api/@internal/component/ets/text_clock.d.ts b/api/@internal/component/ets/text_clock.d.ts
index 29a9c245dc..8206df6778 100644
--- a/api/@internal/component/ets/text_clock.d.ts
+++ b/api/@internal/component/ets/text_clock.d.ts
@@ -450,10 +450,29 @@ declare class TextClockAttribute extends CommonMethod {
* @form
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
format(value: ResourceStr): TextClockAttribute;
+ /**
+ * set display time format,such as "yyyy/mm/dd","yyyy-mm-dd".
+ * support time format:yyyy,mm,mmm(English month abbreviation),mmmm(Full name of the month in English),
+ * dd,ddd(English Week abbreviation),dddd(Full name of the week in English),
+ * HH/hh(24-hour clock/12-hour clock),MM/mm(minute),SS/ss(second).
+ * The default value is "hh:mm:ss" when TextClock is not in a form.
+ * The default value is "hh:mm" when TextClock is in a form.
+ * If the value has second or millisecond, the value will be set to the default value.
+ *
+ * @param { string } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ format(value: string): TextClockAttribute;
+
/**
* Provides a date change callback.
* The callback parameter is Unix Time Stamp,
diff --git a/api/@internal/component/ets/text_input.d.ts b/api/@internal/component/ets/text_input.d.ts
index c22f4005d7..26845a54eb 100644
--- a/api/@internal/component/ets/text_input.d.ts
+++ b/api/@internal/component/ets/text_input.d.ts
@@ -20,7 +20,7 @@
/*** if arkts 1.2 */
import { CancelButtonSymbolOptions, CancelButtonOptions } from "./search";
-import { Callback, CommonMethod, TextContentControllerBase, SelectionOptions, InputCounterOptions, TextDecorationOptions, Optional, Bindable} from "./common";
+import { Callback, CommonMethod, TextContentControllerBase, SelectionOptions, InputCounterOptions, TextDecorationOptions, Optional } from "./common";
import { CustomBuilder } from './builder';
import { BarState, LineBreakStrategy, TextAlign, FontStyle, FontWeight, WordBreak, TextOverflow,
CopyOptions, TextHeightAdaptivePolicy, TextContentStyle, EllipsisMode } from './enums';
@@ -1223,22 +1223,11 @@ declare interface TextInputOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
text?: ResourceStr;
- /**
- * Sets the current value of TextInput.
- *
- * @type { ?(ResourceStr | Bindable | Bindable | Bindable) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- text?: ResourceStr | Bindable | Bindable | Bindable;
-
/**
* Called when the position of the insertion cursor is set.
*
diff --git a/api/@internal/component/ets/text_timer.d.ts b/api/@internal/component/ets/text_timer.d.ts
index cf5188146f..c3a15592a9 100644
--- a/api/@internal/component/ets/text_timer.d.ts
+++ b/api/@internal/component/ets/text_timer.d.ts
@@ -353,7 +353,8 @@ interface TextTimerOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
count?: number;
diff --git a/api/@internal/component/ets/time_picker.d.ts b/api/@internal/component/ets/time_picker.d.ts
index 4fc2746598..cdd61ed3e1 100644
--- a/api/@internal/component/ets/time_picker.d.ts
+++ b/api/@internal/component/ets/time_picker.d.ts
@@ -217,22 +217,11 @@ declare interface TimePickerOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
selected?: Date;
- /**
- * Specifies the time selector check time.
- *
- * @type { ?(Date | Bindable) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- selected?: Date | Bindable;
-
/**
* Specifies the format of the TimePicker that need to be displayed.
*
--
Gitee
From 246dcb756ad667c5cb69ebc6fb33f9d74d907180 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=BD=9C=E7=A7=8B=E5=AE=8F?=
Date: Tue, 5 Aug 2025 22:26:12 +0800
Subject: [PATCH 4/5] 080510
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 潜秋宏
Change-Id: I69b50ebc1800cbd37ffdcccce282a297d62705d9
---
api/@internal/component/ets/toggle.d.ts | 11 +++--
.../component/ets/ui_extension_component.d.ts | 15 +++----
api/@ohos.arkui.UIContext.d.ts | 29 +------------
api/@ohos.arkui.drawableDescriptor.d.ts | 43 +++++++------------
api/@ohos.arkui.inspector.d.ts | 32 +-------------
api/@ohos.arkui.node.d.ts | 7 ++-
6 files changed, 31 insertions(+), 106 deletions(-)
diff --git a/api/@internal/component/ets/toggle.d.ts b/api/@internal/component/ets/toggle.d.ts
index 4f1a07f308..ed93586da5 100644
--- a/api/@internal/component/ets/toggle.d.ts
+++ b/api/@internal/component/ets/toggle.d.ts
@@ -375,20 +375,19 @@ declare interface ToggleOptions {
* @atomicservice
* @since 18
*/
- isOn?: boolean
-
/**
* Whether the toggle is on.
+ * Anonymous Object Rectification.
*
- * @type { ?(boolean | undefined | Bindable) }
+ * @type { ?boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 20
- * @arkts 1.2
+ * @since arkts {'1.1':'20','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- isOn?: boolean | undefined | Bindable
+ isOn?: boolean
}
/**
diff --git a/api/@internal/component/ets/ui_extension_component.d.ts b/api/@internal/component/ets/ui_extension_component.d.ts
index 7637cdeaaa..7fe841ede7 100644
--- a/api/@internal/component/ets/ui_extension_component.d.ts
+++ b/api/@internal/component/ets/ui_extension_component.d.ts
@@ -61,16 +61,14 @@ declare enum DpiFollowStrategy {
* @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 18
*/
declare enum WindowModeFollowStrategy {
/**
* Followed the host Window Mode.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 18
*/
FOLLOW_HOST_WINDOW_MODE = 0,
@@ -78,8 +76,7 @@ declare enum WindowModeFollowStrategy {
* Followed the UIExtensionAbility.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 18
*/
FOLLOW_UI_EXTENSION_ABILITY_WINDOW_MODE = 1
}
@@ -150,8 +147,7 @@ declare interface UIExtensionOptions {
* @default WindowModeFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_WINDOW_MODE
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 18
*/
windowModeFollowStrategy?: WindowModeFollowStrategy;
}
@@ -546,8 +542,7 @@ declare class UIExtensionComponentAttribute extends CommonMethod): UIExtensionComponentAttribute;
}
diff --git a/api/@ohos.arkui.UIContext.d.ts b/api/@ohos.arkui.UIContext.d.ts
index bda9777e8c..31107f0821 100644
--- a/api/@ohos.arkui.UIContext.d.ts
+++ b/api/@ohos.arkui.UIContext.d.ts
@@ -1355,8 +1355,7 @@ export declare class PromptAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts { '1.1':'12','1.2':'20' }
- * @arkts 1.1&1.2
+ * @since 12
*/
closeCustomDialog(dialogContent: ComponentContent): Promise;
@@ -4822,32 +4821,6 @@ export declare class UIContext {
* @arkts 1.1&1.2
*/
static destroyUIContextWithoutWindow(): void;
-
- /**
- * Thread-safe UI state variables updates interface.
- *
- * @param { VoidCallback } callback - The callback function to be executed in the UI thread.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- setUIStates(callback: VoidCallback): void;
-
- /**
- * Retrieves the UIContext corresponding to the UI instance of the currently focused window.
- * Returns undefined if it does not exist.
- *
- * @returns { UIContext | undefined } The focused UIContext, or undefined if it does not exist.
- * @static
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- static getFocusedUIContext(): UIContext | undefined;
}
/**
diff --git a/api/@ohos.arkui.drawableDescriptor.d.ts b/api/@ohos.arkui.drawableDescriptor.d.ts
index e57f057fc7..c78d96e202 100644
--- a/api/@ohos.arkui.drawableDescriptor.d.ts
+++ b/api/@ohos.arkui.drawableDescriptor.d.ts
@@ -134,20 +134,17 @@ export declare class DrawableDescriptor {
* @atomicservice
* @since 12
*/
- getPixelMap(): image.PixelMap;
-
/**
* Get pixelMap of drawable image.
*
- * @returns { image.PixelMap | undefined } Return the PixelMap of the calling DrawableDescriptor object.
+ * @returns { image.PixelMap } Return the PixelMap of the calling DrawableDescriptor object.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
- * @arkts 1.2
+ * @since arkts {'1.1':'20','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- getPixelMap(): image.PixelMap | undefined;
-
+ getPixelMap(): image.PixelMap;
/**
* Get original width of drawable object.
*
@@ -263,20 +260,17 @@ export declare class LayeredDrawableDescriptor extends DrawableDescriptor {
* @crossplatform
* @atomicservice
* @since 12
- */
- getForeground(): DrawableDescriptor;
-
/**
* Get DrawableDescriptor for the foreground.
*
- * @returns { DrawableDescriptor | undefined } Return the DrawableDescriptor object of foreground.
+ * @returns { DrawableDescriptor } Return the DrawableDescriptor object of foreground.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
- * @arkts 1.2
+ * @since arkts {'1.1':'20','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- getForeground(): DrawableDescriptor | undefined;
+ getForeground(): DrawableDescriptor;
/**
* Get DrawableDescriptor for the background.
@@ -302,19 +296,17 @@ export declare class LayeredDrawableDescriptor extends DrawableDescriptor {
* @atomicservice
* @since 12
*/
- getBackground(): DrawableDescriptor;
-
/**
* Get DrawableDescriptor for the background.
*
- * @returns { DrawableDescriptor | undefined } Return the DrawableDescriptor object of background.
+ * @returns { DrawableDescriptor } Return the DrawableDescriptor object of background.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
- * @arkts 1.2
+ * @since arkts {'1.1':'20','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- getBackground(): DrawableDescriptor | undefined;
+ getBackground(): DrawableDescriptor;
/**
* Get DrawableDescriptor for the mask.
@@ -340,20 +332,17 @@ export declare class LayeredDrawableDescriptor extends DrawableDescriptor {
* @atomicservice
* @since 12
*/
- getMask(): DrawableDescriptor;
-
/**
* Get DrawableDescriptor for the mask.
*
- * @returns { DrawableDescriptor | undefined } Return the DrawableDescriptor object of mask.
+ * @returns { DrawableDescriptor } Return the DrawableDescriptor object of mask.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
- * @arkts 1.2
+ * @since arkts {'1.1':'20','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- getMask(): DrawableDescriptor | undefined;
-
+ getMask(): DrawableDescriptor;
/**
* Get the clip path info of the adaptive icon mask.
diff --git a/api/@ohos.arkui.inspector.d.ts b/api/@ohos.arkui.inspector.d.ts
index 2634340ef8..2db8ffcb75 100644
--- a/api/@ohos.arkui.inspector.d.ts
+++ b/api/@ohos.arkui.inspector.d.ts
@@ -235,34 +235,4 @@ declare namespace inspector {
function sendEventByKey(id: string, action: number, params: string): boolean;
}
-export default inspector;
-/**
- * export function getInspectorByKey from inspector namespace and provide it for kit ArkUI.
- * @constant
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
-export const GETINSPECTORBYKEY = inspector.getInspectorByKey;
-/**
- * export function getInspectorTree from inspector namespace and provide it for kit ArkUI.
- * @constant
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
-export const GETINSPECTORTREE = inspector.getInspectorTree;
-/**
- * export function sendEventByKey from inspector namespace and provide it for kit ArkUI.
- * @constant
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
-export const SENDEVENTBYKEY = inspector.sendEventByKey;
\ No newline at end of file
+export default inspector;
\ No newline at end of file
diff --git a/api/@ohos.arkui.node.d.ts b/api/@ohos.arkui.node.d.ts
index 86df2cbda1..41e3b05500 100644
--- a/api/@ohos.arkui.node.d.ts
+++ b/api/@ohos.arkui.node.d.ts
@@ -128,17 +128,16 @@ export { typeNode, NodeAdapter } from './arkui/FrameNode';
* @since 12
*/
export { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, RoundRect, Circle, CommandPath, ShapeMask, ShapeClip, BorderRadiuses, CornerRadius, Rect, Edges, edgeColors, edgeWidths, borderStyles, borderRadiuses, LengthMetricsUnit } from './arkui/Graphics';
-
/**
* Export Graphics. Defines the basic types related to the Graphics.
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 20
- * @arkts 1.2
+ * @since arkts { '1.1':'20','1.2':'20' }
+ * @arkts 1.1&1.2
*/
-export { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, RoundRect, Circle, CommandPath, ShapeMask, ShapeClip, BorderRadiuses, CornerRadius, /*Rect, */Edges, edgeColors, edgeWidths, borderStyles, borderRadiuses, LengthMetricsUnit } from './arkui/Graphics';
+export { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, RoundRect, Circle, CommandPath, ShapeMask, ShapeClip, BorderRadiuses, CornerRadius, Rect, Edges, edgeColors, edgeWidths, borderStyles, borderRadiuses, LengthMetricsUnit } from './arkui/Graphics';
/**
* Export Graphics. Defines the basic types related to the Graphics.
--
Gitee
From 108ac1f8c39395a8eb4f26bc32a05ae66dee8ef0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=BD=9C=E7=A7=8B=E5=AE=8F?=
Date: Wed, 6 Aug 2025 18:08:51 +0800
Subject: [PATCH 5/5] =?UTF-8?q?sdk=E7=94=B5=E5=AD=90=E6=B5=81=E6=89=AB?=
=?UTF-8?q?=E6=8F=8F=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 潜秋宏
Change-Id: Ie1b9191917e7e7d5185d5eaac43ebed1d5b562a7
---
api/@internal/component/ets/badge.d.ts | 28 +-----
api/@internal/component/ets/component3d.d.ts | 1 -
api/@internal/component/ets/rich_editor.d.ts | 4 +-
api/@internal/component/ets/search.d.ts | 41 ++++++---
api/@internal/component/ets/select.d.ts | 8 +-
.../component/ets/state_management.d.ts | 2 +-
api/@internal/component/ets/symbol_span.d.ts | 14 +--
api/@internal/component/ets/symbolglyph.d.ts | 90 +++++++++----------
api/@internal/component/ets/tab_content.d.ts | 6 +-
api/@internal/component/ets/text.d.ts | 4 +-
api/@ohos.arkui.drawableDescriptor.d.ts | 2 +-
11 files changed, 97 insertions(+), 103 deletions(-)
diff --git a/api/@internal/component/ets/badge.d.ts b/api/@internal/component/ets/badge.d.ts
index 90ed9e2627..453a887684 100644
--- a/api/@internal/component/ets/badge.d.ts
+++ b/api/@internal/component/ets/badge.d.ts
@@ -1087,30 +1087,4 @@ declare const Badge: BadgeInterface;
* @atomicservice
* @since 11
*/
-declare const BadgeInstance: BadgeAttribute;
-
-/**
- * Define BadgeParamWithString's property 'value' type
- *
- * @typedef { string | Resource } BadgeParamWithStringType
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
- */
-declare type BadgeParamWithStringType = string | Resource;
-
-/**
- * Define BadgeStyle's size-relative properties type
- *
- * @typedef { number | string | Resource } BadgeStyleSizeType
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
- */
-declare type BadgeStyleSizeType = number | string | Resource;
\ No newline at end of file
+declare const BadgeInstance: BadgeAttribute;
\ No newline at end of file
diff --git a/api/@internal/component/ets/component3d.d.ts b/api/@internal/component/ets/component3d.d.ts
index bb6051b8e6..fce5aa306e 100644
--- a/api/@internal/component/ets/component3d.d.ts
+++ b/api/@internal/component/ets/component3d.d.ts
@@ -106,7 +106,6 @@ declare interface SceneOptions {
* @atomicservice
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
- * @component
*/
interface Component3DInterface {
/**
diff --git a/api/@internal/component/ets/rich_editor.d.ts b/api/@internal/component/ets/rich_editor.d.ts
index 3de89f9ce6..739a46d64d 100644
--- a/api/@internal/component/ets/rich_editor.d.ts
+++ b/api/@internal/component/ets/rich_editor.d.ts
@@ -3445,7 +3445,7 @@ declare class RichEditorController extends RichEditorBaseController {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
addTextSpan(content: ResourceStr, options?: RichEditorTextSpanOptions): number;
@@ -3724,7 +3724,7 @@ declare class RichEditorStyledStringController extends RichEditorBaseController
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
getStyledString(): MutableStyledString;
diff --git a/api/@internal/component/ets/search.d.ts b/api/@internal/component/ets/search.d.ts
index 0310563898..7ce15eae7e 100644
--- a/api/@internal/component/ets/search.d.ts
+++ b/api/@internal/component/ets/search.d.ts
@@ -402,11 +402,21 @@ declare interface SearchOptions {
* @type { ?ResourceStr }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'18', '1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 20
*/
value?: ResourceStr;
+ /**
+ * Text input in the search text box.
+ *
+ * @type { ?string}
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ value?: string;
+
/**
* Text displayed when there is no input.
*
@@ -794,7 +804,7 @@ interface CancelButtonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
interface CancelButtonSymbolOptions {
@@ -827,7 +837,7 @@ interface CancelButtonSymbolOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
icon?: SymbolGlyphModifier;
@@ -919,11 +929,22 @@ declare class SearchAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'11', '1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 20
*/
searchButton(value: ResourceStr, option?: SearchButtonOptions): SearchAttribute;
-
+ /**
+ * Set the search button text, fontSize and fontColor
+ *
+ * @param { string } value - indicates the text of the search button.
+ * @param { SearchButtonOptions } [option] - indicates the fontSize and fontColor of the search button.
+ * @returns { SearchAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ searchButton(value: string, option?: SearchButtonOptions): SearchAttribute;
/**
* Set the text Color
*
@@ -1635,7 +1656,7 @@ declare class SearchAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
maxLength(value: number): SearchAttribute;
@@ -1800,7 +1821,7 @@ declare class SearchAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'18', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
minFontScale(scale: Optional): SearchAttribute;
@@ -1836,7 +1857,7 @@ declare class SearchAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'18', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
maxFontScale(scale: Optional): SearchAttribute;
diff --git a/api/@internal/component/ets/select.d.ts b/api/@internal/component/ets/select.d.ts
index acd8b58221..f1ea440717 100644
--- a/api/@internal/component/ets/select.d.ts
+++ b/api/@internal/component/ets/select.d.ts
@@ -123,7 +123,7 @@ declare interface SelectOption {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
symbolIcon?: SymbolGlyphModifier;
@@ -363,7 +363,7 @@ declare type OnSelectCallback = (index: number, selectStr: string) => void;
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare interface MenuOutlineOptions {
@@ -374,7 +374,7 @@ declare interface MenuOutlineOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
width?: Dimension | EdgeOutlineWidths;
@@ -386,7 +386,7 @@ declare interface MenuOutlineOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
color?: ResourceColor | EdgeColors;
diff --git a/api/@internal/component/ets/state_management.d.ts b/api/@internal/component/ets/state_management.d.ts
index 526c14cbd7..9edb4e29fa 100644
--- a/api/@internal/component/ets/state_management.d.ts
+++ b/api/@internal/component/ets/state_management.d.ts
@@ -186,7 +186,7 @@ declare class Storage {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @since 20
- * @arkts 1.1&1.2
+ * @arkts 1.2
*/
set(key: string, val: Object | undefined | null): void;
diff --git a/api/@internal/component/ets/symbol_span.d.ts b/api/@internal/component/ets/symbol_span.d.ts
index 94d5836b74..f1636d725e 100644
--- a/api/@internal/component/ets/symbol_span.d.ts
+++ b/api/@internal/component/ets/symbol_span.d.ts
@@ -81,7 +81,7 @@ interface SymbolSpanInterface {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
(value: Resource): SymbolSpanAttribute;
@@ -141,7 +141,7 @@ declare class SymbolSpanAttribute {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
fontSize(value: number | string | Resource): SymbolSpanAttribute;
@@ -173,7 +173,7 @@ declare class SymbolSpanAttribute {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
fontColor(value: Array): SymbolSpanAttribute;
@@ -205,7 +205,7 @@ declare class SymbolSpanAttribute {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
fontWeight(value: number | FontWeight | string): SymbolSpanAttribute;
@@ -237,7 +237,7 @@ declare class SymbolSpanAttribute {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
effectStrategy(value: SymbolEffectStrategy): SymbolSpanAttribute;
@@ -269,7 +269,7 @@ declare class SymbolSpanAttribute {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
renderingStrategy(value: SymbolRenderingStrategy): SymbolSpanAttribute;
@@ -291,7 +291,7 @@ declare class SymbolSpanAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
attributeModifier(modifier: AttributeModifier): SymbolSpanAttribute;
diff --git a/api/@internal/component/ets/symbolglyph.d.ts b/api/@internal/component/ets/symbolglyph.d.ts
index 6a71b8e778..6252906a96 100644
--- a/api/@internal/component/ets/symbolglyph.d.ts
+++ b/api/@internal/component/ets/symbolglyph.d.ts
@@ -49,7 +49,7 @@ import { CommonMethod,Optional } from "./common";
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
interface SymbolGlyphInterface {
@@ -80,7 +80,7 @@ interface SymbolGlyphInterface {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
(value?: Resource): SymbolGlyphAttribute;
@@ -110,7 +110,7 @@ interface SymbolGlyphInterface {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare enum SymbolRenderingStrategy {
@@ -135,7 +135,7 @@ declare enum SymbolRenderingStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
SINGLE = 0,
@@ -187,7 +187,7 @@ declare enum SymbolRenderingStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
MULTIPLE_OPACITY = 2,
@@ -217,7 +217,7 @@ declare enum SymbolRenderingStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare enum SymbolEffectStrategy {
@@ -242,7 +242,7 @@ declare enum SymbolEffectStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
NONE = 0,
@@ -268,7 +268,7 @@ declare enum SymbolEffectStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
SCALE = 1,
@@ -294,7 +294,7 @@ declare enum SymbolEffectStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
HIERARCHICAL = 2,
@@ -336,7 +336,7 @@ declare enum EffectDirection {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
DOWN = 0,
@@ -355,7 +355,7 @@ declare enum EffectDirection {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
UP = 1,
@@ -378,7 +378,7 @@ declare enum EffectDirection {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare enum EffectScope {
@@ -397,7 +397,7 @@ declare enum EffectScope {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
LAYER = 0,
@@ -416,7 +416,7 @@ declare enum EffectScope {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
WHOLE = 1,
@@ -439,7 +439,7 @@ declare enum EffectScope {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare enum EffectFillStyle {
@@ -458,7 +458,7 @@ declare enum EffectFillStyle {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
CUMULATIVE = 0,
@@ -478,7 +478,7 @@ declare enum EffectFillStyle {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
ITERATIVE = 1,
@@ -499,7 +499,7 @@ declare enum EffectFillStyle {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare class SymbolEffect {
@@ -522,7 +522,7 @@ declare class SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare class ScaleSymbolEffect extends SymbolEffect {
@@ -545,7 +545,7 @@ declare class ScaleSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
constructor(scope?: EffectScope, direction?: EffectDirection);
@@ -567,7 +567,7 @@ declare class ScaleSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
scope?: EffectScope;
@@ -589,7 +589,7 @@ declare class ScaleSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
direction?: EffectDirection;
@@ -612,7 +612,7 @@ declare class ScaleSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare class HierarchicalSymbolEffect extends SymbolEffect {
@@ -633,7 +633,7 @@ declare class HierarchicalSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
constructor(fillStyle?: EffectFillStyle);
@@ -655,7 +655,7 @@ declare class HierarchicalSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
fillStyle?: EffectFillStyle;
@@ -678,7 +678,7 @@ declare class HierarchicalSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare class AppearSymbolEffect extends SymbolEffect {
@@ -699,7 +699,7 @@ declare class AppearSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
constructor(scope?: EffectScope);
@@ -721,7 +721,7 @@ declare class AppearSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
scope?: EffectScope;
@@ -744,7 +744,7 @@ declare class AppearSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare class DisappearSymbolEffect extends SymbolEffect {
@@ -765,7 +765,7 @@ declare class DisappearSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
constructor(scope?: EffectScope);
@@ -787,7 +787,7 @@ declare class DisappearSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
scope?: EffectScope;
@@ -810,7 +810,7 @@ declare class DisappearSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare class BounceSymbolEffect extends SymbolEffect {
@@ -833,7 +833,7 @@ declare class BounceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
constructor(scope?: EffectScope, direction?: EffectDirection);
@@ -855,7 +855,7 @@ declare class BounceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
scope?: EffectScope;
@@ -877,7 +877,7 @@ declare class BounceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
direction?: EffectDirection;
@@ -900,7 +900,7 @@ declare class BounceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare class ReplaceSymbolEffect extends SymbolEffect {
@@ -921,7 +921,7 @@ declare class ReplaceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
constructor(scope?: EffectScope);
@@ -943,7 +943,7 @@ declare class ReplaceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
scope?: EffectScope;
@@ -1052,7 +1052,7 @@ declare class QuickReplaceSymbolEffect extends SymbolEffect {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare class SymbolGlyphAttribute extends CommonMethod {
@@ -1083,7 +1083,7 @@ declare class SymbolGlyphAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
fontSize(value: number | string | Resource): SymbolGlyphAttribute;
@@ -1115,7 +1115,7 @@ declare class SymbolGlyphAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
fontColor(value: Array): SymbolGlyphAttribute;
@@ -1158,7 +1158,7 @@ declare class SymbolGlyphAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
fontWeight(value: number | FontWeight | string): SymbolGlyphAttribute;
@@ -1222,7 +1222,7 @@ declare class SymbolGlyphAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
renderingStrategy(value: SymbolRenderingStrategy): SymbolGlyphAttribute;
@@ -1309,7 +1309,7 @@ declare class SymbolGlyphAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'18', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
minFontScale(scale: Optional): SymbolGlyphAttribute;
@@ -1331,7 +1331,7 @@ declare class SymbolGlyphAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'18', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
maxFontScale(scale: Optional): SymbolGlyphAttribute;
diff --git a/api/@internal/component/ets/tab_content.d.ts b/api/@internal/component/ets/tab_content.d.ts
index 27ba0daee7..56eb3f714a 100644
--- a/api/@internal/component/ets/tab_content.d.ts
+++ b/api/@internal/component/ets/tab_content.d.ts
@@ -713,7 +713,7 @@ declare interface TabBarIconStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
declare class TabBarSymbol {
@@ -734,7 +734,7 @@ declare class TabBarSymbol {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
normal: SymbolGlyphModifier;
@@ -756,7 +756,7 @@ declare class TabBarSymbol {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
selected?: SymbolGlyphModifier;
diff --git a/api/@internal/component/ets/text.d.ts b/api/@internal/component/ets/text.d.ts
index 68aa2227b1..2b0b4ee144 100644
--- a/api/@internal/component/ets/text.d.ts
+++ b/api/@internal/component/ets/text.d.ts
@@ -464,7 +464,7 @@ declare class TextAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
minFontScale(scale: number | Resource): TextAttribute;
@@ -498,7 +498,7 @@ declare class TextAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12', '1.2':'20'}
+ * @since 20
* @arkts 1.1&1.2
*/
maxFontScale(scale: number | Resource): TextAttribute;
diff --git a/api/@ohos.arkui.drawableDescriptor.d.ts b/api/@ohos.arkui.drawableDescriptor.d.ts
index e88cbffb2f..fdfeda525a 100644
--- a/api/@ohos.arkui.drawableDescriptor.d.ts
+++ b/api/@ohos.arkui.drawableDescriptor.d.ts
@@ -286,7 +286,7 @@ export declare class LayeredDrawableDescriptor extends DrawableDescriptor {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'20','1.2':'20'}
+ * @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
getBackground(): DrawableDescriptor;
--
Gitee