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

20 lines
286 B
JavaScript
Raw Normal View History

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