在我的
App.vue
<template>
<Page class="page">
<ActionBar title="my-app" class="top-nav" />
<ListView v-show="showHome" for="(post, index) in posts" @itemTap="onItemTap" row="1">
<v-template>
<FlexboxLayout flexDirection="row" class="post-list" justifyContent="space-between">
<FlexboxLayout flexDirection="column" width="15%" justifyContent="space-between" alignItems="center">
<Image src="~/images/up.png" @tap="onButtonTap('up', index)" class="up-down" />
<Label :text="post.score" class="post-count" />
<Image src="~/images/down.png" @tap="onButtonTap('down', index)" class="up-down" />
</FlexboxLayout>
</v-template>
</ListView>
</Page>
</template>
它在Nativescript游乐场上运行良好,
<Image />
你是带着那个
src
但当我用iOS模拟器在机器上调试时,它不工作了。。。,这个
<图像/>
零件只是一片空白。。。
项目框架如下所示
/app
|_ app.js
|_ app.css
|_ package.json
|_ /components
| |_App.vue
|
|_ /images
|_up.png
有人知道发生了什么吗?非常感谢。