Skip to content

Commit f9cf042

Browse files
committed
test: demoapp update
1 parent 55b03fc commit f9cf042

File tree

5 files changed

+24
-19
lines changed

5 files changed

+24
-19
lines changed

demo-vue/app/app.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ button {
1717
height: 64;
1818
margin: 30;
1919
}
20+
bottomnavigationbar {
21+
active-color: #1b1edb;
22+
inactive-color: #683131;
23+
background-color: #ddd;
24+
badge-color: green;
25+
badge-text-color: yellow;
26+
}
2027

2128
.buttonYellow {
2229
background-color: yellow;

demo-vue/app/examples/BottomNavigationBar.vue

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
<template>
22
<Page>
33
<ActionBar :title="title">
4-
<NavigationButton text="Back" android.systemIcon="ic_menu_back" @tap="onNavigationButtonTap"/>
4+
<NavigationButton text="Back" android.systemIcon="ic_menu_back" @tap="onNavigationButtonTap" />
55
</ActionBar>
66
<GridLayout rows="*, auto" backgroundColor="blue">
77
<StackLayout class="page" backgroundColor="white" row="0">
8-
<GridLayout class="p-20" v-if="currentTab === 0"> -->
8+
<GridLayout class="p-20" v-if="currentTab === 0">
99
<Label class="h1 text-center" text="First tab" textWrap="true"></Label>
10-
</GridLayout> -->
10+
<Button text="select third" @tap="selectThird" horizontalAlignment="center" verticalAlignment="bottom" />
11+
</GridLayout>
1112
<GridLayout class="p-20" v-if="currentTab === 2">
1213
<Label class="h1 text-center" text="Third tab" textWrap="true"></Label>
1314
</GridLayout>
1415
</StackLayout>
1516
<MDBottomNavigationBar
17+
ref="bottomBar"
1618
row="1"
17-
activeColor="red"
1819
@loaded="onbottomNavigationBarLoaded"
1920
@tabPressed="onBottomNavigationTabPressed"
2021
@tabSelected="onBottomNavigationTabSelected"
21-
@tabReselected="onBottomNavigationTabReselected"
22+
@tabReselected="onBottomNavigationTabReselected"
2223
>
23-
<MDBottomNavigationTab title="First" icon="res://ic_home" activeColor="green"/>
24+
<MDBottomNavigationTab title="First" icon="res://ic_home" activeColor="green" />
2425
<MDBottomNavigationTab title="Second" icon="res://ic_view_list" isSelectable="false" />
25-
<MDBottomNavigationTab title="Third" icon="res://ic_menu" inactiveColor="brown"/>
26+
<MDBottomNavigationTab title="Third" icon="res://ic_menu" inactiveColor="brown" />
2627
</MDBottomNavigationBar>
2728
</GridLayout>
2829
</Page>
@@ -46,6 +47,9 @@ export default Vue.extend({
4647
};
4748
},
4849
methods: {
50+
selectThird() {
51+
this.$refs.bottomBar.nativeView.selectTab(2);
52+
},
4953
onNavigationButtonTap() {
5054
frameModule.Frame.topmost().goBack();
5155
},

demo-vue/app/images/apple.png

2.13 KB
Loading

demo-vue/app/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
import {Trace} from '@nativescript/core';
3-
Trace.addCategories(Trace.categories.concat(Trace.categories.All));
4-
Trace.enable();
2+
// import {Trace} from '@nativescript/core';
3+
// Trace.addCategories(Trace.categories.concat(Trace.categories.All));
4+
// Trace.enable();
55

66
import Vue from 'nativescript-vue';
77
import ActivityIndicatorPlugin from '@nativescript-community/ui-material-activityindicator/vue';

demo-vue/package.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
"license": "SEE LICENSE IN LICENSE.md",
44
"readme": "README.md",
55
"repository": "http://www.github.com/NativeScript/nativescript-ui-sidedrawer.git",
6-
"nativescript": {
7-
"id": "org.nativescript.demovuematerial",
8-
"tns-android": {
9-
"version": "6.5.3"
10-
}
11-
},
126
"dependencies": {
137
"@mdi/font": "4.9.95",
148
"@nativescript/core": "7.0.11",
@@ -36,14 +30,14 @@
3630
"@babel/core": "^7.11.6",
3731
"@nativescript/android": "7.0.0",
3832
"@nativescript/types": "7.0.1",
39-
"@nativescript/webpack": "3.0.4",
33+
"@nativescript/webpack": "3.0.7",
4034
"babel-loader": "^8.1.0",
4135
"nativescript-vue-template-compiler": "~2.8.1",
4236
"sass-loader": "^10.0.2",
4337
"scss-symbols-parser": "^2.0.1",
4438
"string-replace-loader": "^2.3.0",
4539
"tns-android": "6.5.3",
46-
"tns-ios": "6.5.2",
40+
"tns-ios": "6.5.3",
4741
"typescript": "^3.9.7",
4842
"vue": "^2.6.12",
4943
"vue-i18n": "^8.21.0",
@@ -55,4 +49,4 @@
5549
"scripts": {
5650
"tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'"
5751
}
58-
}
52+
}

0 commit comments

Comments
 (0)