Skip to content
Permalink
Browse files

fix(MdApp): fix typo (#1728)

fix #1727
  • Loading branch information...
VdustR authored and marcosmoura committed May 13, 2018
1 parent 3015e85 commit 8bdbaf3d8be8447b917ac652dd811bb1ce8f4c2f
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/components/MdApp/MdApp.vue
@@ -27,7 +27,7 @@
}
function shouldRenderSlot (data, componentOptions) {
rreturn (data && componentTypes.includes(data.slot)) || isValidChild(componentOptions)
return (data && componentTypes.includes(data.slot)) || isValidChild(componentOptions)
}
function buildSlots (children, context, functionalContext, options, createElement) {
@@ -44,21 +44,21 @@
child.data.slot = data.slot || componentOptions.tag
if (componentOptions.tag === 'md-app-drawer') {
const isRightDrawer = isRightDrawer(componentOptions.propsData)
const isRight = isRightDrawer(componentOptions.propsData)
if (hasDrawer) {
Vue.util.warn(`There shouldn't be more than one drawer in a MdApp at one time.`)
return
}
hasDrawer = true
child.data.slot += `-${isRightDrawer ? 'right' : 'left'}`
child.data.slot += `-${isRight ? 'right' : 'left'}`
child.key = JSON.stringify({
'persistent': child.data.attrs['md-persistent'],
'permanent': child.data.attrs['md-permanent']
})
createRightDrawer(isRightDrawer)
createRightDrawer(isRight)
}
child.data.provide = options.Ctor.options.provide

0 comments on commit 8bdbaf3

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