ym-ui-library
v1.1.5
Published
{**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**}
Downloads
27
Readme
优麦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: 二维码高,
#----------组件大小和父元素等同 imgData: {one:"",two: "" } one:正面 two:背面 <mf_reversal imgData="{{imgData}}"/>
#----------组件大小和父元素等同 sequenceData: {arr,loop:true,speed:0.4 } arr: 序列帧图组, loop: 是否循环(true/false) speed: 速度