index.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. export { default as ElNav } from '../..\\components\\ElNav.vue'
  2. export { default as FootBar } from '../..\\components\\FootBar.vue'
  3. export { default as HeadBar } from '../..\\components\\HeadBar.vue'
  4. export { default as LTInfo } from '../..\\components\\LTInfo.vue'
  5. export { default as LTProgress } from '../..\\components\\LTProgress.vue'
  6. export { default as NuxtLogo } from '../..\\components\\NuxtLogo.vue'
  7. export { default as SearchList } from '../..\\components\\SearchList.vue'
  8. export { default as Tutorial } from '../..\\components\\Tutorial.vue'
  9. export { default as WordEditor } from '../..\\components\\WordEditor.vue'
  10. export { default as WordInfo } from '../..\\components\\WordInfo.vue'
  11. export { default as WordList } from '../..\\components\\WordList.vue'
  12. export { default as WordType } from '../..\\components\\WordType.vue'
  13. export { default as Pagination } from '../..\\components\\Pagination\\index.vue'
  14. // nuxt/nuxt.js#8607
  15. function wrapFunctional(options) {
  16. if (!options || !options.functional) {
  17. return options
  18. }
  19. const propKeys = Array.isArray(options.props) ? options.props : Object.keys(options.props || {})
  20. return {
  21. render(h) {
  22. const attrs = {}
  23. const props = {}
  24. for (const key in this.$attrs) {
  25. if (propKeys.includes(key)) {
  26. props[key] = this.$attrs[key]
  27. } else {
  28. attrs[key] = this.$attrs[key]
  29. }
  30. }
  31. return h(options, {
  32. on: this.$listeners,
  33. attrs,
  34. props,
  35. scopedSlots: this.$scopedSlots,
  36. }, this.$slots.default)
  37. }
  38. }
  39. }