From 810292ac12868e5e4ccae52a630b1df2c8efef0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8A=98=E8=85=BE=E7=AC=94=E8=AE=B0?= Date: Sat, 9 Jan 2021 17:43:20 +0800 Subject: [PATCH] Update mp-weixin-plugin.md --- docs/component/mp-weixin-plugin.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/component/mp-weixin-plugin.md b/docs/component/mp-weixin-plugin.md index a31c27c4f..0924e74f0 100644 --- a/docs/component/mp-weixin-plugin.md +++ b/docs/component/mp-weixin-plugin.md @@ -45,7 +45,7 @@ #### 在页面中使用 -在页面内使用插件需要在`pages.json`内对应页面的`style`节点下配置对应平台的`usingComponents`,示例如下。 +在页面内使用插件内包含的组件需要在`pages.json`内对应页面的`style`节点下配置对应平台的`usingComponents`或`usingSwanComponents`,示例如下。 以`"hello-component": "plugin://myPlugin/hello-component"`为例,`key`(冒号前的`hello-component`)为在页面内使用的组件名称。`value`分为三段,`plugin`为协议(在百度小程序内为`dynamicLib`),`myPlugin`为插件名称即引入插件时的名称,`hello-component`为插件暴露的组件名称。 @@ -74,12 +74,12 @@ } } -// 百度小程序 +// 百度小程序 注意是 usingSwanComponents 不是 usingComponents(HBuilder 3.0.8+ 可以使写为 usingComponents) { "path": "pages/index/index", "style": { "mp-baidu": { - "usingComponents": { + "usingSwanComponents": { "my-special-list": "dynamicLib://myDynamicLib/special-list" } } -- GitLab