This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 44 role =" tablist"
55 @MDCTabBar:activated =" onActivated"
66 >
7- <slot />
7+ <slot v-if =" $slots.default[0].tag.includes('m-tab-scroller')" />
8+ <!-- todo: it doesn't work with <div class='mdc-tab-scroller'> but only work with our own m-tab-scroller component. This need to be enhanced. -->
9+ <div
10+ v-else
11+ class =" mdc-tab-scroller"
12+ >
13+ <div class =" mdc-tab-scroller__scroll-area" >
14+ <div class =" mdc-tab-scroller__scroll-content" >
15+ <slot />
16+ </div >
17+ </div >
18+ </div >
819 </div >
920</template >
1021
@@ -53,6 +64,7 @@ export default {
5364 }
5465 },
5566 mounted () {
67+ console .log (this .$slots .default [0 ].tag )
5668 this .mdcTabBar = MDCTabBar .attachTo (this .$el )
5769 this .mdcTabBar .focusOnActivate = this .focusOnActivate
5870 this .mdcTabBar .useAutomaticActivation = this .useAutomaticActivation
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import { MDCTabIndicator } from '@material/tab-indicator'
1515import { baseComponentMixin , themeClassMixin } from ' ../base'
1616
1717export default {
18- name: ' TabIndicator' ,
1918 mixins: [baseComponentMixin, themeClassMixin],
2019 props: {
2120 fade: {
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import { MDCTabScroller } from '@material/tab-scroller'
1313import { baseComponentMixin , themeClassMixin } from ' ../base'
1414
1515export default {
16- name: ' TabScroller' ,
1716 mixins: [baseComponentMixin, themeClassMixin],
1817 data () {
1918 return {
You can’t perform that action at this time.
0 commit comments