0.0.3 • Published 2 years ago

vue3-svga-player v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

vue3-svgaplayerweb

组件中使用

<script setup>
import { Vue3SvgaPlayer } from 'vue3-svga-player'
import from 'vue3-svga-player/dist/style.css'

/**
  * 动画进行中
*/
const onProgress = ()=>{
  console.log('onProgress')
}

/**
  * 动画播放完成
*/
const onFinished = ()=>{
  console.log('onFinished')
}

let svgaPath = ref('你的svga地址')
</script >

<template>
  <Vue3SvgaPlayer
    @onFinished='onFinished'
    @onProgress='onProgress'
    :svgaPath='svgaPath'/>
</template>