uni-app icon indicating copy to clipboard operation
uni-app copied to clipboard

vue3 calendar reactive数据失去响应式

Open xunyao4dev opened this issue 1 year ago • 1 comments

<template>
	<view class="container">
		<uni-calendar :selected="selected" :start-date="'2019-03-02'" :end-date="'2029-05-20'" />
	</view>
</template>

<script setup>
	import {
		reactive
	} from 'vue'

	import {
		onLoad
	} from '@dcloudio/uni-app'

	const selected = reactive([{
			date: '2024-06-30',
			info: 'Red dot'
		}]);

	onLoad(() => {
		// 设置测试数据
		selected.push({
			date: '2024-06-01',
			info: 'Red dot'
		})
	})
</script>

<style>

</style>

在示例代码中6.1的红点不展示,而6.30的红点展示

xunyao4dev avatar Jun 18 '24 09:06 xunyao4dev

经测试是正常的 image

GRCmade avatar Jul 04 '24 09:07 GRCmade

长时间未响应,关闭本issue。 如还有问题,可 reopen issue 继续讨论。

bfc846958672 avatar Sep 02 '24 03:09 bfc846958672