做毕设用到uniapp,学了几天,了解的比较浅,今天发现titleNView导航栏和我的页面uni-lis列表内容重叠了一部分
页面结构如下:
<template>
<view class="content">
<uni-list v-for="(item, index) in patient_list" :key="index">
<uni-list-item>
{{item.name}}
</uni-list-item>
</uni-list>
</view>
</template>
另外我在pages.json文件里面配置了titleNView:
"titleNView": {
"buttons": [{
"float":"right",
"type":"home",
"fontWeight":"bold",
"color":"#000000"
}],
"type": "float",//悬浮栏
"searchInput": {
"backgroundColor": "#f7fcff",
"borderRadius": "20px", //输入框圆角
"align": "left",
"placeholder": "请输入搜索内容"
}
}
效果图:
总体来说就是我放置的列表的第一行被导航栏挡住了,下面看到的是第二行的数据了。。
我这个是h5的,有没有好心人能给我说一下问题在哪?或者该怎么改?不胜感激!