From 88be358f738d465b9a37855bf0046d55ecd701e2 Mon Sep 17 00:00:00 2001 From: zcdqs Date: Mon, 25 Jul 2022 08:39:37 +0800 Subject: [PATCH] fixed 42a3929 from https://gitee.com/zcdqs/third_party_jsframework/pulls/541 add getInspector for toolbar Signed-off-by: zcdqs Change-Id: I9cc8e8cdf0afa9c349ee66726790f6170590fc0c --- runtime/preparation/init.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/preparation/init.ts b/runtime/preparation/init.ts index 289fee83..5e923af8 100644 --- a/runtime/preparation/init.ts +++ b/runtime/preparation/init.ts @@ -201,5 +201,7 @@ const ComponentsInfo: components[] = [ { 'methods': ['takePhoto', 'startRecorder', 'closeRecorder', 'scrollTo', 'createIntersectionObserver', 'addChild'], 'type': 'camera' - } + }, + { 'methods': ['getInspector'], 'type': 'toolbar' }, + { 'methods': ['getInspector'], 'type': 'toolbar-item' } ];