You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
343 B

  1. 'use strict'
  2. const helpers = {
  3. _: require('./lodash'),
  4. common: require('./common'),
  5. form: require('./form'),
  6. pages: require('./pages')
  7. }
  8. export default {
  9. install(Vue) {
  10. Vue.$helpers = helpers
  11. Object.defineProperties(Vue.prototype, {
  12. $helpers: {
  13. get() {
  14. return helpers
  15. }
  16. }
  17. })
  18. }
  19. }