Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-luck-draw

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-luck-draw

> https://100px.net/vue-luck-draw

  • 3.0.0
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

官方文档 & Demo演示

https://100px.net/vue-luck-draw

安装

使用 npm 安装:npm i vue-luck-draw

使用 yarn 安装:yarn add vue-luck-draw


使用

方式1: 通过 import 引入

找到 main.js 引入插件并 use

import LuckDraw from 'vue-luck-draw'

Vue.use(LuckDraw)

然后在组件内使用<LuckyWheel />大转盘组件<LuckyGrid />九宫格组件

<template>
  <div>
    <!-- 大转盘抽奖 -->
    <LuckyWheel
      style="width: 200px; height: 200px"
      ...你的配置
    />
    <!-- 九宫格抽奖 -->
    <LuckyGrid
      style="width: 200px; height: 200px"
      ...你的配置
    />
  </div>
</template>

方式2: 通过 script 标签引入

从下面的链接里下载一个叫index.umd.min.js的 js 文件, 然后使用 script 标签引入

<div id="app">
  <!-- 大转盘抽奖 -->
  <LuckyWheel
    style="width: 200px; height: 200px"
    ...你的配置
  />
  <!-- 九宫格抽奖 -->
  <LuckyGrid
    style="width: 200px; height: 200px"
    ...你的配置
  />
</div>
<script src="./vue.min.js"></script>
<script src="./index.umd.min.js"></script>
<script>
  new Vue({
    el: '#app'
  })
</script>

Keywords

FAQs

Package last updated on 21 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc