lspriv / wx-calendar

微信小程序日历
MIT License
256 stars 44 forks source link

日历的切换方式能否支持手动切换 #145

Closed lukesyy closed 1 month ago

lukesyy commented 1 month ago

image 像是这样 点击切换 而不是滑动 而且能不能保留swiper的动画效果

lspriv commented 1 month ago

可以的,组件暴露了checked方法,接受一个日期作为参数,你只要将这个日期指定为上个月或者下个月的同一天即可发自我的iPhone------------------ 原始邮件 ------------------发件人: luke @.>发送时间: 2024年8月7日 09:33收件人: lspriv/wx-calendar @.>抄送: lspriv @.>, Assign @.>主题: Re: [lspriv/wx-calendar] 日历的切换方式能否支持手动切换 (Issue #145) image.png (view on web) 像是这样 点击切换 而不是滑动 而且能不能保留swiper的动画效果

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/lspriv/wx-calendar/issues/145", "url": "https://github.com/lspriv/wx-calendar/issues/145", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

lukesyy commented 1 month ago

可以的,组件暴露了checked方法,接受一个日期作为参数,你只要将这个日期指定为上个月或者下个月的同一天即可发自我的iPhone------------------ 原始邮件 ------------------发件人: luke @.>发送时间: 2024年8月7日 09:33收件人: lspriv/wx-calendar @.>抄送: lspriv @.>, Assign @.>主题: Re: [lspriv/wx-calendar] 日历的切换方式能否支持手动切换 (Issue #145) image.png (view on web) 像是这样 点击切换 而不是滑动 而且能不能保留swiper的动画效果 —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "#145", "url": "#145", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

我看到了数据更新的方法 我把他暴露出来了 image image

image

使用没有问题 很棒

lukesyy commented 1 month ago

recording

xahy123 commented 1 month ago

哥们你微信基础库是多少,真机有问题吗?是用原生开发吗?还是uniapp or taro

lukesyy commented 1 month ago

哥们你微信基础库是多少,真机有问题吗?是用原生开发吗?还是uniapp or taro

原生 3.51

xahy123 commented 1 month ago

真机没正常不?有没有报错

lukesyy commented 1 month ago

真机没正常不?有没有报错

没有啊 正常的 这改动为啥会报错

lspriv commented 1 month ago

可以的,组件暴露了checked方法,接受一个日期作为参数,你只要将这个日期指定为上个月或者下个月的同一天即可发自我的iPhone------------------ 原始邮件 ------------------发件人: luke @.**>发送时间: 2024年8月7日 09:33收件人: lspriv/wx-calendar @.**>抄送: lspriv @.**>, Assign @.**>主题: Re: [lspriv/wx-calendar] 日历的切换方式能否支持手动切换 (Issue #145) image.png (view on web) 像是这样 点击切换 而不是滑动 而且能不能保留swiper的动画效果 —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.**> [ { @.**": "http://schema.org", @.**": "EmailMessage", "potentialAction": { @.**": "ViewAction", "target": "#145", "url": "#145", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

我看到了数据更新的方法 我把他暴露出来了 image image

image

使用没有问题 很棒

checked方法跳转日期本身内部就附带更新了。。

lspriv commented 1 month ago

真机没正常不?有没有报错

wxs事件真机警告问题已经向官方提了,等消息

lukesyy commented 1 month ago

可以的,组件暴露了checked方法,接受一个日期作为参数,你只要将这个日期指定为上个月或者下个月的同一天即可发自我的iPhone------------------ 原始邮件 ------------------发件人: luke @.**>发送时间: 2024年8月7日 09:33收件人: lspriv/wx-calendar @.**>抄送: lspriv @.**>, Assign @.**>主题: Re: [lspriv/wx-calendar] 日历的切换方式能否支持手动切换 (Issue #145) image.png (view on web) 像是这样 点击切换 而不是滑动 而且能不能保留swiper的动画效果 —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.**> [ { @.**": "http://schema.org", @.**": "EmailMessage", "potentialAction": { @.**": "ViewAction", "target": "#145", "url": "#145", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

我看到了数据更新的方法 我把他暴露出来了 image image image 使用没有问题 很棒

checked方法跳转日期本身内部就附带更新了。。 checked并不满足,这个方法要传一个日期,我左右切换周数,难道我还要自己算一下几月几号传进去跳转吗

lspriv commented 1 month ago

好吧,下个版本新增接口toPrev,toNext发自我的iPhone------------------ 原始邮件 ------------------发件人: luke @.>发送时间: 2024年8月8日 11:16收件人: lspriv/wx-calendar @.>抄送: lspriv @.>, State change @.>主题: Re: [lspriv/wx-calendar] 日历的切换方式能否支持手动切换 (Issue #145)

可以的,组件暴露了checked方法,接受一个日期作为参数,你只要将这个日期指定为上个月或者下个月的同一天即可发自我的iPhone------------------ 原始邮件 ------------------发件人: luke @.>发送时间: 2024年8月7日 09:33收件人: lspriv/wx-calendar @**.>抄送: lspriv @.>, Assign @._>主题: Re: [lspriv/wx-calendar] 日历的切换方式能否支持手动切换 (Issue #145) image.png (view on web) 像是这样 点击切换 而不是滑动 而且能不能保留swiper的动画效果 —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.> [ { @.": "http://schema.org", @.***": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "#145", "url": "#145", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.*": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

我看到了数据更新的方法 我把他暴露出来了

使用没有问题 很棒

checked方法跳转日期本身内部就附带更新了。。 checked并不满足,这个方法要传一个日期,我左右切换周数,难道我还要自己算一下几月几号传进去跳转吗

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/lspriv/wx-calendar/issues/145#issuecomment-2274873398", "url": "https://github.com/lspriv/wx-calendar/issues/145#issuecomment-2274873398", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]