窗口错误码整改

Change-Id: I361187c98ee3c0a55a9ee0245f9e710ec7534f75
Signed-off-by: zhengjiangliang <zhengjiangliang@huawei.com>
This commit is contained in:
zhengjiangliang 2022-10-13 09:05:35 +08:00
parent 92727ee701
commit f80eb22f20

View File

@ -615,7 +615,7 @@ declare namespace window {
/**
* Indicates Parent window id
*/
parentId?: string
parentId?: number
}
/**
@ -627,7 +627,7 @@ declare namespace window {
* @throws {BusinessError} 1300001 - If window has created
* @throws {BusinessError} 1300006 - If window context is abnormally
*/
function createWindow({ name, windowType, ctx, displayId, parentId = "" }: Configuration, callback: AsyncCallback<Window>): void;
function createWindow(config: Configuration, callback: AsyncCallback<Window>): void;
/**
* Create a window with a specific configuration
@ -638,7 +638,7 @@ declare namespace window {
* @throws {BusinessError} 1300001 - If window has created
* @throws {BusinessError} 1300006 - If window context is abnormally
*/
function createWindow({ name, windowType, ctx, displayId, parentId = "" }: Configuration): Promise<Window>;
function createWindow(config: Configuration): Promise<Window>;
/**
* Create a sub window with a specific id and type, only support 7.