From 93e167a011109e9e4145dcc9019072f81030a0dc Mon Sep 17 00:00:00 2001 From: zhangbingce Date: Tue, 11 Jan 2022 19:54:03 +0800 Subject: [PATCH] sync xcomponent interface for js Signed-off-by: zhangbingce Change-Id: I745f32718e28a63380997e746ce78297d9f7b552 --- ace-loader/plugin/templater/rich_component_map.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ace-loader/plugin/templater/rich_component_map.js b/ace-loader/plugin/templater/rich_component_map.js index a18ae0d..3186d62 100644 --- a/ace-loader/plugin/templater/rich_component_map.js +++ b/ace-loader/plugin/templater/rich_component_map.js @@ -1544,14 +1544,15 @@ const richNativeTag = { 'xcomponent': { atomic: true, selfClosing: true, - uevents: ['xcomponentinit', 'xcomponentdestroy'], + uevents: ['load', 'destroy'], uattrs: { - name: {}, + id: { + required: true, + }, type: { required: true, }, libraryname: {}, - id: {}, ref: {}, }, },