Skip to content

Conversation

@RamirezET
Copy link

当折叠面板子组件v-for循环时,每一项的数据在插槽内可能需要使用

	<uni-collapse-item :extraData="item "  v-for="item in itemList" :key="item .id">
		<template v-slot:title="{ extraData }">
			<view>{{ extraData.title}}</view>
		</template>
		<template v-slot:default="{ extraData }">
			<view>{{ extraData.desc}}</view>
		</template>
	</uni-collapse-item>

GRCmade and others added 30 commits July 18, 2025 21:31
feat: showMenuButtonWidth 右侧是否避让胶囊,即 显示区域为胶囊左侧,默认不开启,开启后会导致标题不在页面水平居中
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants