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"
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';
133134import Tabbar1 from ' ./tabbar/tabbar1' ;
134135import Tabbar2 from ' ./tabbar/tabbar2' ;
135136import Tabbar3 from ' ./tabbar/tabbar3' ;
137+ import ActionBarSecond from ' ../example/public/action-bar-second' ;
138+
136139export 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