【发布时间】:2020-07-03 09:19:40
【问题描述】:
是否可以在 nativescript vue 中的另一个组件中包含一个组件? 像父子关系
像这样:
<Frame ~mainContent>
<Page>
<ActionBar title="Initial Page" style="color:white">
<NavigationButton icon="res://menu" @tap="openMenu"></NavigationButton>
</ActionBar>
<StackLayout>
<son-component></son-component>
</StackLayout>
</Page>
</Frame>
【问题讨论】:
-
嗨,加布里埃尔——你试过了吗?如果是这样,它会给您带来什么结果?
-
是的,我试过并得到了这个错误“[TypeError: No known component for element div.]”
标签: nativescript-vue