2017-05-26 00:54:03 +00:00
|
|
|
'use strict'
|
|
|
|
|
2017-05-26 04:12:38 +00:00
|
|
|
const helpers = {
|
|
|
|
form: require('./form'),
|
|
|
|
pages: require('./pages')
|
|
|
|
}
|
|
|
|
|
2017-05-26 00:54:03 +00:00
|
|
|
export default {
|
2017-05-26 04:12:38 +00:00
|
|
|
install(Vue) {
|
|
|
|
Vue.$helpers = helpers
|
|
|
|
Object.defineProperties(Vue.prototype, {
|
|
|
|
$helpers: {
|
|
|
|
get() {
|
|
|
|
return helpers
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
2017-05-26 00:54:03 +00:00
|
|
|
}
|
|
|
|
}
|