We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e24f8dc commit ff341a2Copy full SHA for ff341a2
src/components/MdApp/MdApp.vue
@@ -13,10 +13,11 @@
13
14
if (children) {
15
children.forEach(child => {
16
- const opts = child.componentOptions
+ const data = child.data
17
+ const componentOptions = child.componentOptions
18
- if (opts && componentTypes.includes(opts.tag)) {
19
- child.data.slot = opts.tag
+ if ((data && componentTypes.includes(data.slot)) || (componentOptions && componentTypes.includes(componentOptions.tag))) {
20
+ child.data.slot = data.slot || componentOptions.tag
21
child.data.provide = options.Ctor.options.provide
22
child.context = context
23
child.functionalContext = functionalContext
0 commit comments