1.3.0 • Published 6 years ago

@livelybone/vue-button v1.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

@livelybone/vue-button

NPM Version Download Month gzip with dependencies: 0.7kb pkg.module

pkg.module supported, which means that you can apply tree-shaking in you project

A vue button component with anti-shake feature implemented by Promise, custom lock styles or text You maybe need a promise polyfill if you want to use it in IE browser

repository

https://github.com/livelybone/vue-button.git

Demo

http://livelybone.github.io/vue/vue-button/

Installation

npm i -S @livelybone/vue-button

Global name

VueBtn

Usage

// import all
import VueBtn from '@livelybone/vue-button';

// Global register
Vue.component('VueBtn', VueBtn);

// Local register
new Vue({
  components:{VueBtn}
})

when you want to set this module as external while you are developing another module, you should import it like this:

import VueBtn  from '@livelybone/vue-button'

Props

NameTypeDefaultValueDescription
clickFnFunction(required)noneThe handler of click returns a Promise
errorFnFunctionnoneThe handler of Promise reject
canUseAgainBooleantrueSet whether the button can be used again or not

Slots

default

lock

For custom lock content

1.3.0

6 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago