Skip to content

Commit 3c4b498

Browse files
committed
test: demo
1 parent 9d54442 commit 3c4b498

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

demo-vue/app/examples/BottomNavigation.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<!-- The number of MDTabContentItem components should corespond to the number of MDTabStripItem components -->
2525
<MDTabContentItem>
26-
<GridLayout backgroundColor="red" @loaded="onLoaded('red')">
26+
<GridLayout backgroundColor="red" @loaded="onLoaded('red')" @tap="navigateToTabsSample">
2727
<Label text="Home Page" class="h2 text-center"></Label>
2828
</GridLayout>
2929
</MDTabContentItem>
@@ -43,8 +43,8 @@
4343

4444
<script lang="ts">
4545
import * as frameModule from '@nativescript/core/ui/frame';
46-
import { Tabs } from '@nativescript-community/ui-material-tabs';
4746
import { EventData } from '@nativescript/core';
47+
import Tabs from './Tabs.vue';
4848
4949
import Vue from 'vue';
5050
@@ -63,6 +63,10 @@ export default Vue.extend({
6363
},
6464
onLoaded(name) {
6565
console.log('onTabLoaded', name)
66+
},
67+
navigateToTabsSample() {
68+
this.$navigateTo(Tabs);
69+
6670
}
6771
}
6872
});

0 commit comments

Comments
 (0)