Skip to content

Commit e4bcaa2

Browse files
committed
chang tabbar
1 parent e2e6789 commit e4bcaa2

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

app/components/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!-- <GridLayout colums="*" rows="*"> -->
66
<StackLayout class="hello-world">
77
<Button class="btn btn-primary" text="示例" @tap="example" />
8-
<Button class="btn btn-primary" text="应用" @tap="project" />
8+
<Button class="btn btn-primary" text="实例" @tap="project" />
99
</StackLayout>
1010
<!-- </GridLayout> -->
1111
</ScrollView>

app/components/example/main.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default {
8383
},
8484
data() {
8585
return {
86-
msg: '---------分割线--------'
86+
msg: '---------分割线---------'
8787
};
8888
},
8989
mounted() {},

app/components/project/home.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<template>
22
<StackLayout id="home">
3-
111
43
<!-- <Label textWrap="true" text="Hello John !" class="h1 align-center extra-bold" /> -->
54
<!-- <Button width="30" height="5" class="hr" />
65
<Label textWrap="true" text="Which city are you looking for today ?"

app/components/project/main.vue

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
2-
<Page class="page" actionBarHidden="true">
3-
<ActionBar id="header head">
2+
<Page class="page" actionBarHidden="false">
3+
<ActionBarSecond :title="'实例'"></ActionBarSecond>
4+
<!-- <ActionBar id="header head">
45
<StackLayout orientation="horizontal" class="btn menu hh">
56
<Image
67
src="~/assets/icons/arrow.png"
@@ -12,8 +13,8 @@
1213
/>
1314
<Label class="tess" text="NativeScript" fontSize="24" horizontalAlignment="right" />
1415
</StackLayout>
15-
<!-- <NavigationButton text="Go Back" android.systemIcon="ic_menu_back" @tap="$navigateBack"/> -->
16-
</ActionBar>
16+
<NavigationButton text="Go Back" android.systemIcon="ic_menu_back" @tap="$navigateBack"/>
17+
</ActionBar> -->
1718

1819
<GridLayout rows="60, *, auto" backgroundColor="#26252A">
1920
<Header class="header" row="0" />
@@ -133,8 +134,11 @@ import Home from './home';
133134
import Tabbar1 from './tabbar/tabbar1';
134135
import Tabbar2 from './tabbar/tabbar2';
135136
import Tabbar3 from './tabbar/tabbar3';
137+
import ActionBarSecond from '../example/public/action-bar-second';
138+
136139
export default {
137140
components: {
141+
ActionBarSecond,
138142
Header,
139143
Footer,
140144
Home,
@@ -145,9 +149,6 @@ export default {
145149
},
146150
data() {
147151
return {
148-
surprise: false,
149-
title: '点击我!【Tap me!】',
150-
imgsrc: 'res://icon',
151152
places: [
152153
{
153154
name: 'The Custom House1',
@@ -172,13 +173,13 @@ export default {
172173
};
173174
},
174175
mounted() {
175-
console.log('jjjj', this.$refs.ca.nativeView);
176+
console.log('xxx', this.$refs.ca.nativeView);
176177
this.$refs.ca.nativeView.separatorColor = 'white';
177178
this.$refs.ca.nativeView.itemsProperty = 'white';
178179
},
179180
methods: {
180181
change: function(value) {
181-
//console.log('我是伏组件');
182+
//console.log('我是父组件');
182183
this.selectedTabview = value;
183184
}
184185
}

0 commit comments

Comments
 (0)