uview-plus icon indicating copy to clipboard operation
uview-plus copied to clipboard

table2报错More than one slot named "cell-0" are found inside a single component instance

Open Pandaver opened this issue 8 months ago • 3 comments

版本号 3,微信小程序环境

<template>
	<u-table2 :data="tableData" :columns="columns" />
	<Tabbar></Tabbar>
</template>

<script setup>
	const tableData = [{
			id: 1,
			name: '张三',
			age: 25
		},
		{
			id: 2,
			name: '李四',
			age: 30
		}
	]
	const columns = [{
			title: '姓名',
			key: 'name'
		},
		{
			title: '年龄',
			key: 'age'
		}
	]
</script>
Image

Pandaver avatar Aug 26 '25 07:08 Pandaver

@ijry 您好,麻烦能看下吗?我是按照文档复制的呀

Pandaver avatar Aug 26 '25 11:08 Pandaver

Image把源码里这个删了就修好了

Pandaver avatar Sep 04 '25 04:09 Pandaver

老哥,可太有用了,没你都准备放弃这个UI库了

jiabing-china avatar Sep 26 '25 01:09 jiabing-china