| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|删除|类名:componentUtils;
方法or属性:type Matrix4Result = [
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
];|NA|@ohos.componentUtils.d.ts|
|删除|类名:componentUtils;
方法or属性:function getRectangleById(id: string): ComponentInfo;|NA|@ohos.componentUtils.d.ts|
|删除|类名:ComponentInfo;
方法or属性:size: Size|NA|@ohos.componentUtils.d.ts|
|删除|类名:ComponentInfo;
方法or属性:localOffset: Offset|NA|@ohos.componentUtils.d.ts|
|删除|类名:ComponentInfo;
方法or属性:windowOffset: Offset|NA|@ohos.componentUtils.d.ts|
|删除|类名:ComponentInfo;
方法or属性:screenOffset: Offset|NA|@ohos.componentUtils.d.ts|
|删除|类名:ComponentInfo;
方法or属性:translate: TranslateResult|NA|@ohos.componentUtils.d.ts|
|删除|类名:ComponentInfo;
方法or属性:scale: ScaleResult|NA|@ohos.componentUtils.d.ts|
|删除|类名:ComponentInfo;
方法or属性:rotate: RotateResult|NA|@ohos.componentUtils.d.ts|
|删除|类名:ComponentInfo;
方法or属性:transform: Matrix4Result|NA|@ohos.componentUtils.d.ts|
|删除|类名:Size;
方法or属性:width: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:Size;
方法or属性:height: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:Offset;
方法or属性:x: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:TranslateResult;
方法or属性:x: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:ScaleResult;
方法or属性:x: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:RotateResult;
方法or属性:x: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:Offset;
方法or属性:y: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:TranslateResult;
方法or属性:y: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:ScaleResult;
方法or属性:y: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:RotateResult;
方法or属性:y: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:TranslateResult;
方法or属性:z: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:ScaleResult;
方法or属性:z: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:RotateResult;
方法or属性:z: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:ScaleResult;
方法or属性:centerX: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:RotateResult;
方法or属性:centerX: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:ScaleResult;
方法or属性:centerY: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:RotateResult;
方法or属性:centerY: number|NA|@ohos.componentUtils.d.ts|
|删除|类名:RotateResult;
方法or属性:angle: number|NA|@ohos.componentUtils.d.ts|
|新增|NA|类名:componentUtils;
方法or属性:type Matrix4Result = [
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
];|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:componentUtils;
方法or属性:function getRectangleById(id: string): ComponentInfo;|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ComponentInfo;
方法or属性:size: Size|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ComponentInfo;
方法or属性:localOffset: Offset|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ComponentInfo;
方法or属性:windowOffset: Offset|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ComponentInfo;
方法or属性:screenOffset: Offset|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ComponentInfo;
方法or属性:translate: TranslateResult|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ComponentInfo;
方法or属性:scale: ScaleResult|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ComponentInfo;
方法or属性:rotate: RotateResult|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ComponentInfo;
方法or属性:transform: Matrix4Result|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:Size;
方法or属性:width: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:Size;
方法or属性:height: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:Offset;
方法or属性:x: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:TranslateResult;
方法or属性:x: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ScaleResult;
方法or属性:x: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:RotateResult;
方法or属性:x: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:Offset;
方法or属性:y: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:TranslateResult;
方法or属性:y: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ScaleResult;
方法or属性:y: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:RotateResult;
方法or属性:y: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:TranslateResult;
方法or属性:z: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ScaleResult;
方法or属性:z: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:RotateResult;
方法or属性:z: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ScaleResult;
方法or属性:centerX: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:RotateResult;
方法or属性:centerX: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ScaleResult;
方法or属性:centerY: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:RotateResult;
方法or属性:centerY: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:RotateResult;
方法or属性:angle: number|@ohos.arkui.componentUtils.d.ts|
|新增|NA|类名:ShowDialogOptions;
方法or属性:maskRect?: Rectangle;|@ohos.promptAction.d.ts|
|新增|NA|类名:ShowDialogOptions;
方法or属性:alignment?: DialogAlignment;|@ohos.promptAction.d.ts|
|新增|NA|类名:ShowDialogOptions;
方法or属性:offset?: Offset;|@ohos.promptAction.d.ts|
|废弃版本有变化|类名:AbilityComponentInterface;
方法or属性:interface AbilityComponentInterface
旧版本信息:|类名:AbilityComponentInterface;
方法or属性:interface AbilityComponentInterface
新版本信息:10
代替接口: UIExtensionComponentInterface|ability_component.d.ts|
|废弃版本有变化|类名:AbilityComponentInterface;
方法or属性:(value: { want: import('../api/@ohos.app.ability.Want').default }): AbilityComponentAttribute;
旧版本信息:|类名:AbilityComponentInterface;
方法or属性:(value: { want: import('../api/@ohos.app.ability.Want').default }): AbilityComponentAttribute;
新版本信息:10
代替接口: UIExtensionComponentInterface|ability_component.d.ts|
|废弃版本有变化|类名:AbilityComponentAttribute;
方法or属性:declare class AbilityComponentAttribute
旧版本信息:|类名:AbilityComponentAttribute;
方法or属性:declare class AbilityComponentAttribute
新版本信息:10
代替接口: UIExtensionComponentAttribute|ability_component.d.ts|
|废弃版本有变化|类名:AbilityComponentAttribute;
方法or属性:onConnect(callback: () => void): AbilityComponentAttribute;
旧版本信息:|类名:AbilityComponentAttribute;
方法or属性:onConnect(callback: () => void): AbilityComponentAttribute;
新版本信息:10
代替接口: UIExtensionComponent#onRemoteReady|ability_component.d.ts|
|废弃版本有变化|类名:AbilityComponentAttribute;
方法or属性:onDisconnect(callback: () => void): AbilityComponentAttribute;
旧版本信息:|类名:AbilityComponentAttribute;
方法or属性:onDisconnect(callback: () => void): AbilityComponentAttribute;
新版本信息:10
代替接口: UIExtensionComponent#onRelease|ability_component.d.ts|
|废弃版本有变化|类名:CustomComponent;
方法or属性:onLayout?(children: Array\, constraint: ConstraintSizeOptions): void;
旧版本信息:|类名:CustomComponent;
方法or属性:onLayout?(children: Array\, constraint: ConstraintSizeOptions): void;
新版本信息:10
代替接口: common[CustomComponent]#onPlaceChildren|common.d.ts|
|废弃版本有变化|类名:CustomComponent;
方法or属性:onMeasure?(children: Array\, constraint: ConstraintSizeOptions): void;
旧版本信息:|类名:CustomComponent;
方法or属性:onMeasure?(children: Array\, constraint: ConstraintSizeOptions): void;
新版本信息:10
代替接口: common[CustomComponent]#onMeasureSize|common.d.ts|
|废弃版本有变化|类名:DatePickerAttribute;
方法or属性:onChange(callback: (value: DatePickerResult) => void): DatePickerAttribute;
旧版本信息:|类名:DatePickerAttribute;
方法or属性:onChange(callback: (value: DatePickerResult) => void): DatePickerAttribute;
新版本信息:10
代替接口: datePicker/DatePickerAttribute#onDateChange|date_picker.d.ts|
|废弃版本有变化|类名:DatePickerDialogOptions;
方法or属性:onAccept?: (value: DatePickerResult) => void;
旧版本信息:|类名:DatePickerDialogOptions;
方法or属性:onAccept?: (value: DatePickerResult) => void;
新版本信息:10
代替接口: datePicker/DatePickerDialogOptions#onDateAccept|date_picker.d.ts|
|废弃版本有变化|类名:DatePickerDialogOptions;
方法or属性:onChange?: (value: DatePickerResult) => void;
旧版本信息:|类名:DatePickerDialogOptions;
方法or属性:onChange?: (value: DatePickerResult) => void;
新版本信息:10
代替接口: datePicker/DatePickerDialogOptions#onDateChange|date_picker.d.ts|
|废弃版本有变化|类名:ImageAttribute;
方法or属性:draggable(value: boolean): ImageAttribute;
旧版本信息:10|类名:ImageAttribute;
方法or属性:draggable(value: boolean): ImageAttribute;
新版本信息:
代替接口:|image.d.ts|
|废弃版本有变化|类名:TextAttribute;
方法or属性:draggable(value: boolean): TextAttribute;
旧版本信息:10|类名:TextAttribute;
方法or属性:draggable(value: boolean): TextAttribute;
新版本信息:
代替接口:|text.d.ts|
|新增(错误码)|类名:PromptAction;
方法or属性:showActionMenu(options: promptAction.ActionMenuOptions): Promise\;
旧版本信息:|类名:PromptAction;
方法or属性:showActionMenu(options: promptAction.ActionMenuOptions): Promise\;
新版本信息:401,100001|@ohos.arkui.UIContext.d.ts|
|新增(错误码)|类名:uiAppearance;
方法or属性:function setDarkMode(mode: DarkMode, callback: AsyncCallback\): void;
旧版本信息:|类名:uiAppearance;
方法or属性:function setDarkMode(mode: DarkMode, callback: AsyncCallback\): void;
新版本信息:201,401,500001|@ohos.uiAppearance.d.ts|
|新增(错误码)|类名:uiAppearance;
方法or属性:function setDarkMode(mode: DarkMode): Promise\;
旧版本信息:|类名:uiAppearance;
方法or属性:function setDarkMode(mode: DarkMode): Promise\;
新版本信息:201,401,500001|@ohos.uiAppearance.d.ts|
|新增(错误码)|类名:uiAppearance;
方法or属性:function getDarkMode(): DarkMode;
旧版本信息:|类名:uiAppearance;
方法or属性:function getDarkMode(): DarkMode;
新版本信息:201,401,500001|@ohos.uiAppearance.d.ts|
|新增(错误码)|类名:DragEvent;
方法or属性:getData(): UnifiedData;
旧版本信息:|类名:DragEvent;
方法or属性:getData(): UnifiedData;
新版本信息:190001,190002|common.d.ts|
|访问级别有变化|类名:ScrollSnapAlign;
方法or属性:declare enum ScrollSnapAlign
旧版本信息:systemapi|类名:ScrollSnapAlign;
方法or属性:declare enum ScrollSnapAlign
新版本信息:|list.d.ts|
|访问级别有变化|类名:ListAttribute;
方法or属性:scrollSnapAlign(value: ScrollSnapAlign): ListAttribute;
旧版本信息:systemapi|类名:ListAttribute;
方法or属性:scrollSnapAlign(value: ScrollSnapAlign): ListAttribute;
新版本信息:|list.d.ts|
|type有变化|类名:Matrix2D;
方法or属性:scaleX?: number;
旧版本信息:number|类名:Matrix2D;
方法or属性:scaleX?: number;
新版本信息:?number|canvaspattern.d.ts|
|type有变化|类名:Matrix2D;
方法or属性:rotateY?: number;
旧版本信息:number|类名:Matrix2D;
方法or属性:rotateY?: number;
新版本信息:?number|canvaspattern.d.ts|
|type有变化|类名:Matrix2D;
方法or属性:rotateX?: number;
旧版本信息:number|类名:Matrix2D;
方法or属性:rotateX?: number;
新版本信息:?number|canvaspattern.d.ts|
|type有变化|类名:Matrix2D;
方法or属性:scaleY?: number;
旧版本信息:number|类名:Matrix2D;
方法or属性:scaleY?: number;
新版本信息:?number|canvaspattern.d.ts|
|type有变化|类名:Matrix2D;
方法or属性:translateX?: number;
旧版本信息:number|类名:Matrix2D;
方法or属性:translateX?: number;
新版本信息:?number|canvaspattern.d.ts|
|type有变化|类名:Matrix2D;
方法or属性:translateY?: number;
旧版本信息:number|类名:Matrix2D;
方法or属性:translateY?: number;
新版本信息:?number|canvaspattern.d.ts|
|type有变化|类名:DragInfo;
方法or属性:data?: unifiedDataChannel.UnifiedData;
旧版本信息:?UDMF.UnifiedData|类名:DragInfo;
方法or属性:data?: unifiedDataChannel.UnifiedData;
新版本信息:?unifiedDataChannel.UnifiedData|@ohos.arkui.dragController.d.ts|
|type有变化|类名:MeasureOptions;
方法or属性:fontFamily?: string \| Resource;
旧版本信息:?(number \| Resource)|类名:MeasureOptions;
方法or属性:fontFamily?: string \| Resource;
新版本信息:?(string \| Resource)|@ohos.measure.d.ts|
|type有变化|类名:ShowDialogOptions;
方法or属性:buttons?: [Button, Button?, Button?];
旧版本信息:?([Button, Button?, Button?])|类名:ShowDialogOptions;
方法or属性:buttons?: [Button, Button?, Button?];
新版本信息:?[Button, Button?, Button?]|@ohos.prompt.d.ts|
|type有变化|类名:ShowDialogOptions;
方法or属性:buttons?: Array\