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.

19 lines
286 B

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