模糊元素的vue指令 - v-blur

2017-07-09      34      Vue
项目简介

v-blur

Vue directive to blur a specific element dynamically

Install

$ npm install --save v-blur
$ yarn add v-blur

Use

import Vue from 'vue'
import vBlur from 'v-blur'

Vue.use(vBlur)
<script>
  export default {
      data () {
        return {
          isBlurred: true
        }
      }
    }
  };
</script>

<template>
  <div v-blur="isBlurred"></div>
</template>

Example