taro-puzzle
v0.0.6
Published
拼图游戏
Downloads
8
Readme
puzzle
简介
使用Taro封装拼图游戏插件,在taro项目中使用此插件,可使用拼图游戏。
本地测试
cd puzzle
npm install
[sudo] npm link
会生成npm包 /usr/local/lib/node_modules/@aimcheap/puzzle
cd example
npm install
npm link @aimcheap/puzzle
生产使用
- 安装插件
yarn add @aimcheap/puzzle
- 引入插件
import WidgetPuzzle from '@aimcheap/puzzle'
- taro页面添加标签
<WidgetPuzzle api='your-server-api' phoneNumber='手机号' userInfo={用户信息}/>
api: String类型
phoneNumber: String类型
userInfo: Object类型