# vue-vote

> this is vote component base on vue2.0.

Latest version **1.0.9** (published 2021-09-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-vote
pnpm add vue-vote
yarn add vue-vote
bun add vue-vote
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2021-09-30 |
| First published | 2021-09-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | guonan |
| Maintainers | guonei001 |
| Keywords | vue, vote, 投票, 组件, component, poll, vue-poll, vue-vote |

## Links

- npm: https://www.npmjs.com/package/vue-vote
- Repository: https://gitee.com/guonan01/vue-vote
- npm.io page: https://npm.io/package/vue-vote

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2021-09-30
- 1.0.8 — 2021-09-30
- 1.0.7 — 2021-09-30
- 1.0.6 — 2021-09-30
- 1.0.5 — 2021-09-30
- 1.0.4 — 2021-09-30
- 1.0.3 — 2021-09-30
- 1.0.2 — 2021-09-30
- 1.0.1 — 2021-09-30
- 1.0.0 — 2021-09-30

## README

# vue-vote

#### Description
> A Vue.js component for creating polls, 
>voting and showing results. It’s easy to implement and easy to customize.
>It`s based on vue2+

#### Install
```
npm i vue-vote
```
#### Usage
```
<template>
    <div id="app" class="container">
      <vue-vote v-bind="options" @addvote="addVote"></vue-vote>
    </div>
</template>

data(){
        return {
          options: {
            question: "Vote for your favorite NBA team",
            answers: [
              { value: 1, text: "Los Angeles Lakers", votes: 53 },
              { value: 2, text: "Houston Rockets", votes: 295 },
              { value: 3, text: "Minnesota Timberwolves", votes: 30 },
              { value: 4, text: "New York Knicks", votes: 10 }
            ]
          }
        }
    },
    methods: {
      addVote(obj) {
        console.log("You voted " + obj.value + "!");
      },
    }
```

#### The effect：
![输入图片说明](https://images.gitee.com/uploads/images/2021/0930/153206_89fd8af9_1003280.png "屏幕截图.png")
![输入图片说明](https://images.gitee.com/uploads/images/2021/0930/153216_32990900_1003280.png "屏幕截图.png")
![输入图片说明](https://images.gitee.com/uploads/images/2021/0930/173215_5e9d77ca_1003280.png "屏幕截图.png")

---
_Source: https://npm.io/package/vue-vote · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
