2017-05-26 00:54:03 +00:00
|
|
|
'use strict'
|
|
|
|
|
2017-05-26 04:12:38 +00:00
|
|
|
const helpers = {
|
2017-09-10 05:41:22 +00:00
|
|
|
_: require('./lodash'),
|
2017-06-05 03:16:00 +00:00
|
|
|
common: require('./common'),
|
2017-05-26 04:12:38 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|