From 13b46b867df8fec478c8014bb9a5b6fd1e8176e5 Mon Sep 17 00:00:00 2001 From: kiccer Date: Thu, 24 Oct 2019 15:21:01 +0800 Subject: [PATCH] update 1. add `v-load` & `v-unload` 2. `v-resize` add modifiers `.lazy` & `.100` 3. `v-mousewheel` add modifiers `.stop` & `.prevent` --- README.md | 53 +++++++++++++++++++++++++-- package.json | 2 +- public/js/vue-directive-extend.js | 2 + public/js/vue-directive-load.js | 22 +++++++++++ public/js/vue-directive-mousewheel.js | 19 ++++++---- public/js/vue-directive-resize.js | 24 +++++++++++- src/App.vue | 1 + src/components/HelloWorld.vue | 16 ++++++-- 8 files changed, 123 insertions(+), 16 deletions(-) create mode 100644 public/js/vue-directive-load.js diff --git a/README.md b/README.md index 198d2be..bcb8511 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,10 @@ npm install --save vue-directive-extend ``` -### Using +### Usage +> In `main.js` files. + ```javascript -// main.js import Vue from 'vue' import App from './App.vue' import vueDirectiveExtend from 'vue-directive-extend' @@ -24,7 +25,8 @@ new Vue({ }).$mount('#app') ``` -In `.vue` files. +> In `.vue` files. + ```vue