index.js 222 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 import Vue from 'vue' import * as filter from './filter' Object.keys(filter).forEach(k => Vue.filter(k, filter[k])) Vue.prototype.$formatDate = Vue.filter('formatDate') Vue.prototype.$hidePhone = Vue.filter('hidePhone')