Skip to content

Commit 8bdbaf3

Browse files
VdustRmarcosmoura
authored andcommitted
fix(MdApp): fix typo (#1728)
fix #1727
1 parent 3015e85 commit 8bdbaf3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/MdApp/MdApp.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828
2929
function shouldRenderSlot (data, componentOptions) {
30-
rreturn (data && componentTypes.includes(data.slot)) || isValidChild(componentOptions)
30+
return (data && componentTypes.includes(data.slot)) || isValidChild(componentOptions)
3131
}
3232
3333
function buildSlots (children, context, functionalContext, options, createElement) {
@@ -44,21 +44,21 @@
4444
child.data.slot = data.slot || componentOptions.tag
4545
4646
if (componentOptions.tag === 'md-app-drawer') {
47-
const isRightDrawer = isRightDrawer(componentOptions.propsData)
47+
const isRight = isRightDrawer(componentOptions.propsData)
4848
4949
if (hasDrawer) {
5050
Vue.util.warn(`There shouldn't be more than one drawer in a MdApp at one time.`)
5151
return
5252
}
5353
5454
hasDrawer = true
55-
child.data.slot += `-${isRightDrawer ? 'right' : 'left'}`
55+
child.data.slot += `-${isRight ? 'right' : 'left'}`
5656
child.key = JSON.stringify({
5757
'persistent': child.data.attrs['md-persistent'],
5858
'permanent': child.data.attrs['md-permanent']
5959
})
6060
61-
createRightDrawer(isRightDrawer)
61+
createRightDrawer(isRight)
6262
}
6363
6464
child.data.provide = options.Ctor.options.provide

0 commit comments

Comments
 (0)