diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-xcomponent.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-xcomponent.md index fb808bf398665fd34d6132ef11aa11fd2395e4a0..0097cf270dbd908f1fd8954bf248343b1d0db274 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-xcomponent.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-xcomponent.md @@ -14,7 +14,9 @@ ## 接口 -**方法1:** XComponent(value: {id: string, type: string, libraryname?: string, controller?: XComponentController}) +### XComponent + +XComponent(value: {id: string, type: string, libraryname?: string, controller?: XComponentController}) **参数:** @@ -25,7 +27,9 @@ | libraryname | string | 否 | 应用Native层编译输出动态库名称,仅XComponent类型为"surface"时有效。 | | controller | [XComponentcontroller](#xcomponentcontroller) | 否 | 给组件绑定一个控制器,通过控制器调用组件方法,仅XComponent类型为"surface"时有效。 | -**方法2:** XComponent(value: {id: string, type: XComponentType, libraryname?: string, controller?: XComponentController})10+ +### XComponent10+ + +XComponent(value: {id: string, type: XComponentType, libraryname?: string, controller?: XComponentController}) **参数:**