未验证 提交 68378757 编写于 作者: Y yun小梦 提交者: GitHub

Update README.md

上级 808fa22e
......@@ -12,7 +12,8 @@
调用时需要先在对应文件夹的```.json```文件里的**usingComponents**字段添加ypicker组件路径,如:
```
"usingComponents": {
"y-picker":"../../components/yPicker/ypicker"
"y-picker":"/components/yPicker/ypicker",
"y-coupon":"/components/coupon/coupon"
}
```
......@@ -21,6 +22,11 @@
然后即可在wxml中调用:
```
<y-picker></y-picker>
<y-coupon>
<image slot="l_img" src="/img/localSDK.png" mode="aspectFill"></image>
<text slot="l_text">今日头条</text>
<text slot="r_text">uagiuagfiuagf以按广东省覅蒛以爱的功夫撒个</text>
</y-coupon>
```
并传参!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册