wikijs-fork/client/js/helpers/index.js
2017-07-09 00:01:34 -04:00

21 lines
317 B
JavaScript

'use strict'
const helpers = {
common: require('./common'),
form: require('./form'),
pages: require('./pages')
}
export default {
install(Vue) {
Vue.$helpers = helpers
Object.defineProperties(Vue.prototype, {
$helpers: {
get() {
return helpers
}
}
})
}
}