regulation

0.1.1 • Public • Published

Regulation

Set up

npm install regulation --save

Usage

main.js

import Vue from 'vue'
import Regulation from 'regulation'
 
Vue.use(Regulation)
// ...

component.vue

<template>
  <!-- set interval zero to take it disabled -->
  <Regulation events="input" :delay="500" :interval="0">
    <input @input="handleAjaxCheck" />
  </Regulation>
</template>
<script>
export default {
  methods: {
    handleAjaxCheck () {
      // some ajax ...
    }
  }
}
</script>

/regulation/

    Package Sidebar

    Install

    npm i regulation

    Weekly Downloads

    0

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    290 kB

    Total Files

    12

    Last publish

    Collaborators

    • qmhc