dapaijizhang3/node_modules/@jdmini/components
honghefly c6d7af9ae4 first commit 2025-11-20 16:42:59 +08:00
..
miniprogram_dist first commit 2025-11-20 16:42:59 +08:00
README.md first commit 2025-11-20 16:42:59 +08:00
package.json first commit 2025-11-20 16:42:59 +08:00

README.md

安装/更新

1、终端使用命令安装 npm 包

npm install --save @jdmini/components@latest

2、在小程序开发者工具中菜单选择工具 -> 构建 npm

注意:依赖@jdmini/api请确保小程序项目已安装@jdmini/api

使用

1、在页面的 json 文件中引入组件:

{
  "usingComponents": {
    "jdwx-ad": "@jdmini/components/jdwx-ad",
    "jdwx-link": "@jdmini/components/jdwx-link"
  }
}

2、在页面的 wxml 文件中使用组件:

<jdwx-ad type="custom" />
<jdwx-link />