Skip to content

Commit

Permalink
fix(MdApp): fix typo (#1728)
Browse files Browse the repository at this point in the history
fix #1727
  • Loading branch information
VdustR authored and marcosmoura committed May 13, 2018
1 parent 3015e85 commit 8bdbaf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/MdApp/MdApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand Down

0 comments on commit 8bdbaf3

Please sign in to comment.