From cec1ba10347c6086277664526ea6aa8b63229362 Mon Sep 17 00:00:00 2001 From: zhangbingce Date: Tue, 11 Jan 2022 19:37:48 +0800 Subject: [PATCH] support getXComponentSurfaceId of xcomponent in js Signed-off-by: zhangbingce Change-Id: I2d15e5a3f41f700fe3f9ecd6e8f73fc1a7978042 --- runtime/preparation/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/preparation/init.ts b/runtime/preparation/init.ts index 037c73f1..934cc855 100644 --- a/runtime/preparation/init.ts +++ b/runtime/preparation/init.ts @@ -137,7 +137,7 @@ const ComponentsInfo: components[] = [ 'type': 'canvas' }, { - 'methods': ['getXComponentContext', 'createIntersectionObserver', 'addChild'], + 'methods': ['getXComponentContext', 'createIntersectionObserver', 'addChild', 'getXComponentSurfaceId'], 'type': 'xcomponent' }, {'methods': ['show', 'close', 'getBoundingClientRect', 'scrollBy', 'getScrollOffset', 'scrollTo', 'createIntersectionObserver', 'addChild'], 'type': 'dialog'},