vue-counter

1.0.1 • Public • Published

vue-counter

This is a counter button where you can change the value

  • press the +, - buttons
  • press the up, down arrow
  • scroll the mouse wheel
  • set a minimum value via prop

Installation

npm install vue-counter

Usage

In your template

<counter @counterVal = "counter[0] = $event" minimumVal="5"></counter>
<counter @counterVal = "counter[1] = $event" minimumVal="10"></counter>
<counter @counterVal = "counter[2] = $event" minimumVal="15"></counter>

In script

data(){
  return {
    counter: [],
  }
},

Readme

Keywords

none

Package Sidebar

Install

npm i vue-counter

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

3.2 kB

Total Files

3

Last publish

Collaborators

  • irtezaasad