更新记录
1.0.0(2025-01-10) 下载此版本
首次提交
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | √ | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - | - | - |
其他
多语言 | 暗黑模式 | 宽屏模式 |
---|---|---|
× | × | √ |
1.0.0(2025-01-10)
首次提交 2025-1-10
1.本插件依赖lottie-miniprogram包(2.0.3版本)
npm i lottie-miniprogram@2.0.3
import lottie from 'lottie-miniprogram';
2.需要引入自己的lottie动画
import aniData from '../../static/Animation.js';
3.传递参数
props:{
width:{ 图标宽度
type:Number,
default:100
},
height:{ 图标高度
type:Number,
default:100
},
lottieId:{ 图标ID
type:String,
default:''
}
},
总结:用法很简单,渲染出来动画和svg效果一样