wikijs-fork/client/js/helpers/index.js

22 lines
343 B
JavaScript
Raw Normal View History

'use strict'
const helpers = {
2017-09-10 05:41:22 +00:00
_: require('./lodash'),
common: require('./common'),
form: require('./form'),
pages: require('./pages')
}
export default {
install(Vue) {
Vue.$helpers = helpers
Object.defineProperties(Vue.prototype, {
$helpers: {
get() {
return helpers
}
}
})
}
}