11 lines
423 B
JavaScript
11 lines
423 B
JavaScript
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.$formatRemainTime = Vue.filter('formatRemainTime')
|
|
Vue.prototype.$hidePhone = Vue.filter('hidePhone')
|
|
Vue.prototype.$authorization = Vue.filter('authorization')
|
|
Vue.prototype.$commentTimeHandle = Vue.filter('commentTimeHandle')
|