btm-lottie
v1.0.2
Published
<!-- * @Author: wls * @Date: 2023-11-23 13:12:59 * @LastEditors: wls * @LastEditTime: 2023-11-23 13:25:03 * @Description: -->
Downloads
4
Readme
btm-lottie
Install
npm i btm-lottie
npm i lottie-web
Usage
// 在vue 文件main.js 中引入自定一插件
import { LottieTool } from "btm-lottie";
Vue.use(LottieTool);
use in the page:
<template>
<div>
<lottieTool
:options="heartOptions"
:height="height"
:width="width"></lottieTool>
</div>
</template>
export default {
data() {
return {
heartOptions: {
animationData: heartdata,
loop: true,
autoplay: true,
},
height:height,
width:width
}
}
}