turn-lucky

vue翻牌抽奖效果插件

Usage no npm install needed!

<script type="module">
  import turnLucky from 'https://cdn.skypack.dev/turn-lucky';
</script>

README

turn-lucky

vue翻牌抽奖组件

方法 closeDialog (关闭弹窗事件) flipCard (翻牌事件)

传入参数:

参数 type example
title String 福袋
imgSrc String 图片地址
showDialog Boolean 弹窗是否关闭
luckName String 中奖名字
btnText String 弹窗按钮文案

npm包  npm install turn-lucky

在需要用到的页面中(注意 一个页面目前只能引入一次)

import drawLucky from "turn-lucky";

components: { drawLucky }