1.0.2 • Published 6 months ago

btm-lottie v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

btm-lottie

version

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
      }
  }
}
1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago