Skip to content
Permalink
Browse files

feat(MdApp): allow custom components with slot (#1387)

  • Loading branch information...
Samuell1 authored and marcosmoura committed Jan 12, 2018
1 parent e24f8dc commit ff341a2306b23f8e98723b5660747135f010fb2b
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/components/MdApp/MdApp.vue
@@ -13,10 +13,11 @@
if (children) {
children.forEach(child => {
const opts = child.componentOptions
const data = child.data
const componentOptions = child.componentOptions
if (opts && componentTypes.includes(opts.tag)) {
child.data.slot = opts.tag
if ((data && componentTypes.includes(data.slot)) || (componentOptions && componentTypes.includes(componentOptions.tag))) {
child.data.slot = data.slot || componentOptions.tag
child.data.provide = options.Ctor.options.provide
child.context = context
child.functionalContext = functionalContext

0 comments on commit ff341a2

Please sign in to comment.
You can’t perform that action at this time.