使用vue实现灭霸打响指消散效果 发表于 2019-10-07 | 更新于 2023-01-11 kuan-vue-scatter使用vue实现灭霸打响指消散效果(工作太忙,一直想写,等到了国庆) 源码地址DEMO预览安装123npm install kuan-vue-scatter -S # oryarn add kuan-vue-scatter 使用123456789101112131415161718192021222324<template> <div> <button :disabled="!visible" @click="visible = false">{{visible ? '消散' : '显示'}}</button> <vue-scatter :visible="visible" @end="visible = true" class="test-container"> <img src="./images/1.jpg" alt=""> </vue-scatter> </div></template><script>import VueScatter from 'kuan-vue-scatter'export default { components: { VueScatter }, data() { return { visible: true } }}</script>