# Installation
# Direct Download
https://github.com/PsChina/easy-filter/archive/1.6.8.zip
The above link will always point to the latest release on github.
Include easy-filter
after Vue and it will install itself automatically:
<script src="./path/to/vue.js"></script>
<script src="./path/to/easy-filter.min.js"></script>
1
2
2
# Npm
npm install easy-filter --save
1
When used with a module system, you must explicitly install the router via Vue.use():
import Vue from 'vue'
import EasyFilter from 'easy-filter'
Vue.use(EasyFilter)
1
2
3
4
2
3
4
You don't need to do this when using global script tags.
# Install on demand
import {
number,
orderBy,
//...
} from "easy-filter";
Vue.filter('number', number);
Vue.filter('orderBy', orderBy);
const easyFilter = {
number,
orderBy,
};
Vue.prototype.$easyFilter = Vue.easyFilter = easyFilter;
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# Yarn
yarn install easy-filter --save
1