优麦UI库
Description
{When you're done, you can delete the content in this README and update the file with details for others getting started with your repository}
Installation
安装: npm i ym-ui-library
引用: page.json 中引用
{
"usingComponents": {
"mf-sequence": "./ym-ui-library/es/sequence/sequence",
"mf-reversal": "./ym-ui-library/es/reversal/reversal",
"mf-qrcode": "./ym-ui-library/es/mf-qrcode/mf-qrcode"
}
}
page.axml 中使用
----------组件大小和父元素等同
qrData: {str, w, h } str:生成二维码字符串, w:二维码宽, h: 二维码高, <view style="width:{{w}}rpx;height:{{h}}rpx"> <mf-qrcode qrData="{{qrData}}" onTapGetImgUrl="getImgUrl" />
</view>----------组件大小和父元素等同
imgData: {one:"",two: "" } one:正面 two:背面 <view style="width:200rpx;height:390rpx; padding: 30rpx 0"> <mf_reversal imgData="{{imgData}}"/> </view>
----------组件大小和父元素等同
sequenceData: {arr,loop:true,speed:0.4 } arr: 序列帧图组, loop: 是否循环(true/false) speed: 速度 <view style="width:750rpx;height:1334rpx"> <mf-sequence sequenceData="{{sequenceData}}"/> </view>