夫子仰慕者
夫子仰慕者
  • 发布:2023-08-24 11:10
  • 更新:2023-08-24 11:12
  • 阅读:142

nvue list 组件在网页显示这种警告,但是uniapp的模版代码不显示,是不是要做什么单独的配置

分类:nvue

报这种错误 Unknown custom element: <cell> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
这是我的代码
<template>
<view class="tabs">
<list class="scroll-v list"
scrollable='true'
enableBackToTop="true"
scroll-y
loadmoreoffset="15" >
<cell v-for="(newsitem,index2) in tabBars" :key="index2">
<view style="width:750rpx;height: 80rpx;background-color: aquamarine;padding: 10rpx;">{{newsitem.name}}</view>
</cell>
<cell class="loading-more" >
<text class="loading-more-text">fdfd</text>
</cell>
</list>
</view>
</template>

<script>
export default {
data () {
return {
dataList: [{id: "1", name: 'A'}, {id: "2", name: 'B'}, {id: "3", name: 'C'}],
tabBars: [{
name: '关注',
id: 'guanzhu'
}, {
name: '推荐',
id: 'tuijian'
}, {
name: '体育',
id: 'tiyu'
}, {
name: '热点',
id: 'redian'
}, {
name: '财经',
id: 'caijing'
}, {
name: '娱乐',
id: 'yule'
}, {
name: '军事',
id: 'junshi'
}, {
name: '历史',
id: 'lishi'
}, {
name: '本地',
id: 'bendi'
},{
name: '关注',
id: 'guanzhu'
}, {
name: '推荐',
id: 'tuijian'
}, {
name: '体育',
id: 'tiyu'
}, {
name: '热点',
id: 'redian'
}, {
name: '财经',
id: 'caijing'
}, {
name: '娱乐',
id: 'yule'
}, {
name: '军事',
id: 'junshi'
}, {
name: '历史',
id: 'lishi'
}, {
name: '本地',
id: 'bendi'
},{
name: '关注',
id: 'guanzhu'
}, {
name: '推荐',
id: 'tuijian'
}, {
name: '体育',
id: 'tiyu'
}, {
name: '热点',
id: 'redian'
}, {
name: '财经',
id: 'caijing'
}, {
name: '娱乐',
id: 'yule'
}, {
name: '军事',
id: 'junshi'
}, {
name: '历史',
id: 'lishi'
}, {
name: '本地',
id: 'bendi'
}],
}
}
}
</script>

2023-08-24 11:10 负责人:无 分享
已邀请:
夫子仰慕者

夫子仰慕者 (作者)

图片效果

要回复问题请先登录注册