index.js 832 B

123456789101112131415161718192021222324252627282930313233
  1. export { default as ContactConsult } from '../..\\components\\ContactConsult\\index.vue'
  2. export { default as ContactJoinUs } from '../..\\components\\ContactJoinUs\\index.vue'
  3. // nuxt/nuxt.js#8607
  4. function wrapFunctional(options) {
  5. if (!options || !options.functional) {
  6. return options
  7. }
  8. const propKeys = Array.isArray(options.props) ? options.props : Object.keys(options.props || {})
  9. return {
  10. render(h) {
  11. const attrs = {}
  12. const props = {}
  13. for (const key in this.$attrs) {
  14. if (propKeys.includes(key)) {
  15. props[key] = this.$attrs[key]
  16. } else {
  17. attrs[key] = this.$attrs[key]
  18. }
  19. }
  20. return h(options, {
  21. on: this.$listeners,
  22. attrs,
  23. props,
  24. scopedSlots: this.$scopedSlots,
  25. }, this.$slots.default)
  26. }
  27. }
  28. }