【发布时间】:2019-10-23 07:06:24
【问题描述】:
为什么下面的代码会产生这个结果:https://imgur.com/a/lQhLs8o?
但是,如果我将BottomNavigatorBar 组件移动到CountryListComponent 之前的顶部位置,它会产生如下所示的预期结果:https://imgur.com/a/23z7bb2?
<template>
<Page actionBarHidden="true">
<DockLayout height="100%">
// first
<CountryListComponent dock="top">
// second
<BottomNavigationBar dock="bottom" activeColor="pink"
inactiveColor="yellow"
backgroundColor="black"
verticalAlignment="bottom"
@tabSelected="this.changeTab"
row="1">
<BottomNavigationTab title="Fiaarst" icon="icon-29.png" />
<BottomNavigationTab title="Second" icon="icon-29.png" />
<BottomNavigationTab title="Third" icon="icon-29.png" />
</BottomNavigationBar>
</DockLayout>
</Page>
</template>
CountryListComponent
<template>
<StackLayout backgroundColor="blue">
</StackLayout>
</template>
【问题讨论】:
标签: nativescript nativescript-vue