@wxshot/components
v1.1.1
Published
WeChat Mini Program components
Readme
安装/更新
1、终端使用命令安装 npm 包
npm install --save @wxshot/components@latest2、在小程序开发者工具中:菜单选择工具 -> 构建 npm
注意:依赖@wxshot/api,请确保小程序项目已安装@wxshot/api
使用
1、在页面的 json 文件中引入组件:
{
"usingComponents": {
"wxshot-ad": "@wxshot/components/wxshot-ad",
"wxshot-link": "@wxshot/components/wxshot-link"
}
}2、在页面的 wxml 文件中使用组件:
<wxshot-ad type="custom" />
<wxshot-link />