File tree Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 2
2
<div class =" md-app md-app-internal-drawer md-layout-column" :class =" appClasses" >
3
3
<slot name =" md-app-toolbar" ></slot >
4
4
5
- <main class =" md-app-container md-flex md-layout-row" :style =" containerStyles" >
5
+ <main class =" md-app-container md-flex md-layout-row" :style =" containerStyles" :class = " [$mdActiveTheme, scrollerClasses] " >
6
6
<slot name =" md-app-drawer" ></slot >
7
- <div class =" md-app-scroller md-layout-column md-flex" >
7
+ <div class =" md-app-scroller md-layout-column md-flex" :class = " [$mdActiveTheme, scrollerClasses] " >
8
8
<slot name =" md-app-content" ></slot >
9
9
</div >
10
10
</main >
11
11
</div >
12
12
</template >
13
13
14
14
<script >
15
+ import MdComponent from ' core/MdComponent'
15
16
import MdAppMixin from ' ./MdAppMixin'
16
17
17
- export default {
18
+ export default new MdComponent ( {
18
19
name: ' MdAppInternalDrawer' ,
19
20
mixins: [MdAppMixin]
20
- }
21
+ })
21
22
</script >
22
23
23
24
<style lang="scss">
Original file line number Diff line number Diff line change @@ -23,7 +23,11 @@ export default {
23
23
}
24
24
} ,
25
25
mdWaterfall : Boolean ,
26
- mdFlexible : Boolean
26
+ mdFlexible : Boolean ,
27
+ mdScrollbar : {
28
+ type : Boolean ,
29
+ default : true
30
+ }
27
31
} ,
28
32
data : ( ) => ( {
29
33
revealTimer : null ,
@@ -60,6 +64,11 @@ export default {
60
64
}
61
65
}
62
66
} ,
67
+ scrollerClasses ( ) {
68
+ if ( this . mdScrollbar ) {
69
+ return 'md-scrollbar'
70
+ }
71
+ } ,
63
72
appClasses ( ) {
64
73
return {
65
74
'md-waterfall' : this . mdWaterfall ,
Original file line number Diff line number Diff line change 2
2
<div class =" md-app md-app-side-drawer md-layout-row" :class =" appClasses" >
3
3
<slot name =" md-app-drawer" ></slot >
4
4
5
- <main class =" md-app-container md-flex md-layout-column" :style =" containerStyles" @scroll.passive =" handleScroll" >
5
+ <main class =" md-app-container md-flex md-layout-column" :style =" containerStyles" :class = " [$mdActiveTheme, scrollerClasses] " @scroll.passive =" handleScroll" >
6
6
<slot name =" md-app-toolbar" ></slot >
7
- <div class =" md-app-scroller md-layout-column md-flex" @scroll.passive =" handleScroll" >
7
+ <div class =" md-app-scroller md-layout-column md-flex" :class = " [$mdActiveTheme, scrollerClasses] " @scroll.passive =" handleScroll" >
8
8
<slot name =" md-app-content" ></slot >
9
9
</div >
10
10
</main >
11
11
</div >
12
12
</template >
13
13
14
14
<script >
15
+ import MdComponent from ' core/MdComponent'
15
16
import MdAppMixin from ' ./MdAppMixin'
16
17
17
- export default {
18
+ export default new MdComponent ( {
18
19
name: ' MdAppInternalSideDrawer' ,
19
20
mixins: [MdAppMixin]
20
- }
21
+ })
21
22
</script >
22
23
23
24
<style lang="scss">
You can’t perform that action at this time.
0 commit comments