From 2d569e4dc4da24a149945dc2b2345c4a4ea3d476 Mon Sep 17 00:00:00 2001 From: Jake Woki Date: Sat, 20 Jul 2024 17:49:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(cascader):=20=E6=94=AF=E6=8C=81end-date?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E5=80=BC=E5=8A=A8=E6=80=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat(cascader): 支持end-date属性值动态更新 #2183 --- src/packages/__VUE/calendaritem/index.taro.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/packages/__VUE/calendaritem/index.taro.vue b/src/packages/__VUE/calendaritem/index.taro.vue index 195121d1ae..3847d5bcd3 100644 --- a/src/packages/__VUE/calendaritem/index.taro.vue +++ b/src/packages/__VUE/calendaritem/index.taro.vue @@ -828,7 +828,18 @@ export default create({ } } ) - + // 监听结束日期更改 + watch( + () => props.endDate, + (val) => { + if (val) { + if (props.poppable) { + resetRender() + } + } + } + ) + return { weeks, compConthsData,